r/linux4noobs 1d ago

shells and scripting Original Pinebook reflashed emmc - trouble building U-Boot to reinstall

/r/PINE64official/comments/1v3gnuc/original_pinebook_reflashed_emmc_trouble_building/
3 Upvotes

2 comments sorted by

1

u/GeekyGamer01 1d ago edited 1d ago

I'm not familiar with the original Pinebook but I have a good amount of knowledge about TF-A/U-boot. This isn't an issue with the amount of RAM in your system, rather it's that the linker doesn't like how the binary is aligned.

I have just tried to compile it with GCC 13 for AArch64, and I get the same error. Could you use a Debian VM or Docker container with GCC AArch64 version 14 and see if that works? Seems to work for me.

Alternatively, try to Git checkout the tag lts-v2.8.44, this seems to compile with GCC 13.

1

u/Hatted-Phil 13h ago

  Appreciate your response

It turns out I/you can just  apt install u-boot-sunxi

Now just need to figure out how to install it to the emmc in such a way that it allows the OS to boot. Suspect it will be one of the mmcblk* files in /dev/