diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2022-09-29 23:36:53 +0200 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2022-09-29 23:44:16 +0200 |
commit | adbb3d8aa65920ccda9f4afac9e4ab0df2adbbde (patch) | |
tree | 1d6df9caa672dc284b3c9265e833574eb83242f1 | |
parent | a57003bfe3b08423c0ae87ca0d4c968f5279bf46 (diff) |
udev-toradex-rules: prevent mtd related errors
This prevents the following mtd related errors upon boot caused by the
systemd provided /lib/udev/rules.d/60-persistent-storage.rules:
[ 32.850265] I/O error, dev mtdblock0, sector 0 op 0x0:(READ) flags
0x80700 phys_seg 1 prio class 2
[ 32.868798] I/O error, dev mtdblock0, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 2
[ 32.883632] Buffer I/O error on dev mtdblock0, logical block 0, async
page read
[ 32.898644] I/O error, dev mtdblock0, sector 0 op 0x0:(READ) flags
0x0 phys_seg 1 prio class 2
[ 32.913332] Buffer I/O error on dev mtdblock0, logical block 0, async
page read
Add an additional rules file in
/etc/udev/rules.d/50-mtd-persistent-storage.rules to exclude mtd devices
from the persistent-storage rules processing.
Related-to: ELB-4805
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
-rw-r--r-- | recipes-core/udev/files/50-mtd-persistent-storage.rules | 1 | ||||
-rw-r--r-- | recipes-core/udev/udev-toradex-rules.bb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/recipes-core/udev/files/50-mtd-persistent-storage.rules b/recipes-core/udev/files/50-mtd-persistent-storage.rules new file mode 100644 index 0000000..513ca5f --- /dev/null +++ b/recipes-core/udev/files/50-mtd-persistent-storage.rules @@ -0,0 +1 @@ +KERNEL=="mtd*", ENV{UDEV_DISABLE_PERSISTENT_STORAGE_RULES_FLAG}="1" diff --git a/recipes-core/udev/udev-toradex-rules.bb b/recipes-core/udev/udev-toradex-rules.bb index c31f416..23dd0c6 100644 --- a/recipes-core/udev/udev-toradex-rules.bb +++ b/recipes-core/udev/udev-toradex-rules.bb @@ -4,6 +4,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda SRC_URI = "\ file://10-toradex-wifi-ifnames.link \ + file://50-mtd-persistent-storage.rules \ file://99-toradex.rules \ file://bootpart-automount.rules \ file://toradex-adc.sh \ @@ -15,6 +16,7 @@ do_install () { install -d ${D}${sysconfdir}/udev/scripts install -d ${D}${sysconfdir}/systemd/network install -m 0644 ${WORKDIR}/10-toradex-wifi-ifnames.link ${D}${sysconfdir}/systemd/network/ + install -m 0644 ${WORKDIR}/50-mtd-persistent-storage.rules ${D}${sysconfdir}/udev/rules.d/ install -m 0644 ${WORKDIR}/99-toradex.rules ${D}${sysconfdir}/udev/rules.d/ install -m 0644 ${WORKDIR}/bootpart-automount.rules ${D}${sysconfdir}/udev/rules.d/ install -m 0755 ${WORKDIR}/toradex-adc.sh ${D}${sysconfdir}/udev/scripts/ |