[U-Boot] How to test a new u-boot image over network?

Anatolij Gustschin agust at denx.de
Wed Dec 7 20:58:57 CET 2011


Hi,

On Wed, 7 Dec 2011 12:41:38 -0500
<vikas.sontakke at emc.com> wrote:
...
> 
> 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

Did you read the documentation? Why are you trying to
boot U-Boot image using 'bootm' command? 'bootm' command is
used for booting operating system images.

If you want to update U-Boot on the board, you need to write
it into the flash memory used for booting. Do you have a
JTAG debugger for the case updating U-Boot image goes wrong
for some reason?

> 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?

Please read U-Boot documentation [1] to understand which
command is used for which purpose. Updating U-Boot is
also described in the U-Boot documentation.

HTH,
Anatolij

[1] http://www.denx.de/wiki/view/DULG/UBoot



More information about the U-Boot mailing list