OpenWrt support for Linksys MX4200

It's not fully ready yet, updating decided to die

Ah, understood. Here's the kernel log if it's of any help.

Can you try running sysupgrade and see if that works

LuCI → System → Backup / Flash Firmware → Actions: Flash new firmware image is the same thing, right? If so, I have already done that with the image I built.

Yep do it again and see if it boots

As for radio not being detected it's because it didn't add the WiFi board file

It does boot OK. Although it needs a restart after being upgraded or the device connected via ethernet starts self assigning an IP.

Is it not adding the WiFi board files a build issue?

Hmm I'll need to look into WiFi board, but can you send a log right now

Yours is a V1 right?

Sure, here it is after a sysupgrade, just after boot.

And yes, V1.

Oh and FWIW, the contents of /{lib,lib64}/firmware/IPQ8074:

Notice.txt   m3_fw.b01    m3_fw.flist  q6_fw.b00    q6_fw.b02    q6_fw.b04    q6_fw.b07    q6_fw.flist
m3_fw.b00    m3_fw.b02    m3_fw.mdt    q6_fw.b01    q6_fw.b03    q6_fw.b05    q6_fw.b08    q6_fw.mdt

Yeah you haven't actually updated, you're still on the previous partition

Reboot one more time and see if it boots

Here you go.

Yeah you're still on old partition

I've fixed it, it should now add the WiFi board, clone and build again

Seem to be hitting a build error?

aarch64-openwrt-linux-musl-cpp -nostdinc -x assembler-with-cpp  -I/home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts -I/home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts/include -I/home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/include/ -undef -D__DTS__  -o /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/image-ipq8174-mx4200.dtb.tmp /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts/qcom/ipq8174-mx4200.dts
cc1: fatal error: /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts/qcom/ipq8174-mx4200.dts: No such file or directory
compilation terminated.
make[5]: *** [Makefile:17: /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/image-ipq8174-mx4200.dtb] Error 1
make[5]: Leaving directory '/home/alex/openwrt/target/linux/qualcommax/image'
make[4]: *** [Makefile:21: install] Error 2
make[4]: Leaving directory '/home/alex/openwrt/target/linux/qualcommax'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/alex/openwrt/target/linux'
time: target/linux/install#28.66#5.18#32.85
    ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:30: target/linux/install] Error 1
make[2]: Leaving directory '/home/alex/openwrt'
make[1]: *** [target/Makefile:24: /home/alex/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/alex/openwrt'
make: *** [/home/alex/openwrt/include/toplevel.mk:232: world] Error 2

Ah jeez, I've adjusted the wrong thing, I'll have to do it when I get back home In about 8hrs

1 Like

try now should build and work now

aarch64-openwrt-linux-musl-cpp -nostdinc -x assembler-with-cpp  -I/home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts -I/home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts/include -I/home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/include/ -undef -D__DTS__  -o /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/image--mx4200v2.dtb.tmp /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts/qcom/-mx4200v2.dts
cc1: fatal error: /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.52/arch/arm64/boot/dts/qcom/-mx4200v2.dts: No such file or directory
compilation terminated.
make[5]: *** [Makefile:17: /home/alex/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/image--mx4200v2.dtb] Error 1
make[5]: Leaving directory '/home/alex/openwrt/target/linux/qualcommax/image'
make[4]: *** [Makefile:21: install] Error 2
make[4]: Leaving directory '/home/alex/openwrt/target/linux/qualcommax'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/alex/openwrt/target/linux'
time: target/linux/install#28.24#5.31#32.59
    ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:30: target/linux/install] Error 1
make[2]: Leaving directory '/home/alex/openwrt'
make[1]: *** [target/Makefile:24: /home/alex/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/alex/openwrt'
make: *** [/home/alex/openwrt/include/toplevel.mk:232: world] Error 2

Is the build error now. Weirdly, when selecting the target, MX4200v2 shows as just v2.

I'll fix it when I get back

1 Like