ankit.garg
Posts: 3
Joined: Wed Dec 16, 2015 10:32 am

Compilation tools for rpi3

Thu Mar 16, 2017 3:21 pm

Hi!

I want to make my rpi3 as a wireless repeater where I want to run it as wireless client from the inbuilt wireless interface and run it as access point from an external usb wireless adapter.

For using the external usb wireless adapter I need to install its driver on rpi3 and I have the source code of this driver module which I want to compile for my rpi3 architecture.

I am trying to find out the toolchain for my rpi3 having chipset BCM2709 but I am not able to find it. The one I found was for BCM2708 on this link https://github.com/raspberrypi/tools/tr ... rm-bcm2708

When I run the gcc command from the various type of toolchains listed under arm-bcm2708 on my rpi then it gives error like below

/opt/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc: Syntax error: "(" unexpected

I am not sure why it is not working, I think either I don't have the right toolchain for BCM2709 or can I execute the above toolchain on my rpi3 itself?

Please help

Thanks
Ankit

User avatar
PeterO
Posts: 5951
Joined: Sun Jul 22, 2012 4:14 pm

Re: Compilation tools for rpi3

Thu Mar 16, 2017 5:00 pm

"When I run the gcc command from the various type of toolchains listed under arm-bcm2708 on my rpi "

Which "the gcc command" are you running exactly ?

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Compilation tools for rpi3

Fri Mar 17, 2017 4:24 pm

Why do you need a different toolchain than the one that is installed by default in Raspbian ?
I understand as if you want to do the build ON the Raspberry not cross-compile.

Return to “General programming discussion”