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

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


hi,
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 boot.env.in and a serial log might be useful ...

ciao
	oli
-------------- 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: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170321/9d54835a/attachment.sig>


More information about the Snapcraft mailing list