From ab2187ead38991f44be9155ef48471486c857c19 Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin <6576495+widgetii@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:09:15 +0300 Subject: [PATCH] XM: optional WLANDEV, for a board whose only network is Wi-Fi OpenIPC brings a radio up only when the U-Boot env names its /etc/wireless profile in wlandev (S40network). The env this script writes has none, so a Wi-Fi-only board moved over -- the GK7201V200 G3-WQ-G (000929QB, an ATBM6012B-X, OpenIPC/firmware#2729) -- would boot with no driver loaded and no way onto the network. WLANDEV= adds wlandev= to the env, as SENSOR adds sensor=. The network itself, wlanssid and wlanpass, is the owner's and is never written here. OpenIPC's fw_printenv finds this env at 0x30000 by its CRC, scanning the partitions in order, so S40network sees it on the fixed-slot and the split layout alike. Unset, the env is byte-identical to before (gk7201v200, 33 variables); set to atbm603x-generic-usb, it gains that one line. --- .github/workflows/_xm2oipc.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/_xm2oipc.sh b/.github/workflows/_xm2oipc.sh index 9c1404a..9d477a5 100755 --- a/.github/workflows/_xm2oipc.sh +++ b/.github/workflows/_xm2oipc.sh @@ -104,6 +104,10 @@ OSMEM="${OSMEM:-32M}" TOTALMEM="${TOTALMEM:-64M}" SOC="${SOC:-hi3516ev200}" [[ ${SENSOR} ]] && SENSOR="sensor=${SENSOR}" +# The /etc/wireless profile that brings up a Wi-Fi-only board's radio +# (S40network loads it when wlandev is set). The network to join, wlanssid +# and wlanpass, is the owner's to set, so it is never written here. +[[ ${WLANDEV} ]] && WLANDEV="wlandev=${WLANDEV}" FLASH_SIZE="${FLASH_SIZE:-0x800000}" @@ -230,6 +234,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -270,6 +275,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -308,6 +314,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -346,6 +353,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -389,6 +397,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -428,6 +437,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -466,6 +476,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -505,6 +516,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -555,6 +567,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -593,6 +606,7 @@ osmem=${OSMEM} totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai @@ -630,6 +644,7 @@ osmem=18M totalmem=${TOTALMEM} soc=${SOC} ${SENSOR} +${WLANDEV} hardware=${HARDWARE} devid=${DEVID} manufacturer=Xiongmai