View previous topic :: View next topic |
Author |
Message |
cord Guru
Joined: 28 Apr 2007 Posts: 346
|
Posted: Thu Jun 12, 2014 3:04 pm Post subject: [SOLVED]AR9271 open firmware compilation. Need help. |
|
|
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 |
|
|
nlsa8z6zoz7lyih3ap Guru
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Thu Jun 12, 2014 6:47 pm Post subject: |
|
|
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 |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 346
|
Posted: Thu Jun 12, 2014 7:02 pm Post subject: |
|
|
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 |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 346
|
Posted: Sat Jun 14, 2014 9:27 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Sat Jun 14, 2014 9:58 pm Post subject: |
|
|
cord,
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 |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 346
|
Posted: Sun Jun 15, 2014 1:25 pm Post subject: |
|
|
Oh, I see now. Ok. Solved. |
|
Back to top |
|
|
|