Adding support for linksys MR7500

@sppmaster Many thanks. It seems the DTS file for the MR7500 already has this set anyway. https://github.com/openwrt/openwrt/blob/main/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-mr7500.dts

firmware-name = "marvell/AQR114C.cld";

@pppig236 Thanks, I'll try that and see what happens!

Seems like those instructions don't quite work, seeing a write error:

root@OpenWrt:/tmp# flash_erase /dev/mtd15 0 0
Erasing 8192 Kibyte @ 0 -- 100 % complete 
root@OpenWrt:/tmp# nandwrite -p /dev/mtd15 openwrt-10312981ba2c-qualcommax-ipq60xx-linksys_mr7500-squashfs-factory.bin
Image 20973568 bytes, NAND page 2048 bytes, OOB area 128 bytes, device size 8388608 bytes
nandwrite: error!: Input file does not fit into device
           error 0 (No error information)
nandwrite: error!: Data was only partially written due to error
           error 0 (No error information)

And trying the other command:

root@OpenWrt:/tmp# mtd -r -e alt_kernel -n write openwrt-10312981ba2c-qualcommax-ipq60xx-linksys_mr7500-squashfs-factory.bin alt_kernel
Unlocking alt_kernel ...
Erasing alt_kernel ...

Writing from openwrt-10312981ba2c-qualcommax-ipq60xx-linksys_mr7500-squashfs-factory.bin to alt_kernel ...  [w]Error writing image.

ur following the wrong one… thats for running from stock.

here, first check which boot_part you are on fw_printenv -n boot_part, then if ur on 1 do alt_, otherwise no alt:

Sorry, see above. I also ran that command, which also has a write error.

sry, re-read my updated reply

also, u can just run a sysupgrade and it should also write to the second part automatically, idk why u didnt go for that in the first place

Yeah, still getting a write error

root@OpenWrt:/tmp# mtd -r -e alt_kernel -n write openwrt-qualcommax-ipq60xx-linksys_mr7500-squashfs-factory.bin alt_kernel
Unlocking alt_kernel ...
Erasing alt_kernel ...

Writing from openwrt-qualcommax-ipq60xx-linksys_mr7500-squashfs-factory.bin to alt_kernel ...  [w]Error writing image.

I did actually do a sysupgrade which is what caused the other partition to brick as I think it did a sysupgrade over the stock Linksys firmware rather than the OpenWRT partition which it was running on.

am i tripping or what, u still did alt kernel, did u verify the boot_part?

Yes, boot_part is currently 1

root@OpenWrt:/tmp# fw_printenv -n boot_part
1

And i'm trying to unbrick partition 2, which would be alt_kernel. The current OpenWRT partition, 1, is working okay.

interesting, its prolly related to this:

I just went through this on my MR7500. I also didn't have a functional WAN interface and my other partition was corrupted (I originally flashed with the firmware from the openwrt firmware picker site). Sysupgrade was also not working at all. So, I pulled the factory wrt firmware from the repo that @pppig236 provides for us and used HxD to seperate the kernel and rootfs into 2 separate .bin files. Then I used mtd to write both to their respective MTD partitions. In my case the "working" image was on the alt partitions so I erased/wrote to kernel and rootfs.

I still need to configure all my interfaces and whatnot to make sure it 100% works as expected, but it does boot and it's not complaining about aquantia not being loaded

You're amazing, thank you!!!

I've just tried that method myself and it's unbricked my 2nd partition, so at least both partitions are working again.

It'd be great if we can work out how to get the WAN port working on the stock firmware as my network relies on some packages that aren't available in the NSS build, but I may leave it on the NSS build for now as it's at least working on both partitions

I wonder if using the kernel from the NSS build and the rootfs from the stock firmware would get you there. It'd be very Frakenstein's monster and alot of maintenance with very custom updates, but could be testable since there are 2 boot partitions.

pppig236, can we expect a new NSS build and possible one with mesh11sd incorperated?

(the mesh11sd is available but the Vlanx is missing repos)

The current NSS build makes it impossible for me to add plugins (if supported) and runs at 95% memory.

Still very stable so only a mesh capable of mixing wifi and ethernet nodes would be nice.

Currently i am running one 802S set and the other 2 nodes as dumb ap’s .

Would be nice like batman to mix wireless and ethernet nodes.

How do you do that process on HxD for which i'm not familiar with it.

Open the .bin file in HxD, then go to Edit > Select block..., set Start-offset to 0 and End-offset to 7FFFFF, then right click and copy, then File>New, then right click and paste and ok. Save it as imagename-kernel.bin so you remember it. Then do that whole process again, but set the Start-offset to 800000 and the End-offset to whatever the last block is and save it to imagename-rootfs.bin. Hope that makes some sort of sense

1 Like

Totally off topic but for all those trying to use Vlans and use the bridge filter option in a NSS build:

IT DOES NOT WORK!

The NSS builds have no support for vlan filtering.

https://www.reddit.com/r/openwrt/comments/1i02efy/problem_creating_vlans_with_bridge_vlan_filtering/

Hi, I was attempting to get the Wan port on my Unit running and managed to wipe the firmware for the WAN. Does anyone have a copy of MTD9 that they would be willing to share with me?

Unfortunately, the firmware for these routers is loaded from the main partition (not the internal memory of the phy chip), and the firmware loading routine is broken on the official builds.

Using the NSS build is the only way to have a working WAN port at the moment until a fix is found.

I will switch to the NSS build but I still need a copy of that partition as I override it and did not back it up. Are you able to provide a copy of it? I override it from the bootloader via the serial port.