Cannot compile Atheros firmware (open-ath9k-htc-firmware)

4 replies [Last post]
aloniv

I am a translator!

Offline
Joined: 01/11/2011

I tried compiling but ran into errors when making the toolchain. The log is here:
http://wklej.org/id/1076192/

mYself
Offline
Joined: 01/18/2012

Hi aloniv!

I created a ath9k_htc linux driver a long time ago when the firmware source code was first released to public as FLOSS (Free/Libre and Open Source Software). Since then, the firmware was whitelisted in the Toutatis mainline kernel, thus making this installer no longer necessary to be used.

One of the scripts within the package is called build-fw.sh, which you can use to build the desired firmware files from the latest source code available. Building depends on some extra packages that are necessary to be installed, and because of that, I recommend you to run the script within the LiveCD environment, either using some virtualization software, or by booting the CD/DVD directly.

Just for curiosity, can you tell us what device you're using?

P.S.: You can experience that the script refuse to work properly for the first time you execute it. That happens because wget (for some unknown reason) cannot connect and download the source code from the Internet. Running the script for the second time worked for me.

aloniv

I am a translator!

Offline
Joined: 01/11/2011

I forgot to mention I'm using Parabola...

aloniv

I am a translator!

Offline
Joined: 01/11/2011

I added --disable-werror to compilation of binutils in Makefile but toolchain still fails to build:
http://wklej.org/id/1076358/

mYself
Offline
Joined: 01/18/2012

You have probably forgot to install some packages that are necessary for a successful compilation. One of these packages on Toutatis was libc6-dev.

You can also download the source code using wget if you want:

wget https://github.com/qca/open-ath9k-htc-firmware/archive/master.zip

Also, I wanted to compile the latest firmware code for you, but on my ThinkPad R60 computer I get a "no free space left on device" error message when I try to compile it inside VirtualBox, or by directly booting into the Live CD environment (I'm low on RAM!). I also tried to do it on my primary laptop PC (a Sony VAIO VPCZ1), but unfortunatelly, I have (currently) some overheating problems and Trisquel automatically shuts down the laptop if I do some CPU intensive task.

I have no experience outside Trisquel GNU/Linux yet because this distro was practically the "only" choice for me when I moved away from MS Windows in favor for software freedom. You should rather ask your question on the Parabola forums, or try to solve it using DuckDuckGo/Google Search so as I do.