29
GR-LEON4-ITX Development Board
Quick Start Guide
pack/u-boot/prebuilt
this directory also contains a pre-built version of the
mkimage
tool. The
source for U-boot is on the USB Flash stick in the directory
software/bootloaders/u-boot
. To
re-build u-boot, enter the U-boot source directory and issue the command
make
gr_leon4_itx_config
followed by
make
.
To load the image onto the board, issue the following commands:
grlib> spim flash detect
Got manufacturer ID 0x20 and Device ID 0x2017
No device match for READ ID instruction, trying RES instruction..
Found matching device: ST/Numonyx M25P64
grlib> spim flash erase
grlib> spim flash load u-boot
section: .text at 0x0, size 208150 bytes
section: .u_boot_cmd at 0x32d18, size 1272 bytes
section: .data at 0x33210, size 34816 bytes
section: .got at 0x3ba10, size 4688 bytes
total size: 248926 bytes (116.9 kbit/s)
read 736 symbols
entry point: 0x00000000
grlib> verify u-boot
section: .text at 0x0, size 208150 bytes
section: .u_boot_cmd at 0x32d18, size 1272 bytes
section: .data at 0x33210, size 34816 bytes
section: .got at 0x3ba10, size 4688 bytes
total size: 248926 bytes (10.6 Mbit/s)
entry point: 0x00000000
grlib>
Next we need to build a Linux kernel image that U-boot can handle. U-Boot needs a header
to know how to interpret the binary images. The images support compression and CRC
verifying. To create an image, the
mkimage
tool must be in the system path. The Linux
kernel has a prepared build target for generating u-boot images (uImage):
jan@jan:~/Linux/snapgear-2.6-p41$ cd linux-2.6.21.1/
jan@jan:~/Linux/snapgear-2.6-p41/linux-2.6.21.1$ make ARCH=sparc \
CROSS_COMPILE=sparc-linux- uImage
CHK include/linux/version.h
CHK include/linux/utsrelease.h
… removed output ...
sparc-linux-ld -Tdata 0x00040000 -r -b binary arch/sparc/boot/uImage -o
arch/sparc/boot/uImage.o
Image arch/sparc/boot/uImage is ready
jan@jan:~/Linux/snapgear-2.6-p41/linux-2.6.21.1$
In order to interact with the pre-built version of U-boot the board must be connected to a
monitor and a USB keyboard. The uImage created above should be placed in the root of a
TFTP sever and a Ethernet cable should be connected to the GR-LEON4-ITX board's
second (top) Ethernet port.
After the necessary preparations have been made reset the board and press a key on the
USB keyboard to stop the U-boot boot process. When presented with the U-boot prompt
issue the following commands (see the U-boot documentation for more commands and the
meaning of the commands below):
=> setenv severip <ip address of tftp server>
=> saveenv
=> run getkernel
© Aeroflex Gaisler AB
June 2010, Rev. 0.2