Hardware Reference
In-Depth Information
In this directory you will find a file that has the format of
stage3-armv6j_hardfp-YYYYMMDD.tar.bz2
.
wget
the
latest file to your hosts filesystem. This was the command that I used at the time of writing:
Once this is downloaded into the root partition, you need to extract the stage into the root partition. Use the
following command to extract the archive:
# tar xfj /tmp/stage3-armv6j_hardfp-20121213.tar.bz2 -C /mnt/rpi-root
You can see that I have saved the stage 3 tarball under
/tmp
on my host machine. Replace this location with where
you saved your stage 3 tarball. This may take a little time but once it's done it will look like Figure
11-27
. This should
look familiar to any Linux user.
Figure 11-27.
The stage 3 tarball unpacked
Now that you have a base filesystem and its tools, it's time to configure the system. I won't be using any
nondefault make flags for the GCC but if you wanted to use some you can edit the
/etc/make.conf
file.
The next step is to configure the
fstab
file, otherwise you may have an issue trying to boot anything. Listing 11-4
shows the contents of my
/etc/fstab
file.
Listing 11-4.
The Contents of the /etc/fstab File
# /etc/fstab: static file system information.
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/mmcblk0p1 /boot vfat noauto,noatime 1 2
/dev/mmcblk0p2 / ext4 noatime 0 1