
Stargate Developer’s Guide
Wireless Sensor Networks
Doc. # 7430-0317-13 Rev. B
Page 27
5
Creating a Linux boot image
5.1 How to build the Bootloader from Source
The Bootloader for the Stargate Development Platform is based on the Bootloader for the IPAQ
Bootloader, version 2.21.13, with appropriate changes. The Bootloader has been enhanced to provide
TFTP download capability for installing Kernel and Root File system modules using the Ethernet
from a TFTP server. The bootloader image file
bootldr
is provided with the release distribution, in the
CDROM shipped with the Stargate Processor Board, in the
<CDROM>/8160-0025-
14_A/images/bootldr/
directory.
Sources for the Bootloader have also been provided in the distribution, and can be rebuilt or updated,
if needed. The Bootloader sources are available in
<CDROM>/8160-0025-14_A /sources/bootloader/
.
To rebuild or update the Bootloader, you should copy this entire directory to your host machine where
you plan to rebuild the Bootloader.
You can build the Bootloader image by entering the following command in the Bootloader sources
directory:
make bootldr
This would result in the building of a new Bootloader image,
bootldr
. You can program this image on
to your Stargate board by following the directions provided in section 5.5.1.
5.2 How to rebuild the Linux Kernel Image
The kernel image file
zImage
has been provided with the release distribution, in the CDROM
shipped with the Stargate Processor Board, in the following location:
<CDROM>/8160-0025-14_A
/images/zImage
.
Source code for the kernel, with appropriate patches applied, has been provided in the distribution,
and can be used to compile a new version of the kernel, if needed. The kernel sources are available in
the following directory:
<CDROM>/8160-0025-14_A /sources/os/linux-2.4.19/
.
To rebuild or update the kernel or OS modules, you should copy this entire directory to your Host
machine where you plan to rebuild the kernel.
If you need to obtain the kernel sources and apply patches on your own, you can follow the directions
provided in the section 5.2.1. Otherwise you can proceed to section 5.2.2 to configure and compile the
kernel.
5.2.1
Extracting Kernel Sources
•
Get the main Linux kernel sources from:
ftp://ftp.arm.linux.org.uk:/pub/linux/linux-2.4/linux-
2.4.19.tar.gz
•
Get the ARM processor port patch from:
ftp://ftp.arm.linux.org.uk/pub/linux/arm/kernel/v2.4/patch-2.4.19-rmk7.gz
•
Get the XScale patch from:
ftp://ftp.arm.linux.org.uk/pub/linux/arm/people/nico/diff-2.4.19-
rmk7-pxa2.gz
•
Extract the kernel source using the command:
Summary of Contents for Stargate
Page 1: ...Stargate Developer s Guide Rev B January 2006 Document 7430 0317 13 ...
Page 50: ......
Page 51: ......