How to convert the initrd.img during buiding the kernel snap.

Oliver Grawert ogra at
Tue Mar 21 10:20:22 UTC 2017

Am Dienstag, den 21.03.2017, 18:13 +0800 schrieb Madper Xie:
> Hi Ogra,
> After adding the `#define CONFIG_SUPPORT_RAW_INITRD` the uboot still
> complains `Wrong Ramdisk Image Format Ramdisk image is corrupt or
> invalid`
> ...
> Is there any other macros should be defined?

well, your initrd.img needs to indeed just be that, not an uInitrd, the
boot command your board uses (bootm, booti, bootz or whatever) will
need to use the right syntax (usually you need to pass the size)... 

also a look at your and a serial log might be useful ...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Snapcraft mailing list