You need to get the OM toolchain from <a href="http://wiki.openmoko.org/wiki/Toolchain">http://wiki.openmoko.org/wiki/Toolchain</a> (or Toolchains). Follow the instruction for setting up this toolchain from this page. It comes with setup_env which you will need to run. It sets up your cross-compilation environment variables.<br>
<br>I have a faded memory so check for problems that you might encounter from the bottom of <a href="http://wiki.openmoko.org/wiki/Kernel" target="_blank">http://wiki.openmoko.org/wiki/Kernel</a> page.<br><br>You might have to give CROSS_COMPILE=[compiler triplet] and ARCH=arm when making the kernel:<br>
<br>SHELL-Prompt:$ make CROSS_COMPILE=arm-angstrom-linux-gnueabi ARCH=arm<br><br>This might be needed with menuconfig or xconfig. I don&#39;t remember. The kernel has a build script which I never used :)<br><br><div class="gmail_quote">
On Fri, Nov 7, 2008 at 4:35 PM, Arigead <span dir="ltr">&lt;<a href="mailto:captain.deadly@gmail.com">captain.deadly@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
apologies for distracting the serious work of this list but I&#39;ve a few<br>
questions relating to building the kernel for the first time.<br>
<br>
I&#39;ve only ever compiled a kernel before using the Linux From Scratch<br>
Instructions which were great and I managed to build a system. Now I&#39;m<br>
following instructions given at <a href="http://wiki.openmoko.org/wiki/Kernel" target="_blank">http://wiki.openmoko.org/wiki/Kernel</a> and<br>
have one or two problems.<br>
<br>
I obtain the kernel source as described and do a git checkout of<br>
origin/stable. I then copy defconfig-gta02 to .config and try to build<br>
but nothing I try works. If I try a &quot;make menuconfig&quot; I get errors. I<br>
didn&#39;t expect errors in the C Code.<br>
<br>
Given that my make menuconfig failed I was only asking for trouble<br>
executing &quot;make vmlinux&quot; but I couldn&#39;t resist it. ;-) I got asked for<br>
my processor type and Tickless System etc. etc.<br>
<br>
Actually I&#39;m a bit confused if I build the kernel on my laptop I&#39;m<br>
compiling for an i86 arch. there&#39;s no mention of bitbake or oe in these<br>
instructions. Surely I need a cross compiler.<br>
<br>
Once again humble apologies I know this list serves a serious purpose<br>
and the people on it do a very good job. In the ideal world you should<br>
not have to answer such questions, but welcome to my world ;-)<br>
<br>
Thanks in advance for any assistance.<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iD8DBQFJFCgFXlbjSJ5n4BARArbvAKDXS6Co255ml4O23bwmqsdp+jktsgCdGyHw<br>
Bwim/OZLbZcsX/YBJhWiz9k=<br>
=9pAO<br>
-----END PGP SIGNATURE-----<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Shaz<br><br>