diff options
| -rw-r--r-- | archlinux.md | 30 | ||||
| -rw-r--r-- | host_vars/mac-archiso.local.yml | bin | 1058 -> 1048 bytes | |||
| -rw-r--r-- | host_vars/mac-archiso.local.yml.example | 2 |
3 files changed, 16 insertions, 16 deletions
diff --git a/archlinux.md b/archlinux.md index ceca6d6..14acf3e 100644 --- a/archlinux.md +++ b/archlinux.md @@ -28,7 +28,7 @@ dhcpcd wlan0 - 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 +- 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 @@ -36,35 +36,35 @@ dhcpcd wlan0 **Example:** +To download the correct `broadcom-wl` driver use the following: + +```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 -# Get the running kernel version (used to find the right package and insmod path) -uname -r - -# Identify USB partition lsblk -# Copy driver to MacBookPro archiso -mkdir /mnt/usb -mount /dev/sdb /mnt/usb +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 -# should be empty -lsmod | grep -E 'brcmfmac|brcmutil|b43|ssb|bcma|wl' -# Insert module insmod usr/lib/modules/<KERNEL>/extramodules/wl.ko.zst -# bcma auto-reloads, remove it again -rmmod bcma +# rmmod bcma if needed because it was auto-reloaded -# should show wlan0 rfkill unblock all ip link -# Connect to network iwctl --passphrase <PASSPHRASE> station wlan0 connect <SSID> dhcpcd wlan0 ``` diff --git a/host_vars/mac-archiso.local.yml b/host_vars/mac-archiso.local.yml Binary files differindex 9e2d07d..9634f1d 100644 --- a/host_vars/mac-archiso.local.yml +++ b/host_vars/mac-archiso.local.yml diff --git a/host_vars/mac-archiso.local.yml.example b/host_vars/mac-archiso.local.yml.example index 65d42e6..62404b7 100644 --- a/host_vars/mac-archiso.local.yml.example +++ b/host_vars/mac-archiso.local.yml.example @@ -1,5 +1,5 @@ --- -hostname: "mac-archlinux.local" +hostname: "mac.local" partition_disk: "/dev/sda" partition_wipe: false partition_boot: |
