1. Install the necessary software
2. Download the decompression BuildRoot
3. Configuring the Compilation
4. Setting Environment variables
1. Install the necessary software
sudo apt-get install build-essential Bison Flex
2. Download the decompression BuildRoot
Http://buildroot.uclibc.org/downloads/snapshots Choose the version you need to download
Download after decompression, I was extracted into the KT folder
3. Configuring the Compilation
(1) Go to the BuildRoot folder and execute make Menuconfig
Popup interactive interface, Taget architecture Select MIPS
Toolchain Selecting the required compilation tools
After the configuration is saved, a config file is generated
(2) Execute compile, execute make at BuildRoot root directory
(wait quietly, I spent two hours to compile the completion)
(3) Check the following files exist in the/buildroot/output/host/usr/bin/directory
4. Setting Environment variables
(1) Add environment variable export path= $PATH:/buildroot/output/host/usr/bin
(2) Check echo $PATH
MIPS-LINUX-GCC--version
Complete....