Tiny Core Linux

General TC => General TC Talk => Topic started by: lucabe on June 01, 2012, 03:54:19 AM

Title: Cross-Compiling Core for ARM
Post by: lucabe 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
Title: Re: Cross-Compiling Core for ARM
Post by: Juanito 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.
Title: Re: Cross-Compiling Core for ARM
Post by: lucabe 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.
Title: Re: Cross-Compiling Core for ARM
Post by: curaga 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.