Skip to content

ipq40xx: convert Aruba AP-303H to DSA and enable target again - #11579

Merged
openwrt-bot merged 1 commit into
openwrt:masterfrom
PolynomialDivision:ipq40xx-aruba-ap303h-dsa
Dec 29, 2022
Merged

openwrt-bot merged 1 commit into
openwrt:masterfrom
PolynomialDivision:ipq40xx-aruba-ap303h-dsa

Conversation

@PolynomialDivision

Copy link
Copy Markdown
Member

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

@github-actions github-actions Bot added kernel pull request/issue with Linux kernel related changes target/ipq40xx pull request/issue for ipq40xx target labels Dec 21, 2022
@Ansuel

Ansuel commented Dec 21, 2022

Copy link
Copy Markdown
Member

@PolynomialDivision aware of any tester ?

@PolynomialDivision

Copy link
Copy Markdown
Member Author

@PolynomialDivision aware of any tester ?

Yes, see #4721 (comment) :)

@Ansuel

Ansuel commented Dec 21, 2022 •

Copy link
Copy Markdown
Member

@JJWatMyself can we continue the support discussion here?

@JJWatMyself

Copy link
Copy Markdown

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'.

@Ansuel

Ansuel commented Dec 21, 2022 via email

Copy link
Copy Markdown
Member

@JJWatMyself

Copy link
Copy Markdown

Yes please. :)

@bdobe

bdobe commented Dec 21, 2022

Copy link
Copy Markdown
Contributor

I have the device here and can test. How do we make the switch config? The device has 4 ports labeled from E0-E3.
If I just saw this correctly, this is currently allocated as follows.
E0 is PoE-in (uplink/wan) swport5
E1 lan3 swport2
E2 lan2 swport3
E3 lan1 PoE-out swport4
That could still be re-sorted.
Except for the missing switch config, the first test looked just fine.

@JJWatMyself

JJWatMyself commented Dec 21, 2022 •

Copy link
Copy Markdown

With stock firmware:

eth0 is enet0 PoE+ (uplink)
eth1 is enet1, enet2, enet3 (downlinks)

From regular OpenWRT firmware 22.03, it is reversed.

eth0 has the three lan ports (2 3 4)
eth1 is the single 'wan' port (5)

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.

@JJWatMyself

Copy link
Copy Markdown

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'
...

@Ansuel

Ansuel commented Dec 21, 2022 via email

Copy link
Copy Markdown
Member

@bdobe

bdobe commented Dec 21, 2022

Copy link
Copy Markdown
Contributor

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.

@JJWatMyself

JJWatMyself commented Dec 21, 2022 •

Copy link
Copy Markdown

@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.

@bdobe

bdobe commented Dec 21, 2022

Copy link
Copy Markdown
Contributor

@JJWatMyself You can find the image of the version I am currently testing here.
https://speicher.hamburg.freifunk.net/d/2ee1fbd4a93d4bea8b14/
As always at your own risk.

@PolynomialDivision PolynomialDivision changed the title [WIP] ipq40xx: convert Aruba AP-303H to DSA and enable target again ipq40xx: convert Aruba AP-303H to DSA and enable target again Dec 21, 2022
@PolynomialDivision
PolynomialDivision marked this pull request as ready for review December 21, 2022 23:04
@PolynomialDivision

Copy link
Copy Markdown
Member Author

@bdobe Can you have a look again? I deleted the labels and added it back to 02_network.

@JJWatMyself

Copy link
Copy Markdown

@JJWatMyself You can find the image of the version I am currently testing here. https://speicher.hamburg.freifunk.net/d/2ee1fbd4a93d4bea8b14/ As always at your own risk.

Perfect and thank you @bdobe I read upgrade message (crazy concept reading the screen messages) and it is loading now.

image

@bdobe

bdobe commented Dec 21, 2022 •

Copy link
Copy Markdown
Contributor

@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 {
status = "okay";
};

&swport2 {
status = "okay";

label = "lan1";

};

&swport3 {
status = "okay";

label = "lan2";

};

&swport4 {
status = "okay";

label = "lan3";

};

&swport5 {
status = "okay";

label = "wan";

};

@PolynomialDivision

Copy link
Copy Markdown
Member Author

@bdobe Thanks. Updated the PR again. However, I still pushed it without labels. Does it now work?

