From 49f929e35a8fe1a3c7353ce6bd62b2158e4e9493 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Wed, 8 Jun 2016 15:31:21 +0000 Subject: 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 --- meta-netboot/recipes-kernel/linux/files/nbd.cfg | 1 + meta-netboot/recipes-kernel/linux/files/ramdisk.cfg | 1 + meta-netboot/recipes-kernel/linux/linux-yocto_%.bbappend | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 meta-netboot/recipes-kernel/linux/files/nbd.cfg create mode 100644 meta-netboot/recipes-kernel/linux/files/ramdisk.cfg create mode 100644 meta-netboot/recipes-kernel/linux/linux-yocto_%.bbappend (limited to 'meta-netboot') 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 \ + " -- cgit 1.2.3-korg