Am 03.03.2021 um 17:58 schrieb Martin Jansa:> If I understood Colin
correctly, then older dosfstools would break even
older partitions created by mtools (e.g. if you (let automatically) run
fsck.vfat from
dunfell based image on device with /boot partition originally created with
mtools
from warrior days)
Exactly. Let me quote from the bug I reported to Mender:
https://tracker.mender.io/browse/MEN-4497
===========================================================================
* Mender is using mcopy from the mtools package to create the boot
partition for Raspberry Pi and UEFI images:
https://github.com/mendersoftware/meta-mender/blob/50e8188f6c69d5e16363a37c2bb6e3abf9542bbb/meta-mender-core/classes/mender-bootimg.bbclass#L35
* mtools had a bug until 4.0.20, where it wrote uninitialized bytes into
newly created entries:
https://svn.savannah.gnu.org/viewvc/mtools/trunk/direntry.c?r1=363&r2=452
* dosfsck from the dosfstools package had another bug until 4.2, where
it regarded unexpected bytes in the reserved part of the entry as bad
and "corrected" this by removing affected directories:
https://github.com/dosfstools/dosfstools/commit/87a8f29785bb605350821f1638a42e6cf3e49ce3
The combination of all 3 renders devices unbootable once dosfsck is used
on the boot partition created by an affected mtools version (= created
by Yocto Warrior and earlier).
This is also a problem for newer Yocto releases, because the boot
partition stays unchanged when upgrading a Warrior device to Zeus or
Dunfell.
This problem is especially crucial considering that Mender reenabled
automatic filesystem repairs in Zeus and Dunfell during boot:
https://github.com/mendersoftware/meta-mender/commit/0552891c504ecacb0d99f4618694c03f5bc08f83
===========================================================================
The meta-raspberrypi crate you just linked also uses mcopy, so the same
applies to it.
I have linked some related commits in my bug report, but I cannot and
will not guarantee that these commits alone fix the problem.
Which is why I still favor a full upgrade to dosfstools 4.2.
Cheers,
Colin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148897):
https://lists.openembedded.org/g/openembedded-core/message/148897
Mute This Topic: https://lists.openembedded.org/mt/80974296/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-