avafinger / nanopi-a64-firmware

Nano Pi A64 firmware ( u-boot, kernel 3.10.104 / kernel 3.10.105 )
10 stars 5 forks source link

/dev/mmcblk devices broken in format/flash scripts #10

Closed varGeneric closed 6 years ago

varGeneric commented 6 years ago

The scripts just append the partition number being used, which is fine for sda1/2/3 but mmcblk device follow the scheme of mmcblk(device#)p(partion), which breaks the script. Temporary workaround is just editing the script to add p# instead.

varGeneric commented 6 years ago

Looking further, it should have been fixed when merging #4. Script seems to have changed since.

4 was never merged. It should fix this though...

avafinger commented 6 years ago

It should have been fixed on https://github.com/avafinger/nanopi-a64-firmware/blob/master/burn_sdcard_v2.sh#L37

Try that instead if that pull request does not work.

varGeneric commented 6 years ago

I tried it initially, and it did not work since my computer was automounting the partitions after they were formatted. Just tried after stopping the udisks2 service, and it formats fine but errors after not finding "rootfs_nanopia64_rc3.tar.gz" works fine, I just didn't follow instructions. Since the instructions say to use format_sd.sh and flash_sd.sh, I didn't realize burn_sdcard_v2 was usable. Should readme be updated?

avafinger commented 6 years ago

It's actually there: https://github.com/avafinger/nanopi-a64-firmware#instructions-for-new-image

Build v1 (for old Image) Build v2 (for new image with full working USB receptacles)

Maybe it's a bit messy and should be more clear, i have plans to Build v3 with mainline kernel if it works this time.

varGeneric commented 6 years ago

Yeah it is kinda cluttered, I eventually realized it was there, and was suggesting cleaning it up (why would you want the older builds anyway?).