小米路由器3 配置opkg (openwrt折腾之二)

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/adamancyzhang/article/details/86704457

使用cat /etc/openwrt_release查看路由器架构信息

在这里插入图片描述

在相同固件的openwrt系统中抽取opkg文件

将opkg文件放在/usr/bin目录下

修改opkg配置文件vim /etc/opkg.conf

最新opkg源查看地址http://archive.openwrt.org/

src/gz barrier_breaker_base http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base
src/gz barrier_breaker_luci http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/luci
src/gz barrier_breaker_management http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/management
src/gz barrier_breaker_oldpackages http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/oldpackages
src/gz barrier_breaker_packages http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages
src/gz barrier_breaker_routing http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/routing
src/gz barrier_breaker_telephony http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/telephony
dest root /
dest ram /tmp
lists_dir ext /root/opkg-lists
option overlay_root /
arch all 100
arch ramips 200
arch ramips_24kec 300

执行opkg update更新软件包列表

其他问题

libc依赖无法自动解析,需手动配置

wget后面的url应当在上面所给出的opkg软件源中查找libc

cd
mkdir download
cd download/
wget http://archive.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base/libc_0.9.33.2-1_ramips_24kec.ipk
opkg install libc_0.9.33.2-1_ramips_24kec.ipk

参考博客

《小米路由3安装opkg》https://www.ywlib.com/archives/102.html (from 一闻自习室)

本系列其他文章链接

小米路由器3 挂载U盘 实现磁盘扩展 并获取写入权限 (openwrt折腾之一)

展开阅读全文

没有更多推荐了,返回首页