找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6781|回复: 17

中国移动RAX3000Q安装 Luci

[复制链接]
发表于 2022-9-12 13:05 | 显示全部楼层 |阅读模式
本帖最后由 noel902217 于 2022-9-12 13:09 编辑

本文基于软件版本:V1.1.1.202204141725,硬件版本 TZ7.823.346A 的中国移动 RAX3000Q 路由器

基本上在4月之后买到的,都没有 luci,那我们就只能手动安装了

首先你需要能够 shh 连上路由器,具体方法参考我上一篇帖子:中国移动RAX3000Q最简单解锁telnet/ssh,持久化超级管理员账号方法

更换相近架构
IPQ5018 是双核 Cortex-A53 处理器,opkg 默认的架构为 ipq,但是 OpenWrt 软件源里并没有这种架构,我们需要选择一个相近的架构。
根据 cpuinfo 信息判断应该是 armv7l 且支持 vfpv4 硬件浮点,但是内置的 interpreter 却是 /lib/ld-musl-arm.so.1,只支持软件浮点,这个问题可以创建一个软链接来解决。
  1. ln -s /lib/ld-musl-arm.so.1 /lib/ld-musl-armhf.so.1
复制代码

由于目前运行的QSDK是32位的,无法像这篇文章一样直接使用 aarch64_cortex-a53 的软件源,最终我选择的架构是 arm_cortex-a7_neon-vfpv4。
在 /etc/opkg.conf 中添加以下内容:
  1. arch all 1
  2. arch noarch 1
  3. arch ipq 10
  4. arch arm_cortex-a7_neon-vfpv4 20
复制代码

在探索过程中我发现 iqp40xx 处理器的包也是可以用,架构和我们修改后的一致

开始安装
opkg 的一般用法是先 opkg updateopkg install 包名,但是我们的系统版本比较低,wget 版本也低,不支持 https,所以我们选择使用 opkg install + 包的地址
按顺序执行下面的命令,每次一条,应该不会报错,依赖关系都理好了
  1. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libjson-script20210516_2021-05-16-b14c4688-2_arm_cortex-a7_neon-vfpv4.ipk
  2. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/uhttpd_2021-03-21-15346de8-2_arm_cortex-a7_neon-vfpv4.ipk
  3. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/base/lua_5.1.5-2_arm_cortex-a7_neon-vfpv4.ipk
  4. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-lib-nixio_git-20.356.64372-1259bb1-1_arm_cortex-a7_neon-vfpv4.ipk
  5. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-lib-ip_git-20.356.64372-1259bb1-1_arm_cortex-a7_neon-vfpv4.ipk
  6. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-lib-jsonc_git-20.356.64372-1259bb1-1_arm_cortex-a7_neon-vfpv4.ipk
  7. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/liblucihttp_2019-07-05-a34a17d5-1_arm_cortex-a7_neon-vfpv4.ipk
  8. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/liblucihttp-lua_2019-07-05-a34a17d5-1_arm_cortex-a7_neon-vfpv4.ipk
  9. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-base_git-20.356.64372-1259bb1-1_arm_cortex-a7_neon-vfpv4.ipk
  10. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-mod-admin-full_git-20.356.64372-1259bb1-1_arm_cortex-a7_neon-vfpv4.ipk
  11. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-theme-bootstrap_git-20.356.64372-1259bb1-1_all.ipk
  12. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-proto-ppp_git-20.356.64372-1259bb1-1_all.ipk
  13. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libnl-tiny1_2020-08-05-c291088f-2_arm_cortex-a7_neon-vfpv4.ipk
  14. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libubox20210516_2021-05-16-b14c4688-2_arm_cortex-a7_neon-vfpv4.ipk
  15. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libuci20130104_2021-04-14-4b3db117-5_arm_cortex-a7_neon-vfpv4.ipk
  16. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libubus20210630_2021-06-30-4fc532c8-2_arm_cortex-a7_neon-vfpv4.ipk
  17. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libiwinfo-data_2022-04-26-dc6847eb-1_arm_cortex-a7_neon-vfpv4.ipk
  18. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libiwinfo20210430_2022-04-26-dc6847eb-1_arm_cortex-a7_neon-vfpv4.ipk
  19. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/liblua5.1.5_5.1.5-9_arm_cortex-a7_neon-vfpv4.ipk
  20. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libiwinfo-lua_2022-04-26-dc6847eb-1_arm_cortex-a7_neon-vfpv4.ipk
  21. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-proto-ipv6_git-20.356.64372-1259bb1-1_all.ipk
  22. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/rpcd-mod-rrdns_20170710_arm_cortex-a7_neon-vfpv4.ipk
  23. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-app-firewall_git-20.356.64372-1259bb1-1_all.ipk
  24. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/luci/luci-app-opkg_git-22.154.41894-1cf976c_all.ipk
  25. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-proto-ppp_git-20.356.64372-1259bb1-1_all.ipk
  26. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci_git-20.356.64372-1259bb1-1_all.ipk
  27. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libjson-c5_0.15-2_arm_cortex-a7_neon-vfpv4.ipk
  28. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/libblobmsg-json20210516_2021-05-16-b14c4688-2_arm_cortex-a7_neon-vfpv4.ipk
  29. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/packages-21.02/arm_cortex-a7_neon-vfpv4/base/rpcd_2022-02-19-8d26a1ba-1_arm_cortex-a7_neon-vfpv4.ipk
  30. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-i18n-base-zh-cn_git-20.356.64372-1259bb1-1_all.ipk
  31. opkg install http://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/18.06.0/packages/arm_cortex-a7_neon-vfpv4/luci/luci-theme-material_git-20.356.64372-1259bb1-1_all.ipk
