How to build the newest u-boot, kernel, and buildroot on a Luckfox-Pico-Max?
-
How to build the newest u-boot, kernel, and buildroot on a Luckfox-Pico-Max?
Due to the limited resources of the development board, these operations must be completed on the PC.
We don't seem to be able to build much on a Pico right now, because attempting to compile *anything* with GCC on the current Ubuntu image results in a linker error:
/usr/bin/ld: cannot find -lgcc: No such file or directory
...that apparently could be solved by installing gcc-multilib, which unfortunately doesn't exist for Ubuntu on Arm.
Clang may work, depending on what you're trying to make, but cross-compiling is really the only practical approach right now.
/usr/bin/ld: cannot find -lgcc: No such file or directory
...that apparently could be solved by installing gcc-multilib, which unfortunately doesn't exist for Ubuntu on Arm.
Clang may work, depending on what you're trying to make, but cross-compiling is really the only practical approach right now.
TatSledge wrote: ↑2024-02-14 16:47 We don't seem to be able to build much on a Pico right now, because attempting to compile *anything* with GCC on the current Ubuntu image results in a linker error:
/usr/bin/ld: cannot find -lgcc: No such file or directory
...that apparently could be solved by installing gcc-multilib, which unfortunately doesn't exist for Ubuntu on Arm.
Clang may work, depending on what you're trying to make, but cross-compiling is really the only practical approach right now.
Due to the limited resources on the development board, we recommend users to use cross-compilation. If the development board is flashed with Ubuntu system and you want to run programs on it, the general process is as follows:
1. Install the cross-compiler on the Ubuntu computer host or virtual machine.
Code: Select all
sudo apt install gcc-arm-linux-gnueabihf
Code: Select all
arm-linux-gnueabihf-gcc test.c -o test