The mental course of compiling Zedboard u-boot

Source: Internet
Author: User
Tags openssl

Uboot compiler originally thought is an easy thing, did not think, this all the way down really let people tangled, today is the process of recording it. It's been a long time. Necessary Environment

The first is the Arm-xilinx Cross mutation development environment, no words can refer to my previous blog, there are detailed introduction. Of course, there are a variety of dependencies, and so on, I will not say one by one, anyway, the first words always have a lot of mistakes, then the careful authentication of the understanding of errors, lack of what to complement what can be. Start

First, go to Xilinx official Wiki website to look for U-boot-xilinx-master or go to digilent official website also have a version, all can be in fact all the same, In fact digilent GitHub on the u-boot is fork Xilinx, so are the same.
Nonsense not to say, start it, first decompression, into the subdirectory, there are many directories and files, the first implementation of make Zynq_zc702_config, the specific options can view the doc directory under a readme.zynq file, you know.
And then there will be

HOSTCC SCRIPTS/BASIC/FIXDEP
HOSTCC SCRIPTS/KCONFIG/CONF.O
SHIPPED SCRIPTS/KCONFIG/ZCONF.TAB.C
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC SCRIPTS/KCONFIG/ZCONF.TAB.O
Hostld scripts/kconfig/conf
#
# configuration written to. config
#

Indicates that the configuration was successful and you can also use the Make Config command for more detailed configuration. There's not much to say. compiling

Read a lot of tutorials before, said that the direct operation can be, but there will always be such a mistake, said to be unable to find ARM-XILINX-LINUX-GNUEABIGCC, that is, I wonder, I clearly installed a cross-compilation tool Ah, how the matter, this problem entangled for a long time, Even suspected the official problem, and finally found that my computer on the cross-compilation tool environment variable is ARM-XILINX-LINUX-GCC
After some tossing, finally, the cross compilation tool was specified behind the Make command,
Make cross_compile=arm-xilinx-linux-gnueabi-remember, do not add gcc at the end, that does not control.
Well, finally solved, but made up halfway, there is a problem,
In the file included from tools/aisimage.c:10:0:
Include/image.h:920:27:fatal error:openssl/evp.h: No file or directory
# include <openssl/evp.h>
^
Compilation terminated.
Scripts/makefile.host:111:recipe for Target ' TOOLS/AISIMAGE.O ' failed
MAKE[1]: * * * [TOOLS/AISIMAGE.O] Error 1
Makefile:1194:recipe for target ' tools ' failed
Make: * * * [tools] Error 2

This is the problem of OpenSSL dependencies, Run command sudo apt-get install Libssl-dev can be resolved.
OK again, this time seems to have no problem, a long time passed, I also blindly excited for a while, suddenly there is a problem:
./scripts/dtc-version.sh: Line 17:DTC: Command not found
./scripts/dtc-version.sh: Line 18:DTC: Command not found
Your DTC is too old, please upgrade to DTC 1.4 or newer
Makefile:1353:recipe for Target ' CHECKDTC ' failed
Make: * * * [CHECKDTC] Error 1

Well, DTC is the acronym for Device-tree-compiler, the device tree compiler, which indicates that the compiler is not installed in the system
Install not on the line:
sudo apt-get install Device-tree-compiler
This time compile the end.

PS: Personal feeling, before compiling U-boot recommended to understand the GCC compiler and makefile syntax-related concepts, so that the problem can find their own problems, anyone's Linux system is different, so even if completely follow my process to go down, not necessarily will succeed. Also, is out of the question to calm down, do not think that there is a person to help you solve the problem, to think more, more information, but also have the patience, two weeks a week is not out of it is very normal, if the temporary solution can be shelved.
Good luck!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.