WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Cross-Compiling Core for ARM  (Read 2614 times)

Offline lucabe

  • Newbie
  • *
  • Posts: 2
Cross-Compiling Core for ARM
« on: June 01, 2012, 03:54:19 AM »
Hi all,

I want to run Core on an ARM-based board (a beagleboard).
Since I see that all the binaries from the download page are x86-specific, I think I need to cross-compile it.
I already have a working cross-toolchain, and I already compiled a Linux kernel (with modules) that can boot on the beagleboard... Now, I need to generate a core initramfs containing ARM binaries (core.gz).
Can anyone point me to some instructions to build it from sources?


                                   Thanks,
                                       Luca

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14756
Re: Cross-Compiling Core for ARM
« Reply #1 on: June 02, 2012, 03:10:57 AM »
The principle would be to take an existing core.gz, use the "file" command to check which files are compiled executables and replace them one by one with a cross-compiled version.

Offline lucabe

  • Newbie
  • *
  • Posts: 2
Re: Cross-Compiling Core for ARM
« Reply #2 on: June 02, 2012, 11:43:53 AM »
So, I have to uncompress core.gz, check all of the files it contains, and replace the x86 executables with ARM versions compiled by hand?
This does not look too handy... :(

I was hoping in some instructions about how to build a core.tgz from scratch (possibly in an automatic way).

I wonder how new releases are generated... Is some developer getting the previous core.tgz release, and replacing executables and kernel by hand? Generally distributions have an automatic way to build the file system.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
Re: Cross-Compiling Core for ARM
« Reply #3 on: June 02, 2012, 12:23:06 PM »
Quote
I was hoping in some instructions about how to build a core.tgz from scratch (possibly in an automatic way).

I'm afraid we don't have such.
The only barriers that can stop you are the ones you create yourself.