rpi-wifi-p9


Tue Feb 17 14:30:50 PST 2026, jrmu@inter9.org (104.167.242.140)
wifi for plan 9 on raspberry pi

To enable wifi on a raspberry pi:

If you did not already add the ethernet type to cmdline.txt before running Plan 9:

% dossrv; mount /srv/dos /n/9fat /dev/sdM0/dos

Use sam -d to edit /n/9fat/cmdline.txt:

readparts=1 nobootprompt=local console='0 b115200' ether1=type=4330 nvram='#S/sdM0/nvram'

Afterwards, reboot:

% reboot

To enable wifi:

% bind -a '#l1' /net ether4330: chip 43430 rev 1 type 1 ether4330: firmware ready ether4330: addr b827eb2a85bf % aux/wpa -2 -s 'YOURESSID' -p /net/ether1

Adding key: essid=YOURESSID proto=wpapsk
password:

% ip/ipconfig ether /net/ether1 % ip/ping -n 5 1.1.1.1 sending 5 64 byte messages 1000 ms apart to icmp!1.1.1.1!1 0: rtt 46712 µs, avg rtt 46712 µs, ttl = 56 1: rtt 27005 µs, avg rtt 36858 µs, ttl = 56 2: rtt 24841 µs, avg rtt 32852 µs, ttl = 56 3: rtt 22609 µs, avg rtt 30291 µs, ttl = 56 4: rtt 20432 µs, avg rtt 28319 µs, ttl = 56

To automatically start wifi upon boot, put these lines in /cfg/$sysname/termrc or cpurc:

bind -a '#l1' /net echo 'key proto=wpapsk essid=ESSID

password='^`{cat /lib/wpa/ESSID} > /mnt/factotum/ctl aux/wpa -2 -s
'ESSID' /net/ether1 ip/ipconfig ether /net/ether1

Put the wifi password in /lib/wpa/ESSID.



Last modified Tue Feb 17 14:30:50 PST 2026 [ Current version | History | Create a new page ] About the server | Powered by Plan 9