Hardware Reference
In-Depth Information
Operating System
The next menu item you will see is “Operating System.” This one is important; by default crosstool-NG will default to
“bare-metal” as an operating-system type. This selection would be perfect if you were trying to cross compile a boot
loader. I won't be and I am pretty sure you won't be as well, so let's change it to “Linux.” Now you will see a whole
submenu unfold. There is only one option that you need to select and that's the “Linux kernel version.”
This option can seem a little misleading. You won't find every kernel version in this menu, so how can you select
the exact kernel on your Raspberry Pi? If you are wondering what kernel version you have on your Raspberry Pi just
type the following command and it will print your kernel version:
# uname -r
Well, you can't. The Linux kernel number is made up of three parts: for example, 3.2.25. The first number (3)
indicates the kernel version number, the section number (2) indicates the major revision of the kernel, and the
third number (25) indicates the minor number. When selecting a version in this option you must match the kernel
version number. Then pick as close as you can for the kernel revision number and the minor revision is not really that
important. Leave all the rest of the options on their default settings.
In Figure 6-9 you can see my selection. I have selected kernel version 3.2.25 as my Raspberry Pi is running 3.2.27.
Figure 6-9. The operating-system menu options
Binary Utilities
The next menu item on your list is “Binary Utilities.” This is where you can configure your binutils version and your
linker options. Where possible I like to use the latest binutils version; at the time of writing that was 2.21.1a. Leave
the linker as ld ; there are other linkers you can use but I strongly recommend you stick with the generic ld linker for
the time being. Nothing else needs to be done for this section.
Figure 6-10. The Binary Utilities menu
 
Search WWH ::




Custom Search