1 首先。make menuconfig 的時候選上工具鍊:
也就是 Package the OpenWrt-based Toolchain
Target System (Ralink RT288x/RT3xxx) ---> x x
x x Subtarget (RT3x5x/RT5350 based boards) ---> x x
x x Target Profile (HAME MPR-A2) ---> x x
x x Target Images ---> x x
x x Global build settings ---> x x
x x [ ] Advanced configuration options (for developers) ---- x x
x x [ ] Build the OpenWrt Image Builder x x
x x [ ] Build the OpenWrt SDK x x
x x [*] Package the OpenWrt-based Toolchain x x
x x [ ] Image configuration ---> x x
編譯完後會在 bin/ramips/ 生成 penWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686.tar.bz2
把這個檔案解壓到任何一個目錄。推薦解壓到 /opt/目錄下
然後修改 解壓後的檔案夾裡面的檔案
OpenWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-wrapper.sh
在
TOOLCHAIN_SYSROOT="$TOOLCHAIN_BIN_DIR/../.."
export STAGING_DIR="$REALNAME_DIR/../../"
/opt/OpenWrt-Toolchain-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-i686/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin