[U-Boot] Booting kernel/dtb with FIT image
Jagan Teki
jagannadh.teki at gmail.com
Fri Jan 13 18:43:51 CET 2017
On Fri, Jan 13, 2017 at 6:13 PM, Nicolas le bayon <nlebayon at gmail.com> wrote:
> Hi,
>
> Here is a problem I presently meet, any help or track to follow would be
> welcome.
>
> My U-boot (2016.09) loads a kernel and a dtb, and "bootm" all this. This is
> my reference, and this is correctly running.
>
> From this, I'm trying to implement FIT image management, so I enabled
> CONFIG_FIT.
>
> On the other side, I constructed the ITS FILE from my kernel and my dtb, as
> described below:
>
> */dts-v1/;*
> */ {*
> * description = "Simple image with single Linux kernel and FDT blob";*
> * #address-cells = <0x1>;*
> * images {*
> * kernel at 1 {*
> * description = "My Linux kernel";*
> * data = /incbin/("./uImage");*
Usually kernel images can be considered to vmlinux.bin or
vmlinux.bin.gz (if compressed) in its
> * type = "kernel";*
> * arch = "arm";*
> * os = "linux";*
> * compression = "none";*
> * load = <0x40008000>;*
> * entry = <0x40008000>;*
> * hash at 1 {*
> * algo = "md5";*
> * };*
> * hash at 2 {*
> * algo = "sha1";*
> * };*
> * };*
> * fdt at 1 {*
> * description = "My Flattened Device Tree blob";*
> * data = /incbin/("./mydtb.dtb");*
> * type = "flat_dt";*
> * arch = "arm";*
> * compression = "none";*
> * hash at 1 {*
> * algo = "md5";*
> * };*
> * hash at 2 {*
> * algo = "sha1";*
> * };*
> * };*
> * };*
> */* a notable concept of FIT, configurations */*
> * configurations {*
> * default = "conf at 1";*
> * conf at 1 {*
> * description = "Boot Linux kernel with FDT blob";*
> * kernel = "kernel at 1";*
> * fdt = "fdt at 1";*
> * };*
> * };*
> *};*
>
> I managed to construct the ITB (using the mkimage of my u-boot, in tools
> directory) and to store it on my target.
>
> I load this ITB at 0x60000000 address of memory.
>
> The "bootm 0x60000000" gives the following error: "Ramdisk image is corrupt
> or invalid". Indeed I have no ramdisk. Not what was described in tutorials.
Sorry I didn't see "Ramdisk image" correct on below log, shall I miss?
thanks!
--
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
More information about the U-Boot
mailing list