mediatek: filogic: add support for ASUS RT-AX52
Hardware
SOC: MediaTek MT7981b RAM: 256MB DDR3 FLASH: 128MB SPI-NAND (Winbond W25N01GV) WIFI: Mediatek MT7981b DBDC 802.11ax 2.4/5 GHz ETH: MediaTek MT7531 Switch UART: 3V3 115200 8N1 (Pinout silkscreened / Do not ocnnect VCC)
Installation -------------------Install openwrt image-------------------------------:
-
Download the OpenWrt initramfs image. Copy the image to a TFTP server reachable at 192.168.1.70/24. Rename the image to rtax52.bin.
-
Connect the PC with TFTP server to the RT-AX52. Set a static ip on the ethernet interface of your PC. (ip address: 192.168.1.70, subnet mask:255.255.255.0) . Conect to the serial console, interrupt the autoboot process by pressing '4' when prompted.
-
Download & Boot the OpenWrt initramfs image.
$ setenv ipaddr 192.168.1.1 $ setenv serverip 192.168.1.70 $ tftpboot 0x46000000 rtax52.bin $ bootm 0x46000000
-
Wait for OpenWrt to boot. Transfer the sysupgrade image to the device using scp and install using sysupgrade.
$ sysupgrade -n <path-to-sysupgrade.bin>
-------Revert to stock asus firmware ---------: 1: Download the rt-ax52 firmware from ASUS official website. Save the firmware to tftp server directory and rename to RT-AX52.trx
2: Connect the PC with TFTP server to the RT-AX52. Set a static ip on the ethernet interface of your PC. (ip address: 192.168.1.70, subnet mask:255.255.255.0)
3: Conect to the serial console, power on again, interrupt the autoboot process by pressing '4' when prompted. $ ubi remove linux $ ubi remove jffs2 $ ubi remove rootfs $ ubi remove rootfs_data $ ubi create linux 0x45fe000 $ reset then the dut will reboot,interrupt the autoboot process by pressing '2' when prompted. 2: Load System code then write to Flash via TFTP. Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N) $: enter y you will see the follow, type enter directly: Input device IP (192.168.1.1) ==: Input server IP (192.168.1.70) ==: Input Linux Kernel filename (RT-AX52.trx) ==:
4: wait for the device run up
Please,
- use your real name for
Signed-off-byline in the commit message- also on the author field (
From:) of the commit
- also on the author field (
- use the target name (
mediatek:) instead of sub-target name for the commit title
see details: https://openwrt.org/submitting-patches#submission_guidelines
Please rebase this on top of main.
Ping @liudongdongdong7397
Ping @Neustradamus , @dangowrt
Please,
use your real name for
Signed-off-byline in the commit message
- also on the author field (
From:) of the commituse the target name (
mediatek:) instead of sub-target name for the commit titlesee details: https://openwrt.org/submitting-patches#submission_guidelines
Thank you, it has been adjusted
@rmilecki is there anything we need to do with this PR?
Please rebase this on top of main.
ping @liudongdongdong7397
it seems @liudongdongdong7397 is offline for a while. Does anybody has right to rebase this PR?
@hauke @tapper82 @remittor @cociweb
it seems @liudongdongdong7397 is offline for a while. Does anybody has right to rebase this PR?
Hello : rebase completed.
i just tested your pr but cannot get the lan ports to work after booting the initramfs. i see the leds light up but no log message about link up in the logs and not dhcp response. even if i configure a static ip on the client i cant ping between devices.
are these changes (33197d22f0045b491ddea580bb2940a730918233, 4387de94454913aa79bb88971eabcf1bfca78141) applied to other asus devices also relevant to this one?
@liudongdongdong7397 i just fixed all the issues i identified and added the changed @dangowrt suggested. lan ports do work now (also the labels are correct). mac addr are identical to vendor except like all the other asus devices the upper bit is also incremented. you can find the changes here: https://github.com/achterin/openwrt/commit/7987750cd4331ef96cf514c3c12f49b6b9d97821
@liudongdongdong7397 i just fixed all the issues i identified and added the changed @dangowrt suggested. lan ports do work now (also the labels are correct). mac addr are identical to vendor except like all the other asus devices the upper bit is also incremented. you can find the changes here: achterin@7987750
Applied changes suggested by @achterin and @dangowrt. Tested, it's ok. Thank you.
@dangowrt anything else missing here to get this into main?
@liudongdongdong7397 have you tried generating asuswrt compatible images? using https://github.com/openwrt/firmware-utils/blob/master/src/asusuimage.c by adapting these changes should be sufficient.
Hi Openwrt community, when can this PR get merged?
Hi Openwrt community, when can this PR get merged?
When its ready and all comments are resolved.
As my pr got merged to @blocktrron 's staging tree, i guess this pr can be closed as well.
Closing.
Merged commit:
- https://github.com/openwrt/openwrt/commit/50d9ca6e5a04724e4263a348bdbe5ff4b1c43998
Linked to:
- https://github.com/openwrt/openwrt/pull/18555
how to revert to stock asus firmware using linux mint? anyone can help me... thank you