Hardware Reference
In-Depth Information
Now you will have two filesystems that are ready to use. You'll need to mount the boot and root partitions onto
the host machine. I like to mount them under /mnt but you can mount them wherever you want. I used the following
two commands to mount my filesystems:
# mount /dev/sde1 /mnt/rpi-boot/
# mount /dev/sde2 /mnt/rpi-root/
In Figure 11-24 you can see my mounted partitions.
Figure 11-24. The mounted partitions on the host machine
The boot partition is like any other Raspberry Pi boot partition. It contains the firmware from the foundation,
the command-line arguments and configuration files, and lastly the kernel itself. The first step in building the boot
filesystem is to obtain the firmware files from the foundation's GitHub site:
https://github.com/raspberrypi/firmware/tree/master/boot
Here are the files you will need:
bootcode.bin
start.elf
fixup.dat
Use wget to copy them from the GitHub site onto the mounted boot partition. Once you have the three files, your
mounted boot partition should look like Figure 11-25 .
Figure 11-25. The boot partition with the firmware files
Next, you're going to need to create the cmdline.txt file and the config.txt file. In Listing 11-2 you can see the
contents of the cmdline.txt file. Create the cmdline.txt in the boot partition.
Listing 11-2. The cmdline.txt File
root=/dev/mmcblk0p2 rootdelay=2
Next create the config.txt file. In Listing 11-3 you can see the contents of my file. You may need different
options if you're using HDMI or composite video outputs. Once again, save this file in the boot partition.
 
Search WWH ::




Custom Search