diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2022-09-27 15:34:34 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2022-09-28 10:11:15 +0000 |
commit | cc0c884338a4dff4d7c2616b6fe004cdaef06ab7 (patch) | |
tree | 0946da2ce907581c64fe7c90b858b6de9a8d2877 | |
parent | 84c7638a7261561e30bfd574b69e1fddcac546cc (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/ to exclude mtd
devices from the persistent-storage rules processing.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r-- | recipes-core/udev/files/60-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/60-persistent-storage.rules b/recipes-core/udev/files/60-persistent-storage.rules new file mode 100644 index 0000000..24fc4c7 --- /dev/null +++ b/recipes-core/udev/files/60-persistent-storage.rules @@ -0,0 +1 @@ +KERNEL=="mtd*", GOTO="persistent_storage_end" diff --git a/recipes-core/udev/udev-toradex-rules.bb b/recipes-core/udev/udev-toradex-rules.bb index c31f416..e6bceff 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://60-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}/60-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/ |