💾 Archived View for sdf.org › ralfwause › gemini › 9wifi.gmi captured on 2024-06-16 at 12:32:56. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Working WiFi on a Thinkpad R60 with 9Front

As i migrated to 9Front at the beginning of this year i had everything working so far (ok, besides audio, but this is a topic for another post...), i still could not get the WiFi working albeit having compiled the kernel with the correct drivers in place... now, this is the way i fixed things:

The Thinkpad R60 is using a WiFi card of the wpi family, so you at first need a fitting driver. Conviniently, you can simply download the driver form the friendly guys over at OpenBSD:

%<------------------------------

http://firmware.openbsd.org/firmware/6.9/wpi-firmware-3.2p1.tgz

%<------------------------------

After this you extract it and put the content of the 'firmware/wpi-3945abg' directory to '/lib/firmware'

After this, recompile the kernel with:

%<------------------------------

cd /sys/src/9/pc/

mk install

%<------------------------------

And copy the new kernel to the 9fat partition:

%<------------------------------

9fs 9fat

cp /386/9pc /n/9fat

%<------------------------------

After a reboot the kernel will be loaded (hopefully).

So, and then there was this point where i really had no idea how to get /net/ether1 to make an appearance... i could clearly see via the frantic blinking of the wifi-led that the firmware was working, but i could not see the interface... hmmm...

After a bit of digging around i could see the simple thing: I just haven't told the system that it should use the interface! So i just ran the following command:

%<------------------------------

bind -b '#l1' /net

%<------------------------------

And NOW there it was available under /net/ether1.

Ok, now its just a matter of making a connection to the AP and optaining an ip address:

%<------------------------------

aux/wpa -s MYWIFINETWORK -p2 /net/ether1

ip/ipconfig ehter /net/ether1

%<------------------------------

And voila... no i am online via WiFi!

After getting it going i gave factotum the credentials to the various networks i connect to and created a few scripts for the networks i normally need, so i have just to call

%<------------------------------

wifi/work

or

wifi/home

%<------------------------------

<- Back to main capsule