lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Crossing Compiling from my Linux

Wed Oct 15, 2014 10:58 pm

In my linux machine I did

make arch=arm

is that sufficient for the pi ? I try also make arch=arm bcm2835_defconfig but it complains No rule to make target bcm2835_defconfig

I notice there's no configure file inside the folder.

any advices for cross compiling on linux PC for Pi? Also it wouldn't work compiling on Mac system because Mac doesn't have the same header files as Linux PC.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Crossing Compiling from my Linux

Wed Oct 15, 2014 10:59 pm

Check the tutorial on elinux.

arnokarner
Posts: 2
Joined: Sat Oct 04, 2014 7:43 pm

Re: Crossing Compiling from my Linux

Sat Oct 25, 2014 1:47 am

So is there forum group for cross compiling for the raspberry pi, the yum repo updates are either non existent, or very slow in coming. The shell shock bash rpm is unsigned, seems an odd way to distribute a security fix. My interests are for PiDora, and my old galaxy phones.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Crossing Compiling from my Linux

Sat Oct 25, 2014 6:10 am

Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

arnokarner
Posts: 2
Joined: Sat Oct 04, 2014 7:43 pm

Re: Crossing Compiling from my Linux

Sun Oct 26, 2014 3:52 am

Ok, cross compiling the kernel, that is one, two, three rpms out of how many.
I was reading the red hat power point on porting to a new cpu, arch and yes the 5 step process involves compiling every thing on the hardware in question as nirvana. And yes I can see there point, but in lieu of waiting for digitally signed rpms from a questionable reliable repo, building them in a arm virtual machine, that closely mimics a raspberypi would be faster, and yes low level rpms that access hardware, it would not be a good choice. but bash, openssl, libxml2, etc, other rpms that have had errata and need to be addressed, if you want your pi to be safe on the net, attached to the net, or a free standing wireless device. It should not be hard to grab digitally signed source rpms, and compile them in an arm virtual machine. Was more to what I was referring to, and at least if they compiled there they would be worthy of recompiling on a pi, with 32gb flash 8gb for swap, and waiting for the result. It sucks waiting 5 hours to find out you have a syntax error, etc.

Return to “General discussion”