Page 1 of 1

How to build the newest u-boot, kernel, and buildroot on a Luckfox-Pico-Max?

Posted: 2024-02-11 14:57
by jiapei100
How to build the newest u-boot, kernel, and buildroot on a Luckfox-Pico-Max?

Re: How to build the newest u-boot, kernel, and buildroot on a Luckfox-Pico-Max?

Posted: 2024-02-12 9:45
by Luckfox Taylor
Due to the limited resources of the development board, these operations must be completed on the PC.

Re: How to build the newest u-boot, kernel, and buildroot on a Luckfox-Pico-Max?

Posted: 2024-02-14 16:47
by TatSledge
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.

Re: How to build the newest u-boot, kernel, and buildroot on a Luckfox-Pico-Max?

Posted: 2024-02-19 10:41
by Luckfox Taylor
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
2. Compile the program.

Code: Select all

arm-linux-gnueabihf-gcc test.c -o test
3. Upload the compiled program to the development board.