All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-poky][PATCH] poky-tiny: Switch to using kernel 4.4 and busybox for init
@ 2016-04-07  7:05 Khem Raj
  2016-04-07 12:56 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2016-04-07  7:05 UTC (permalink / raw)
  To: yocto

busybox based init system is available and used in many
other distributions e.g. buildroot, therefore use that
combination with mdev gives a scalable image and chance
to execute sysvinit scripts as well, adding nothing to
image size.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-poky/conf/distro/poky-tiny.conf | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/meta-poky/conf/distro/poky-tiny.conf b/meta-poky/conf/distro/poky-tiny.conf
index 0ac46ac..4d30bde 100644
--- a/meta-poky/conf/distro/poky-tiny.conf
+++ b/meta-poky/conf/distro/poky-tiny.conf
@@ -37,7 +37,7 @@ TCLIBC = "musl"
 # Distro config is evaluated after the machine config, so we have to explicitly
 # set the kernel provider to override a machine config.
 PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
-PREFERRED_VERSION_linux-yocto-tiny ?= "4.1%"
+PREFERRED_VERSION_linux-yocto-tiny ?= "4.4%"
 
 # We can use packagegroup-core-boot, but in the future we may need a new packagegroup-core-tiny
 #POKY_DEFAULT_EXTRA_RDEPENDS += "packagegroup-core-boot"
@@ -80,11 +80,13 @@ DISTRO_FEATURES_append_libc-musl = " largefile"
 DISTRO_FEATURES_class-native = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
 DISTRO_FEATURES_class-nativesdk = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
 
-# Use tmpdevfs and the busybox runtime services
-VIRTUAL-RUNTIME_dev_manager = ""
-VIRTUAL-RUNTIME_login_manager = ""
-VIRTUAL-RUNTIME_init_manager = "tiny-init"
-VIRTUAL-RUNTIME_keymaps = ""
+# enable mdev/busybox for init
+VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
+VIRTUAL-RUNTIME_login_manager = "busybox"
+VIRTUAL-RUNTIME_init_manager = "busybox"
+VIRTUAL-RUNTIME_initscripts = "initscripts"
+VIRTUAL-RUNTIME_keymaps = "keymaps"
+DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
 
 # FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in
 # packagegroup-core-base to select modutils-initscripts or not.  Similar with "net" and
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-poky][PATCH] poky-tiny: Switch to using kernel 4.4 and busybox for init
  2016-04-07  7:05 [meta-poky][PATCH] poky-tiny: Switch to using kernel 4.4 and busybox for init Khem Raj
@ 2016-04-07 12:56 ` Burton, Ross
  2016-04-07 14:17   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2016-04-07 12:56 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

On 7 April 2016 at 08:05, Khem Raj <raj.khem@gmail.com> wrote:

> busybox based init system is available and used in many
> other distributions e.g. buildroot, therefore use that
> combination with mdev gives a scalable image and chance
> to execute sysvinit scripts as well, adding nothing to
> image size.
>


> +VIRTUAL-RUNTIME_initscripts = "initscripts"
> +VIRTUAL-RUNTIME_keymaps = "keymaps"
> +DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
>

Do you really want to have sysvinit removed from DISTRO_FEATURES if you're
claiming this lets you support init scripts?

Ross

[-- Attachment #2: Type: text/html, Size: 1093 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-poky][PATCH] poky-tiny: Switch to using kernel 4.4 and busybox for init
  2016-04-07 12:56 ` Burton, Ross
@ 2016-04-07 14:17   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2016-04-07 14:17 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

On Thu, Apr 7, 2016 at 5:56 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 7 April 2016 at 08:05, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> busybox based init system is available and used in many
>> other distributions e.g. buildroot, therefore use that
>> combination with mdev gives a scalable image and chance
>> to execute sysvinit scripts as well, adding nothing to
>> image size.
>
>
>>
>> +VIRTUAL-RUNTIME_initscripts = "initscripts"
>> +VIRTUAL-RUNTIME_keymaps = "keymaps"
>> +DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
>
>
> Do you really want to have sysvinit removed from DISTRO_FEATURES if you're
> claiming this lets you support init scripts?
>

 Scripts would be fine, however the minimal
image boots fine with above and the scripts add about 15K compressed.
thats why its removed


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-07 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-07  7:05 [meta-poky][PATCH] poky-tiny: Switch to using kernel 4.4 and busybox for init Khem Raj
2016-04-07 12:56 ` Burton, Ross
2016-04-07 14:17   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.