User guide

30 GR-LEON4-ITX Development Board
Quick Start Guide
read 131 symbols
entry point: 0x00000000
The flash contents can now also be verified, either by spim flash verify prom.out or by the
faster verify prom.out:
grlib> verify prom.out
section: .text at 0x0, size 1575824 bytes
section: .data at 0x180b90, size 32 bytes
total size: 1575856 bytes (12.0 Mbit/s)
entry point: 0x00000000
grlib>
The PROM has now been successfully programmed. The software located in PROM can
now be booted by power cycling the board or by pushing the reset button.
U-boot
Note: U-boot currently only supports boot Linux images created with the SnapGear
distribution. If the more recent LinuxBuild Linux package is used then MKPROM2 must be
used to generate the PROM image.
U-Boot (Das Universal Boot loader) is boot loader for embedded systems developed by
http://www.denx.de and a port exists for SPARC/LEON. The LEON U-Boot can boot
RTEMS, VxWorks and Linux 2.6. Building the u-boot boot loader can be done with the
sparc-elf-gcc (BCC) crosscompiler.
The GR-LEON4-ITX data package contains a pre-built U-Boot image with a configuration
suitable for the board. The image is available in different formats in the directory gr-l4itx-
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>
© Aeroflex Gaisler AB March 2013, Rev. 0.3