U-boot – Aero-Flex GAISLER GR-LEON4-ITX User Manual

Page 28

Advertising
background image

28

GR-LEON4-ITX Development Board

Quick Start Guide

Compression Ratio: 3.035
section: .vmlinux at 0x40004000, size 2658560 bytes
Uncoded stream length: 2658560 bytes
Coded stream length: 1562710 bytes
Compression Ratio: 1.701

creating LEON3 boot prom: prom.out
Searching for compiler to use (sparc-elf, sparc-rtems or sparc-linux):
sparc-elf-gcc (GCC) 3.4.4
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sparc-elf-gcc

-O2

-g

-N

-T/opt/mkprom2/linkprom

-Ttext=0x0

/opt/mkprom2/promcore.o

/opt/mkprom2/promcrt0.o

/opt/mkprom2/promload.o

/opt/mkprom2/promdecomp.o

-nostdlib

/opt/mkprom2/prominit.o

/opt/mkprom2/prominit_leon3.o /opt/mkprom2/prombdinit.o

dump.s bdinit.o

-o

prom.out
multidir:
jan@jan:~/Linux$

The SPI Flash memory device can now be programmed with the PROM contents in the
prom.out file generated by MKPROM2 (it is recommended to use the Ethernet debug link

when programming the flash), start GRMON and 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 load prom.out
section: .text at 0x0, size 1575824 bytes
section: .data at 0x180b90, size 32 bytes
total size: 1575856 bytes (119.3 kbit/s)
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

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-

© Aeroflex Gaisler AB

June 2010, Rev. 0.2

Advertising