ath10k drivers on t1024 freescale board

Michal Kazior michal.kazior at tieto.com
Tue Jan 12 04:06:07 PST 2016


On 12 January 2016 at 12:29, B R Manjula <brm at cdot.in> wrote:
> Please can you provide useful links to cross-compilation we are getting issues while
> cross-compiling for target:
>
> Though I am cross-compiling it is giving following error:
>
> The conf is not executing on the host:
>
> make defconfig-ath10k
> powerpc64-fsl-linux-gcc  -mhard-float -m64 -mcpu=e5500 --sysroot=/opt/fsl-
> networking/QorIQ-SDK-V1.7/sysroots/ppc64e5500-fsl-linux -Wall -Wmissing-prototypes -
> Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
> powerpc64-fsl-linux-gcc  -mhard-float -m64 -mcpu=e5500 --sysroot=/opt/fsl-
> networking/QorIQ-SDK-V1.7/sysroots/ppc64e5500-fsl-linux -Wall -Wmissing-prototypes -
> Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o zconf.tab.o zconf.tab.c
> In file included from zconf.tab.c:2503:0:
> menu.c: In function 'get_symbol_str':
> menu.c:561:18: warning: 'jump' may be used uninitialized in this function [-Wmaybe-
> uninitialized]
>      jump->offset = r->len - 1;
>                   ^
> menu.c:515:19: note: 'jump' was declared here
>   struct jump_key *jump;
>                    ^
> powerpc64-fsl-linux-gcc  -mhard-float -m64 -mcpu=e5500 --sysroot=/opt/fsl-
> networking/QorIQ-SDK-V1.7/sysroots/ppc64e5500-fsl-linux   conf.o zconf.tab.o   -o conf
> ./kconf/conf: ./kconf/conf: cannot execute binary file
> make[1]: *** [defconfig-ath10k] Error 126
> make: *** [defconfig-ath10k] Error 2

I'm no cross-compilation expert. At best I can refer you to:

  https://backports.wiki.kernel.org/index.php/Documentation/packaging

The "cannot execute binary file" can mean:
 - invalid libc linking
 - missing +x permissions on file (unlikely)
 - missing +x permissions on filesystem (e.g. due to "noexec" mount option)
 - trying to run a binary destined to a different arch

You'll have to figure it out yourself.

As an alternative you might want to use QEMU and do emulated native
compilation (e.g. Debian with deboostrap) but I will not go into
detail how to do this as it's not trivial.


Michał



More information about the ath10k mailing list