openwrt icon indicating copy to clipboard operation
openwrt copied to clipboard

mediatek: filogic: add support for ASUS RT-AX52

Open liudongdongdong7397 opened this issue 2 years ago • 5 comments

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-------------------------------:

  1. 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.

  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) . Conect to the serial console, interrupt the autoboot process by pressing '4' when prompted.

  3. Download & Boot the OpenWrt initramfs image.

    $ setenv ipaddr 192.168.1.1 $ setenv serverip 192.168.1.70 $ tftpboot 0x46000000 rtax52.bin $ bootm 0x46000000

  4. 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

liudongdongdong7397 avatar Dec 12 '23 09:12 liudongdongdong7397

Please,

  • use your real name for Signed-off-by line in the commit message
  • use the target name (mediatek: ) instead of sub-target name for the commit title

see details: https://openwrt.org/submitting-patches#submission_guidelines

musashino205 avatar Dec 13 '23 10:12 musashino205

Please rebase this on top of main.

hauke avatar Jan 06 '24 17:01 hauke

Ping @liudongdongdong7397

tapper82 avatar Aug 06 '24 08:08 tapper82

Ping @Neustradamus , @dangowrt

remittor avatar Sep 09 '24 12:09 remittor

Please,

  • use your real name for Signed-off-by line in the commit message

  • use the target name (mediatek: ) instead of sub-target name for the commit title

see details: https://openwrt.org/submitting-patches#submission_guidelines

Thank you, it has been adjusted

liudongdongdong7397 avatar Oct 22 '24 10:10 liudongdongdong7397

@rmilecki is there anything we need to do with this PR?

cociweb avatar Jan 20 '25 11:01 cociweb

Please rebase this on top of main.

hauke avatar Jan 20 '25 22:01 hauke

ping @liudongdongdong7397

cociweb avatar Jan 24 '25 21:01 cociweb

it seems @liudongdongdong7397 is offline for a while. Does anybody has right to rebase this PR?

cociweb avatar Feb 02 '25 19:02 cociweb

@hauke @tapper82 @remittor @cociweb

it seems @liudongdongdong7397 is offline for a while. Does anybody has right to rebase this PR?

Hello : rebase completed.

liudongdongdong7397 avatar Mar 20 '25 01:03 liudongdongdong7397

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.

achterin avatar Mar 23 '25 13:03 achterin

are these changes (33197d22f0045b491ddea580bb2940a730918233, 4387de94454913aa79bb88971eabcf1bfca78141) applied to other asus devices also relevant to this one?

achterin avatar Mar 23 '25 13:03 achterin

@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

achterin avatar Mar 24 '25 22:03 achterin

@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.

liudongdongdong7397 avatar Mar 26 '25 02:03 liudongdongdong7397

@dangowrt anything else missing here to get this into main?

achterin avatar Apr 03 '25 06:04 achterin

@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.

achterin avatar Apr 06 '25 21:04 achterin

Hi Openwrt community, when can this PR get merged?

Pterosaur avatar Apr 21 '25 09:04 Pterosaur

Hi Openwrt community, when can this PR get merged?

When its ready and all comments are resolved.

achterin avatar Apr 21 '25 13:04 achterin

As my pr got merged to @blocktrron 's staging tree, i guess this pr can be closed as well.

achterin avatar Apr 24 '25 13:04 achterin

Closing.

blocktrron avatar Apr 25 '25 15:04 blocktrron

Merged commit:

  • https://github.com/openwrt/openwrt/commit/50d9ca6e5a04724e4263a348bdbe5ff4b1c43998

Linked to:

  • https://github.com/openwrt/openwrt/pull/18555

Neustradamus avatar Apr 25 '25 20:04 Neustradamus

how to revert to stock asus firmware using linux mint? anyone can help me... thank you

jvdar1981 avatar Sep 06 '25 04:09 jvdar1981