[Om2008.9] runaway proc events/0 && automatic reboot

Timo Juhani Lindfors timo.lindfors at iki.fi
Wed Jan 14 11:22:02 CET 2009


Matthias Apitz <guru at unixarea.de> writes:
> the point to start from to create my own Om2008.x kernel and userland or
> some other/better places to start? Thx

I do

1) ssh to a PC with debian unstable. You can easily install it to a
   chroot with http://iki.fi/lindi/schroot.txt if you don't want to
   break your normal installation.
1.2) sudo aptitude install emdebian-tools
1.3) sudo emsetup --arch armel
1.4) sudo emsetup --arch armel
1.5) verify that arm-linux-gnueabi-gcc works:

$ cat > hello.c <<EOF
#include <stdio.h>
int main(void) {
printf("Hello world\n");
return 0;
}
EOF
$ arm-linux-gnueabi-gcc -o hello hello.c
$ file hello
hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped

2) git clone git://git.openmoko.org/git/kernel.git linux-2.6
3) git branch lindi origin/stable-tracking
4) modify ./build to use your compiler:
-export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
+export CROSS_COMPILE=arm-linux-gnueabi-
5) ./build dummy
6) suggested change:
@@ -52,6 +52,8 @@ if make -j5 ARCH=arm CONFIG_DEBUG_SECTION_MISMATCH=y EXTRAVERSION=$VERSION; then
        if [ ! -z "`grep CONFIG_USB_USBNET=y .config`" ] ; then
                rm -f uImage-moredrivers*-$PRODUCT.bin modules-*$PRODUCT.tar.gz
                cp uImage-$PRODUCT.bin uImage-moredrivers$VERSION.bin
+               cp arch/arm/boot/zImage zImage$VERSION
+               cp .config config$VERSION
                rm -rf staging
                mkdir -p staging
                if [ ! -z "$1" ] ; then

I have added these instructions to wiki under Development_Environment





More information about the community mailing list