From 94981e618f34b20b4b4efc6787119559fa1b6e36 Mon Sep 17 00:00:00 2001 From: Petr B Date: Sun, 29 Nov 2026 10:52:47 +0000 Subject: [PATCH 1/2] aic8800-openipc: install the selected variant's firmware The driver loads its firmware with plain file opens (the repo builds with CONFIG_USE_FW_REQUEST=n) from aic_fw_path, /lib/firmware by default, appending the variant directory itself, but the package installed only the modules. A board that selects it therefore gets a wlan driver that cannot probe: rwnx_load_firmware fails to open fmacfw_patch_8800dc_h_u02.bin and the USB probe errors out. Install the blobs for a chip variant the board picks in a new Kconfig choice, as atbm-wifi does for its models; fw/ carries four variants totalling 5.5 MB, more than an 8 MB NOR board can spare, so one is shipped. The aic8800DC path is hardware-tested on the Vstarcam C8622 (OpenIPC/builder#278, through the identical hook carried as a device override there): the chip probes, loads fmacfw_patch_8800dc_h_u02.bin and associates. The other three entries install the fw/ directory the driver asks for but have no board to test on yet. --- general/package/aic8800-openipc/Config.in | 26 +++++++++++++++++++ .../aic8800-openipc/aic8800-openipc.mk | 21 +++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/general/package/aic8800-openipc/Config.in b/general/package/aic8800-openipc/Config.in index 762e964878..1dbcc942be 100644 --- a/general/package/aic8800-openipc/Config.in +++ b/general/package/aic8800-openipc/Config.in @@ -3,3 +3,29 @@ config BR2_PACKAGE_AIC8800_OPENIPC depends on BR2_LINUX_KERNEL help AIC8800 wireless driver + + https://github.com/openipc/aic8800 + +if BR2_PACKAGE_AIC8800_OPENIPC + +choice + prompt "Chip variant" + help + The chip on the board; picks which fw/ set is installed. The + four variants total 5.5 MB, too much for an 8 MB NOR board. + +config BR2_PACKAGE_AIC8800_OPENIPC_DC + bool "aic8800DC" + +config BR2_PACKAGE_AIC8800_OPENIPC_D80 + bool "aic8800D80" + +config BR2_PACKAGE_AIC8800_OPENIPC_D80X2 + bool "aic8800D80X2" + +config BR2_PACKAGE_AIC8800_OPENIPC_AIC8800 + bool "aic8800" + +endchoice + +endif diff --git a/general/package/aic8800-openipc/aic8800-openipc.mk b/general/package/aic8800-openipc/aic8800-openipc.mk index 01ae772186..cf6f284b63 100644 --- a/general/package/aic8800-openipc/aic8800-openipc.mk +++ b/general/package/aic8800-openipc/aic8800-openipc.mk @@ -9,5 +9,26 @@ AIC8800_OPENIPC_VERSION = HEAD AIC8800_OPENIPC_LICENSE = GPL-2.0 +# The driver file-opens its firmware (CONFIG_USE_FW_REQUEST=n) from +# aic_fw_path, /lib/firmware by default, appending the variant directory +# itself, so the blobs must ship in the rootfs or the USB probe fails. +ifeq ($(BR2_PACKAGE_AIC8800_OPENIPC_DC),y) +AIC8800_OPENIPC_FW_DIR = aic8800DC +else ifeq ($(BR2_PACKAGE_AIC8800_OPENIPC_D80),y) +AIC8800_OPENIPC_FW_DIR = aic8800D80 +else ifeq ($(BR2_PACKAGE_AIC8800_OPENIPC_D80X2),y) +AIC8800_OPENIPC_FW_DIR = aic8800D80X2 +else ifeq ($(BR2_PACKAGE_AIC8800_OPENIPC_AIC8800),y) +AIC8800_OPENIPC_FW_DIR = aic8800 +endif + +ifneq ($(AIC8800_OPENIPC_FW_DIR),) +define AIC8800_OPENIPC_INSTALL_FW + $(INSTALL) -d -m 0755 $(TARGET_DIR)/lib/firmware/$(AIC8800_OPENIPC_FW_DIR) + $(INSTALL) -m 0644 $(@D)/fw/$(AIC8800_OPENIPC_FW_DIR)/* $(TARGET_DIR)/lib/firmware/$(AIC8800_OPENIPC_FW_DIR)/ +endef +AIC8800_OPENIPC_POST_INSTALL_TARGET_HOOKS += AIC8800_OPENIPC_INSTALL_FW +endif + $(eval $(kernel-module)) $(eval $(generic-package)) From 481fdb5f00edc6201749ce0bc2283f5f2627d6c7 Mon Sep 17 00:00:00 2001 From: Petr B Date: Sun, 29 Nov 2026 15:19:45 +0000 Subject: [PATCH 2/2] aic8800-openipc: pin the source tarball to a full SHA HEAD makes the tarball unfetchable to reproduce and rebuilds can silently pick up a moved master. Pin to current master 0e218ed. --- general/package/aic8800-openipc/aic8800-openipc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/package/aic8800-openipc/aic8800-openipc.mk b/general/package/aic8800-openipc/aic8800-openipc.mk index cf6f284b63..fa99ef0721 100644 --- a/general/package/aic8800-openipc/aic8800-openipc.mk +++ b/general/package/aic8800-openipc/aic8800-openipc.mk @@ -5,7 +5,7 @@ ################################################################################ AIC8800_OPENIPC_SITE = $(call github,openipc,aic8800,$(AIC8800_OPENIPC_VERSION)) -AIC8800_OPENIPC_VERSION = HEAD +AIC8800_OPENIPC_VERSION = 0e218ed686ee04a3006bb142ca70450dfa72f4d2 AIC8800_OPENIPC_LICENSE = GPL-2.0