Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]AR9271 open firmware compilation. Need help.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 303

PostPosted: Thu Jun 12, 2014 3:04 pm    Post subject: [SOLVED]AR9271 open firmware compilation. Need help. Reply with quote

Hello All,
I have wi-fi with AR9271 chipset and want to compile open firmware.
How-to says:
Code:

$ make toolchain
...
then
...
$ make -C target_firmware

I try to do it but have no luck :(
http://bpaste.net/show/366142/

So, what is the problem?
Do I need 'make toolchain' or gentoo lets to use the system staff gcc? (how?)

ps emerge --info


Last edited by cord on Sun Jun 15, 2014 1:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 373
Location: Canada

PostPosted: Thu Jun 12, 2014 6:47 pm    Post subject: Reply with quote

The package sys-kernel/linux-firmware contains
some drivers for this.

Quote:
equery files linux-firmware|grep 9271
/lib/firmware/ar9271.fw
/lib/firmware/htc_9271.fw


Perhaps this would meet your needs. It would, of course, install easily.
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 303

PostPosted: Thu Jun 12, 2014 7:02 pm    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
The package sys-kernel/linux-firmware contains
some drivers for this.

Quote:
equery files linux-firmware|grep 9271
/lib/firmware/ar9271.fw
/lib/firmware/htc_9271.fw


Perhaps this would meet your needs. It would, of course, install easily.

Thanks, but it is little outdated there... and it's not @FREE.
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 303

PostPosted: Sat Jun 14, 2014 9:27 pm    Post subject: Reply with quote

Ok. The compilation error is solved. It was because of PaX (in softmode there are no errors).
But another one thing is the necessary compilation of own toolchain (gcc, binutils, etc.). So, for making 44KiB firmware file we need to download (!) and compile dozens of MiB :? Unfortunately it seems to be hard linked in Makefile.
Maybe someone can prompt how to unlink of toolchain compiling, and how to use system staff toolchain instead :)
Makefile
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42847
Location: 56N 3W

PostPosted: Sat Jun 14, 2014 9:58 pm    Post subject: Reply with quote

cord,

Code:
TARGET=xtensa-elf

You need a cross compiler .... the fimware is going to run on a xtensa CPU, not a Intel/AMD one, so you cannot use your native toolchain.

Have a look at crossdev but I don't know if xtensa is supported.

The Makefile builds the cross compiler then uses the cross compiler to build your firmware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cord
Guru
Guru


Joined: 28 Apr 2007
Posts: 303

PostPosted: Sun Jun 15, 2014 1:25 pm    Post subject: Reply with quote

Oh, I see now. Ok. Solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum