OpenWRT交叉编译链生成与安装(mipsel-openwrt-linux-gcc)

OpenWRT交叉编译链生成与安装(mipsel-openwrt-linux-gcc)

# 编译环境变量文件
vim ~/.bashrc

# 文件末尾添加环境变量,指向mipsel-openwrt-linux-gcc目录,并保存退出
export PATH=~/MT7628/openwrt-hiwooya/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/:$PATH
export STAGING_DIR=/{openwrt_path}/staging_dir

# 使配置立即生效
source ~/.bashrc
 

如果报警告warning: environment variable 'STAGING_DIR' not defined,就是没有export STAGING_DIR导致的。



Index of /barrier_breaker/14.07/ramips/mt7620a/

OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2就是编译链工具。

# 下载
wget https://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2

# 解压
tar -jxvf OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2

# 下载
wget https://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2

# 解压
tar -jxvf OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2

# 编译环境变量文件
vim ~/.bashrc

# 文件末尾添加环境变量,指向mipsel-openwrt-linux-gcc目录,并保存退出
export PATH=~/MT7628/OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2/bin/:$PATH
export STAGING_DIR=/{openwrt_path}/staging_dir

# 使配置立即生效
source ~/.bashrc
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值