[linux-yocto] [PATCH][meta][dev][3.19][3.14] tiny.cfg: Enable BINFMT_SCRIPT

Darren Hart dvhart at linux.intel.com
Wed Mar 18 10:57:14 PDT 2015


Tiny kernels currently fail to run /init from tiny-init, a #!/bin/sh
script as the kernel is missing BINFMT_SCRIPT. Add this to the tiny.cfg
fragment.

Developed on 3.19, applied and verified on 3.14.

Signed-off-by: Darren Hart <dvhart at linux.intel.com>
Cc: Richard Purdie <richard.purdie at linuxfoundation.org>
Cc: Saul Wold <sgw at linux.intel.com>
Cc: Eduard Bartosh <eduard.bartosh at intel.com>
---

 meta/cfg/kernel-cache/ktypes/tiny/tiny.cfg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/cfg/kernel-cache/ktypes/tiny/tiny.cfg b/meta/cfg/kernel-cache/ktypes/tiny/tiny.cfg
index 7c06aa4..299e9be 100644
--- a/meta/cfg/kernel-cache/ktypes/tiny/tiny.cfg
+++ b/meta/cfg/kernel-cache/ktypes/tiny/tiny.cfg
@@ -26,3 +26,6 @@ CONFIG_BLK_DEV_RAM=y
 CONFIG_BLK_DEV_RAM_COUNT=1
 CONFIG_BLK_DEV_RAM_SIZE=6144
 CONFIG_RD_GZIP=y
+
+# Support /init as a script and #!/bin/sh in general
+CONFIG_BINFMT_SCRIPT=y
-- 
2.1.4



More information about the linux-yocto mailing list