make_simpleimage.sh: Fix on mkfs.ext4 options
Disable options metadata_csum & 64bit after mkfs.ext4 using tune2fs. Fixes the following error on boot: [ 37.259701] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities [ 37.269247] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities [ 37.288201] JBD2: Unrecognised features on journal [ 37.293429] EXT4-fs (mmcblk0p2): error loading journal [ 37.349186] UDF-fs: warning (device mmcblk0p2): udf_fill_super: No partition found (2) Signed-off-by: Lazar Hristov <lhristov@gmail.com>
This commit is contained in:
parent
3f7d25e342
commit
fc3ae04411
@ -106,10 +106,11 @@ rm -f ${out}1
|
|||||||
|
|
||||||
# Create additional ext4 file system for rootfs
|
# Create additional ext4 file system for rootfs
|
||||||
dd if=/dev/zero bs=1M count=$((disk_size-boot_size-part_position/1024)) of=${out}2
|
dd if=/dev/zero bs=1M count=$((disk_size-boot_size-part_position/1024)) of=${out}2
|
||||||
if [[ $(lsb_release -sc) == "bionic" ]]; then
|
mkfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2
|
||||||
mkfs.ext4 -F -O ^64bit,^csum_metadata -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2
|
if [ $(lsb_release -sc) = "bionic" ]; then
|
||||||
else
|
tune2fs -O ^metadata_csum ${out}2
|
||||||
mkfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2
|
tune2fs -O ^64bit ${out}2
|
||||||
|
resize2fs -s ${out}2
|
||||||
fi
|
fi
|
||||||
#kfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2
|
#kfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${out}2
|
||||||
dd if=${out}2 conv=notrunc oflag=append bs=1M seek=$((part_position/1024+boot_size)) of="$out"
|
dd if=${out}2 conv=notrunc oflag=append bs=1M seek=$((part_position/1024+boot_size)) of="$out"
|
||||||
|
Loading…
Reference in New Issue
Block a user