hero-sdk icon indicating copy to clipboard operation
hero-sdk copied to clipboard

U-Boot

Open khatatbih opened this issue 6 years ago • 4 comments

There is a problem when I try to execute U-Boot compile script with the following command : ./compile_loader.sh -j8

/Desktop/hero/zc706/zynqlinux/u-boot-xlnx$ ./compile_loader.sh -j8

  • Executing U-Boot compile script -

Adding kernel scripts to PATH Comiling U-Boot

configuration written to .config

scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config.h CFG u-boot.cfg GEN include/autoconf.mk.dep CFG spl/u-boot.cfg GEN include/autoconf.mk GEN spl/include/autoconf.mk CHK include/config/uboot.release CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h CHK include/generated/version_autogenerated.h CHK include/generated/generic-asm-offsets.h CHK include/generated/asm-offsets.h HOSTCC tools/mkenvimage.o HOSTCC tools/fit_image.o HOSTCC tools/image-host.o HOSTCC tools/lib/rsa/rsa-sign.o HOSTCC tools/dumpimage.o HOSTCC tools/mkimage.o In file included from tools/lib/rsa/rsa-sign.c:1:0: ./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_remove’: ./tools/../lib/rsa/rsa-sign.c:156:2: warning: ‘ERR_remove_thread_state’ is deprecated [-Wdeprecated-declarations] ERR_remove_thread_state(NULL); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509_vfy.h:20:0, from /usr/include/openssl/x509.h:309, from /usr/include/openssl/pem.h:17, from ./tools/../lib/rsa/rsa-sign.c:13, from tools/lib/rsa/rsa-sign.c:1: /usr/include/openssl/err.h:247:1: note: declared here DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *)) ^ In file included from tools/lib/rsa/rsa-sign.c:1:0: ./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_sign_with_key’: ./tools/../lib/rsa/rsa-sign.c:213:2: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration] EVP_MD_CTX_cleanup(context); ^~~~~~~~~~~~~~~~~~ EVP_MD_CTX_create ./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_get_exponent’: ./tools/../lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’ if (BN_num_bits(key->e) > 64) ^~ scripts/Makefile.host:116: recipe for target 'tools/lib/rsa/rsa-sign.o' failed make[1]: *** [tools/lib/rsa/rsa-sign.o] Error 1 make[1]: *** Waiting for unfinished jobs.... Makefile:1217: recipe for target 'tools' failed make: *** [tools] Error 2 Copying u-boot to ../sdk/u-boot.elf cp: cannot stat 'u-boot': No such file or directory

khatatbih avatar Mar 09 '19 18:03 khatatbih

Dear @khatatbih,

Thanks for your report. Did you solve the issue?

Alessandro

alessandrocapotondi avatar Apr 03 '19 16:04 alessandrocapotondi

Dear Alessandro No, I did not solve the issue. Thank you

On Wed, Apr 3, 2019 at 12:42 PM Alessandro Capotondi < [email protected]> wrote:

Dear @khatatbih https://github.com/khatatbih,

Thanks for your report. Did you solve the issue?

Alessandro

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pulp-platform/hero-sdk/issues/45#issuecomment-479567890, or mute the thread https://github.com/notifications/unsubscribe-auth/AtgUjZq7sOrBQvMqgvt6uCeaOmRxvGRjks5vdNn4gaJpZM4bm0at .

khatatbih avatar Apr 06 '19 01:04 khatatbih

Hello,

I use the ZC706 FPGA board and I customized the bigPULP architecture by configuring 2 clusters of 3 cores. Now, I would like to build the Linux system for the host adapted to the new bitstream of the custom 2 cluster architecture. When running the script "compile_loader.sh -j8", I get the same error described here. Have you found a solution to this problem?

Thank you in advance.

Olivier-Dopeli avatar Jun 24 '20 08:06 Olivier-Dopeli

Hello ,

I found a solution that worked for me. The problem would be related to the libssl version. As mentioned in the link below, I installed the libssl1.0-dev version and the "compile_loader.sh -j8" ran correctly.

Link : https://forums.xilinx.com/t5/Embedded-Linux/U-Boot-compile-error-dereferencing-pointer/td-p/794782

Olivier-Dopeli avatar Jun 25 '20 14:06 Olivier-Dopeli