复制代码
如果有报错,不要慌,来贴子下评论就好,你遇到的问题我肯定都遇到过,只不过现在复盘有一些可能存在的问题我记不得了

上面的命令都成功执行之后,再执行下面的命令:
  1. uci -q delete uhttpd.main.listen_http
  2. uci add_list uhttpd.main.listen_http="0.0.0.0:8080"
  3. uci add_list uhttpd.main.listen_http="[::]:8080"
  4. uci commit uhttpd
复制代码
设置服务开机自启以及启动服务:
  1. /etc/init.d/rpcd enable
  2. /etc/init.d/uhttpd enable
  3. /etc/init.d/rpcd start
  4. /etc/init.d/uhttpd start
复制代码
rpcd 的配置文件中,关于 ubus 的配置可能多了一些信息,需要删掉,修改后的文件:
  1. vi /etc/config/rpcd
  2. config rpcd
  3.      option socket /var/run/ubus.sock
  4.      option timeout 30
  5. # 下面的内容不要改
复制代码

现在访问 http://192.168.10.1:8080 即可见到 luci

评分

参与人数 1恩山币 +1 收起 理由
Kervillek3L090 + 1 /

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-9-15 23:54 来自手机 | 显示全部楼层
  luci没办法启动   /etc/config/luci seems to be corrupt, unable to find section 'main'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-15 23:55 来自手机 | 显示全部楼层
搜了一圈说 rpcd 的问题     有几个包没安装成功 不知道是不是这个原因

点评

我上面列的那些没安装成功的话肯定是启动不了的。我想起来我漏说了一件事,就是我列出来的那些包,有的是和原系统自带的包冲突,需要先卸载有冲突的包再安装  详情 回复 发表于 2022-9-18 10:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-18 10:57 | 显示全部楼层
q12390110 发表于 2022-9-15 23:55
搜了一圈说 rpcd 的问题     有几个包没安装成功 不知道是不是这个原因

我上面列的那些没安装成功的话肯定是启动不了的。我想起来我漏说了一件事,就是我列出来的那些包,有的是和原系统自带的包冲突,需要先卸载有冲突的包再安装
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-22 03:37 | 显示全部楼层
uhttpd原生就有只是没有lua.www里面文件也没有

点评

要看你是什么时候拿到的机器,我拿到的这一批啥都没有  详情 回复 发表于 2022-9-25 14:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-25 14:08 | 显示全部楼层
jkgs2658 发表于 2022-9-22 03:37
uhttpd原生就有只是没有lua.www里面文件也没有

要看你是什么时候拿到的机器,我拿到的这一批啥都没有
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-10-12 00:07 | 显示全部楼层
root@OpenWrt:~# opkg install http://mirrors.tuna.tsinghua.edu ... es-21.02/arm_cortex
-a7_neon-vfpv4/base/libjson-script20210516_2021-05-16-b14c4688-2_arm_cortex-a7_neon-vfpv4.ipk
Downloading http://mirrors.tuna.tsinghua.edu ... -a7_neon-vfpv4.ipk.
Installing libjson-script20210516 (2021-05-16-b14c4688-2) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for libjson-script20210516:
*         libubox20210516 *
* opkg_install_cmd: Cannot install package libjson-script20210516.
这个怎么搞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-10-25 13:17 | 显示全部楼层
啥时候能直接刷openwrt哦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-10-28 15:27 | 显示全部楼层
刷完能mesh么
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-10-31 20:50 | 显示全部楼层
怎么查看???
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-2 04:58 | 显示全部楼层
V1.1.0.202201261808的/www里面已经啥都没有了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-19 18:00 | 显示全部楼层
如果能刷op就好了不过有SSH也还行吧至少能用猫咪?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-11-25 11:28 | 显示全部楼层
牛逼人物  向你致敬
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-12-22 16:03 | 显示全部楼层
大佬 我想问句 nat和upnp都是完整的吗 跑pcdn用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-10 21:31 | 显示全部楼层
楼主,请问我按照你的步骤执行到开机启动那一步,执行命令rpcd enable显示Failed to connect to ubus有办法解决吗?是我刷入的luci不对的原因吗?
我刷到下面四个ipk文件,发现镜像站的这四个文件已经失效
libiwinfo-data_2022-04-26-dc6847eb-1_arm_cortex-a7_neon-vfpv4.ipk
libiwinfo20210430_2022-04-26-dc6847eb-1_arm_cortex-a7_neon-vfpv4.ipk
libiwinfo-lua_2022-04-26-dc6847eb-1_arm_cortex-a7_neon-vfpv4.ipk
luci-app-opkg_git-22.154.41894-1cf976c_all.ipk
我去镜像站换成了更高的版本,刷入的。
另外luci-app-firewall_git-20.356.64372-1259bb1-1_all.ipk这个文件我也是通过 --force-depends强行安装上的,不知道有没有影响
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 07:47

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表