FIT Image with ramdisk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FIT Image with ramdisk

1,880 Views
mirkoardinghi1
Contributor IV

I have the following problem:

I have uImage + dtb + ramdisk

All it works if I boot in "standard mode" (U-BOOT)

bootargs=  root=/dev/ram rw ramdisk_size=256000

fatload mmc 0:1  0x12000000 uImage

fatload mmc 0:1 ramdisk-image-imx6dl.ext3.gz.u-boot 0x20000000

fatload mmc 0:1 0x18000000 fdt.dtb
bootm 0x12000000 0x20000000 0x18000000

 

If I create a fit image the system is not able to load the ramdisk

my its is:

 

/dts-v1/;

/ {
    description = "FIT image with single Linux kernel, FDT blob and Ramdisk";
    #address-cells = <1>;

    images {
       kernel@1 {
         description = "Kernel";
         data = /incbin/("./vmlinux.bin.gz");
         type = "kernel";
         arch = "arm";
         os = "linux";
         compression = "gzip";
         load = <0x10008000>;
         entry = <0x10008000>;
         hash@1 {
           algo = "sha1";
         };
         signature@1 {
           algo = "sha1,rsa2048";
           key-name-hint = "eng";
         };
     };

    fdt@1 {
      description = "Device tree";
      data = /incbin/("./fdt.dtb");
      type = "flat_dt";
      arch = "arm";
      compression = "none";
      hash@1 {
      algo = "sha1";
    };
    signature@1 {
      algo = "sha1,rsa2048";
      key-name-hint = "eng";
    };
 };

ramdisk@1 {
  description = "Ramdisk Image";
  data = /incbin/("./ramdisk-image-imx6dl.ext3.gz.u-boot");
  type = "ramdisk";
  arch = "arm";
  os = "linux";
  compression = "gzip";
  hash@1 {
  algo = "sha1";

};
 signature@1 {
   algo = "sha1,rsa2048";
   key-name-hint = "eng";
  };
};
};

configurations {
  default = "conf@1";
  conf@1 {
    description = "Boot Linux kernel, FDT blob and Ramdisk";
    kernel = "kernel@1";
    fdt = "fdt@1";
    ramdisk = "ramdisk@1";
  };
};
};

After boot the system crashed with the following message:

RAMDISK: Couldn't find valid RAM disk image starting at 0.

A Fit image without ramdisk works fine

Where am I wrong?

Labels (3)
0 Kudos
Reply
0 Replies