kwankiu / archlinux-installer

a community-built Arch Linux Installer for ARM (Aarch64) based devices.
46 stars 4 forks source link

offset of boot part #7

Closed hbiyik closed 10 months ago

hbiyik commented 10 months ago

https://github.com/kwankiu/archlinux-installer-rock5/blob/2d366cbd995395ca63b7bc0438e0e9a8b12f5d57/archlinux-installer#L444

it should be 16MiB, not 16MB.

0x8000 = 32768 sectors = 32768 512 (bytes) = 16 1024(mebi) * 1024(kiki) = 16 x 1048576 bytes (Gnu is picky about units...)

tested with my own sd card did not work. and noticed the unit was wrong. Did not test with this change as well.

I am curious how it worked with 16MB offset, it should have not worked

https://www.gnu.org/software/parted/manual/html_node/unit.html

kwankiu commented 10 months ago

I thought that doesnt matter as I see from Radxa and Armbian's image, I see different boot partition size (showing 15MB and 16.xMB). I will add this change to dev and try.

If you tested with my own sd card did not work. Maybe different u-boot deal with that differently? I am currently using Armbian Bootloader as it seems handle NVMe better.

sudo parted $drive mkpart primary fat32 16MiB 500MiB

hbiyik commented 10 months ago

ok, now i understand, armbian's bootloader is a modded version, i am on default radxa/rockchip bootloader. And i can confirm it only works with offset 16 MiB offsets with my sdcard. Nvme should be the same.

hbiyik commented 10 months ago

when it is 16MB it does not work in other words

hbiyik commented 10 months ago

update: the script works i guess, now it is installing panfork-mesa, if it is up to here then it will work. Thanks again for the script...

kwankiu commented 10 months ago

Ok changes merged on commit #cff82e9