Topic: Atheros AR9271 wireless

Hello,

I would like to install LibertyBSD on my PC, but I would like to ask something first. I have an Atheros AR9271 Wi-Fi adapter. On the PC that I would like to install LibertyBSD on, this Wi-Fi adapter is the only way to connect to the internet. Would this adapter work with LibertyBSD?
I found an OpenBSD manual page mentioning it here, but I don't know if this applies to LibertyBSD as LibertyBSD removed non-free firmware from the base system.

Thanks,

Mappack

2 (edited by jadedctrl 2017-03-13 12:01:50)

Re: Atheros AR9271 wireless

When it comes to the AR9271, LibertyBSD didn't have to remove anything-- we just removed fw_update, the program that fetches the non-free athn fw when you install the system.

Honestly, I'd recommend find a wireless card for your computer that is compatible with LibertyBSD and doesn't require non-free firmware (atw.4, etc).

I get that this isn't always possible though-- if that's the case:
* Fetch the athn firmware from http://firmware.openbsd.org/5.9
* Unpack the tarball into /etc/firmware
* Reboot-- you're good to go.

Re: Atheros AR9271 wireless

I didn't know the AR9271 required non-free firmware in a BSD system, in Trisquel GNU/Linux it works just fine. Then again that's a completely different operating system.

I guess I'm going to install LibertyBSD on a PC that was more of a second choice, you'll understand I like keeping my systems as free as possible.

Thanks for the quick answer,

Mappack

Re: Atheros AR9271 wireless

Hey!

The AR9271 does not need non-free firmware to work on OpenBSD, and also in LibertyBSD.

You just need to use a port to install it, or, if you prefer, just download the athn-firmware, which is in the package repositories of LibertyBSD.

Just remember this:

1) You need to "export" the repository. So, you can run this command (root mode): export PKG_PATH=http://libertybsd.net/pub/LibertyBSD/5.9/packages/$(uname -m), or modify the root's .profile file to don't need to do it every time you want to install something, like this:

Be sure you are not in /home/youruser/ directory, you should be here: /root/.

Maybe you don't have nano installed to make the file's modification step, so first:

# export PKG_PATH=http://libertybsd.net/pub/LibertyBSD/5.9/packages/$(uname -m)

Then...

# pkg_add nano

When you get it, just do the root's .profile modification, like this:

# cd /root/

# nano .profile

Make an "Enter" space between the first tree commented lines and the first non commented line, and immediately upside the first non commented line, put this: export PKG_PATH=http://libertybsd.net/pub/LibertyBSD/5.9/packages/$(uname -m)

Then Ctrl+X > Y > "Enter"

2) Now you can install the athn-firmware package.

# pkg_add athn-firmware

Well, the question here is: Do you know how to use Wi-Fi in OpenBSD/LibertyBSD?

Because you use the athn-firmware, it should be like this:

To scan the Wi-Fi signals around you.
# ifconfig athn0 scan

To connect (if the signal uses other encryption, like wep, just change the wpakey for nwkey).
# ifconfig athn0 nwid YOUR-WI-FI wpakey YOUR-PASSWORD

Then...
# dhclient athn0

It will connect!  smile

5 (edited by jadedctrl 2017-03-13 12:01:37)

Re: Atheros AR9271 wireless

Estanislao wrote:

The AR9271 does not need non-free firmware to work on OpenBSD, and also in LibertyBSD.

You just need to use a port to install it, or, if you prefer, just download the athn-firmware, which is in the package repositories of LibertyBSD.

The athn-firmware package is the non-free firmware-- it just installs the data from https://firmware.openbsd.org
That package shouldn't be in our repository at all, I'm sorry-- I've deleted it now and added it to our blacklist. If you're not OK with non-free firmware on your system, you should delete this package.

If you're actively using an AR9271 as your only way to access the internet... you might want to find a more libre dongle.

You could use a urtw dongle (https://www.thinkpenguin.com/gnu-linux/ … sb-adapter), which isn't as sophisticated as the AR9271, but is libre for OBSD and LBSD.