hzyitc / openwrt-redmi-ax3000

Openwrt for Redmi AX3000 / Xiaomi CR880x / Xiaomi CR881x
Other
464 stars 96 forks source link

Compatible with Xiaomi AX3000(ra80)? #2

Open Elkowak opened 1 year ago

Elkowak commented 1 year ago

Hello, is this openwrt build compatible with Xiaomi ax3000 (ra80)? the hardware is much similar, same soc, ram size, flash size...

hzyitc commented 1 year ago

I'm not sure. You can have a try.

Probably, you need to change the dts and the BDF file of WiFi.

BTW, this firmware is still in development. There are lots of problems. For example, due to the small RAM, you probably need to disable 2.4G WiFi to avoid oom.

Elkowak commented 1 year ago

i can live without 2.4g, it's already disabled since all my devices there support 5ghz and there is no benefit using 2.4g.

i think i will need to enable ssh, but i didn't find any way to enable. 802.11ax works on this openwrt build? i heard it has problems on mediatek based xiaomi routers running openwrt

hzyitc commented 1 year ago

I have updated the README. You can try it. This method should work for all xiaomi/redmi router.

Elkowak commented 1 year ago

Flashed on my Xiaomi ax3000 and booted without issues, wifi 5g works only on 80mhz and ethernet thoughput is very low, i have 1gbps internet and cant get more than 300mbps while using openwrt, probably due to missing offloading options. i reverted to xiaomi firmware and will try again another time

hzyitc commented 1 year ago

wifi 5g works only on 80mhz

160mhz should be able to work. You need to set country first. And wait about 3 minutes for radar detection. Then the wifi will appear.

ethernet thoughput is very low

Yes. CPU ethernet has problem. And i didn't add the nss nat support. As you known this router is more like a AP, so i will make wifi well first and then other problems.

daiaji commented 1 year ago

现在当AP用基本上没问题? 然而我现在还在用k2p,令人感慨。

NakanoSanku commented 1 year ago

wifi 5g works only on 80mhz

160mhz should be able to work. You need to set country first. And wait about 3 minutes for radar detection. Then the wifi will appear.

ethernet thoughput is very low

Yes. CPU ethernet has problem. And i didn't add the nss nat support. As you known this router is more like a AP, so i will make wifi well first and then other problems.

I think there's something wrong with your direction,the ax3000 and cr880x hardware are not identical,cr8808 produced in 22 and other cr880x used 2.4g fem of model 7223,ra81 and cr8808 produced in 21 used 2.4g fem from Taiwan.I think this is the core of the problem with 2.4g!

Elkowak commented 1 year ago

Flashed on my Xiaomi ax3000 and booted without issues, wifi 5g works only on 80mhz and ethernet thoughput is very low, i have 1gbps internet and cant get more than 300mbps while using openwrt, probably due to missing offloading options. i reverted to xiaomi firmware and will try again another time

i tried built openwrt from qsdk and the results are promissing, network ethernet is good, nss seems to work, no wifi drivers yet, image

i used some of your commits to adapt qsdk buildroot openwrt-ipq50xx-ipq50xx_32-redmi_ax3000-squashfs-nand-factory.zip

hzyitc commented 1 year ago

I think there's something wrong with your direction,the ax3000 and cr880x hardware are not identical,cr8808 produced in 22 and other cr880x used 2.4g fem of model 7223,ra81 and cr8808 produced in 21 used 2.4g fem from Taiwan.I think this is the core of the problem with 2.4g!

It doesn't matter. This is just a name.

I have tried to use the BDF from the machine, but it still has some problems.

And due to the bad 2.4G environment in my house, it's really hard for me to do more test.

fecent commented 1 year ago

现在当AP用基本上没问题? 我现在还在用k2p,令人感慨。

其实原厂固件当AP也是没问题的,目前固件开发中不稳定,可以刷着尝鲜

cjz9032 commented 1 year ago

may I know what's the final result of it ? Does Xiaomi AX3000 suppoted?

daiaji commented 1 year ago

AX3000的原厂固件无线连接速率非常低。 只有400-500 MBPS。 这合理吗?

iperf3 -c 192.168.31.161
Connecting to host 192.168.31.161, port 5201
[  5] local 192.168.31.48 port 56454 connected to 192.168.31.161 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   116 MBytes   973 Mbits/sec    0   1.03 MBytes       
[  5]   1.00-2.00   sec   111 MBytes   933 Mbits/sec    0   1.08 MBytes       
[  5]   2.00-3.00   sec   112 MBytes   944 Mbits/sec    0   1.08 MBytes       
[  5]   3.00-4.00   sec   112 MBytes   944 Mbits/sec    0   1.08 MBytes       
[  5]   4.00-5.00   sec   112 MBytes   944 Mbits/sec    0   1.08 MBytes       
[  5]   5.00-6.00   sec   111 MBytes   933 Mbits/sec    0   1.08 MBytes       
[  5]   6.00-7.00   sec   112 MBytes   944 Mbits/sec    0   1.08 MBytes       
[  5]   7.00-8.00   sec   112 MBytes   944 Mbits/sec    0   1.08 MBytes       
[  5]   8.00-9.00   sec   112 MBytes   944 Mbits/sec    0   1.08 MBytes       
[  5]   9.00-10.00  sec   112 MBytes   944 Mbits/sec    0   1.08 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   945 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.10 GBytes   941 Mbits/sec                  receiver

