wm: doc

Download patch

ref: c2254e0d1698333a390bbe409e0330f69eb729d9
parent: b4bebeaccd1ac571f2070671db4f7fec28e34df3
author: Aaron Lin <jrmu@inter9.org>
date: Sun Oct 27 16:28:49 EDT 2024

Instructions for adding wifi to plan 9 on rpi

--- /dev/null
+++ b/rpi-wifi-p9.ms
@@ -1,0 +1,33 @@
+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