[U-Boot] How to test a new u-boot image over network?
vikas.sontakke at emc.com
vikas.sontakke at emc.com
Wed Dec 7 18:41:38 CET 2011
I apologize if this is a duplicate message. I tried to send it earlier but it went "Waiting for approval" as the system thought I was not a subscriber :-(
I have built a new u-boot for a board which is very similar to canyonlands. But I am having problem in running it. Afterwards, I ran mkimage on it.
uboot-sources-EMC/u-boot-2009.01> ls u-boot*
u-boot u-boot.bin u-boot.bin.load u-boot.map u-boot.srec
uboot-sources-EMC/u-boot-2009.01> ls -l u-boot
-rwxr-xr-x 1 sontav ucode 1174024 2011-12-06 16:30 u-boot
uboot-sources-EMC/u-boot-2009.01> file u-boot
u-boot: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), statically linked, not stripped
uboot-sources-EMC/u-boot-2009.01> ls -l u-boot.bin
-rwxr-xr-x 1 sontav ucode 393216 2011-12-06 16:30 u-boot.bin
uboot-sources-EMC/u-boot-2009.01> file u-boot.bin
u-boot.bin: u-boot/PPCBoot image
uboot-sources-EMC/u-boot-2009.01> mkimage -d u-boot.bin u-boot.bin.load
Image Name:
Created: Wed Dec 7 12:08:45 2011
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 393216 Bytes = 384.00 kB = 0.38 MB
Load Address: 0x00000000
Entry Point: 0x00000000
uboot-sources-EMC/u-boot-2009.01>
I then tftp the image "u-boot.bin.load" and bootm it but I am getting following error.
Error: Bad gzipped data
GUNZIP: uncompress or overwrite error - must RESET board to recover
I have tried many different load addresses such as 0x40.0000, 0x400.0000, 0x800.0000, 0x1000.0000. with exactly the same behaviour. What am I missing? The board has full 2Gig of RAM and since the new u-boot image is only about 1.2MB after compression, why is it getting overwrite error? Or is my image not really gzipped but has been marked as gzipped by mkimage utility?
Here is the information about the board:-
U-Boot 2009.01 SX_PPC_M460EX SX_3.1.0738 ppc (Aug 04 2011 - 00:21:27)
CPU: AMCC PowerPC 460EX Rev. B at 1000 MHz (PLB=200, OPB=100, EBC=100 MHz)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
Internal PCI arbiter disabled
32 kB I-Cache 32 kB D-Cache
Board: Mellanox PPC460EX Board
FDEF: No
I2C: ready
DRAM: 2 GB (ECC enabled, 400 MHz, CL3)
FLASH: 16 MB
NAND: 1024 MiB
...
...
=> tftp 0x10000000 u-boot.bin.load
Waiting for PHY auto negotiation to complete..... done
ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 192.168.100.253; our IP address is 192.168.100.22
Filename 'u-boot.bin.load'.
Load address: 0x10000000
Loading: T ###########################
done
Bytes transferred = 393280 (60040 hex)
=> bootm
Error: Bad gzipped data
GUNZIP: uncompress or overwrite error - must RESET board to recover
Thanks,
Vikas Sontakke, EMC
vikas.sontakke at emc.com
More information about the U-Boot
mailing list