dracut: Add drivers/clk by default on arm
PATCH 1/2 dracut: Add drivers/clk by default on arm
This will bundle clock drivers into the initramfs on arm
Tested on ti dm8148-t410 where adpll is needed on 4.6+ kernel This will avoid to rely on (maybe broken) bootloader clocks.
Theses modules are also usually loaded early. Having them bundled into the initramfs will avoid lot of deferred probes and others delay.
--- modules.d/90kernel-modules/module-setup.sh | 1 + 1 file changed, 1 insertion(+)
modules.d/90kernel-modules/module-setup.sh +1 -0
@@ -26,6 +26,7 @@ installkernel() { if [[ "$(uname -p)" == arm* ]]; then # arm specific modules instmods \ + "=drivers/clk" \ "=drivers/i2c/busses" \ "=drivers/regulator" \ "=drivers/rtc" \
Signature · 1 line
2.4.11
A message that is not in the archive (sent off-list or not yet received): 1463066902-11767-1-git-send-email-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
PATCH 2/2 dracut: Add drivers/tty/serial on arm
This is needed when serial drivers are compiled as module on arm Current candidates are 8250_omap or msn_serial
--- modules.d/90kernel-modules/module-setup.sh | 1 + 1 file changed, 1 insertion(+)
modules.d/90kernel-modules/module-setup.sh +1 -0
@@ -30,6 +30,7 @@ installkernel() { "=drivers/i2c/busses" \ "=drivers/regulator" \ "=drivers/rtc" \ + "=drivers/tty/serial" \ "=drivers/usb/host" \ "=drivers/usb/phy" \ ${NULL}
Signature · 1 line
2.4.11
A message that is not in the archive (sent off-list or not yet received): 1463066902-11767-2-git-send-email-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Re: [PATCH 2/2] dracut: Add drivers/tty/serial on arm
Quoted 2 lines · Nicolas Chauvet
This is needed when serial drivers are compiled as module on arm Current candidates are 8250_omap or
msn_serial
Neither of these are used for serial consoles so why do they need to be in the initrd?
Peter
Quoted 24 lines
Signed-off-by Nicolas Chauvet <[email protected]>--- modules.d/90kernel-modules/module-setup.sh | 1 + 1 file changed, 1 insertion(+)modules.d/90kernel-modules/module-setup.sh +1
-1@@ -30,6 +30,7 @@ installkernel() { "=drivers/i2c/busses" \ "=drivers/regulator" \ "=drivers/rtc" \ + "=drivers/tty/serial" \ "=drivers/usb/host" \ "=drivers/usb/phy" \ ${NULL} --2.4.11
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/2] dracut: Add drivers/tty/serial on arm
In reply to a message not in the archive2016-05-12 17:28 GMT+02:00 Nicolas Chauvet <[email protected]>:
Quoted 13 lines
This is needed when serial drivers are compiled as module on arm Current candidates are 8250_omap or
msn_serialSigned-off-by Nicolas Chauvet <[email protected]>--- modules.d/90kernel-modules/module-setup.sh | 1 + 1 file changed, 1 insertion(+)modules.d/90kernel-modules/module-setup.sh +0
-0
modules.d/90kernel-modules/module-setup.sh installkernel() {
Quoted 8 lines
modules.d/90kernel-modules/module-setup.sh +1
-1@@ -30,6 +30,7 @@ installkernel() { "=drivers/i2c/busses" \ "=drivers/regulator" \ "=drivers/rtc" \ + "=drivers/tty/serial" \ "=drivers/usb/host" \ "=drivers/usb/phy" \ ${NULL} --
@peter, thx for review, and sorry for the late answear.
I've got the following confirmation by the upstream msn_serial maintainer:
<sboyd> nchauvet: if the tty driver is built as a module the console part can't be used
<sboyd> you can run a getty though
<sboyd> I've done that to test the module loading of that driver and it works fine
It means that bundling the tty_serial as a module into the initramfs would requires to have a getty.
Given that there is currently no need to have a getty into the initrafms I expect this can wait for the rootfs to be available. So I discard this patch.
FYI the reason why I've started to experiment building the msm_serial as a module is because there is a a spurious message related to msm init() even on unrelated hardware (so before probe())
[ 3.135866] msm_serial: driver initialized
Is there any issue with the other patch ? (it's unrelated to this one).
Signature · 3 lines
- Nicolas (kwizart)
Am 12.05.2016 um 17:28 schrieb Nicolas Chauvet:
Quoted 19 lines
This will bundle clock drivers into the initramfs on arm
Tested on ti dm8148-t410 where adpll is needed on 4.6+ kernel This will avoid to rely on (maybe broken) bootloader clocks.
Theses modules are also usually loaded early. Having them bundled into the initramfs will avoid lot of deferred probes and others delay.
Signed-off-by Nicolas Chauvet <[email protected]>--- modules.d/90kernel-modules/module-setup.sh | 1 + 1 file changed, 1 insertion(+)modules.d/90kernel-modules/module-setup.sh +0
-0
modules.d/90kernel-modules/module-setup.sh installkernel() { · line 32
Quoted 7 lines
modules.d/90kernel-modules/module-setup.sh +1
-0@@ -26,6 +26,7 @@ installkernel() { if [[ "$(uname -p)" == arm* ]]; then # arm specific modules instmods \ + "=drivers/clk" \ "=drivers/i2c/busses" \ "=drivers/regulator" \ "=drivers/rtc" \
Thanks! Pushed.