You need to get the OM toolchain from http://wiki.openmoko.org/wiki/Toolchain (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.
I have a faded memory so check for problems that you might encounter from the bottom of http://wiki.openmoko.org/wiki/Kernel page. You might have to give CROSS_COMPILE=[compiler triplet] and ARCH=arm when making the kernel: SHELL-Prompt:$ make CROSS_COMPILE=arm-angstrom-linux-gnueabi ARCH=arm This might be needed with menuconfig or xconfig. I don't remember. The kernel has a build script which I never used :) On Fri, Nov 7, 2008 at 4:35 PM, Arigead <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > apologies for distracting the serious work of this list but I've a few > questions relating to building the kernel for the first time. > > I've only ever compiled a kernel before using the Linux From Scratch > Instructions which were great and I managed to build a system. Now I'm > following instructions given at http://wiki.openmoko.org/wiki/Kernel and > have one or two problems. > > I obtain the kernel source as described and do a git checkout of > origin/stable. I then copy defconfig-gta02 to .config and try to build > but nothing I try works. If I try a "make menuconfig" I get errors. I > didn't expect errors in the C Code. > > Given that my make menuconfig failed I was only asking for trouble > executing "make vmlinux" but I couldn't resist it. ;-) I got asked for > my processor type and Tickless System etc. etc. > > Actually I'm a bit confused if I build the kernel on my laptop I'm > compiling for an i86 arch. there's no mention of bitbake or oe in these > instructions. Surely I need a cross compiler. > > Once again humble apologies I know this list serves a serious purpose > and the people on it do a very good job. In the ideal world you should > not have to answer such questions, but welcome to my world ;-) > > Thanks in advance for any assistance. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFJFCgFXlbjSJ5n4BARArbvAKDXS6Co255ml4O23bwmqsdp+jktsgCdGyHw > Bwim/OZLbZcsX/YBJhWiz9k= > =9pAO > -----END PGP SIGNATURE----- > > -- Shaz
