<div dir="ltr"><br><div class="gmail_extra">Hello,<br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 12:05 PM, Sebastien MENNETRIER <span dir="ltr"><<a href="mailto:s.mennetrier@innotis.org" target="_blank">s.mennetrier@innotis.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-09 Andrei Gherzan <span dir="ltr"><<a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a>></span>:<div class="">

<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi,<br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Fri, Jan 31, 2014 at 5:30 PM, Sébastien Mennetrier <span dir="ltr"><<a href="mailto:s.mennetrier@innotis.org" target="_blank">s.mennetrier@innotis.org</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Permit to build an image with initramfs.<br>
<br>
</div>Signed-off-by: Sébastien Mennetrier <<a href="mailto:s.mennetrier@innotis.org" target="_blank">s.mennetrier@innotis.org</a>><br>
<div><div>---<br>
 classes/sdcard_image-rpi.bbclass | 5 ++++-<br>
 1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass<br>
index 3ee4e94..815aaa9 100644<br>
--- a/classes/sdcard_image-rpi.bbclass<br>
+++ b/classes/sdcard_image-rpi.bbclass<br>
@@ -26,6 +26,9 @@ inherit image_types<br>
 # Set kernel and boot loader<br>
 IMAGE_BOOTLOADER ?= "bcm2835-bootfiles"<br>
<br>
+# Set initramfs extension<br>
+KERNEL_INITRAMFS ?= ""<br>
+<br></div></div></blockquote><div><br></div></div><div>I'm not sure how is this supposed to work. Could you please give more info? I haven't seen this defined anywhere else so it must be something custom you use. </div>


</div></div></div></blockquote><div><br></div><div></div></div><div>When you would build an initramfs image, you must set this 3 kernel  variables :<br>     # Set initramfs<br>     kernel_configure_variable BLK_DEV_INITRD y<br>


     kernel_configure_variable INITRAMFS_SOURCE ""<br>     kernel_configure_variable RD_GZIP y<br><br>And you must set INITRAMFS_IMAGE and INITRAMFS_IMAGE_BUNDLE variables. These variables are used in kernel.bbclass from poky.<br>


<br></div>The generated image name with initramfs feature is ${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin</div><div class="gmail_quote"><br><div>So you must set KERNEL_INITRAMFS in the machine.conf file with "-initramfs" in order to use this image in the mcopy below.<br>


</div><div class=""><div> </div></div></div></div></div></div></blockquote><div><br></div><div>This was exactly my point. We need to document this somewhere (most probably in README). Could you please add a patch which does this?</div>

<div> </div></div><div><br></div>-- <br><div dir="ltr"><div style="text-align:center"></div><div style="text-align:center"><div align="left" style="font-family:'Times New Roman';font-size:medium"><b style="color:rgb(51,51,51);font-family:Arial;font-size:small;text-align:center">Andrei Gherzan</b><font face="Arial" color="#333333" size="-1"><br>

</font><font face="Arial" color="#333333" size="-1">m: +40.744.478.414 |  f: +40.31.816.28.12</font><br></div></div></div>
</div></div>