[OpenWrt-Devel] procd/inittab with a delayed console

Stam, Michel [FINT] M.Stam at fugro.nl
Fri Jan 9 07:33:18 EST 2015


Hello Owen,

I was wondering, is the kernel driver for your console not placed in
/etc/modules-boot.d ?

/sbin/init executes procd, but prior to doing this executes kmodloader
to load all modules in /etc/modules-boot.d. If your module is mentioned
in this directory, this should load your console driver, thus making it
available before procd checks /etc/inittab.

This, to me, seems the most logical solution, as consoles should be
available to the init process early on during boot, and not hot-plugged
in afterwards. Do you agree?

To put modules in /etc/modules-boot.d, make sure that their
KernelPackage definition contains:
AUTOLOAD:=$(call AutoLoad,<NUM>,<MODULE>,1) 

Where <NUM> is the load order and <MODULE> is the name of your kernel
module (or modules). The presence of the ,1 argument indicates whether
the module is placed in /etc/modules-boot.d or /etc/modules.d.

Kind regards,

Michel Stam
Embedded System Engineer
-------------- next part --------------
An embedded message was scrubbed...
From: "Owen Kirby" <osk at exegin.com>
Subject: [OpenWrt-Devel] procd/inittab with a delayed console
Date: Thu, 8 Jan 2015 21:50:09 +0100
Size: 4099
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150109/e6945a8d/attachment.eml>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list