udev: update init script for conditional probing of platform bus
PATCH 1/2 udev: update init script for conditional probing of platform bus
From: Denys Dmytriyenko <[email protected]>
Make probing of "platform" bus conditional based on PROBE_PLATFORM_BUS variable from /etc/default/udev-cache on subsequent boots when udev cache is used. PROBE_PLATFORM_BUS has to be set to "yes" in order to force probing on every boot, otherwise it uses the old default behaviour of probing it just the first time.
This is helpful on modern SoCs where most of the low level peripheral drivers are registered on the platform bus and need to be probed to load the necessary modules and enable the connected buses and subsystems.
--- meta/recipes-core/udev/udev/init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-core/udev/udev/init +6 -1
@@ -102,7 +102,12 @@ case "$1" in udevadm control --env=STARTUP=1 if [ "$not_first_boot" != "" ];then - udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform + if [ "$PROBE_PLATFORM_BUS" != "yes" ]; then + PLATFORM_BUS_NOMATCH="--subsystem-nomatch=platform" + else + PLATFORM_BUS_NOMATCH="" + fi + udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux $PLATFORM_BUS_NOMATCH (udevadm settle --timeout=3; udevadm control --env=STARTUP=)& else udevadm trigger --action=add
Signature · 1 line
2.0.0
PATCH 2/2 udev-cache.default: set PROBE_PLATFORM_BUS to "yes" by default
From: Denys Dmytriyenko <[email protected]>
Force probing of "platform" bus by default.
--- meta/recipes-core/udev/udev/udev-cache.default | 1 + 1 file changed, 1 insertion(+)
meta/recipes-core/udev/udev/udev-cache.default +1 -0
@@ -2,3 +2,4 @@ # Comment this out to disable device cache DEVCACHE="/etc/dev.tar" +PROBE_PLATFORM_BUS="yes"
Signature · 1 line
2.0.0
Quoted 11 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Make probing of "platform" bus conditional based on
PROBE_PLATFORM_BUSvariable from/etc/default/udev-cacheon subsequent boots when udev cache is used.PROBE_PLATFORM_BUShas to be set to "yes" in order to force probing on every boot, otherwise it uses the old default behaviour of probing it just the first time.This is helpful on modern SoCs where most of the low level peripheral drivers are registered on the platform bus and need to be probed to load the necessary modules and enable the connected buses and subsystems.
Any questions, comments? I would like to keep a dialog open on this one. Thanks.
Quoted 31 lines
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta/recipes-core/udev/udev/init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)meta/recipes-core/udev/udev/init +6
-1@@ -102,7 +102,12 @@ case "$1" in udevadm control --env=STARTUP=1 if [ "$not_first_boot" != "" ];then - udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform + if [ "$PROBE_PLATFORM_BUS" != "yes" ]; then + PLATFORM_BUS_NOMATCH="--subsystem-nomatch=platform" + else + PLATFORM_BUS_NOMATCH="" + fi + udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux $PLATFORM_BUS_NOMATCH (udevadm settle --timeout=3; udevadm control --env=STARTUP=)& else udevadm trigger --action=addSignature · 7 lines
2.0.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ping? Any comments? Any better suggestions?
Quoted 53 lines · Denys Dmytriyenko
Quoted 11 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Make probing of "platform" bus conditional based on
PROBE_PLATFORM_BUSvariable from/etc/default/udev-cacheon subsequent boots when udev cache is used.PROBE_PLATFORM_BUShas to be set to "yes" in order to force probing on every boot, otherwise it uses the old default behaviour of probing it just the first time.This is helpful on modern SoCs where most of the low level peripheral drivers are registered on the platform bus and need to be probed to load the necessary modules and enable the connected buses and subsystems.
Any questions, comments? I would like to keep a dialog open on this one. Thanks.
Quoted 31 lines
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta/recipes-core/udev/udev/init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)meta/recipes-core/udev/udev/init +6
-1@@ -102,7 +102,12 @@ case "$1" in udevadm control --env=STARTUP=1 if [ "$not_first_boot" != "" ];then - udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform + if [ "$PROBE_PLATFORM_BUS" != "yes" ]; then + PLATFORM_BUS_NOMATCH="--subsystem-nomatch=platform" + else + PLATFORM_BUS_NOMATCH="" + fi + udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux $PLATFORM_BUS_NOMATCH (udevadm settle --timeout=3; udevadm control --env=STARTUP=)& else udevadm trigger --action=addSignature · 7 lines
2.0.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-coreSignature · 4 lines
_______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 4 lines · Paul Eggleton
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Yes, I saw it. Already submitted backport for daisy... :)
Signature · 1 line
Denys
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Paul Eggleton
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Yes, I saw it. Already submitted backport for daisy... :)
I'd like this to see some testing in master for a while before we backport it...
Cheers,
Richard
Quoted 11 lines · Richard Purdie
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Paul Eggleton
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Yes, I saw it. Already submitted backport for daisy... :)
I'd like this to see some testing in master for a while before we backport it...
I'm Ok waiting a bit longer to test it in master. I'll ping on it later...
But this fixes a very common issue that affects different platforms from different BSP layers, including BeagleBone Black in meta-yocto-bsp. The goal is to be least intrusive and preserve the old udev cache behavior as much as possible. Alternative options were to disable udev cache completely or forcefully load necessary modules when they won't be probed on subsequent boots.
Signature · 1 line
Denys
Quoted 13 lines · Denys Dmytriyenko
Quoted 11 lines · Richard Purdie
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Paul Eggleton
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Yes, I saw it. Already submitted backport for daisy... :)
I'd like this to see some testing in master for a while before we backport it...
Quoted 8 lines
I'm Ok waiting a bit longer to test it in master. I'll ping on it later...
But this fixes a very common issue that affects different platforms from different BSP layers, including BeagleBone Black in meta-yocto-bsp. The goal is to be least intrusive and preserve the old udev cache behavior as much as possible. Alternative options were to disable udev cache completely or forcefully load necessary modules when they won't be probed on subsequent boots.
Hi, Richard,
Was it enough wait time to get the change tested in master? Should I re-submit the patch for daisy one more time or you have it in the archives? Thanks!
Signature · 1 line
Denys
Quoted 23 lines · Denys Dmytriyenko
Quoted 13 lines · Denys Dmytriyenko
Quoted 11 lines · Richard Purdie
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Paul Eggleton
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Yes, I saw it. Already submitted backport for daisy... :)
I'd like this to see some testing in master for a while before we backport it...
Quoted 8 lines
I'm Ok waiting a bit longer to test it in master. I'll ping on it later...
But this fixes a very common issue that affects different platforms from different BSP layers, including BeagleBone Black in meta-yocto-bsp. The goal is to be least intrusive and preserve the old udev cache behavior as much as possible. Alternative options were to disable udev cache completely or forcefully load necessary modules when they won't be probed on subsequent boots.
Quoted 5 lines
Hi, Richard,
Was it enough wait time to get the change tested in master? Should I re-submit the patch for daisy one more time or you have it in the archives? Thanks!
I have it in my daisy-next (1.6.2) branch (I know it's not in daisy yet).
Sau!
Quoted 24 lines · Saul Wold
Quoted 23 lines · Denys Dmytriyenko
Quoted 21 lines · Denys Dmytriyenko
Quoted 11 lines · Richard Purdie
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Paul Eggleton
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Yes, I saw it. Already submitted backport for daisy... :)
I'd like this to see some testing in master for a while before we backport it...
I'm Ok waiting a bit longer to test it in master. I'll ping on it later...
But this fixes a very common issue that affects different platforms from different BSP layers, including BeagleBone Black in meta-yocto-bsp. The goal is to be least intrusive and preserve the old udev cache behavior as much as possible. Alternative options were to disable udev cache completely or forcefully load necessary modules when they won't be probed on subsequent boots.
Quoted 6 lines
Quoted 5 lines
Hi, Richard,
Was it enough wait time to get the change tested in master? Should I re-submit the patch for daisy one more time or you have it in the archives? Thanks!
I have it in my daisy-next (1.6.2) branch (I know it's not in daisy yet).
Thanks!
Signature · 1 line
Denys
Quoted 25 lines · Denys Dmytriyenko
Quoted 24 lines · Saul Wold
Quoted 23 lines · Denys Dmytriyenko
Quoted 21 lines · Denys Dmytriyenko
Quoted 11 lines · Richard Purdie
Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Paul Eggleton
Quoted 1 line · On Tuesday 24 June 2014 20:52:55 Denys Dmytriyenko wrote:
Ping? Any comments? Any better suggestions?
Looks like Richard has merged this, FWIW.
Yes, I saw it. Already submitted backport for daisy... :)
I'd like this to see some testing in master for a while before we backport it...
I'm Ok waiting a bit longer to test it in master. I'll ping on it later...
But this fixes a very common issue that affects different platforms from different BSP layers, including BeagleBone Black in meta-yocto-bsp. The goal is to be least intrusive and preserve the old udev cache behavior as much as possible. Alternative options were to disable udev cache completely or forcefully load necessary modules when they won't be probed on subsequent boots.
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Hi, Richard,
Was it enough wait time to get the change tested in master? Should I re-submit the patch for daisy one more time or you have it in the archives? Thanks!
I have it in my daisy-next (1.6.2) branch (I know it's not in daisy yet).
Thanks!
Saul,
Do you have any ETA on when daisy will be updated? Thanks.
Signature · 1 line
Denys
Quoted 8 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Make probing of "platform" bus conditional based on
PROBE_PLATFORM_BUSvariable from/etc/default/udev-cacheon subsequent boots when udev cache is used.PROBE_PLATFORM_BUShas to be set to "yes" in order to force probing on every boot, otherwise it uses the old default behaviour of probing it just the first time.
Quoted 5 lines
This is helpful on modern SoCs where most of the low level peripheral drivers are registered on the platform bus and need to be probed to load the necessary modules and enable the connected buses and subsystems.
Signed-off-by Denys Dmytriyenko <[email protected]>
I second this as this fixes a issue in Wandboard in meta-fsl-arm as well.
John, this fix is equivalent to the one we had tested.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750