@JJWatMyself

Copy link
Copy Markdown

@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"

};

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.

@PolynomialDivision

Copy link
Copy Markdown
Member Author

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?

@bdobe

bdobe commented Dec 21, 2022

Copy link
Copy Markdown
Contributor

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)

@bdobe

bdobe commented Dec 21, 2022

Copy link
Copy Markdown
Contributor

@bdobe Thanks. Updated the PR again. However, I still pushed it without labels. Does it now work?

Without the labels, it doesn't work well. Then the numbering of the ports are shifted by 1 again.

@JJWatMyself

JJWatMyself commented Dec 22, 2022 •

Copy link
Copy Markdown

External device labels:
E0 (PoE+ uplink) in stock firmware is eth0
E1, E2, E3 (PoE downstream) in the stock firmware is eth1

But for the CLI config they are referenced as

E0 = ENET0 (eth0)
E1 = ENET1 (eth1)
E2 = ENET2 (eth1)
E3 = ENET3 (eth1)

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.

image

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.

@bdobe

bdobe commented Dec 22, 2022

Copy link
Copy Markdown
Contributor

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.

@JJWatMyself

Copy link
Copy Markdown

@JJWatMyself If you test this in the end, I am happy also to give you a Tested-by tag in the commit message if you give me your name and email (of course only if you want).

Happy to.

John Walshaw [email protected]

@JJWatMyself

JJWatMyself commented Dec 24, 2022 •

Copy link
Copy Markdown

Technically in stock they are

enet0 through enet3

@bdobe

bdobe commented Dec 24, 2022 •

Copy link
Copy Markdown
Contributor

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.

@JJWatMyself

Copy link
Copy Markdown

@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

@PolynomialDivision

Copy link
Copy Markdown
Member Author

@JJWatMyself You could try this image:
aruba303h.zip
As always at your own risk.

@JJWatMyself

Copy link
Copy Markdown

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?

@PolynomialDivision

Copy link
Copy Markdown
Member Author

If I understand correctly, the individual testing would need an environment to build it.

I built it for you. What do you mean?

And if all is good there is a merge and it will become part of the snapshot. Is that correct?

Yes.

@JJWatMyself

Copy link
Copy Markdown

If I understand correctly, the individual testing would need an environment to build it.

I built it for you. What do you mean?

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.

@JJWatMyself

JJWatMyself commented Dec 26, 2022 •

Copy link
Copy Markdown

@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
@bdobe 20221221 7232KB
@PolynomialDivision 20221225 6712KB

@PolynomialDivision

Copy link
Copy Markdown
Member Author

luci was missing in my build. However, I thought I did the changes @bdobe did?

@JJWatMyself

Copy link
Copy Markdown

bu

@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.

@bdobe

bdobe commented Dec 28, 2022

Copy link
Copy Markdown
Contributor

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.

@JJWatMyself

Copy link
Copy Markdown

@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.

@bdobe

bdobe commented Dec 28, 2022

Copy link
Copy Markdown
Contributor

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 bdobe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@JJWatMyself

Copy link
Copy Markdown

@bdobe Perfect and thank you. I will grab those files shortly.

@JJWatMyself

Copy link
Copy Markdown

This file openwrt-ipq40xx-generic-aruba_ap-303h-initramfs-fit-uImage.itb there were no no interfaces

Using eth0 device
TFTP from server 192.168.1.131; our IP address is 192.168.1.3
Filename 'ipq40xx.ari'.
Load address: 0x84000000
Loading: T T T #################################################################
         ###############################################
         230.5 KiB/s
