Skip to content

Instantly share code, notes, and snippets.

@plntyk
Created May 14, 2020 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plntyk/adeddd835024c72a52782e08c3d94781 to your computer and use it in GitHub Desktop.
Save plntyk/adeddd835024c72a52782e08c3d94781 to your computer and use it in GitHub Desktop.
odroid-c1 image extents analysis dl.armbian.com/odroidc1/nightly (trunk 133)
e2fsck /dev/sdX1 (Result: OK)
mount /dev/sdX1 <mountpoint>
cp <mountpoint>/boot/uInitrd-5.4.40-meson <mountpoint>/boot/uInitrd_copy
umount <mountpoint>
e2fsck /dev/sdX1 (Result: OK)
debugfs /dev/sdX1
ls boot
dump_extents <19326>
dump_extents <19315>
19326 (28) uInitrd-5.4.40-meson
Level Entries Logical Physical Length Flags
0/ 1 1/ 1 0 - 2219 128789 2220
1/ 1 1/ 6 0 - 15 11264 - 11279 16
1/ 1 2/ 6 16 - 31 130576 - 130591 16
1/ 1 3/ 6 32 - 1023 4151 - 5142 992
1/ 1 4/ 6 1024 - 2037 5540 - 6553 1014
1/ 1 5/ 6 2038 - 2047 6624 - 6633 10
1/ 1 6/ 6 2048 - 2219 10718 - 10889 172
19315 (24) uInitrd_copy
Level Entries Logical Physical Length Flags
0/ 0 1/ 2 0 - 2047 7785 - 9832 2048
0/ 0 2/ 2 2048 - 2219 10496 - 10667 172
19462 (16) uInitrd
odroid-c1 boot:
fails at loading uInitrd (symlink to uInitrd-5.4.40-meson)
invalid extents
success w. loading uInitrd_copy manually
fails w. loading uInitrd-5.4.40-meson manually
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment