Repository navigation
ipq40xx: convert Aruba AP-303H to DSA and enable target again - #11579
Conversation
|
@PolynomialDivision aware of any tester ? |
Yes, see #4721 (comment) :) |
|
@JJWatMyself can we continue the support discussion here? |
|
From what I can tell I will need to create an environment to do the build in order to then load for testing. That might take some time, but it appears to be a well documented 'how-to'. |
|
Alternative is ask for an initranfs and just test that. Should be safe
enough
Il Mer 21 Dic 2022, 17:01 JJWatMyself ***@***.***> ha scritto:
… From what I can tell I will need to create an environment to do the build
in order to then load for testing. That might take some time, but it
appears to be a well documented 'how-to'.
—
Reply to this email directly, view it on GitHub
<#11579 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE2ZMQT6XJQ6ZZV2C2VO33LWOMSURANCNFSM6AAAAAATFNJWOY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Yes please. :) |
|
I have the device here and can test. How do we make the switch config? The device has 4 ports labeled from E0-E3. |
|
With stock firmware: eth0 is enet0 PoE+ (uplink) From regular OpenWRT firmware 22.03, it is reversed. eth0 has the three lan ports (2 3 4) In addition, regular 22.03, eth1 shows as an Ethernet Switch where-as eth0 shows as an Ethernet Adapter, which I think is backwards on OpenWrt to where the ports are connected. Everything falls apart when you try to put everything onto a single native VLAN (untagged) let alone do anything with 802.1q I don't have a file to test this pull yet and would be happy to do so when I am free. |
|
on regular 22.03, I also noticed that factory reset discrepancy in /etc/config/networks before and after changes in LuCi config switch_vlan config switch_vlan But LuCI will complain about can't have two VLANs untagged on CPU. The format will then update if you 'fix' in LuCi config switch_vlan config switch_vlan |
|
Worth to report on the mailing list
Some fix to do on uci-defaults
Il Mer 21 Dic 2022, 18:33 JJWatMyself ***@***.***> ha scritto:
… on regular 22.03, I also noticed that factory reset discrepancy in
/etc/config/networks before and after changes in LuCi
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 0'
...
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0'
...
But LuCI will complain about can't have two VLANs untagged on CPU. The
format will then update if you 'fix' in LuCi
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 0t 2 3 4'
...
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 0t 5'
...
—
Reply to this email directly, view it on GitHub
<#11579 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE2ZMQTJMGEZT5HFZWUENATWOM5N5ANCNFSM6AAAAAATFNJWOY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
To focus on this PR to reenable the AP-303H. I would suggest that the labels of lan1 and lan3 are swapped. If the device is then also added back into the 02_network, this PR is ok for me. Maybe you can get rid of lan4. |
|
@bdobe Is there a file I can download to test DSA? I'd like to see if this changes the problem adding interfaces to a bridge on the 303H. At present it's basically equivalent to a creating a network loop and starts to take down the network that the AP is connected to. I can add one or the other eth0 or eth1 (or some variation, e.g. 802.1q sub-interfaces). That will determine which interface(s) can ping the bridge IP address (management IP). Would be great to be able to bridge at the physical port level and not the CPU end of the ethernet. |
|
@JJWatMyself You can find the image of the version I am currently testing here. |
e6602ab to
18a72d6
Compare
|
@bdobe Can you have a look again? I deleted the labels and added it back to 02_network. |
Perfect and thank you @bdobe I read upgrade message (crazy concept reading the screen messages) and it is loading now. |
|
@PolynomialDivision Thanks for the quick response. The AP has no lan4. So the AP should be in the group for ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan" I have solved the switch config in this way: (removed &swport1) &switch { &swport2 { }; &swport3 { }; &swport4 { }; &swport5 { }; |
18a72d6 to
4f3a70e
Compare
|
@bdobe Thanks. Updated the PR again. However, I still pushed it without labels. Does it now work? |
}; Excuse my noob question... lan0 (or wan0) is not an option for the name? The physical label on the case is e0 e1 e2 e3. |
It is an option. I did not know that. Are those all normal "lan-ports" or can one port be seen somehow as a wan port? |
|
The ports thing is always a long discussion. Theoretically, this is an AP and not a router. In the manufacturer firmware, all ports are LAN ports. I would like to leave the port assignment as it is in the current OpenWRT release. (E0 wan, E1-E3 Lan) |
Without the labels, it doesn't work well. Then the numbering of the ports are shifted by 1 again. |
|
External device labels: But for the CLI config they are referenced as E0 = ENET0 (eth0) OpenWRT without DSA had eth0 and eth1 backwards to stock firmware. In all cases E0 would be the uplink due to it being where it will be powered and then you have those additional wired ports for additional wired devices. It's an AP for sure, but has 'features' be be able to act as an ISP router as well as with USB LTE modem support if you want. Challenge with E0 being WAN on openwrt, is that you connect to E0 to your PoE source and flash OpenWRT and you can't actually do anything, until you connect to E1, E2, or E3, where you'll then have your access to the LAN zone. I did discover that if I updated the IP address on LuCI, it ended badly, so using vi over console was how I did the re-ip so far. There are often going to be additional steps to de-configure WAN and add to the bridge. And here is the network loop issue when adding the WAN port to the bridge. Console is where I took this screen snip. Understanding this is not what this pull request for DSA is, but confirming the behavior is still there. I didn't add any VLAN configuration yet to test that. |
|
I cannot reproduce this error. I have deleted the wan/wan6 interface. (or removed the switch port "wan" from the wan/wan6 interface) I then added the switchport "wan" to the lan bridge. VLAN tagging also works. The only thing I'm noticing right now is that with Luci there is problem to set the IP address from static to dhcp on br-lan. |
Happy to. John Walshaw [email protected] |
|
Technically in stock they are enet0 through enet3 |
|
After all, we are doing a migration of an already supported device. The decision that the AP should have a WAN interface was already made during the original implementation. Otherwise, I personally find it better to have the interface labels within OpenWRT uniform and not always use the labels on the device. I find this also makes it easier to work with the general OpenWRT documentation. |
|
@PolynomialDivision Excuse the noob question again, the 'compiled' file you would like me to final test, etc. I literally have no clue on where to get it. :D |
|
@JJWatMyself You could try this image: |
|
Perfect and thank you. I'll test that next. If I understand correctly, the individual testing would need an environment to build it. And if all is good there is a merge and it will become part of the snapshot. Is that correct? |
I built it for you. What do you mean?
Yes. |
Sorry, what I meant to say is if you weren't being so accommodating, I would need an environment to build. Sincere thanks for providing the file. |
|
@PolynomialDivision I tested the file and some issues that prevented me from really making much progress with it and a number of steps backwards. Here are some notes: Using your file, I performed an in place upgrade, from the version @bdobe posted, without reset. The management IP was unreachable. Looking at the /etc/config/network file, was not able to see what the issue was. I did a reset and default config was functional (WAN DHCP client, LAN DHCP server, etc) but LuCi was unreachable (not installed?). I decided to role back to the version that @bdobe had provided. UPDATE: I have deleted the next comments as may have made an error. on the reconfig. If the file from @PolynomialDivision and @bdobe were by chance built differently, perhaps a current file and confirm includes LuCi would be great please. Also, I noticed that there is a difference in file size of the two files posted on this thread thus far. openwrt-ipq40xx-generic-aruba_ap-303h-squashfs-sysupgrade.bin |
|
luci was missing in my build. However, I thought I did the changes @bdobe did? |
@PolynomialDivision My understanding was you were looking at port labels, so it is possible that if that effects mapping, then the /etc/config/network on the @bdobe build would not be transferable to the @PolynomialDivision build. Either way, for the current proposed code, I am happy to test, but need Luci please. I did attempt to install, but it would also fail. |
|
The version I created is identical to the current state of this PR (identical labels). I used the default config plus luci-ssl collection. I have done some sysupgrade test with some common configurations. The config was fully copied for all upgrades. For this I used my build from a few days ago and a new build of this PR from today. |
|
@bdobe If you have an updated file you would like me to test I am happy to do that. If there is another file for me to test, also let me know if you have a preferred sequence of upgrades, etc. e.g. the file from 20221221 (with factory reset due to move to DSA), configure, then a subsequent file. I think move to DSA will always require a config reset as config is non-migratable. |
|
I have updated the files on my file share. The images should differ only minimally. You can also do a sysupgrade to the same firmware file to test the sysupgrade. This also runs through the entire update process. An automatic migration from the old switch config to DSA is not yet available. |
|
@bdobe Perfect and thank you. I will grab those files shortly. |
|
This file openwrt-ipq40xx-generic-aruba_ap-303h-initramfs-fit-uImage.itb there were no no interfaces This file openwrt-ipq40xx-generic-aruba_ap-303h-initramfs-uImage.itb there were interfaces No httpd. :( I then transfer sysupgrade via scp to /tmp but unable to format... but I apply anyway... and then have Luci I run the reset for good measure. :P I am now going to run through some configuration tasks. |
|
Ok, so I have all my config deployed and all is good. With ports on different VLANs and functioning for pure layer 2 features. Note that unique MAC address is required for an interface with an IP address AND is required to be on a 802.1Q sub-interface. If not then you will see the spewing MAC address errors as described on the prior post for the scenario outlined. For people that don't bridge VLANs externally, this will not be an issue. There might be some other scenarios I have not accounted for. However this issue is not specific to this device in my opinion and needs to be thought through more broadly. I think there are two future opportunities here: 1) introduce persistent, unique MAC addresses across all interfaces and interface types that eliminates the majority scenarios for spewing erorrs and crash 2) VLAN 1 should be by default created as an 802.1q sub-interface and untagged across all LAN ports. The config is then prepped for that which might follow. So this is now good to go and additional tests I'll be doing are beyond the scope of DSA in terms of rolling up for nightly snapshots. Disable routing persistently: /etc/config/network |
JJWatMyself
left a comment
There was a problem hiding this comment.
I have tested and am good with this.
87985f9 to
ebc31bc
Compare
|
Thanks. I added now the signed-off of @bdobe and tested-by of @JJWatMyself. |
|
Wonder if this is mergable?
Il Gio 29 Dic 2022, 17:26 Nick Hainke ***@***.***> ha scritto:
… Thanks. I added now the signed-off of @bdobe <https://github.com/bdobe>
and tested-by of @JJWatMyself <https://github.com/JJWatMyself>.
—
Reply to this email directly, view it on GitHub
<#11579 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE2ZMQT45M3F4FISNZRP6GLWPW3TJANCNFSM6AAAAAATFNJWOY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
ebc31bc to
f747d67
Compare
Yes. :) |
The target was disabled since noone did the DSA conversion. Add the conversion and enable it again. Tested-by: John Walshaw <[email protected]> Signed-off-by: Bjoern Dobe <[email protected]> Signed-off-by: Nick Hainke <[email protected]>
f747d67 to
3195a99
Compare
|
I have loaded the sysupgrade from the snapshot from last night and can confirm DSA is live on the AP-303H. Yay! But you will then lose access to the management IP and the firewall needs to be then disabled from the console.
This can be avoided by updating those configurations, but after a subsequent sysupgrade appears the firewall, dnsmasq and dhcp will revert to being enabled. This explains (solves) the issues I had reported after loss of management IP access after applying sysupgrades. /etc/config/firewall You will then need to install luci manually from CLI. |



The target was disabled since noone did the DSA conversion. Add the conversion and enable it again.