FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5931 Discussions

RocketBoards Cyclone V - Linux Compilation

Joseph5
Novice
979 Views

Hello

I am trying to follow the instructions shown in Rocketboards site.

Compiling Linux | Documentation | RocketBoards.org

 

Installing all the prerequisites under Ubuntu:

shaul@shaul-VirtualBox:~/angstrom-build$ cat /proc/version
Linux version 4.15.0-142-generic (buildd@lgw01-amd64-039) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)) #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021
shaul@shaul-VirtualBox:~/angstrom-build$

 

When running the "repo init" command as described there an error is displayed:

 

shaul@shaul-VirtualBox:~/angstrom-build$ repo init -u git://github.com/Angstrom-distribution/angstrom-manifest -b angstrom-v2019.06-warrior File "/home/shaul/angstrom-build/.repo/repo/main.py", line 79
file=sys.stderr)
^
SyntaxError: invalid syntax
shaul@shaul-VirtualBox:~/angstrom-build$

 

shaul@shaul-VirtualBox:~/angstrom-build$ python2 repo init -u git://github.com/Angstrom-distribution/angstrom-manifest -b angstrom-v2019.06-warrior
Traceback (most recent call last):
File "/home/shaul/angstrom-build/.repo/repo/main.py", line 42, in <module>
from git_config import RepoConfig
File "/home/shaul/angstrom-build/.repo/repo/git_config.py", line 774
self._Set(f'superproject.{key}', value)
^
SyntaxError: invalid syntax
shaul@shaul-VirtualBox:~/angstrom-build$

 

Neither Python2.7 nor Python 3.5 work with the reop script.

 

As a consequence, building Linux image fails for the Cyclone V and it is not usable.

 

Furthermore, for some reason, I cannot enter to Rocketboards site, not can I register.

 

Kindly your comments,

 

Joseph G.

 

 

 

 

 

0 Kudos
9 Replies
JingyangTeh
Employee
961 Views

Hi Joseph


I would recommend that you refer to the newer revision for the CycloneV build.

That could be found also in rocketboard.

https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10

You could refer to the section "Building Linux Binaries".


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
942 Views

Hi Joseph


Any update on this case?


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
911 Views

Hi Joseph


Since there are no feedback for this thread, I shall set this thread to close pending. If you still need further assistance, you are welcome reopen this thread within 20days or open a new thread, someone will be right with you.


If you happened to close this thread you might receive a survey.  If you think you would rank your support experience less than 10 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.


Regards

Jingyang, Teh


0 Kudos
Joseph5
Novice
890 Views

Hi Jingyang

 

Thank you for your comment.

 

I will look into the new workflow, and let you know what comes out of this.

 

Looking forward your support.

 

Thank you and best regards,

Joseph Gabbay

 

 

 

0 Kudos
Joseph5
Novice
878 Views

Hן Jingyang

 

Thank you for your answer. and sorry for not catching it earlier.

 

Just returned to work after the weekend

 

I will try the newer revision and send a feedback

 

Regards

Joseph Gabbay

 

 

0 Kudos
Joseph5
Novice
819 Views

Hello

 

Just to update.

 

I created a new UBUNTU Linux VM, and compiled a kernel from the YOCTO project on  that UBUNTU 18.04 VBOX machine.

This kernel is running successfuly on QEMU86x 32bit emulator.

Compiling it took about 5 hours, and 3-4 commands + a small configuration setting change.

 

I am looking for a similar solution, that will allow a simple compilation process, for the Cyclone V board.

 

The resulting image should contain SW debugging support (GDB and ARM-DS).

 

If possible to emulate the SD image on a PC, that can be helpful.

 

Regards,

Joseph Gabbay

 

 

0 Kudos
Joseph5
Novice
779 Views

Hello dear Jingyang,

 

I tried to follow the exact procedure as said in the workflow 

https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10

 

For now, I am stuck on the U-Boot compilation: 

Configure and build U-Boot:

Joseph5_0-1663788140965.png

yossi@CycloneV-VBox:~/devel/cyclonev/cv_example.sdmmc/cv_soc_devkit_ghrd/software/bootloader/u-boot-socfpga$ make socfpga_cyclone5_defconfig
YACC scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
scripts/Makefile.lib:224: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make[1]: *** [scripts/kconfig/zconf.tab.c] Error 127
Makefile:574: recipe for target 'socfpga_cyclone5_defconfig' failed
make: *** [socfpga_cyclone5_defconfig] Error 2

What should be done now?

Thank you and kind regards,

Joseph Gabbay

 

0 Kudos
Joseph5
Novice
779 Views

Joseph5_1-1663789884893.png

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

 

 

 

 

0 Kudos
Joseph5
Novice
758 Views

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

 

0 Kudos
Reply