Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
444 Discussions

Other workflow for generating Preloader since Quartus-Prime Version 19.1 with "SoC EDS 19.1 Command Shell„

GQUIR2
Novice
1,345 Views

I work with FPGA-Eval-Board DE10-Standard from Terasic with Cyclone V and HPS.

Before Quartus-Prime Version 19.1 workflow in "SoC EDS 18.1 Command Shell„ was:

Generate the "Preloader" using the BSP Editor

Change to Quartus Project folder:

bsp-editor.exe &

File, New ..\hps_isw_handoff\soc_system_hps_0

Generate --> ..\software\spl_bsp is generated !!

Build the "Preloader„:

Change to folder ..\software\spl_bsp

>make

--> preloader-mkpimage.bin is generated !!

------------------

SoC EDS 19.1 Command Shell„ :

Change to Quartus Project folder:

bsp-editor.exe &

File, New ..\hps_isw_handoff\soc_system_hps_0

Generate --> ..\software\spl_bsp is generated !!

Build the "Preloader„:

Change to folder ..\software\spl_bsp

>make

I get the message:

"Please visit https://rocketboards.org/foswiki/Documentation/BuildingBootloader for instructions on how to build the bootloader."

But on this page I couldn't find any instuction to generate Preloader "preloader-mkpimage.bin".

Can anyone help???

Does anyone know if generation of preloader-mkpimage.bin in all future versions Quartus not exist.

Thanks for any answer.

Gerhard

0 Kudos
9 Replies
EBERLAZARE_I_Intel
1,143 Views

Hi Gerhard,

 

For confirmation, are you using the Standard or Pro version of SoC EDS 19.1?

 

Best Regards,

Eber.

0 Kudos
GQUIR2
Novice
1,142 Views
I am using “Intel FPGA Embedded Command Shell, Version 19.1 [Build 670]” and “Quartus Prime Version 19.1.0 Build 670 09/22/2019 Standard Edition”. Best Regards Gerhard
0 Kudos
EBERLAZARE_I_Intel
1,142 Views

Hi Gerhard,

 

Regarding the preloader mkpimage bin file generation in https://rocketboards.org/foswiki/Documentation/BuildingBootloader, we are currently looking into the issue.

 

Will update you once the issue is fixed.

 

Regards.

0 Kudos
GQUIR2
Novice
1,142 Views

When i follow the Steps at Documentation "Building Bootloader" at Rocketboards, i get problems when i try to make socfpga_cyclone5_defconfig !!!!

$ make socfpga_cyclone5_defconfig

 HOSTCC scripts/basic/fixdep

In Datei, eingebunden von scripts/basic/fixdep.c:115:

scripts/basic/fixdep.c: In Funktion »parse_config_file«:

scripts/basic/fixdep.c:241:18: Warnung: Arrayindex hat Typ »char« [-Wchar-subscripts]

 241 |  if (!(isalnum(*q) || *q == '_'))

    |                ^~

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/lxdialog/check-lxdialog.sh -ccflags, ...) failed.

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/check.sh cc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -ansi, ...) failed.

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/lxdialog/check-lxdialog.sh -ccflags, ...) failed.

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/check.sh cc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -ansi, ...) failed.

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/lxdialog/check-lxdialog.sh -ccflags, ...) failed.

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/check.sh cc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -ansi, ...) failed.

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/lxdialog/check-lxdialog.sh -ccflags, ...) failed.

process_begin: CreateProcess(NULL, /usr/bin/sh ./scripts/kconfig/check.sh cc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -ansi, ...) failed.

 HOSTCC scripts/kconfig/conf.o

In Datei, eingebunden von scripts/kconfig/expr.h:15,

               von scripts/kconfig/lkc.h:9,

               von scripts/kconfig/conf.c:19:

scripts/kconfig/list.h:71:14: Fehler: expected »;« before »int«

 71 | static inline int list_empty(const struct list_head *head)

    |            ^~~~

    |            ;