iperf Done.

iperf3 -c 192.168.31.69
Connecting to host 192.168.31.69, port 5201
[  5] local 192.168.31.48 port 51214 connected to 192.168.31.69 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  67.5 MBytes   566 Mbits/sec    0    824 KBytes       
[  5]   1.00-2.00   sec  71.2 MBytes   598 Mbits/sec    0    824 KBytes       
[  5]   2.00-3.00   sec  70.0 MBytes   587 Mbits/sec    0    843 KBytes       
[  5]   3.00-4.00   sec  77.5 MBytes   650 Mbits/sec    0   1.00 MBytes       
[  5]   4.00-5.00   sec  67.5 MBytes   566 Mbits/sec    0   1.00 MBytes       
[  5]   5.00-6.00   sec  72.5 MBytes   608 Mbits/sec    0   1.00 MBytes       
[  5]   6.00-7.00   sec  76.2 MBytes   640 Mbits/sec    0   1.00 MBytes       
[  5]   7.00-8.00   sec  75.0 MBytes   629 Mbits/sec    0   1.00 MBytes       
[  5]   8.00-9.00   sec  62.5 MBytes   524 Mbits/sec    0   1.00 MBytes       
[  5]   9.00-10.00  sec  57.5 MBytes   483 Mbits/sec    1   1.00 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   698 MBytes   585 Mbits/sec    1             sender
[  5]   0.00-10.01  sec   696 MBytes   583 Mbits/sec                  receiver

iperf Done.

192.168.31.161是台式机千兆网卡,192.168.31.69是K40。 交换机芯片吞吐量应该没问题,问题在无线。


感觉不太行,我用AX210,连接速度2G。 吞吐量短时间能跑到900M。 大部分时间500-600M。 或许是因为无线环境不太行。 160Mhz开启速率也非常容易掉到1.2G甚至更低。 希望无线环境好的兄弟能测试下。

xmaojian commented 1 year ago

I'm not sure. You can have a try.

Probably, you need to change the dts and the BDF file of WiFi.

BTW, this firmware is still in development. There are lots of problems. For example, due to the small RAM, you probably need to disable 2.4G WiFi to avoid oom.

请问大神,有兴趣适配下中移动RAX3000Q么?硬件配置和红米AX3000一模一样 该型号路由使用目前固件可正常开启SSH,个人是门外汉,只备份了相关分区(一共24个分区,23和24提示系统忙,其余正常备份),如有需要我可提供。

hzyitc commented 1 year ago

有兴趣适配下中移动RAX3000Q么?

请另开一个issue。提供下启动日志和分区表(/proc/mtd)。

以及确保你自己能使用TTL在U-boot下救砖

vamanea commented 1 year ago

For others searching this firmware boots ok on AX3000 RA82 which I think is international version. UART method seems to work, I also used the netmode method(which only works for RA82, from here) with success.

If you wish to add ax3000 RA82 to your supported list, the link to Xiaomi original firmware is this: https://cdn.awsusor1.fds.api.mi-img.com/xiaoqiang/rom/ra82/miwifi_ra82_all_7eb36_1.3.27_INT.bin (taken from here )There is a issue with secure boot in uboot, so I am booting manually at the momement, but all in all it's very promissing.

DoveKi commented 1 year ago

Flashed on my Xiaomi ax3000 and booted without issues, wifi 5g works only on 80mhz and ethernet thoughput is very low, i have 1gbps internet and cant get more than 300mbps while using openwrt, probably due to missing offloading options. i reverted to xiaomi firmware and will try again another time

i tried built openwrt from qsdk and the results are promissing, network ethernet is good, nss seems to work, no wifi drivers yet, image

i used some of your commits to adapt qsdk buildroot openwrt-ipq50xx-ipq50xx_32-redmi_ax3000-squashfs-nand-factory.zip

Do you test qsdk open ath11k drivers? https://insidelinuxdev.net/article/a0dovj.html

dandek01 commented 6 months ago

Hi, I successfully managed to convert AX3000 RA80 to openwrt using this firmware. Brief instructions are available on this link

eeddww commented 3 months ago

Hi, I successfully managed to convert AX3000 RA80 to openwrt using this firmware. Brief instructions are available on this link

Hi, how does it perform? Is it good? Did you fix the 5ghz? Thinking of using this firmware on both my ra80 and ra81

htbuddha commented 3 weeks ago

Hi, I successfully managed to convert AX3000 RA80 to openwrt using this firmware. Brief instructions are available on this link

How does it perform wirelessly?