From: Stephane Desneux Date: Wed, 8 Jun 2016 15:31:21 +0000 (+0000) Subject: meta-netboot: enable NBD and Ramdisk support in kernel config X-Git-Tag: 2.0.0~28 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=49f929e35a8fe1a3c7353ce6bd62b2158e4e9493;p=AGL%2Fmeta-agl.git meta-netboot: enable NBD and Ramdisk support in kernel config NBD and Ramdisk support are required in the kernel to have the root filesystem mounted as an NBD device: * ramdisk is required to load the initrd (not an initramfs) * NBD is required to mount the root device from a remote NBD server Change-Id: Ib726714adfb549eaeb21f96e7bf874290e700a8b Signed-off-by: Stephane Desneux --- diff --git a/meta-netboot/recipes-kernel/linux/files/nbd.cfg b/meta-netboot/recipes-kernel/linux/files/nbd.cfg new file mode 100644 index 000000000..af37685e4 --- /dev/null +++ b/meta-netboot/recipes-kernel/linux/files/nbd.cfg @@ -0,0 +1 @@ +CONFIG_BLK_DEV_NBD=y diff --git a/meta-netboot/recipes-kernel/linux/files/ramdisk.cfg b/meta-netboot/recipes-kernel/linux/files/ramdisk.cfg new file mode 100644 index 000000000..41530dd6e --- /dev/null +++ b/meta-netboot/recipes-kernel/linux/files/ramdisk.cfg @@ -0,0 +1 @@ +CONFIG_BLK_DEV_RAM=y diff --git a/meta-netboot/recipes-kernel/linux/linux-yocto_%.bbappend b/meta-netboot/recipes-kernel/linux/linux-yocto_%.bbappend new file mode 100644 index 000000000..88f244122 --- /dev/null +++ b/meta-netboot/recipes-kernel/linux/linux-yocto_%.bbappend @@ -0,0 +1,6 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +# Extra configuration options for NBD support and netboot over RAMFS +SRC_URI += "file://nbd.cfg \ + file://ramdisk.cfg \ + "