Cross-compiling MIPS (Ubuntu)

Source: Internet
Author: User

Using BuildRoot for cross-compiling, many tutorials on the web, follow the tutorial step by step is OK. The main record of several problems encountered.

MIPS & GDB

Http://md.purpleroc.com/cross%20compile/embedded%20tools/technic/2015/09/07/Cross_compile.html

Setting Environment Variableshttp://jingyan.baidu.com/article/db55b609a3f6274ba30a2fb8.html  This error can occur during a low version of the compilation process: Make menuconfig error make[1]: Leaving directory '/home/router/buildroot/support/kconfig ' Make : * * * [/home/router/buildroot/output/build/buildroot-config/mconf] Error 2 Error Reason: Ncurses is the basic library for screen control under the character terminal. There may be many newly developed programs that are no longer in use. Compile some old programs, or you will often run into them. Solution:before make menuconfig, add: sudo apt-get install Libncurses5-devReference: https://www.oschina.net/question/938191_2142882 When this machine is kernel2.6, the use of buildroot2016.08 compile error. The error is as follows: package/linux-headers/linux-headers.mk:137: * * * Linux_headers_site cannot is empty when Linux_headerbecause I could not find the corresponding header, I am here to compile kernel in buildroot2016.08 to 2.6 error. guess :the reason is because the corresponding kernel header could not be found. when you select a kernel in Toolchain, it is listed as part of the selection, or it can be selected manually. Guess, the list of parts is buildroot already included, and manual selection will need to go to download, probably via Linux channel (I am here ubuntu, guess is Ubuntu source). and now 2.6 may not have been included in the previous download path(I couldn't find the 2.6 kernel when I searched for the kernel using sudo apt-cache search linux-image), and I did not see the error when I manually selected 3.13 for the ubuntu14.04 (kernel 3.13).   Solution :choose a lower version of the BuildRoot, I chose here is 2011.08https://buildroot.org/downloads/ 

Cross-compiling MIPS (Ubuntu)

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.