noel902217 发表于 2022-9-12 13:05

中国移动RAX3000Q安装 Luci

本帖最后由 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,只支持软件浮点,这个问题可以创建一个软链接来解决。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 中添加以下内容:arch all 1
arch noarch 1
arch ipq 10
arch arm_cortex-a7_neon-vfpv4 20
在探索过程中我发现 iqp40xx 处理器的包也是可以用,架构和我们修改后的一致地址如下:https://downloads.openwrt.org/releases/18.06.0/targets/ipq40xx/generic/packages/
开始安装opkg 的一般用法是先 opkg update 再 opkg install 包名,但是我们的系统版本比较低,wget 版本也低,不支持 https,所以我们选择使用 opkg install + 包的地址按顺序执行下面的命令,每次一条,应该不会报错,依赖关系都理好了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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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如果有报错,不要慌,来贴子下评论就好,你遇到的问题我肯定都遇到过,只不过现在复盘有一些可能存在的问题我记不得了
上面的命令都成功执行之后,再执行下面的命令:
uci -q delete uhttpd.main.listen_http
uci add_list uhttpd.main.listen_http="0.0.0.0:8080"
uci add_list uhttpd.main.listen_http="[::]:8080"
uci commit uhttpd设置服务开机自启以及启动服务:
/etc/init.d/rpcd enable
/etc/init.d/uhttpd enable
/etc/init.d/rpcd start
/etc/init.d/uhttpd startrpcd 的配置文件中,关于 ubus 的配置可能多了一些信息,需要删掉,修改后的文件:
vi /etc/config/rpcd
config rpcd
   option socket /var/run/ubus.sock
   option timeout 30
# 下面的内容不要改
现在访问 http://192.168.10.1:8080 即可见到 luci

q12390110 发表于 2022-9-15 23:54

luci没办法启动   /etc/config/luci seems to be corrupt, unable to find section 'main'

q12390110 发表于 2022-9-15 23:55

搜了一圈说 rpcd 的问题   有几个包没安装成功 不知道是不是这个原因

noel902217 发表于 2022-9-18 10:57

q12390110 发表于 2022-9-15 23:55
搜了一圈说 rpcd 的问题   有几个包没安装成功 不知道是不是这个原因

我上面列的那些没安装成功的话肯定是启动不了的。我想起来我漏说了一件事,就是我列出来的那些包,有的是和原系统自带的包冲突,需要先卸载有冲突的包再安装

jkgs2658 发表于 2022-9-22 03:37

uhttpd原生就有只是没有lua.www里面文件也没有

noel902217 发表于 2022-9-25 14:08

jkgs2658 发表于 2022-9-22 03:37
uhttpd原生就有只是没有lua.www里面文件也没有

要看你是什么时候拿到的机器,我拿到的这一批啥都没有

cui442001866 发表于 2022-10-12 00:07

root@OpenWrt:~# 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
Downloading 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.
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.
这个怎么搞

cyt 发表于 2022-10-25 13:17

啥时候能直接刷openwrt哦

astonbest 发表于 2022-10-28 15:27

刷完能mesh么

huan88 发表于 2022-10-31 20:50

怎么查看???

jasoncy 发表于 2022-11-2 04:58

V1.1.0.202201261808的/www里面已经啥都没有了:L

无量天尊 发表于 2022-11-19 18:00

如果能刷op就好了不过有SSH也还行吧至少能用猫咪?

ezozo 发表于 2022-11-25 11:28

牛逼人物向你致敬

t3992 发表于 2022-12-22 16:03

大佬 我想问句 nat和upnp都是完整的吗 跑pcdn用

GuLuXiangZhao 发表于 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强行安装上的,不知道有没有影响
页: [1] 2
查看完整版本: 中国移动RAX3000Q安装 Luci