wm: doc

ref: 453b9bd07592f8d40329b43971ab0ea3d419c6c4
dir: /rpi-wifi-p9.ms/

View raw version
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

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