[U-Boot-Users] [PATCH 02/20] [new uImage] Add support for new uImage format to mkimage tool
Luigi 'Comio' Mantellini
luigi.mantellini at idf-hit.com
Fri Mar 14 15:54:22 CET 2008
Hi A,
I'm trying to use the newimage patches but I cannot compile the mkimage
tool because the uint8_t uint16_t, ... types are not defined into the
fdt.h include file (that uses them).
I just patched the fdt.h source adding the following code in the head:
#ifndef __KERNEL__
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long int uint64_t;
#else
#include <linux/types.h>
#endif
This is just a dirty approach... but it can be useful for who have the
same problem. Anyway, can you correct the include/fdt.h source (or the
tool/mkimage.c) to avoid this issue?
Thanks a lot,
luigi
On mer, 2008-03-12 at 21:10 +0100, Bartlomiej Sieka wrote:
> Support for the new uImage format (FIT) is added to mkimage tool.
> Commandline syntax is appropriately extended:
>
> mkimage [-D dtc_options] -f fit-image.its fit-image
>
> mkimage (together with dtc) takes fit-image.its and referenced therein
> binaries (like vmlinux.bin.gz) as inputs, and produces fit-image file -- the
> final image that can be transferred to the target (e.g., via tftp) and then
> booted using the bootm command in U-Boot.
>
--
______ Luigi Mantellini
.'______'. R&D - Software
(.' '.) Industrie Dial Face S.p.A.
( :=----=: ) Via Canzo, 4
('.______.') 20068 Peschiera Borromeo (MI), Italy
'.______.' Tel.: +39 02 5167 2813
Fax: +39 02 5167 2459
Ind. Dial Face Email: luigi.mantellini at idf-hit.com
www.idf-hit.com GPG fingerprint: 3DD1 7B71 FBDF 6376 1B4A
B003 175F E979 907E 1650
More information about the U-Boot
mailing list