Arm64 swconfig failed to configure VLAN
Failed to set attribute: invalid input data or parameter
Kernel version: linux-5.20.26
phenomenon:
root@OpenWrt:/usr/lib# swconfig dev switch0 vlan 2 set ports "1 2 3"
Failed to set attribute: Invalid input data or parameter
Ref:
https://forum.openwrt.org/t/ath79-kernel-5-4-swconfig-libnl-tiny-issue/50689
https://github.com/MartB/openwrt/commit/df051318503ff41c6214fa845e447dcfc5d1a1d8
Reason: The problem with libnl-tiny can be solved by using libnl-3 instead
--- a/package/network/config/swconfig/Makefile
+++ b/package/network/config/swconfig/Makefile
@@ -14,27 +14,26 @@ PKG_MAINTAINER:=Felix Fietkau <[email protected]>
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/kernel.mk
define Package/swconfig
SECTION:=base
CATEGORY:=Base system
- DEPENDS:=+libuci +libnl-tiny
+ DEPENDS:=+libuci +libnl
TITLE:=Switch configuration utility
endef
TARGET_CPPFLAGS := \
-D_GNU_SOURCE \
- -I$(STAGING_DIR)/usr/include/libnl-tiny \
+ -I$(STAGING_DIR)/usr/include/libnl3\
+ -I$(LINUX_DIR)/include \
-I$(PKG_BUILD_DIR) \
- $(TARGET_CPPFLAGS) \
- -I$(LINUX_DIR)/user_headers/include
+ $(TARGET_CPPFLAGS)
define Build/Compile
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
- LIBS="$(TARGET_LDFLAGS) -lnl-tiny -lm -luci -lubox"
+ LIBS="-L$(STAGING_DIR)/usr/lib -lnl-genl-3 -lnl-3 -lm -luci -lubox"
endef
Read More:
- Failed to load unit ‘HGCM’ (VERR_INVALID_PARAMETER)
- VirtualBox Failed to load unit ‘HGCM’ (VERR_INVALID_PARAMETER)
- X Error of failed request: BadWindow (invalid Window parameter)
- seaborn.load_ Data set error urlerror: < urlopen error [winerror 10060] the connection attempt failed because the connecting party did not reply correctly after a period of time or the connected host did not respond
- Spring boot does not take effect when using @ size to verify a single set parameter of the control layer
- How to increase the effect of onchange event after adding readonly attribute to input tag and display time of laydate plug-in
- Edit the file to be edited by GEDIT. After saving, the warning set document metadata failed: setting attribute metadata:: GEDIT position no appears
- Edit the file to be edited by gedit. After saving, a warning of Set document metadata failed: Setting attribute metadata::gedit-position no appears
- module ‘tensorflow_core._api.v2.train’ has no attribute ‘slice_input_producer’
- @Solution to get / set error in eclipse after using data annotation
- How to restrict input field to only input pure numbers in HTML
- [!] Invalid `Podfile` file: syntax error, unexpected end-of-input, expecting keyword_end.
- Solve the problem that data cannot be input in idea console
- Vue element El input search to achieve anti shake @ input event requests frequently
- Visual Studio 2010 compilation error fatal error lnk1123: failed during conversion to coff: solution to invalid or corrupt file
- [Err] ERROR: invalid input syntax for integer: “1.0”
- Idea: server returns invalid timezone. Need to set ‘servertimezone’ property
- Error server returns invalid timezone. Need to set ‘servertimezone’ property
- Image input data check: Nan inf and do not exist
- Top35: pychar reports an error when connecting to MySQL server returns invalid timezone. Need to set ‘servertimezone’ property