On Tue, Feb 11, 2014 at 12:59 PM, Andrei Gherzan <[email protected]> wrote:
> > Hello, > > On Mon, Feb 10, 2014 at 12:05 PM, Sebastien MENNETRIER < > [email protected]> wrote: > >> Hi, >> >> >> 2014-02-09 Andrei Gherzan <[email protected]>: >> >> Hi, >>> >>> >>> On Fri, Jan 31, 2014 at 5:30 PM, Sébastien Mennetrier < >>> [email protected]> wrote: >>> >>>> Permit to build an image with initramfs. >>>> >>>> Signed-off-by: Sébastien Mennetrier <[email protected]> >>>> --- >>>> classes/sdcard_image-rpi.bbclass | 5 ++++- >>>> 1 file changed, 4 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/classes/sdcard_image-rpi.bbclass >>>> b/classes/sdcard_image-rpi.bbclass >>>> index 3ee4e94..815aaa9 100644 >>>> --- a/classes/sdcard_image-rpi.bbclass >>>> +++ b/classes/sdcard_image-rpi.bbclass >>>> @@ -26,6 +26,9 @@ inherit image_types >>>> # Set kernel and boot loader >>>> IMAGE_BOOTLOADER ?= "bcm2835-bootfiles" >>>> >>>> +# Set initramfs extension >>>> +KERNEL_INITRAMFS ?= "" >>>> + >>>> >>> >>> 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. >>> >> >> When you would build an initramfs image, you must set this 3 kernel >> variables : >> # Set initramfs >> kernel_configure_variable BLK_DEV_INITRD y >> kernel_configure_variable INITRAMFS_SOURCE "" >> kernel_configure_variable RD_GZIP y >> >> And you must set INITRAMFS_IMAGE and INITRAMFS_IMAGE_BUNDLE variables. >> These variables are used in kernel.bbclass from poky. >> >> The generated image name with initramfs feature is >> ${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin >> >> So you must set KERNEL_INITRAMFS in the machine.conf file with >> "-initramfs" in order to use this image in the mcopy below. >> >> > > This was exactly my point. We need to document this somewhere (most > probably in README). Could you please add a patch which does this? > Uh. And one more thing. This patch needs rebase on current master HEAD. Could you please resend along with the README update patch? Thanks in advance, -- *Andrei Gherzan* m: +40.744.478.414 | f: +40.31.816.28.12
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