scripts/kconfig/list.h:82:14: Fehler: expected »;« before »void«

 82 | static inline void __list_add(struct list_head *_new,

    |            ^~~~~

 .

.

scripts/kconfig/lkc.h:148:8: Fehler: unbekannter Typname: »inline«

 148 | static inline tristate sym_get_tristate_value(struct symbol *sym)

    |      ^~~~~~

.

.

scripts/kconfig/lkc.h:154:14: Fehler: expected »;« before »struct«

 154 | static inline struct symbol *sym_get_choice_value(struct symbol *sym)

    |            ^~~~~~~

    |            ;

scripts/kconfig/lkc.h:159:14: Fehler: expected »;« before »_Bool«

 159 | static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval)

    |            ^

    |            ;

.

.

scripts/kconfig/lkc.h:179:14: Fehler: expected »;« before »_Bool«

 179 | static inline bool sym_has_value(struct symbol *sym)

    |            ^

    |            ;

In Datei, eingebunden von scripts/kconfig/conf.c:7:

scripts/kconfig/conf.c: In Funktion »strip«:

scripts/kconfig/conf.c:62:18: Warnung: Arrayindex hat Typ »char« [-Wchar-subscripts]

 62 | while ((isspace(*p)))

    |                ^~

scripts/kconfig/conf.c:70:18: Warnung: Arrayindex hat Typ »char« [-Wchar-subscripts]

 70 | while ((isspace(*p)))

    |                ^~

scripts/kconfig/conf.c: In Funktion »conf_sym«:

scripts/kconfig/conf.c:173:12: Warnung: Implizite Deklaration der Funktion »sym_get_tristate_value«; meinten Sie »sym_set_tristate_value«? [-Wimplicit-function-declaration]

 173 | oldval = sym_get_tristate_value(sym);

    |          ^~~~~~~~~~~~~~~~~~~~~~

    |          sym_set_tristate_value

In Datei, eingebunden von scripts/kconfig/conf.c:7:

scripts/kconfig/conf.c: In Funktion »conf_choice«:

scripts/kconfig/conf.c:313:25: Warnung: Arrayindex hat Typ »char« [-Wchar-subscripts]

 313 |  else if (isdigit(line[0]))

    |                   ~~~~^~~

scripts/kconfig/conf.c: In Funktion »main«:

scripts/kconfig/conf.c:568:2: Fehler: C++-Stil-Kommentare sind in ISO-C90 nicht erlaubt

 568 | //zconfdump(stdout);

    | ^

scripts/kconfig/conf.c:568:2: Anmerkung: (dies wird nur einmal pro Eingabedatei gemeldet)

make[1]: *** [scripts/kconfig/conf.o] Error 1

make: *** [socfpga_cyclone5_defconfig] Error 2

-------------------------------------------------------------------------------------

The whole bug report is in attachment. Has anyone an idea, what the problem is ?????

Regards

Gerhard

0 Kudos
EBERLAZARE_I_Intel
1,143 Views

Hi Gerhard,

 

Have you downloaded and setup the toolchain?

 

If you have, you will still need to execute the 3 exports which is the export PATH, export CROSS_COMPILE etc.. before executing the make.

 

Let me know if this does not fix the issue.

0 Kudos
GQUIR2
Novice
1,142 Views

I'm using "EDS Command Shell" running on Win 10 PC. How can I check if correct Toolchain is installed?

Is there manual how to install toolchain under "EDS Command Shell"?

Regards

Gerhard

0 Kudos
EBERLAZARE_I_Intel
1,143 Views

Hi,

 

Unfortunately, the building bootloader tutorial is targeting for Linux host users it is not meant for Windows 10 users.

 

If you opt to use Windows 10, I recommend that you use Quartus and SoC EDS 18.1 std, and use the bsp-editor flow.

0 Kudos
EBERLAZARE_I_Intel
1,143 Views

If you wish to, you may install a virtual machine and learn Linux, it is pretty simple since you are going to use Linux in Cyclone V SoC anyway.

 

Regards.

0 Kudos
EBERLAZARE_I_Intel
1,143 Views

Hi,

 

Do you have any follow up from your side?

0 Kudos
Reply