OpenWrt support for Linksys MX4200

@lytr how did you get the BDFs from stock fw

Just extracted from OEM firmware. You can use e.g. unblob for this.

2 Likes

Openwrt 23.05 sysupgrade and Factory

1 Like

Could you share on your repo the work that you did for 23.05? I'd like to build it for v2

Will do when I can, apologies for the delay in response

@lytr yeah its not working for me cant seem to extract stock fw

(Edit: fixed it and i got a dump)

@SpectreDev @MrAlex94 Can you tell me at what address on the devinfo partition the MAC address on your devices starts?

You can check this with hexdump -C /dev/mtd20.

Alright one sec

its at 00000060

00000060  0a 68 77 5f 6d 61 63 5f  61 64 64 72 3d 44 38 3a  |.hw_mac_addr=D8:|
00000070  45 43 3a 35 45 3a 37 32  3a 30 37 3a 39 32 0a 77  |##:##:##:##:92.w|

Thanks. It's 0x6d.
On some Linksys devices (@innovara has such a device), a different MAC address is configured on this partition than in the WiFi calibration data and u-boot env.
It is possible to read the MAC address from this partition in DTS but only from a specific address. But it looks like this address is not permanent.

1 Like

Hw_mac_address is a variable stored along many others and you can obtain and set the mac address in 02_network as follows:

hw_mac_addr=$(mtd_get_mac_ascii <insert label of mtd#> hw_mac_addr)
ucidef_set_interface_macaddr "lan" "$hw_mac_addr"

Yes I know. It would be better to set it from DTS, but it is currently not possible.

We're now official

4 Likes

Thanks, don't bother with this. I don't need it any more. I wanted to install strongswan which has a lot of kernel dependencies and that is a problem when running custom builds or even daily builds, but I've overcome the problem building a ton of packages and setting up my own opkg repository. It's actually the better solution because I can run the latest version of OpenWrt and the packages.

Congratulations to you and all the others involved in making it happen. It's being a piece of work and you should be proud of the outcome.

Thanks for your nice words :slight_smile:

Well done to all the contributors who have put in the hard work on this. I have been following this thread for a while, as a "novice" alot of the more technical details have gone over my head.

However is the MX4200 now ready for installing Openwrt and daily use? Are wifi speeds still an issue?

Also if anyone can point me in the direction of installing on an isp locked MX4200 I would be very grateful. I don't have any option to upload the squash-factory image via the GUI on my device that I can see.

Thanks again to all you awesome people!

its daily driveable, as for wifi speeds those are expected numbers, since there is no nss offloading, the guide is available on the github commit

Thank you for the tips. I have seen the install guide on github commit. Web UI - http://192.168.1.1/ca or http://10.65.1.1/ca returns a 404 error for me. Wasn't sure if i needed to open the router to get a serial console or some how flash a stock linksys img first?