[Skyeye-developer] [SkyEye Doc] How to run U-Boot on SkyEye's
S3C44B0X simulation
Anthony Lee
don.anthony.lee+program at gmail.com
Sat Apr 14 17:27:08 CST 2007
How to run U-Boot on SkyEye's S3C44B0X simulation
$ export PATH=/usr/local/uclibc-0.9.28-3/arm/bin:$PATH
$ mkdir ~/build
$ cd ~/build
$ wget ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.6.tar.bz2
$ tar jxvf u-boot-1.1.6.tar.bz2
$ cd ~/build/u-boot-1.1.6
$ make distclean
$ make CROSS_COMPILE=arm-linux-uclibc- B2_config
$ make CROSS_COMPILE=arm-linux-uclibc-
$ cd ~/build
$ svn co http://skyeye.svn.sourceforge.net/svnroot/skyeye/skyeye-v1/trunk
skyeye-v1-svn
$ cd skyeye-v1-svn
$ make
$ mkdir ~/build/test
$ cd ~/build/test
$ cp ~/build/u-boot-1.1.6/u-boot.bin .
$ cat >> skyeye.conf <<_______EOF
> # skyeye config file for S3C44B0X
> cpu: arm7tdmi
>
> mach: s3c44b0x
>
> # physical memory
> #mem_bank: map=F, type=RW, addr=0x00000000, size=0x00200000, file=./u-boot.flash
>
> #mem_bank: map=F, type=RW, addr=0x00000000, size=0x00020000, file=./u-boot.bin
> #mem_bank: map=F, type=RW, addr=0x00020000, size=0x001e0000, file=./uImage
>
> mem_bank: map=F, type=RW, addr=0x00000000, size=0x00200000, file=./u-boot.bin
> mem_bank: map=M, type=RW, addr=0x0c000000, size=0x01000000
>
> # peripherals I/O mapping area
> mem_bank: map=I, type=RW, addr=0x01c00000, size=0x00400000
>
> # uart 0
> uart: mod=stdio
> # flash
> flash: type=SST39VF160, base=0x00000000, size=0x00200000, dump=u-boot.flash
>
> # dbct
> dbct: state=on
>
> _______EOF
$ ~/build/skyeye-v1-svn/binary/skyeye -c skyeye.conf
##################################################################
**************************** WARNING **********************************
If you want to run ELF image, you should use -e option to indicate
your elf-format image filename. Or you only want to run binary image,
you need to set the filename of the image and its entry in skyeye.conf.
***********************************************************************
big_endian is false.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name s3c44b0x, mach_init addr 0x8074760
uart_mod:0, desc_in:, desc_out:, converter:
flash: dump u-boot.flash
dbct info: turn on dbct!
SKYEYE: use arm7100 mmu ops
Loaded FLASH ./u-boot.bin
dbct translate block use memory 0x03ff871a bytes.
U-Boot 1.1.6 (Apr 14 2007 - 17:10:15)
DRAM: 16 MB
Flash: 2 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
=> help
? - alias for 'help'
autoscr - run script from memory
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bootvx - Boot vxWorks from an ELF image
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
date - get/set/reset date & time
echo - echo args to console
eeprom - EEPROM sub-system
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
icrc32 - checksum calculation
iloop - infinite loop on address range
imd - i2c memory display
iminfo - print header information for application image
imls - list all images found in flash
imm - i2c memory modify (auto-incrementing)
imw - memory write (fill)
inm - memory modify (constant address)
iprobe - probe to discover valid I2C chip addresses
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
tftpboot- boot image via network using TFTP protocol
version - print monitor version
=>
More information about the Skyeye-developer
mailing list