Trouble with ext4 filesystems and u-boot

If you’re having trouble using the ext4 support in u-boot to load or list files, your filesystem probably has a feature bit turned on that u-boot’s ext4 implementation doesn’t support. To fix this, run:


root@devbox:/home/voltagex# e2fsck -f /dev/sdb1
e2fsck 1.43.5 (04-Aug-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 34440/478608 files (0.5% non-contiguous), 253717/1913344 blocks
root@devbox:/home/voltagex# tune2fs -O ^64bit,^metadata_csum /dev/sdb1
tune2fs 1.43.5 (04-Aug-2017)
Disabling checksums could take some time.
Proceed anyway (or wait 5 seconds) ? (y,N) y
Please run `resize2fs -s /dev/sdb1' to disable 64-bit mode.
root@devbox:/home/voltagex# resize2fs -s /dev/sdb1
resize2fs 1.43.5 (04-Aug-2017)
Converting the filesystem to 32-bit.
The filesystem on /dev/sdb1 is now 1913344 (4k) blocks long.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s