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

Oliver Grawert ogra at ubuntu.com
Tue Mar 21 10:42:31 UTC 2017


hi,
Am Dienstag, den 21.03.2017, 18:26 +0800 schrieb Madper Xie:
> 
> > Yes I noticed that in the README.txt. So I modified the boot cmd to
> `autoboot=bootz ${loadaddr} ${ramdisk_addr}:1c5 ${fdt_addr}`  ...
> Still
> doesn't boot.
where does that 1c5 come from ?
please take a look at [1] where we use:

loadinitrd=fatload mmc 1:8 ${ramdisk_addr}\
${snap_kernel}/${initrd_file}; setenv initrd_size ${filesize}

and:

booti ${linux_addr} ${ramdisk_addr}:${initrd_size} ${fdt_addr}

that way the initrd_size variable has the correct value...

> 
> > 
> > also a look at your boot.env.in and a serial log might be useful
> > ...
> > 
> The serial log doesn't provide useful message:
> 
heh, i was hoping for a full log so i could also see your uboot version
etc :) perhaps it is to old and does not support raw initrds yet.

ciao
	oli


[1] https://github.com/snapcore/dragonboard-gadget/blob/master/prebuilt
/uboot.env.in
-------------- 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/6a6a4e00/attachment.sig>


More information about the Snapcraft mailing list