From dd4b05ee8a6a80ddf4e0ed188234fa04d841867c Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 14 Sep 2024 19:10:10 +0200 Subject: [PATCH 1/2] ipq40xx: add PoE passthrough GPIO Add the GPIO pin of the PoE passthrough switch on the Aruba AP-303H. Power is activated when the pin is low. It enables a PSE chip, so power is only supplied to downstream devices when they are 802.3af/at compliant devices. Ensure you use a sufficient power supply when chaining a consuming device after the AP. Signed-off-by: David Bauer (cherry picked from commit b40cc46cc882ff97f2752e7837173ffc9f884eb9) --- target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches b/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches index 2035d84993b7d..f57d4c5888881 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches @@ -6,6 +6,9 @@ board_config_update board=$(board_name) case "$board" in +aruba,ap-303h) + ucidef_add_gpio_switch "poe_passtrough" "POE passtrough disable" "546" "1" + ;; cellc,rtl30vw) ucidef_add_gpio_switch "w_disable" "W_DISABLE mPCIE pin" "398" "1" ucidef_add_gpio_switch "pmd_resin_n" "PMD_RESIN_N pin" "399" "1" From 66055df3e0d8624587637f7a53285e6934008c54 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 20 Sep 2024 11:23:24 +0200 Subject: [PATCH 2/2] ucode: another fix for host installation The previous host installation fix accidentally moved the rpath settings out of CMAKE_HOST_OPTIONS and into CMAKE_OPTIONS. Fixes: ae42ecaad4e7 ("ucode: fix host installation") Signed-off-by: Felix Fietkau (cherry picked from commit 2ee1392e094f9b6fdb2a759e2e29fa203b61e066) --- package/utils/ucode/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/utils/ucode/Makefile b/package/utils/ucode/Makefile index 7fc5e9b071364..b00dcf7572279 100644 --- a/package/utils/ucode/Makefile +++ b/package/utils/ucode/Makefile @@ -26,7 +26,9 @@ include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/cmake.mk CMAKE_OPTIONS += \ - -DSOVERSION=$(PKG_ABI_VERSION) \ + -DSOVERSION=$(PKG_ABI_VERSION) + +CMAKE_HOST_OPTIONS += \ -DCMAKE_SKIP_RPATH=FALSE \ -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOSTPKG}/lib"