openwrt-ipq60xx / openwrt

Other
4 stars 1 forks source link

Redmi AX5 #1

Open pexcn opened 11 months ago

pexcn commented 11 months ago

I have a Redmi AX5, but I haven't upgraded the RAM, maybe support for it will be added in the future, maybe not. So backup some necessary information here.

ax5_stock_firmware_boot.log ax5-bdf.zip

UPDATE ON 20240105 ax5-cn-and-intl-bdwlan.zip

breeze303 commented 9 months ago

usb方面能驱动吗?自带ubs驱动?

pexcn commented 9 months ago

不支持,USB需要改dts并安装相关kmod才行

breeze303 commented 9 months ago

这个我知道,kmod的话里面有驱动吗

pexcn commented 9 months ago

要改config把usb相关模块编译进去

breeze303 commented 9 months ago

不修这个库了吗?

pexcn commented 9 months ago

还有什么问题吗?

breeze303 commented 9 months ago

系统内重启不是无法重启吗,虽然我ax5没这问题

breeze303 commented 9 months ago

还有就是无线速率

pexcn commented 9 months ago

这两个问题解决不了

breeze303 commented 9 months ago

好吧

breeze303 commented 9 months ago

coremark的跑分只有九千分,对比之前的4.4内核差了一万多分 image

breeze303 commented 9 months ago

image 4.4的话是添加了个dtsi去控制的,不知道是不是这个的原因

pexcn commented 9 months ago

是不是coremark编译的线程数不够?我的四线程测出来18000分

breeze303 commented 9 months ago

是不是coremark编译的线程数不够?我的四线程测出来18000分

命令是啥,我直接跑的是coremark命令

pexcn commented 9 months ago

跟这个配置有关 https://github.com/openwrt-dev/configs-ipq60xx/blob/89d8eec945dc68946dbc53b086d9b0c3f8fe878c/ipq60xx-generic#L6460C1-L6460C34

breeze303 commented 9 months ago

跟这个配置有关 https://github.com/openwrt-dev/configs-ipq60xx/blob/89d8eec945dc68946dbc53b086d9b0c3f8fe878c/ipq60xx-generic#L6460C1-L6460C34

image 难怪

breeze303 commented 9 months ago

是不是coremark编译的线程数不够?我的四线程测出来18000分

但这一万八也还是不满血

pexcn commented 9 months ago

也够用了,我只用来做AP,不关心性能。 如果要调整可能还需要重新写dts,这个版本对比kernel 4.4的变动很大

breeze303 commented 9 months ago

也够用了,我只用来做AP,不关心性能。 如果要调整可能还需要重新写dts,这个版本对比kernel 4.4的变动很大

那算了,我dts基本不会

breeze303 commented 9 months ago

image 可以了,我裁剪掉wifi用

breeze303 commented 9 months ago

有个问题想请教下 image 为啥这个库不需要打内核补丁来添加支持,还是说内核就已经支持了所以不需要打补丁?

pexcn commented 9 months ago

已经不需要改这个了,应该是自动匹配的

breeze303 commented 9 months ago

已经不需要改这个了,应该是自动匹配的

牛的,之前打patch打到烦

breeze303 commented 9 months ago

Snipaste_2023-12-05_19-36-10 nss起效还满血爽歪歪,另一颗led能驱动起来吗?要自己找gpio值?

pexcn commented 9 months ago

NSS是有效的?

LED的估计你可以参考下这个 https://github.com/closewrt/wlan-ap/blob/671e0a667f7a919fd825e2a965de9a6132818b60/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-xiaomi-redmi-ax5.dts

breeze303 commented 9 months ago

NSS是有效的?

有效,cpu都不动

pexcn commented 9 months ago

无线的情况下,NSS有作用吗?

breeze303 commented 9 months ago

无线的情况下,NSS有作用吗?

无线的话没试过,改了1G的ax5做主路由去了,只有个没改的用来做测试😂,你可以测试下,两台电脑或者手机一台做服务端一台做客户端去跑iperf3看看cpu占用率就知道了

pexcn commented 9 months ago

之前测试过,无线跑到900多mbps, cpu还是占了30%左右,可能是没生效了

breeze303 commented 9 months ago

之前测试过,无线跑到900多mbps, cpu还是占了30%左右,可能是没生效了

不要用路由器做iperf3的服务端或者客户端,会占用cpu,也是20%-30%左右

pexcn commented 9 months ago

不是路由器做客户端,是内网另一台机运行 speedtest-go 做的服务端

breeze303 commented 9 months ago

不是路由器做客户端,是内网另一台机运行 speedtest-go 做的服务端

这样的话确实没生效

breeze303 commented 9 months ago

image 今天更新了下软件库就报错了,官方的更新有问题

pexcn commented 9 months ago

刚刚跟着上游更新了,GitHub Actions 正在编译,不知道有没有影响

breeze303 commented 9 months ago

图片 整合完的dts

breeze303 commented 9 months ago

image 大佬想请教下这里的lan的定义是在dts哪里看的吗

pexcn commented 9 months ago

DTS 的 label 定义的 https://github.com/openwrt-dev/openwrt-ipq60xx/blob/ee6c6a23184030f61ae23a7672c673030083518c/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-ax1800.dts#L204

breeze303 commented 9 months ago

image 还有就是这个id是什么意思,我在适配m2的时候发现这个id是不一样的,然后无法驱动网口起来,ttl能进系统

pexcn commented 9 months ago

我参考 ipq807x 的,这 id 应该不用变,调整 switch_lan_bmp 和 switch_wan_bmp 应该就可以了 https://github.com/openwrt/openwrt/blob/01d1c1ad296cc71f87ea02b01b16a09fe5d933a1/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-ess.dtsi#L472-L536

breeze303 commented 9 months ago

image 那这个的端口是怎么选的?对应硬件的网口

breeze303 commented 9 months ago

f19abbb4f4837c0f752d0ce547fb5c16 m2也有了ax18应该也可以了

pexcn commented 9 months ago

都有现成的,可以直接用 https://github.com/kiddin9/OpenWrt_x86-r2s-r4s-r5s-N1/blob/master/devices/qualcommax_ipq60xx/diy/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-cmiot.dtsi

breeze303 commented 9 months ago

都有现成的,可以直接用 https://github.com/kiddin9/OpenWrt_x86-r2s-r4s-r5s-N1/blob/master/devices/qualcommax_ipq60xx/diy/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-cmiot.dtsi

它这个没有nss

breeze303 commented 9 months ago

image 请教下这里在源码哪里修改

pexcn commented 9 months ago

NSS 参考 https://github.com/JiaY-shi/openwrt/commit/2f54d5e3c34d2e89710f8cae378153cac149b9bf

第二个应该是opkg,试试全局搜opkg或者distfeeds

breeze303 commented 9 months ago

NSS 参考 JiaY-shi/openwrt@2f54d5e

第二个应该是opkg,试试全局搜opkg或者distfeeds

ok,感谢

pexcn commented 9 months ago

Redmi AX5 supported now, close.

breeze303 commented 8 months ago

请教下内核升级该怎么进行,有相关案例参考吗,感谢

pexcn commented 8 months ago

具体我也不太懂,改版本号之后可能还要刷新补丁。我都是跟随上游的,没有特意去升级

pexcn commented 8 months ago

@breeze303 想问下你的兆能M2那个温控风扇是怎么整的,有这方面的资料吗?