feat(hardware): Wi-Fi on Broadcom laptops, driver carried in the image
linux-firmware covers Intel, Atheros, Realtek and the Broadcom FullMAC parts. What it does not cover is Broadcom SoftMAC, BCM4311 through BCM4360, which only the proprietary wl driver drives: neither b43 nor brcmsmac handles them. Those laptops finished the install with no Wi-Fi at all, and therefore no way to download the missing driver. The failure feeds itself. Detection is factual rather than a PCI ID table. Such tables age badly, and Broadcom reuses IDs across its SoftMAC and FullMAC families. The reliable signal is that a Broadcom controller is present and the kernel produced no wireless interface at all. The live medium runs the same kernel on the same hardware as the target, so what is observed here holds for the installed system. broadcom-wl-dkms comes from the AUR, so no repository will serve it on the target machine. build.sh drops it into the image the way it already does for PacManager, and fws-setup-hardware installs it with pacman -U only when it sees a mute Broadcom, then deletes the file. It is deliberately absent from packages.x86_64. The package blacklists b43, bcma, ssb and brcmsmac system-wide, so installing it on a machine that does not need it would cut the Wi-Fi of the machines those very modules make work. setup-aur.sh gains a no-install list for the same reason. build_or_skip normally installs each package so AUR to AUR dependency chains resolve, but this one has no dependents here and installing it would be actively harmful: it compiles a DKMS module against the build environment's kernel, which is pointless since the module is rebuilt on the target and fatal under set -e on an image without linux-headers, and it drops the blacklist. On a native Arch or WSL run that means the build machine's own Wi-Fi goes down. It is built, published, and left alone. The verification pass now reports on Wi-Fi: interface present, radio unblocked, or a controller with no interface at all, which is named so the user knows what is missing rather than assuming the card is dead. Signed-off-by: nocode <suzuku295@gmail.com>
This commit is contained in:
1 parent
273a554a30
commit
441f6681c4
3 files changed
+141
-5
No files matched your search
@@ -374,6 +374,26 @@ else
|
||||
echo " Lance ./setup-aur.sh pour le construire." >&2
|
||||
fi
|
||||
|
||||
# ============================================================
|
||||
# Pilote Wi-Fi Broadcom : embarqué, installé seulement SI DÉTECTÉ
|
||||
#
|
||||
# Volontairement absent de packages.x86_64 : broadcom-wl-dkms blackliste b43,
|
||||
# bcma, ssb et brcmsmac pour tout le système — l'imposer à chaque machine
|
||||
# couperait le Wi-Fi de celles que ces modules font justement fonctionner.
|
||||
# Il vient de l'AUR, donc aucun dépôt ne le fournira sur la cible : on le
|
||||
# dépose dans l'airootfs et fws-setup-hardware fait « pacman -U » UNIQUEMENT
|
||||
# s'il voit une Broadcom sans interface sans fil, puis supprime le fichier.
|
||||
# ============================================================
|
||||
_WL_PKG="$(ls "$WORK_DIR/local-repo"/broadcom-wl-dkms-[0-9]*.pkg.tar.* 2>/dev/null | head -1)"
|
||||
if [ -n "$_WL_PKG" ]; then
|
||||
install -Dm644 "$_WL_PKG" \
|
||||
"/tmp/fws-build/releng/airootfs/usr/local/share/fws/drivers/$(basename "$_WL_PKG")"
|
||||
echo "==> Pilote Wi-Fi Broadcom embarqué : $(basename "$_WL_PKG")"
|
||||
else
|
||||
echo -e "\e[33m[!] broadcom-wl-dkms absent de local-repo — les portables Broadcom\e[0m" >&2
|
||||
echo " resteront sans Wi-Fi. Lance ./setup-aur.sh pour le construire." >&2
|
||||
fi
|
||||
|
||||
echo "==> Correction des retours à la ligne Windows (dos2unix)..."
|
||||
pacman -S --needed --noconfirm dos2unix
|
||||
find /tmp/fws-build/releng -type f -exec dos2unix {} + 2>/dev/null
|
||||
|
||||
Reference in new issue
Block a user