Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

U-Boot #45

Open
khatatbih opened this issue Mar 9, 2019 · 4 comments
Open

U-Boot #45

khatatbih opened this issue Mar 9, 2019 · 4 comments

Comments

@khatatbih
Copy link

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

@alessandrocapotondi
Copy link
Contributor

Dear @khatatbih,

Thanks for your report. Did you solve the issue?

Alessandro

@khatatbih
Copy link
Author

khatatbih commented Apr 6, 2019 via email

@Olivier-Dopeli
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants