how to install ath9k-htc-firmware for Atheros Communications, Inc. AR9271

17 replies [Last post]
fr33z3w1zar5
Offline
Joined: 07/07/2013

To Whom It May Concern,

I downloaded the firmware update from http://jxself.org/ath9k-htc/ so that I could use my Atheros ThinkPenguin usb wireless adapter.

The thing is, in the README, it says that I have to "build the toolchain" :

* Linux:

$ make toolchain

* FreeBSD:

$ gmake toolchain

(Yes, I made this work on FreeBSD as well.)

* Next, build the firmware.

* Linux:

$ make firmware

* FreeBSD:

edit the build script, change make to gmake, and then

$ ./build

You will end up with two .fw files - one for the AR7010 and one for
the AR9271 in the target_firmware directory.

Then what?
----------

You need to then copy this into the relevant location for your operating
system. Yes, this means you need a driver. No, there's no FreeBSD
driver yet for this particular chipset, sorry."

So, I'm not sure what to do and your help is much appreciated!

fr33z3w1zar5
Offline
Joined: 07/07/2013

I'm running the updated version of Trisquel 6!

jxself
Offline
Joined: 09/13/2010

After you do make toolchain and make firmware the two .fw files go into /lib/firmware

fr33z3w1zar5
Offline
Joined: 07/07/2013

how do I make toolchain and make firmware please?

jxself
Offline
Joined: 09/13/2010

Those are the commands you type into the terminal:

* First expand the tarball.

* Then "cd" into the directory.

* Type "make toolchain" and press return.

* Type "make firmware" and press return.

* Once this is done you'll have two .fw files - place them into /lib/firmware.

Or, you know what might be even easier? Just download the two .fw files from http://www.jxself.org/ath9k-htc/version-1.3.2/ and place them in /lib/firmware.

t3g
t3g
Offline
Joined: 05/15/2011

I've been using the firmware from http://jxself.org/ath9k-htc/version-1.3.2/ for a long time now and all you need is to drop those two .fw files in /lib/firmware as he says. No need to build from scratch.

MagicFab
Offline
Joined: 12/13/2010

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-09-20 23:22, name at domain wrote:
> I downloaded the firmware update from http://jxself.org/ath9k-htc/ so that I could use my Atheros
ThinkPenguin usb wireless adapter.
>
> [...]
>
> So, I'm not sure what to do and your help is much appreciated!

Contact ThinkPenguin?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: PGP/Mime available upon request
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlI9fRMACgkQfUcTXFrypNW6kACdGBeE0iJdC5ENDsIzoZqVaw2/
c/EAnirJyrhp8+eXLpEr2FvRyhm/ijEl
=HknA
-----END PGP SIGNATURE-----

mYself
Offline
Joined: 01/18/2012

The exact instructions needed for building the required firmware files can be found here. You basically need to download two firmware files (htc_9271.fw, and optionally htc_7010.fw), and put them in the right place (that is /lib/firmware).

Then you need to make sure your system is up-to-date (use Update Manager), because previous kernel images have the required driver blacklisted (the ath9k_htc kernel module used to be dependent on non-free firmware blobs, but this changed when the source code was released back in March).

If you already have the latest kernel version installed, then you should reload the ath9k_htc kernel module by using this command:

sudo rmmod ath9k_htc;sudo modprobe ath9k_htc

After that, you can connect the adapter, and it should work right away.

fr33z3w1zar5
Offline
Joined: 07/07/2013

sorry, but it says "permission denied"... am I not connected on the root level?

mYself
Offline
Joined: 01/18/2012

You mean Nautilus (the default window manager), right? If so, follow:

  • press ([Fn]+*)[Alt]+[F2], a new window called Run Application will pop up
  • paste "gksu nautilus /lib/firmware" (without quotes) into it, press [Enter] (or click on the Run button), then confirm the command by entering your root password. This will bring you a new Nautilus window that has root privileges
  • copy the two downloaded files (htc_9271.fw, and optionally htc_7010.fw) into the newly opened Nautilus window, then finish the procedure as described in my previous comment

Alternatively, you can use the command line (Terminal). Go to the folder where you have downloaded the firmware files, right-click, select Open in Terminal, then enter:

sudo cp htc_9271.fw htc_7010.fw /lib/firmware

* on Apple Keyboards

fr33z3w1zar5
Offline
Joined: 07/07/2013

i'm using a lenovo computer, and have tried variations of

/home/fr33z3w1zar5/desktop/to/fw htc_9271.fw /lib/firmware

your help is much appreciated!

mYself
Offline
Joined: 01/18/2012

The command you entered is incorrect. Just follow what I already wrote above, it's not that hard.

fr33z3w1zar5
Offline
Joined: 07/07/2013

thank you all! but now it is telling me that I don't have permission to move the two files into the lib/ folder...

your help is much appreciated!

jxself
Offline
Joined: 09/13/2010

Use sudo when copying.

sudo cp /path/to/fw/file /lib/firmware

fr33z3w1zar5
Offline
Joined: 07/07/2013

thank you for the insight. Where should my fw files be when I copy? right now they are sitting on my desktop.

your help is truly appreciated!

fr33z3w1zar5
Offline
Joined: 07/07/2013

I tried to no avail

cp/home/fr33z3w1zar5/Desktop/to/fw/htc_9271.fw/htc_9271.fw/lib/firmware

fr33z3w1zar5
Offline
Joined: 07/07/2013

*to/fw/htc_9271.fw/lib/firmware

lembas
Offline
Joined: 05/13/2010

Perhaps the terminal is not your forte. Try

gksudo nautilus