Compile kernel and #1841

Klaus Kurzmann mok at mnet-online.de
Thu Oct 16 20:06:45 CEST 2008


* Niklas Johansson <raphexion at gmail.com> [081016 19:37]:
> On Thu, Oct 16, 2008 at 6:54 PM, Angus Ainslie <angus.ainslie at gmail.com> wrote:
> > On Thu, Oct 16, 2008 at 10:48 AM, Niklas Johansson <raphexion at gmail.com>
> > wrote:
> >>
> >> Hey guys,
> >>
> >> I suffering from the #1841 WSOD bug so therefor I would like to play
> >> with the kernel.
> >>
> >> I was trying to compile the kernel but I can't get it to compile.
> >>
> >> STEP
> >> git clone git://git.openmoko.org/git/kernel.git linux-2.6
> >> cd linux-2.6
> >> git checkout origin/andy
> >>
> >> make oldconfig defconfig-gta02
> >
> > make ARCH=arm oldconfig  defconfig-gta02
> > --
> > Angus Ainslie
> > http://www.handheldshell.com/
> >

> Thanks Angus!

> After that I try:
> make
> ...
> Makefile:510: /homes/njohan/Coding/linux-2.6/arch/i386: No such file
> or directory
> Makefile:510: /Makefile: No such file or directory
> make: *** No rule to make target `/Makefile'. Stop.

> To me that seems like I still have the wrong arch.

> but I get

> _______________________________________________
> devel mailing list
> devel at lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/devel

I do it with the following script, which is based on the build script
included in the kernel sources. It compilesa and then makes an uboot
image and a tarball with the modules:

---------------

#!/bin/sh

set -x

export CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-
#make -f synthesize-gta-module-configs.mak
make ARCH=arm silentoldconfig

KVERSION=$(make kernelversion)
VERSION=
if [ -d .git ] ; then
 HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16`
 BRANCH=`git branch | grep ^\* | cut -d' ' -f2`
 VERSION=-$BRANCH\_$HEAD
fi

if make -j5 ARCH=arm EXTRAVERSION=$VERSION; then
	${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin
	uboot-mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Openmoko Freerunner Kernel" -d linux.bin uImage.bin
	mm=$(mktemp -d /tmp/mokomod-XXXXX)
	make ARCH=arm EXTRAVERSION=$VERSION INSTALL_MOD_PATH=$mm modules_install && tar -cjvf modules-${KVERSION}${VERSION}.tar.bz2 -C $mm lib 
	rm -rf $mm
	exit 0
else
	exit 1
fi

---------------

Mok


PS: I'm suffering the WSoD too :( If you find out something - let us know  :)






More information about the devel mailing list