Forum Discussion
Hello Again
I took the specified U-Boot version:
git checkout -b test-bootloader -t origin/socfpga_v2021.10
Then installed the "Prerequisites" for Linux Binaries, as stated in the procedure.
Now the command
cd $TOP_FOLDER/cv_soc_devkit_ghrd/software/bootloader/u-boot-socfpga export CROSS_COMPILE=arm-none-linux-gnueabihf- make socfpga_cyclone5_defconfig
works.
I would suggest telling that in the documentation.
Kind Regards,
Joseph Gabbay
- Joseph53 years ago
New Contributor
Hello dear Jingyang,
U-Boot compilation passed.
The next challenge is compiling zImage.
The following step passes.
yossi@CycloneV-VBox:~/devel/cyclonev/cv_example.sdmmc/linux/linux-socfpga.a9$ make socfpga_defconfig
but the next step fails complaining about missing include file:
yossi@CycloneV-VBox:~/devel/cyclonev/cv_example.sdmmc/linux/linux-socfpga.a9$ make -j 48 zImage Image dtbs modules
HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
In file included from /home/yossi/devel/cyclonev/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.2.1/plugin/include/gcc-plugin.h:28:0,
from scripts/gcc-plugins/gcc-common.h:7,
from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
/home/yossi/devel/cyclonev/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.2.1/plugin/include/system.h:698:10: fatal error: gmp.h: No such file or directory
#include <gmp.h>
^~~~~~~
compilation terminated.
scripts/gcc-plugins/Makefile:48: recipe for target 'scripts/gcc-plugins/arm_ssp_per_task_plugin.so' failed
make[2]: *** [scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
scripts/Makefile.build:540: recipe for target 'scripts/gcc-plugins' failed
make[1]: *** [scripts/gcc-plugins] Error 2
Makefile:1203: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
yossi@CycloneV-VBox:~/devel/cyclonev/cv_example.sdmmc/linux/linux-socfpga.a9$Any idea of what is wrong?
Kind regards,
Joseph Gabbay