[U-Boot] how to make mkimage command work?
Wolfgang Denk
wd at denx.de
Fri May 18 13:43:42 CEST 2012
Dear apple pie,
In message <SNT139-W44162AFF85311A54D1D4AE3190 at phx.gbl> you wrote:
>
>
> Please correct me if I am wrong. From what I understand, u-boot itself is relocated to RAM by calling
> the procedure: relocate_code at the end of the procedure: board_init_f .
Right.
> There is a need for me to load an executable to a static address (say, 0x82xx_xxxx) in RAM such that
> control could be passed to this executable from U-boot. How could this be accomplished, with the
> limitation that:
Just tell the linker that this is your load address when liniking your
binary.
> Could u-boot be used to relocate the said executable to the address: 0x82xx_xxxx? u-boot does not
No, U-Boot cannot do this.
> From a u-boot user group, I have learned that by using the command: "mkimage" it would be able to package a raw
> image into a blob understood by u-boot. I have discovered a few "mkimage" files, such as mkimage.o, mkimage, other
> than mkimage.c, mkimage.h and mkimage.l. But, I soon found out that I could not execute the command: mkimage.
Did you ever try to read the U-Boot manual? mkimage even has it's own
man page entry in doc/
> What should I do in order to execute the command? There isn't a file called mkimage.bin generated!!
Unix commands normally don't have any such ".bin" suffixes.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Never call a man a fool. Borrow from him.
More information about the U-Boot
mailing list