sysmobts2100-devtools: Disable ext4 feature 64bit on generated filesystems
Current u-boot version cannot handle correctly ext4 formated with 64bit option, which is enabled by default with recent versions of mkfs.ext4. If option 64bit is enabled, u-boot reads the filesystem erroneously, listing wrong directories or displaying some directories such as /boot as empty, which forbids itself from loading the kernel and failing to boot. See #3733 and https://github.com/armbian/build/issues/279 for more details.
This commit is contained in:
parent
27a2040428
commit
1db88449c5
|
@ -14,7 +14,7 @@ MOUNTDIR="$(mktemp -d)"
|
|||
|
||||
mv $IMGFILE $IMGFILE-old || true
|
||||
dd if=/dev/zero of=${IMGFILE} bs=128M count=1
|
||||
/sbin/mkfs -t ext4 ${IMGFILE}
|
||||
/sbin/mkfs -t ext4 -O ^64bit ${IMGFILE}
|
||||
sudo mount -t ext4 -o loop ${IMGFILE} ${MOUNTDIR}/
|
||||
sudo tar -zxf ${IMGTAR} -C ${MOUNTDIR}/
|
||||
sync
|
||||
|
|
|
@ -61,8 +61,8 @@ echo " Done"
|
|||
|
||||
echo -n "Formating filesystems..."
|
||||
${MKFSVFAT} -F 32 -n "BOOT" ${1}1
|
||||
${MKFSEXT} -q -F -L "master" ${1}2
|
||||
${MKFSEXT} -q -F -L "alt" ${1}3
|
||||
${MKFSEXT} -O ^64bit -q -F -L "master" ${1}2
|
||||
${MKFSEXT} -O ^64bit -q -F -L "alt" ${1}3
|
||||
${MKFSEXT} -q -F -L "storage" ${1}4
|
||||
echo " Done"
|
||||
|
||||
|
|
Loading…
Reference in New Issue