[U-Boot] Problem with uboot booting Linux image

Rahanesh rahanesh at tataelxsi.co.in
Tue Jun 23 11:31:46 CEST 2009


Hi All,

I am trying to boot Linux from uboot.  I have cross compiled Linux and 
ramdisk for my board. After cross compilation i did a tftp to download 
the image(Linux + Filesystem) to RAM(0x80800000) . From there i copied 
it to flash(0xad040000).

Now on a reset u boot comes up and then when trying to bring LINUX it 
throws an error saying

Verifying Checksum.......Bad data CRC.

Then uboot prompt appears.

This is what happened.....

U-Boot 1.1.2 (Jun 10 2008 - 18:55:13)

Board: MIPS CPU Speed 200 MHz
DRAM:  16 MB
sflash.c:266:DF_F_DataflashProbe: Entered
sflash.c:269:DF_F_DataflashProbe: flash type is 0x1
sflash.c:270:DF_F_DataflashProbe: num pages 32768
DataFlash:Nb pages:  32768
Page Size:    256
Size= 8388608 bytes
Logical address: 0xAD000000
Nb Erase Blocks:    128
Erase Block Size:  65536
Area 0: AD000000 to AD003FFF
Area 1: AD004000 to AD03FFFF
Area 2: AD040000 to AD30BFFF
Area 3: AD30C000 to AD7FFFFF
crc matched
In:    serial
Out:   serial
Err:   serial
Net:    Eth.

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot:  0
### JFFS2 loading '/boot/uImage' to 0x80800000
Scanning JFFS2 FS:  .................... done.
### JFFS2 load complete: 3249008 bytes loaded to 0x80800000
## Booting image at 80800000 ...
   Image Name:   Linux Kernel Image with ramdisk.
   Created:      2009-06-22   4:37:12 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    3248944 Bytes =  3.1 MB
   Load Address: 80100000
   Entry Point:  80578000
   Verifying Checksum ... Bad Data CRC
UBOOT>

UBOOT # printenv
bootargs=console=ttyS0,38400 nofpu mem=14M root=/dev/ram0 rw
bootcmd=fsload 0x80800000 /boot/uImage; bootm 0x80800000
bootdelay=5
baudrate=38400
ethaddr=00:06:0D:00:00:00
preboot=echo;echo Type "run flash_nfs" to mount root filesystem over 
NFS;echo
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
btargs=setenv bootargs console=ttyS0,$(baudrate) nofpu mem=30M 
root=/dev/ram0 rw
addip=setenv bootargs $(bootargs) 
ip=$(ipaddr):$(serverip):$(gatewayip):$(netmas
k):$(hostname):$(netdev):off
addmisc=setenv bootargs $(bootargs) console=ttyS0,$(baudrate) 
ethaddr=$(ethaddr)
 panic=1
flash_nfs=run nfsargs addip addmisc;bootm $(kernel_addr)
flash_self=run ramargs addip addmisc;bootm $(kernel_addr) $(ramdisk_addr)
net_nfs=tftp 80500000 $(bootfile);run nfsargs addip addmisc;bootm
netbootfile=uImage
jffsfile=jffs.1.1
progjffs=tftp 0x80800000 $(jffsfile); erase 0xad040000 0xad3bffff; cp.b 
0x808000
00 0xad040000 $(filesize)
imget=tftp 0x80800000 refmta.bin;erase 0xad000000 0xad3e0000;cp.b 
0x80800000 0xa
d000000 $(filesize)
localbootfile=/boot/uImage
bootnet=tftp 0x80800000 $(netbootfile); bootm 0x80800000
kernel_addr=AD040000
u-bootfile=u-boot.ctlm.bin
load-ub=tftp 80504000 $(u-bootfile)
update-ub=protect off 1:0-4;cp.b AD000000 80500000 4000;cp.b AD03F000 
8053F000 1
000;erase 0xAD000000 0xAD03ffff;cp.b 80500000 AD000000 0x40000
btlinux=fsload 0x80800000 $(localbootfile); bootm 0x80800000
ethact=Eth.
netmask=255.255.0.0
serverip=10.47.3.54
ipaddr=10.47.252.254
stdin=serial
stdout=serial
stderr=serial
filesize=319370

Environment size: 1554/4092 bytes




Please throw some light on this.


Thanks
Rahanesh

The information contained in this electronic message and any attachments to this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy
 all copies of this message and any attachments contained in it.




More information about the U-Boot mailing list