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)