Cross compile to beaglebone black

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

Cross compile to beaglebone black

Postby pedronf65 » Wed Mar 04, 2015 1:12 am

I spent all day trying to cross compile to the beaglebone black...
I'm using a virtual machine running Arch Linux:
# uname -a
Linux localhost 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64 GNU/Linux

and on the beaglebone side:
# uname -a
Linux alarm 3.8.13-38-ARCH #1 SMP Sat Jan 24 18:03:56 MST 2015 armv7l GNU/Linux

I installed arm-none-eabi-gcc:
# pacman -S arm-none-eabi-gcc

I have a simple test program:
$this->bbcode_second_pass_code('', '
#include <stdio.h>
int main ()
{
printf("hello!");
}
')
compile it on my Arch Linux with:
$this->bbcode_second_pass_code('', '# arm-none-eabi-gcc ola.c -marm -mcpu=cortex-a8 -Os -lc -lrdimon -o ola')
and then copy the binary to the beaglebone.
On the beaglebone:
# file ola
ola: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped

so it looks like a binary file
but if I execute it:
# ./ola
Killed

I just have the message Killed on the console, not the "hello!" output string.
What am I missing here?
pedronf65
 
Posts: 13
Joined: Mon Mar 02, 2015 5:15 pm

Re: Cross compile to beaglebone black

Postby WarheadsSE » Wed Mar 04, 2015 2:03 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 4 guests