Pass only half of the size of u_env mtd to ubootenv_add_uci_config (not sure why but ea8300 and mr8300 cases do that and it works for them).
Don't patch back out mr8300 support (should help with cleaner rebase in the future).
Drop the 4.19 bits and move dts from files-5.4 back to files (not 100% sure about this move but it looks like the old target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-whw03v2.dts got grandfathered in from whw03v1).
An image built from this branch yields exact same outcome as before: device won't boot.
No clue, but MR8300 might have a different partition scheme.
Some leftovers from various tests/merge I guess.
This is inherited from when there were two major kernel version, might need to check what master branch is doing.
Been comparing the DTS file from Linksys GPL to the one I have on my github.
Indeed there are only two versions specified, and there are subtle changes between the two.
Factory image passes the MTD partition scheme as a boot parameter, whereas I decided to use fixed-partitions instead.
However, factory image defines a QPIC NAND at address 0x7980000 which I cannot find on the default DTSi for IPQ4019. -- it actually seems there is a double mapping, as it defines two sets of addresses, 0x7980000 and 0x07984000, the latter being mapped to QPIC BAM on the default DTSi; and if we look further, it defines a UART on the same address on an intermediate DTSi to just disabled it on the DTS and enable NAND.
I've built a new test version, whose only changes is to load partitions when the NAND chip m25p80 is defined instead of at the QPIC NAND level.
Don't have much expectations that it'll work, but you can get it form github.
Yes, this new version didn't make a difference, still won't boot. FWIW I'm pretty sure the partition layout is not the problem here, what you have in DTS matches what I see in sysinfo.cgi.
While poking around the patches included in Linksys GPL release, I found one patch for u-boot that isn't a backport of an upstream bugfix and seems Linksys specific: 200-linksys_find-mtd-part-num.patch. Did you see it? I don't know u-boot enough to understand the context of why it's doing this, but it replaces a static #define that defaults to /dev/mtd1 with a dynamic lookup of the "u_env" partition by name in /proc/mtd. I am probably missing something in DTS that makes this hack unnecessary, because MR8300 also has u_env in a different partition than /dev/mtd1 and OpenWrt that doesn't include this patch boots fine.
If it's not bad boot configuration, might be a kernel panic because of a missing or buggy driver. No way to confirm that theory without serial access, but maybe you could cut down the DTS just to the bare minimum required to boot the system with just the Ethernet and no other hardware enabled?
Would it be possible to use the Linksys supplied 3.14.77 kernel source combined with OpenWRT userland ? How much do OpenWRT's features depend on changes made to the kernel since the Linksys code release ?
Just a quick update: I am currently working in migrating to the next stable release, 21.02; and resolving a WiFi performance issue detected.
V2 will be the first one to have a new build, and then I'll ask for help to test V1 as I only have 1 working device.
Benchmarking shows improvements as well, but user feedback is important.
Do make a backup of your current partitions before updating/installing.
Note: if possible do a fresh install from factory firmware.
Otherwise, pull the latest linksys.sh upgrade file from the same release tag and replace on the current version.
I really appreciate your efforts on making OpenWRT work for this device.
I recently got your latest build flashed onto 2 of my WHW03 V1 nodes. Just wanted to mention a few issues I'm seeing on my units.
Radio0 seems broken and does not seem to be communicating at al. Host or client mode.
Devices connected to either radio1 or 2 do not seem to be able to get a ipv4 address. ipv6 seens to work.
Network forwarding between WAN firewall and LAN firewall thus devices on LAN are not getting network to the outside world.
It seems like the power output from the radios are low. I am comparing it to my 1 factory flashed node which seems to have at least 3x the range.
I have tried a factory reset and reflashed the latest build on your github (0.0.4.1). Same results
The DHCP server that im trying to use is hosted on my network gateway and not the nodes. But I have tried the node's DHCP server as well and still not working.
The radio0 is showing up as active but it isnt broadcasting any signal nor does it see any other wifi signal in the area.
would it be possible to use the WHW03_V1 Image for the WHW01_V1 as well?
I have some WHW03 as well as WHW01 and would like to use OpenWRT on all of them.
I have flashed one of my WHW03_V1 with your image and it's working fine except the WiFi range and Radio 0 as mentioned before. The range is far less than stock Firmware and radio 0 is not active. Is there anything I could tweak to improve it?