Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsck: Get a newer version of e2fsck #7471

Closed
TheSnowfield opened this issue Nov 13, 2024 · 4 comments
Closed

fsck: Get a newer version of e2fsck #7471

TheSnowfield opened this issue Nov 13, 2024 · 4 comments
Assignees
Labels
Discussion Being discussed - Voice your opinions :)

Comments

@TheSnowfield
Copy link
Collaborator

TheSnowfield commented Nov 13, 2024

What happened?

image

This issue is just a cheat sheet for people creating the old Armbian image who encountered this problem

The problem was caused by the host using a newer mke2fs(>=1.47) to create the root filesystem.
however, Armbian packed the old version e2fsck(<=1.46) into the initramfs, which is not supported EXT4_FEATURE_COMPAT_ORPHAN_FILE. It can't check the newer filesystem, so hang the kernel boot.

It happens on the new systems (bullseye bookworm...) build the old Armbian image with e2fsprogs package version >=1.47. I confirmed this problem on the branch v23.02 (maybe the older version too?).

2024.11.14 update:
To deal with this problem temporarily, manually add these lines in the lib/functions/image/partitioning.sh,
to remove orphan_file flag, see 1ff783d, thanks to @rpardini figure it out.

Alternative, upgrade the e2fsck for your initrd Add the hook script under `packages/bsp/common/etc/initramfs-tools/hooks/upgrade-e2fsck.sh`, ensure the script file has execute permission: "chmod +x upgrade-e2fsck.sh"
#!/bin/sh
# Upgrade e2fsck for initrd
#

curl http://ftp.us.debian.org/debian/pool/main/e/e2fsprogs/e2fsck-static_1.47.1-1+b1_armhf.deb \
     -o /tmp/e2fsck-static_1.47.1-1+b1_armhf.deb

dpkg -x /tmp/e2fsck-static_1.47.1-1+b1_armhf.deb \
     /tmp/e2fsck-static

cp /tmp/e2fsck-static/usr/sbin/e2fsck.static \
   "${DESTDIR}"/sbin/e2fsck

rm -rf /tmp/e2fsck-static

exit 0

and then, re-build the image file, and flash it to the board.

ref: https://packages.debian.org/en/sid/armhf/e2fsck-static
ref: #988

@TheSnowfield TheSnowfield added Discussion Being discussed - Voice your opinions :) Bug Something isn't working as it should labels Nov 13, 2024
@TheSnowfield TheSnowfield self-assigned this Nov 13, 2024
@TheSnowfield TheSnowfield removed the Bug Something isn't working as it should label Nov 13, 2024
Copy link

github-actions bot commented Nov 13, 2024

Jira ticket: AR-2532

@EvilOlaf
Copy link
Member

This branch is no longer supported. Please retry v24.11.

@TheSnowfield
Copy link
Collaborator Author

This branch is no longer supported. Please retry v24.11.

Oh sure. I'm creating the old Armbian image on a newer system. I created this issue for people to save their day.
So I closed it. :)

@rpardini
Copy link
Member

No. See 1ff783d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Being discussed - Voice your opinions :)
Development

No branches or pull requests

3 participants