diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-27 03:23:55 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-27 03:23:55 +0100 |
| commit | 13c88e0dff89bfdda5a02c647653cce37b083e16 (patch) | |
| tree | 158bef5cb4d90575fbbcd32778eb50b70a0c7afa /archlinux.md | |
| parent | b939d370f2720f761ac7c6dfe0041ebfd64c1b79 (diff) | |
Fix Mac installs
Based on https://wiki.archlinux.org/title/MacBookPro9,x#Wireless
The Claude.ai suggested setup was not needed at all.
It's sufficient to remove the conflicting kernel modules (b43) and
just reload the module wl!
Diffstat (limited to 'archlinux.md')
| -rw-r--r-- | archlinux.md | 50 |
1 files changed, 7 insertions, 43 deletions
diff --git a/archlinux.md b/archlinux.md index 14acf3e..98df00b 100644 --- a/archlinux.md +++ b/archlinux.md @@ -6,15 +6,13 @@ - Create bootable image from iso `sudo dd if=/path/to/image.iso of=/dev/diskX bs=4M status=progress` - Boot the `archiso` live image from a bootable USB. - Set root password (which will be asked to run the install playbook). - -## Generic Machine - +- Reload `boradcom-wl` module on Mac. - Connect to wireless network (if not connected via LAN). - `cp host_vars/archiso.local.example host_vars/archiso.local` -- Update the `host_vars/archiso.local` file -- Run the playbook on the ansible controller +- Update the `host_vars/archiso.local` file. +- Run the playbook on the ansible controller. -**Example:** +**Generic Example:** ```bash hostnamectl set-hostname archiso.local @@ -23,48 +21,14 @@ iwctl --passphrase <PASSPHRASE> station wlan0 connect <SSID> dhcpcd wlan0 ``` -## MacBookPro 2012 (without WIFI) - -- On another machine, download the matching broadcom-wl package (using `scripts/get-broadcom-wl.sh`) -- Copy broadcom-wl package to a FAT32 USB drive -- Remove conflicting kernel modules (`brcmfmac brcmutil b43 ssb bcma wl`) -- Load the `broadcom-wl` driver from USB -- Connect to wireless network -- `cp host_vars/mac-archiso.local.example host_vars/mac-archiso.local` -- Update the `host_vars/mac-archiso.local` file -- Run the playbook on the ansible controller - -**Example:** - -To download the correct `broadcom-wl` driver use the following: +**Mac Example:** ```bash -# On the mac machine without the wifi driver -uname -r - -# On a machine with working internet connection -scripts/get-broadcom-wl.sh <KERNEL> -cp broadcom-wl-6.30.223.271-<REV>-x86_64.pkg.tar.zst /mnt/sdX -``` - -```bash -# On the mac machine without the wifi driver hostnamectl set-hostname mac-archiso.local passwd - -lsblk -mkdir -p /mnt/usb && mount /dev/sdX /mnt/usb -cd /tmp -bsdtar -xf /mnt/usb/broadcom-wl-6.30.223.271-<REV>-x86_64.pkg.tar.zst - -# Fix loading the driver -rmmod brcmfmac brcmutil b43 ssb bcma wl -insmod usr/lib/modules/<KERNEL>/extramodules/wl.ko.zst -# rmmod bcma if needed because it was auto-reloaded - -rfkill unblock all +rmmod b43 ssb bcma wl +modprobe wl ip link - iwctl --passphrase <PASSPHRASE> station wlan0 connect <SSID> dhcpcd wlan0 ``` |
