From 1db88449c544db41aad329fde2c4e5dbd4c5c152 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 27 Jul 2017 14:23:30 +0200 Subject: [PATCH] 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. --- recipes-sysmobts/sysmobts2100-devtools/files/mkrootfsimg | 2 +- recipes-sysmobts/sysmobts2100-devtools/files/mksdcard | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-sysmobts/sysmobts2100-devtools/files/mkrootfsimg b/recipes-sysmobts/sysmobts2100-devtools/files/mkrootfsimg index 1662aca..96e173c 100755 --- a/recipes-sysmobts/sysmobts2100-devtools/files/mkrootfsimg +++ b/recipes-sysmobts/sysmobts2100-devtools/files/mkrootfsimg @@ -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 diff --git a/recipes-sysmobts/sysmobts2100-devtools/files/mksdcard b/recipes-sysmobts/sysmobts2100-devtools/files/mksdcard index c88f6fa..045f0bc 100755 --- a/recipes-sysmobts/sysmobts2100-devtools/files/mksdcard +++ b/recipes-sysmobts/sysmobts2100-devtools/files/mksdcard @@ -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"