Skip to contentSkip to conversation

dracut: Add drivers/clk by default on arm

PATCH In review Nicolas Chauvet 3 participants 5 messages May 12, 2016 – Jun 7, 2016 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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
index c30715d..7904c02 100755
@@ -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
#2 lore raw

PATCH 2/2 dracut: Add drivers/tty/serial on arm

In reply to a message not in the archive

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
index 7904c02..215f468 100755
@@ -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
#4 lore raw

Re: [PATCH 2/2] dracut: Add drivers/tty/serial on arm

In reply to a message not in the archive
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
---
 modules.d/90kernel-modules/module-setup.sh | 1 +
 1 file changed, 1 insertion(+)
modules.d/90kernel-modules/module-setup.sh +1 -1
index 7904c02..215f468 100755
@@ -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

#5 lore raw

Re: [PATCH 2/2] dracut: Add drivers/tty/serial on arm

In reply to a message not in the archive

2016-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_serial

---
 modules.d/90kernel-modules/module-setup.sh | 1 +
 1 file changed, 1 insertion(+)
modules.d/90kernel-modules/module-setup.sh +0 -0
index 7904c02..215f468 100755

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)
#6 lore raw
In reply to a message not in the archive

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.

---
 modules.d/90kernel-modules/module-setup.sh | 1 +
 1 file changed, 1 insertion(+)
modules.d/90kernel-modules/module-setup.sh +0 -0
index c30715d..7904c02 100755

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.