udev: disable uSD card mounting for the CCMP1

This commit disables the uSD mounting, due to issues
detected during the boot process when UBIFS starts
with the wear-leveling process to erase NAND blocks.

https://onedigi.atlassian.net/browse/DEL-8415

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
Mike Engel 2023-05-05 10:19:07 +02:00
parent eb49d927a5
commit a3af0c8597
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# Disable all SD devices
SUBSYSTEMS=="mmc", ATTRS{type}=="SD", RUN:="/bin/true"

View File

@ -9,6 +9,7 @@ SRC_URI += " \
"
SRC_URI:append:ccmp1 = " \
file://99-ext-rtc-wakeup.rules \
file://00-disable-sd.rules \
"
do_install:append() {
@ -59,6 +60,9 @@ do_install:append() {
do_install:append:ccmp1() {
install -m 0644 ${WORKDIR}/99-ext-rtc-wakeup.rules ${D}${sysconfdir}/udev/rules.d/
# Disables all SD device but keeps on mounting other external memory devices like USB.
# This is currently needed for the CCMP1 platform as a workaround to fix a boot issue.
install -m 0644 ${WORKDIR}/00-disable-sd.rules ${D}${sysconfdir}/udev/rules.d/
}
FILES:${PN}:append = " \