Ramdisk Image is corrupt or invalid

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

Ramdisk Image is corrupt or invalid

2,804 Views
admin
Specialist II

I am working with  layerscape ls1012a processor. Our code warrior license is Developer. For our custom board I am trying to build our own kernel and device tree. I have built kernel_fdt.itb. But when I try to boot my board with this kernel_fdt.itb, I get a failure message and it is Ramdisk image is corrupt or invalid . How to fix this error? Also I need to attach rootfile system with it.I don't know how to do it.I am giving my kernel_fdt.its code here

/dts-v1/;
/ {
    description = "Simple image with single Linux kernel, rootfile system and FDT blob";
    #address-cells = <1>;
    images {
        kernel@1 {
            description = "Vanilla Linux Kernel";
            data = /incbin/("arch/arm64/boot/Image.gz");
            type = "kernel";
            arch = "arm64";
            os= "linux";
            compression = "none";
            load = <0x80080000>;
            entry = <0x80080000>;
            hash@1 {
                algo= "crc32";
            };
            hash@2 {
                algo= "sha1";
            };
        };

        fdt@1 {
            description = "Flattened Device Tree blob";
            data = /incbin/("arch/arm64/boot/dts/efusa53.dtb");
            type = "flat_dt";
            arch = "arm64";
            compression = "none";
            hash@1 {
            algo = "crc32";
            };
            hash@2 {
            algo= "sha1";
            };
        };
    ramdisk@1 {
            description = "recovery ramdisk";
            data = /incbin/("arch/arm64/boot/uImage");
            type = "ramdisk";
            arch = "arm64";
            os = "linux";
            compression = "gzip";
            load = <00000000>;
            entry = <00000000>;
            hash@1 {
            algo = "sha1";
            };
        };
    };
    /* a notable concept of FIT, “configurations” */
    configurations {
        default = "conf@1";
        conf@1 {
            description = "Boot Linux kernel with rootfile system and FDT blob";
            kernel = "kernel@1";
            fdt= "fdt@1";
        };
        recoveryconf@1 {
            description = "Boot Linux kernel + fdt with ramdisk for recovery";
            kernel = "kernel@1";
            ramdisk = "ramdisk@1";
            fdt = "fdt@1";
        };
    };
};

Tags (2)
0 Kudos
0 Replies