done
Bytes transferred = 7138384 (6cec50 hex)
Invalid image format version: 0x6cec50
Uncompressing Kernel Image ... OK
ipq: fdt fixup unable to find compatible node
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.74 (bdb@builder-01) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.3.0 r21042-d4571e98ab) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Oct 27 13:52:02 2022            <---------This looks like is not what I would expect perhaps?
...
[   24.369476] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   24.369552] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[   24.489049] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   24.515460] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[   24.779921] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1
[   24.920445] kmodloader: done loading kernel modules from /etc/modules.d/*
... no more messages

BusyBox v1.35.0 (2022-10-22 22:57:23 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r21112+1-eb456aedfe            <---------This looks like is not what I would expect perhaps?
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:192 errors:0 dropped:0 overruns:0 frame:0
          TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14976 (14.6 KiB)  TX bytes:14976 (14.6 KiB)

This file openwrt-ipq40xx-generic-aruba_ap-303h-initramfs-uImage.itb there were interfaces

Using eth0 device
TFTP from server 192.168.1.131; our IP address is 192.168.1.3
Filename 'ipq40xx.ari'.
Load address: 0x84000000
Loading: T T T T T T #################################################################
         ################################################
         202.1 KiB/s
done
Bytes transferred = 7177220 (6d8404 hex)
Invalid image format version: 0x6d8404
Uncompressing Kernel Image ... OK
ipq: fdt fixup unable to find compatible node
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.84 (bdb@builder-01) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.3.0 r21042-d4571e98ab) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Fri Dec 23 23:56:45 2022            <---------Looks more promising
...
[   75.912792] qca8k-ipq4019 c000000.switch wan: Link is Up - 1Gbps/Full - flow control off
[   75.913366] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   76.023070] qca8k-ipq4019 c000000.switch lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   76.070646] br-lan: port 1(lan1) entered blocking state
[   76.169522] br-lan: port 1(lan1) entered forwarding state
[   76.232629] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready


BusyBox v1.35.0 (2022-12-21 09:34:03 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r21584+1-b2bfea481e            <---------Looks more promising
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# 
root@OpenWrt:/tmp# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 3584      3584         0 100% /rom
tmpfs                   253444      7316    246128   3% /tmp
/dev/ubi0_2              17088        44     16140   0% /overlay
overlayfs:/overlay       17088        44     16140   0% /
tmpfs                      512         0       512   0% /dev

No httpd. :(

I then transfer sysupgrade via scp to /tmp but unable to format... but I apply anyway... and then have Luci

root@OpenWrt:/# ubidetach -p /dev/mtd16
ubidetach: error!: cannot detach "/dev/mtd16"
root@OpenWrt:/# sysupgrade -n /tmp/openwrt-ipq40xx-generic-aruba_ap-303h-squashf
s-sysupgrade.bin
Sun Dec 25 11:24:53 UTC 2022 upgrade: Commencing upgrade. Closing all shell sessions.
[ 2969.116638] device phy1-ap0 left promiscuous mode
[ 2969.117074] br-lan: port 4(phy1-ap0) entered disabled state
Watchdog handover: fd=3
- watchdog -
[ 2969.252438] ath10k_ahb a800000.wifi: mac flush null vif, drop 0 queues 0xffff

[ 2969.426340] device phy0-ap0 left promiscuous mode
[ 2969.426544] br-lan: port 5(phy0-ap0) entered disabled state
[ 2969.512738] ath10k_ahb a000000.wifi: mac flush null vif, drop 0 queues 0xffff
[ 2969.581745] ath10k_ahb a000000.wifi: peer-unmap-event: unknown peer id 0
Sun Dec 25 11:24:54 UTC 2022 upgrade: Sending TERM to remaining processes ...
Sun Dec 25 11:24:58 UTC 2022 upgrade: Sending KILL to remaining processes ...
[ 2979.970569] stage2 (2376): drop_caches: 3
Sun Dec 25 11:25:04 UTC 2022 upgrade: Switching to ramdisk...
[ 2985.738752] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" stops
[ 2985.766767] UBIFS (ubi0:2): un-mount UBI device 0
Sun Dec 25 11:25:10 UTC 2022 upgrade: Performing system upgrade...
verifying sysupgrade tar file integrity
umount: can't unmount /dev/ubiblock0_1: Invalid argument
[ 2986.652206] block ubiblock0_1: released
Volume ID 0, size 26 LEBs (3301376 bytes, 3.1 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "kernel", alignment 1
Volume ID 1, size 33 LEBs (4190208 bytes, 3.9 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 20443136
Volume ID 2, size 161 LEBs (20443136 bytes, 19.4 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp:

...


BusyBox v1.35.0 (2022-12-21 09:34:03 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r21584+1-b2bfea481e
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 4096      4096         0 100% /rom
tmpfs                   253444        72    253372   0% /tmp
/dev/ubi0_2              16628        40     15700   0% /overlay
overlayfs:/overlay       16628        40     15700   0% /
tmpfs                      512         0       512   0% /dev

I run the reset for good measure. :P

root@OpenWrt:/# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/ubi0_2 is mounted as /overlay, only erasing files
root@OpenWrt:/#

I am now going to run through some configuration tasks.

@JJWatMyself

JJWatMyself commented Dec 28, 2022 •

Copy link
Copy Markdown

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/sysctl.conf

# Defaults are configured in /etc/sysctl.d/* and can be customized in this file
net.ipv4.ip_forward=0

/etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd53:befa:5dae::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'wan'
        option ipv6 '0'

config interface 'lan'
        option proto 'static'
        option ipaddr '192.168.1.3'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option device 'br-lan.1'
        option gateway '192.168.1.254'
        list dns '192.168.1.254'
        list dns_search 'your.local.dns.zone.here'

config device
        option type '8021q'
        option ifname 'br-lan'
        option vid '1'
        option name 'br-lan.1'
        option macaddr '20:4C:03:A8:10:F4'
        option ipv6 '0'

config bridge-vlan
        option device 'br-lan'
        option vlan '1'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'wan:u*'

config bridge-vlan
        option device 'br-lan'
        option vlan '3'
        list ports 'wan:t'

config bridge-vlan
        option device 'br-lan'
        option vlan '4'
        list ports 'wan:t'

config bridge-vlan
        option device 'br-lan'
        option vlan '5'
        list ports 'wan:t'

config bridge-vlan
        option device 'br-lan'
        option vlan '11'
        list ports 'wan:t'

config bridge-vlan
        option device 'br-lan'
        option vlan '31'
        list ports 'lan1:u*'
        list ports 'wan:t'

config bridge-vlan
        option device 'br-lan'
        option vlan '32'
        list ports 'lan2:u*'
        list ports 'wan:t'

config bridge-vlan
        option device 'br-lan'
        option vlan '33'
        list ports 'lan3:u*'
        list ports 'wan:t'

config device
        option name 'eth0'
        option ipv6 '0'

config device
        option name 'br-lan.5'
        option type '8021q'
        option ifname 'br-lan'
        option vid '5'
        option ipv6 '0'

config device
        option name 'br-lan.4'
        option type '8021q'
        option ifname 'br-lan'
        option vid '4'
        option ipv6 '0'

config device
        option name 'br-lan.11'
        option type '8021q'
        option ifname 'br-lan'
        option vid '11'
        option ipv6 '0'

config device
        option name 'br-lan.31'
        option type '8021q'
        option ifname 'br-lan'
        option vid '31'
        option ipv6 '0'

config device
        option name 'br-lan.32'
        option type '8021q'
        option ifname 'br-lan'
        option vid '32'
        option ipv6 '0'

config device
        option name 'br-lan.33'
        option type '8021q'
        option ifname 'br-lan'
        option vid '33'
        option ipv6 '0'

config device
        option name 'phy0-ap0'
        option ipv6 '0'

config device
        option name 'phy1-ap0'
        option ipv6 '0'

@JJWatMyself JJWatMyself left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested and am good with this.

@PolynomialDivision

Copy link
Copy Markdown
Member Author

Thanks. I added now the signed-off of @bdobe and tested-by of @JJWatMyself.

@Ansuel

Ansuel commented Dec 29, 2022 via email

Copy link
Copy Markdown
Member

@PolynomialDivision

Copy link
Copy Markdown
Member Author

Wonder if this is mergable?

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]>
@Ansuel
Ansuel force-pushed the ipq40xx-aruba-ap303h-dsa branch from f747d67 to 3195a99 Compare December 29, 2022 16:49
@openwrt-bot
openwrt-bot merged commit 3195a99 into openwrt:master Dec 29, 2022
@JJWatMyself

JJWatMyself commented Dec 30, 2022 •

Copy link
Copy Markdown

I have loaded the sysupgrade from the snapshot from last night and can confirm DSA is live on the AP-303H. Yay!

image

But you will then lose access to the management IP and the firewall needs to be then disabled from the console.

/etc/init.d/firewall stop

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

config defaults
        option output 'ACCEPT'
        option synflood_protect '1'
        option input 'ACCEPT'
        option forward 'ACCEPT'

You will then need to install luci manually from CLI.

opkg update
opkg install luci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel pull request/issue with Linux kernel related changes target/ipq40xx pull request/issue for ipq40xx target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants