Skip to contentSkip to conversation

about use mkimage to create uImage?

U-Boot-Users zhuzhenhua 2 participants 3 messages Jun 29, 2005 – Jun 30, 2005

lore
Share & tools
lore

zhuzhenhua

author
#0 lore raw

if i mkimage without compressing, kernel can run correct, the command is as follow
./tools/mkimage -A arm -O linux -T kernel -C none-a 0x30000000 -e0x30008000 -n "Linux" -d vmlinux uImage

but i want to create a compressed uImage,i use commands like these,it stop at "starting kernel..."
arm-linux-objcopy -O binary -R.note -R.comment -S vmlinux linux.bin gzip -9 linux.bin
./tools/mkimage -A arm -O linux -T kernel -C gzip -a 0x30008000 -e0x30008000 -n "Linux" -d linux.bin.gz uImage

i think the second method should run well,and i see the same example in the Readme of u-boot src.

any hints are appreciate.

#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

if i mkimage without compressing, kernel can run correct, the command is as follow
./tools/mkimage -A arm -O linux -T kernel -C none-a 0x30000000

------------------------------------------------------^^^^^^^^^^

Quoted 1 line

-e0x30008000 -n "Linux" -d vmlinux uImage

...

Quoted 1 line

but i want to create a compressed uImage,i use commands like these,it

...

Quoted 1 line

./tools/mkimage -A arm -O linux -T kernel -C gzip -a 0x30008000

------------------------------------------------------^^^^^^^^^^

Quoted 2 lines

i think the second method should run well,and i see the same example in the Readme of u-boot src.

It probably fails because you changed the load address...

Best regards,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The evolution of the human race will not be accomplished in  the  ten
thousand  years  of  tame  animals,  but in the million years of wild
animals, because man is and will always be a wild animal.
                                              - Charles Galton Darwin
author
#2 lore raw

something strange happened. as i said, i had used command

'./tools/mkimage -A arm -O linux -T kernel -C none-a 0x30000000 -e0x30008000 -n "Linux" -d vmlinux uImage'
to get a runing correctly uImage.
but today i use the same command to the same vmlinux to generate the uImage which runing only to "starting kernel........." and then stop.

but if i download the uImage i made few days ago, it still can run correct what's happen? or maybe i rember the wrong command ?i just got confused.

thanks for any hints or answers

Best regards

zzh.hust

Quoted 29 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:

if i mkimage without compressing, kernel can run correct, the command is as follow
./tools/mkimage -A arm -O linux -T kernel -C none-a 0x30000000

------------------------------------------------------^^^^^^^^^^

Quoted 1 line

-e0x30008000 -n "Linux" -d vmlinux uImage

...

Quoted 1 line

but i want to create a compressed uImage,i use commands like these,it

...

Quoted 1 line

./tools/mkimage -A arm -O linux -T kernel -C gzip -a 0x30008000

------------------------------------------------------^^^^^^^^^^

Quoted 2 lines

i think the second method should run well,and i see the same example in the Readme of u-boot src.

It probably fails because you changed the load address...

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The evolution of the human race will not be accomplished in the ten thousand years of tame animals, but in the million years of wild animals, because man is and will always be a wild animal.
- Charles Galton Darwin