Build A8 compilation environment

Source: Internet
Author: User

1 Copy the code A8 to the virtual machine/home/a/a8_orig

2/home/a/a8_orig/toolchain/bin This path is added to the environment variable path= $PATH:/home/a/a8_orig/toolchain/bin make Uboot

1 Cd/home/a/a8_orig/uboot 2 make Distclean/make devkit8600_config

Generate the. config file

1. If the. config does not exist, the default settings when running make Config/menuconfig are determined by the default values for each of the various kconfig files that are cured.
2. If the. config exists, the default setting when running make Config/menuconfig is the current. config setting, and if the settings are modified,. config will be updated.
3. Arch/arm/defconfig is a default configuration file, and make Defconfig generates the current. config based on this file.
4. The Arch/arm/configs folder has many configuration files named Xxx_defconfig, and if you run make xxx_defconfig, the current. config file is generated by the Xxx_defconfig file.
5. The role of make Oldconfig is to back up the current. config file to. config.old, and if make Config/menuconfig is improperly set, it can be used to restore the previous. config.
3 make

Generate Mlo and U-boot.img
Make kernel Make Distclean Configure config file
Make devkit8600_defconfig Make menuconfig Make uimage

"Mkimage" command not found-u-boot images won't be built

Problem Solving-Process
1, found in Arch/arm/boot is the production uimage directory makefile found Mkimage: = $ (Srctree)/scripts/mkuboot.sh made uimage using/scripts/mkuboot . SH command

2, go to/scripts/mkuboot.sh directory to see this file, found mkimage=$ (type-path "${cross_compile}mkimage")

3, go to root directory find makefile file found Cross_compile =/usr/local/arm/3.4.1/bin/arm-linux-

4, this is the path of the Mkimage file, found the path in the/usr/local/arm/3.4.1/bin/under the Mkimage file Ah, but the front of this arm-linux-what meaning it.

5. Compile the Uboot and the Mkimage tool will be generated under Uboot/tools
File System


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.