Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: <openembedded-core@lists.openembedded.org>
Subject: Using busybox as kmod (module-init-tools) replacement
Date: Tue, 21 Apr 2015 15:49:32 +0200	[thread overview]
Message-ID: <5536556C.6030200@topic.nl> (raw)

Busybox 1.23 can also provide the "modprobe" and related commands like 
"lsmod". This makes it possible to remove "kmod" from an image and replace it 
with busybox's smaller implementation. I tried that on some settop box images 
and that works just fine, for example USB wifi drivers get properly loaded 
into memory when plugged in.

I ended up with some rather ugly constructs. Apparently it is 
"module-init-tools" that gets installed in one of the core packagegroups, so 
these things appear logical to do then:

PREFERRED_PROVIDER_module-init-tools = "busybox"

These lines in the busybox recipe (to be made conditional, e.g. by parsing the 
config):

PROVIDES += "module-init-tools"
RPROVIDES_${PN} += "module-init-tools kmod"

The "kmod" is in there because some recipes just (R)DEPEND on "kmod", while 
they actually only need a modprobe command.

Reading the kmod recipe, it appears that "module-init-tools" used to be 
something that actually existed but has been obsolete for quite a while. Maybe 
it would be better to introduce a "virtual/kernel-module-manager" or so?

Looks like some cleanup may be in order here - "udev" also has a hard 
dependency on "kmod", and building both kmod and busybox now leads to 
conflicts. So that would prohibit anyone using udev in combination with this 
busybox configuration.

Any comments, suggestions on this? (Or is replacing kmod a stupid idea to 
begin with)


Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







                 reply	other threads:[~2015-04-21 13:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5536556C.6030200@topic.nl \
    --to=mike.looijmans@topic.nl \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox