new kernel developer and preparation for upstream merge

Nelson Castillo nelsoneci at gmail.com
Tue Oct 14 17:37:16 CEST 2008


On Tue, Oct 14, 2008 at 10:15 AM, Andy Green <andy at openmoko.com> wrote:
(cut)
> Hum what config and / or build action are you compiling with?  I think
> your problem with needing that symlink can be something else other than
> the (real) mach path changes, the contents of stable-tracking should be
> correct for current mach/ paths on master branch it is built on top of.

Andy, this is what I used:

# I corrupted my repos.
  git clone git://git.openmoko.org/git/kernel.git linux-2.6
  git-checkout --track -b nelson/stable-tracking origin/stable-tracking
  git-pull # up to date
# Is this the config. I should use?
  cp ./arch/arm/configs/gta02-moredrivers-defconfig .config
#I use this alias.
  alias crossmakeeabi='nice make ARCH=arm CROSS_COMPILE="ccache
+arm-angstrom-linux-gnueabi-" '
  crossmakeeabi > /tmp/stable-tracking.test 2>&1

And it would not build. I'm a missing a step?

The first error is:
arch/arm/mach-s3c2440/fiq_c_isr.c:22:26: error: asm/arch/pwm.h: No
such file or directory

I also tried with the build script after "make mrproper" and
cp ./arch/arm/configs/gta02-moredrivers-defconfig .config.

--- a/build
+++ b/build
@@ -2,7 +2,7 @@

 set -x

-export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
+export CROSS_COMPILE="ccache
/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-"
 make ARCH=arm silentoldconfig
 VERSION=
 if [ -d .git ] ; then
@@ -11,7 +11,7 @@ if [ -d .git ] ; then
  VERSION=-$BRANCH\_$HEAD
 fi

-if make -j5 ARCH=arm CONFIG_DEBUG_SECTION_MISMATCH=y
EXTRAVERSION=$VERSION; then
+if make -j3 ARCH=arm CONFIG_DEBUG_SECTION_MISMATCH=y
EXTRAVERSION=$VERSION; then
        ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S
arch/arm/boot/compressed/vmlinux linux.bin
        mkimage -A arm -O linux -T kernel -C none -a 30008000 -e
30008000 -n "Openmoko Freerunner Kernel" -d linux



More information about the openmoko-kernel mailing list