OpenWRT on Wavlink WN573HX1 (outdoor AX1800 AP)

Hi,

I have a WN537HX1 here that I'm trying to load OpenWRT on. It seems to be somewhat supported since https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=ab12a01cd78772b4cfc82db7d0002c05dc0f97b5

I'm fairly new to doing these sort of things but am trying to learn more.

I captured the boot log during a normal, factory firmware boot before I did anything, for comparison.

I do get a login prompt with the factory login, but none of the standard defaults work. I tried unpacking the squashfs file, updating the /etc/shadow with a generic hashed root password, and repacking, but that didn't allow login either.

I tried the files available from the OpenWRT image builder first. The "Factory" file wouldn't take until I named it like the firmware upgrade file I downloaded. This wound up in a boot loop "/dev/root: Can't open blockdev" which results in a VFS error and then of course kernel panic.

Booting from the Openwrt kernel image via uboot/tftp I get an accessible system via console, but no wan or ethernet ports are present.

The device is using the MT7621 SOC ethernet port, so I'm not sure why these aren't loading.

I tried compiling my own OpenWRT image from the exact commit that added support, with similar results. I added some utilities, lspci, etc... for troubleshooting here and have the capability to recompile as needed.

Can anyone advise on how to figure out why the ethernet ports are not showing up? Or why the image-builder image failed to even mount root fs?

Factory image boot log https://pastebin.com/raw/hsVWY5v4
Openwrt image boot log https://pastebin.com/raw/7pNRVuhv

All help is greatly appreciated.

Edit: See actual solution in this post OpenWRT on Wavlink WN573HX1 (outdoor AX1800 AP) - #6 by timeport

I marked 123serge123's answer as the solution as without it I wouldn't have gotten on the right track to solve. Didn't feel right marking my own post as the solution.

1 Like

Unsupported spi flash:

[    1.950146] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    1.957290] spi-nor spi0.0: unrecognized JEDEC id bytes: a1 40 18 a1 40 18
[    1.964310] spi-nor: probe of spi0.0 failed with error -2

See this topic

1 Like

Thank you!

I think I can dig enough now to resolve.

Just popped the board out. FM25Q128A https://datasheet.lcsc.com/lcsc/2109132030_FUDAN-MICRO-FM25Q128A-SOB-T-G_C908405.pdf

Now to go figure out how to make a patch.

Based on what I've read so far, I think I need to be in /openwrt/package/boot/uboot-mediatek/patches.

Digging more now.

No. You need to patch kernel. See examples here.
For totally new manufacture XTX Technology (Shenzhen) Limited 479-mtd-spi-nor-add-xtx-xt25f128b.patch

Searched around w/that JEDEC ID and found someone who already wrote a patch for it.

Now just need to learn how to add this in. Will try to create PR to get this into the main branch(if that's the right terminology?) as well.

This works.

I included this in a file "openwrt/target/linux/generic/pending-5.15/489-mtd-spi-nor-add-fudan-fm25qxxx.patch" and recompiled.

The device now boots and works. Thank you for the assistance. I actually used the version a little further down in that thread Hasivo switches - #41 by bevanweiss

Not sure that the name fits conventions though. 4xx is for mtd related patches but I don't know how the sequencing works. Going to learn more now.

Thank you for the assistance!

4 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.