Re: [U-Boot-Users] quick gzip question/issue.

You don't provide any useful information (like exact commands used and addresses used), so don't expect a helpful reply ;-)
working procedure:
rgetz@pinky:~/uClinux-dist> make menuconfig (set things up) rgetz@pinky:~/uClinux-dist> make (make the uClinux dist)
rgetz@pinky:~/uClinux-dist> cp /linux-2.6.x/linux ./linux rgetz@pinky:~/uClinux-dist> cp linux /tftpboot/linux rgetz@pinky:~/uClinux-dist> objcopy -O binary ./linux ./linux.bin rgetz@pinky:~/uClinux-dist> cp linux /tftpboot/linux.bin rgetz@pinky:~/uClinux-dist> gzip -9 linux.bin rgetz@pinky:~/uClinux-dist> ../u-boot/tools/mkimage -A Blackfin -O Linux \ -T kernel -C gzip -a 0x1000 -e 0x1000 -n "Bfin uClinux Kernel" \ -d linux.bin.gz uImage rgetz@pinky:~/uClinux-dist> cp ./uImage /tftpboot/uImage
I have three files linux (elf file) linux.bin (binary) and uImage (compressed)
rgetz@pinky:~/uClinux-dist> kermit stamp> tftp 0x1000000 linux stamp> bootelf (works great)
stamp> tftp 0x1000 linux.bin stamp> go 0x1000 (works great)
stamp> tftp 0x1000000 uImage stamp> bootm (works great)
stamp> tftp 0x1000000 uImage stamp> cp.b 0x1000000 0x20100000 $(filesize) stamp> bootm 0x20100000 (boot from flash - works great) (reset, and boot from flash with Autoboot - works great)
Failing procedure:
rgetz@pinky:~/uClinux-dist> make menuconfig (set things up) rgetz@pinky:~/uClinux-dist> cp ../media/song.mp3 ./romfs/bin/song.mp3 rgetz@pinky:~/uClinux-dist> make (make the uClinux dist)
rgetz@pinky:~/uClinux-dist> cp /linux-2.6.x/linux ./linux rgetz@pinky:~/uClinux-dist> cp linux /tftpboot/linux rgetz@pinky:~/uClinux-dist> objcopy -O binary ./linux ./linux.bin rgetz@pinky:~/uClinux-dist> cp linux /tftpboot/linux.bin rgetz@pinky:~/uClinux-dist> gzip -9 linux.bin rgetz@pinky:~/uClinux-dist> ../u-boot/tools/mkimage -A Blackfin -O Linux \ -T kernel -C gzip -a 0x1000 -e 0x1000 -n "Bfin uClinux Kernel" \ -d linux.bin.gz uImage rgetz@pinky:~/uClinux-dist> cp ./uImage /tftpboot/uImage
I have three files linux (elf file) linux.bin (binary) and uImage (compressed)
rgetz@pinky:~/uClinux-dist> kermit stamp> tftp 0x1000000 linux stamp> bootelf (works great)
stamp> tftp 0x1000 linux.bin stamp> go 0x1000 (works great)
stamp> tftp 0x1000000 uImage stamp> bootm (fails)
stamp> tftp 0x1000000 uImage stamp> cp.b 0x1000000 0x20100000 $(filesize) stamp> bootm 0x20100000 (boot from flash - fails) (reset, and boot from flash with Autoboot - fails)
If you need anything else - let me know. -Robin

In message 6.1.1.1.0.20050414070350.01eb5920@ptg1.spd.analog.com you wrote:
Failing procedure:
...
rgetz@pinky:~/uClinux-dist> objcopy -O binary ./linux ./linux.bin rgetz@pinky:~/uClinux-dist> cp linux /tftpboot/linux.bin
I'm somewhat confused here. "linux" is the ELF file, right? The why do you "cp linux /tftpboot/linux.bin"? It's NOT a binary file...
rgetz@pinky:~/uClinux-dist> gzip -9 linux.bin
And which "linux.bin" is used here - the binary image from the "objcopy" step, or the ELF file from the "cp" step?
stamp> tftp 0x1000000 uImage stamp> bootm (fails)
And what are the exact error messages?
Arrghh... Why do I have to ask for each line of information?
stamp> bootm 0x20100000 (boot from flash - fails)
And what are the exact error messages?
Best regards,
Wolfgang Denk
participants (2)
-
Robin Getz
-
Wolfgang Denk