Skip to content

Commit b9d5ef9

Browse files
committed
Restore SW:Linux:WiFi page from the wiki history
This reverts commit b6a50ae.
1 parent 5d2d1d8 commit b9d5ef9

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

docs/SW-Linux-WiFi.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# WiFi Support
2+
## Under MacOS grab the WiFi firmware as per [Glanzmann's notes](https://tg.st/u/asahi.txt)
3+
* Clone the installer
4+
`git clone https://github.com/AsahiLinux/asahi-installer`
5+
* Go into the src directory
6+
`cd asahi-installer/src`
7+
* Grab the firmware into a tar file
8+
`python3 -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar`
9+
## Install firmware
10+
* Under Linux booted via [USB drive](https://github.com/AsahiLinux/docs/wiki/SW:Linux:USB-drive) or [nvme](https://github.com/AsahiLinux/docs/wiki/SW:Linux:NVME) rootfs Create the firmware directory:
11+
`sudo mkdir -p /usr/lib/firmware`
12+
* Install the wifi firmware you extracted earlier
13+
`sudo tar -C /usr/lib/firmware -xf firmware.tar`
14+
* Install any other networking / WiFi packages you will need. e.g. wpasupplicant
15+
## Enable WiFi
16+
* You need to have built a Asahi Linux kernel with the M1 WiFI support such as the [wifi/take5](https://github.com/AsahiLinux/linux/tree/wifi/take5) branch
17+
* Before you boot that kernel via [m1n1 over USB](https://github.com/AsahiLinux/docs/wiki/SW:Linux#directly) - run this script to enable the WiFi hardware
18+
`python3 ./proxyclient/experiments/pcie_enable_devices.py`
19+
* There are other ways to do this - this what I did under Debian linux
20+
* Now after the linux kernel has booted you should be able to see a WiFi device (wlan0) via the usual tools
21+
`ip a l`
22+
* You can start networking the usual Linux tools e.g.
23+
* Edit the configuration file:
24+
```
25+
auto wlan0
26+
iface wlan0 inet dhcp
27+
wpa-ssid YOUR_SSID
28+
wpa-psk YOUR_WIFI_PASSPHRASE
29+
```
30+
* Then start up the interface (wlan0) via (note -v => verbose info)
31+
`sudo ifup -v wlan0`

0 commit comments

Comments
 (0)