* [Xenomai] Cross-compiling for ARM
@ 2014-05-18 20:36 John Morris
2014-05-18 21:04 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: John Morris @ 2014-05-18 20:36 UTC (permalink / raw)
To: xenomai
My Debian kernel packages are just updated to Xenomai 2.6.3 and Linux
3.8.13 (will ask for testing soon), and I'm starting to look at adding
armhf packages using Robert C Nelson's and Charles Steinkuehler's patch
sets. However, I'm brand-new at cross-compiling and would appreciate a
pointer.
Right out of the box, pbuilder can build in a QEMU-emulated chroot by
setting --arch=armhf and --debootstrap=qemu-debootstrap. Super easy.
Super slow.
Is there a way to cross-compile in an x86 native environment so that the
(x86 native) compiler/assembler/linker/etc. cross-build for ARM
architecture?
John
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] Cross-compiling for ARM
2014-05-18 20:36 [Xenomai] Cross-compiling for ARM John Morris
@ 2014-05-18 21:04 ` Gilles Chanteperdrix
2014-05-19 16:03 ` Charles Steinkuehler
0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2014-05-18 21:04 UTC (permalink / raw)
To: John Morris, xenomai
On 05/18/2014 10:36 PM, John Morris wrote:
> My Debian kernel packages are just updated to Xenomai 2.6.3 and Linux
> 3.8.13 (will ask for testing soon), and I'm starting to look at adding
> armhf packages using Robert C Nelson's and Charles Steinkuehler's patch
> sets. However, I'm brand-new at cross-compiling and would appreciate a
> pointer.
>
> Right out of the box, pbuilder can build in a QEMU-emulated chroot by
> setting --arch=armhf and --debootstrap=qemu-debootstrap. Super easy.
> Super slow.
>
> Is there a way to cross-compile in an x86 native environment so that the
> (x86 native) compiler/assembler/linker/etc. cross-build for ARM
> architecture?
You need to install a cross compilation toolchain. You can find
pre-built ones, for instance for armhf, you can use the linaro
toolchain. Cross-compilation toolchain programs names begin with a
string identifying the target architecture. For instance, linaro
toolchain compiler is arm-linux-gnueabihf-gcc. In order to cross-
compile a kernel for this architecture, you whould use
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
For the user-space part you need to pass the prefix without the final
dash to configure's --host option. As in:
./configure --host=arm-linux-gnueabihf
The installation procedure is described in README.INSTALL, see for
instance:
http://www.xenomai.org/documentation/xenomai-2.6/html/README.INSTALL/#arm
--
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Xenomai] Cross-compiling for ARM
2014-05-18 21:04 ` Gilles Chanteperdrix
@ 2014-05-19 16:03 ` Charles Steinkuehler
0 siblings, 0 replies; 3+ messages in thread
From: Charles Steinkuehler @ 2014-05-19 16:03 UTC (permalink / raw)
To: John Morris, xenomai
On 5/18/2014 4:04 PM, Gilles Chanteperdrix wrote:
> On 05/18/2014 10:36 PM, John Morris wrote:
>> My Debian kernel packages are just updated to Xenomai 2.6.3 and Linux
>> 3.8.13 (will ask for testing soon), and I'm starting to look at adding
>> armhf packages using Robert C Nelson's and Charles Steinkuehler's patch
>> sets. However, I'm brand-new at cross-compiling and would appreciate a
>> pointer.
>>
>> Right out of the box, pbuilder can build in a QEMU-emulated chroot by
>> setting --arch=armhf and --debootstrap=qemu-debootstrap. Super easy.
>> Super slow.
>>
>> Is there a way to cross-compile in an x86 native environment so that the
>> (x86 native) compiler/assembler/linker/etc. cross-build for ARM
>> architecture?
>
> You need to install a cross compilation toolchain. You can find
> pre-built ones, for instance for armhf, you can use the linaro
> toolchain.
The RCN kernel build scripts (so my scripts as well) will download a
known working linaro cross-compiler if you run on an x86 machine and
don't point the build scripts to a pre-installed tool chain.
Review the scripts/gcc.sh shell script if you need hints on getting the
cross-compiler up and running, but it's pretty straight-forward.
--
Charles Steinkuehler
charles@steinkuehler.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140519/9b40e5ae/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-19 16:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-18 20:36 [Xenomai] Cross-compiling for ARM John Morris
2014-05-18 21:04 ` Gilles Chanteperdrix
2014-05-19 16:03 ` Charles Steinkuehler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.