[U-Boot-Users] quick gzip question/issue.
Robin Getz
rgetz at blackfin.uclinux.org
Thu Apr 14 13:23:58 CEST 2005
>You don't provide any useful information (like exact commands used and
>addresses used), so don't expect a helpful reply ;-)
working procedure:
rgetz at pinky:~/uClinux-dist> make menuconfig (set things up)
rgetz at pinky:~/uClinux-dist> make (make the uClinux dist)
rgetz at pinky:~/uClinux-dist> cp /linux-2.6.x/linux ./linux
rgetz at pinky:~/uClinux-dist> cp linux /tftpboot/linux
rgetz at pinky:~/uClinux-dist> objcopy -O binary ./linux ./linux.bin
rgetz at pinky:~/uClinux-dist> cp linux /tftpboot/linux.bin
rgetz at pinky:~/uClinux-dist> gzip -9 linux.bin
rgetz at 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 at pinky:~/uClinux-dist> cp ./uImage /tftpboot/uImage
I have three files linux (elf file) linux.bin (binary) and uImage (compressed)
rgetz at 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 at pinky:~/uClinux-dist> make menuconfig (set things up)
rgetz at pinky:~/uClinux-dist> cp ../media/song.mp3 ./romfs/bin/song.mp3
rgetz at pinky:~/uClinux-dist> make (make the uClinux dist)
rgetz at pinky:~/uClinux-dist> cp /linux-2.6.x/linux ./linux
rgetz at pinky:~/uClinux-dist> cp linux /tftpboot/linux
rgetz at pinky:~/uClinux-dist> objcopy -O binary ./linux ./linux.bin
rgetz at pinky:~/uClinux-dist> cp linux /tftpboot/linux.bin
rgetz at pinky:~/uClinux-dist> gzip -9 linux.bin
rgetz at 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 at pinky:~/uClinux-dist> cp ./uImage /tftpboot/uImage
I have three files linux (elf file) linux.bin (binary) and uImage (compressed)
rgetz at 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
More information about the U-Boot
mailing list