Hardware Reference
In-Depth Information
Now that you have checked out the repository and chosen your branch, your next step
is to copy the boot firmware onto the SD card that has the Raspberry Pi Linux distri-
bution image. To do this, you'll need to make sure the partitions on that SD card are
properly mounted (covered in detail in Hack #02 ).
From here on, we will assume that the boot partition from your SD card with the Rasp-
berry Pi Linux distribution image is mounted at /mnt/raspbi-boot . Current versions of
Fedora (including Pidora) will automount it to /run/media/$USERNAME/boot , where
$USERNAME is your username, so if you have it mounted somewhere else, substitute that
mount point in the next set of instructions.
To update the firmware on the boot partition, all you need to do is copy the right files
from the firmware/boot directory into the mounted boot partition (as root).
You probably do not want to copy all of the files from this directory.
You're looking for these critical firmware files in the firmware/boot directory:
bootcode.bin
fixup.dat
start.elf
We strongly recommend that you back up the existing (and presumably) working
copies of these files at this point. You can accomplish this by renaming these files (as
root) in the mounted boot partition first:
$ su -c 'mv /mnt/raspi-boot/bootcode.bin /mnt/raspi-boot/bootcode.bin.back
up'
$ su -c 'mv /mnt/raspi-boot/fixup.dat /mnt/raspi-boot/fixup.dat.backup'
$ su -c 'mv /mnt/raspi-boot/start.elf /mnt/raspi-boot/start.elf.backup'
Copy each of these firmware files (as root) into the mounted boot partition:
$ cd ~/raspi/firmware/boot/
$ su -c 'cp -a bootcode.bin fixup.dat start.elf /mnt/raspi-boot/'
su versus sudo
The command example used here for copying firmware files (along with
most other command examples in this topic) use su . The su command will
prompt you for the root password of your Linux laptop. If you have config-
ured sudo for use on your Linux laptop, you can replace the su -c command
with sudo and the command to copy the firmware files (as root) will look like
this instead:
 
Search WWH ::




Custom Search