maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Unable to boot compiled kernel on N800 (https://talk.maemo.org/showthread.php?t=47019)

leob 2010-03-10 15:48

Unable to boot compiled kernel on N800
 
Hello!

I am currently messing around with the mtd drivers on the N800 and need to boot it with a custom-made kernel. In order to test that I could actually boot at all with a custom-made kernel I downloaded the kernel source for diablo_2.6.21 and compiled it with the default settings. Compilation works fine, but no matter what I do, I cannot make the tablet boot from the new kernel.

This is what I have done:
1. Downloaded kernel source
2. sb2 make nokia_2420_defconfig (no errors)
3. sb2 make zImage (no errors)
4. Flashed with 'sudo ./flasher-3.0 -f -R -k zImage' (no errors)

When the tablet reboots after flashing, it gets as far as the splash screen and then shuts down.

What am I doing wrong? Is there any way to get hold of the bootlog to see what is failing?
Best regards,
//Leo

Stskeeps 2010-03-10 17:20

Re: Unable to boot compiled kernel on N800
 
Use nokia_n800_defconfig instead?

leob 2010-03-10 17:24

Re: Unable to boot compiled kernel on N800
 
Quote:

Originally Posted by Stskeeps (Post 562751)
Use nokia_n800_defconfig instead?

The default config nokia_n800_defconfig does not exits. If you mean using 'sb2 make n800_defconfig', it will not even compile.

From what I have gathered when searching for a solution, the n800_defconfig is for compiling the old kernel for OS2007, while the nokia_2420_defconfig is for OS2008 (which is what I am running).

lma 2010-03-10 20:42

Re: Unable to boot compiled kernel on N800
 
Could be a compiler incompatibility? The kernel package's debian/rules builds it with:

Code:

DEFCONFIG := nokia_2420_defconfig
REPO := kernel-source
[...]
        make -C $(REPO) HOSTCC=host-gcc $(DEFCONFIG)

and on an sb1-based SDK at least "host-gcc" is a different version to the default one:

Code:

[sbox-DIABLO_ARMEL: ~] > host-gcc --version
host-gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[sbox-DIABLO_ARMEL: ~] > gcc --version
sbox-arm-linux-gcc (GCC) 3.4.4 (release) (CodeSourcery ARM 2005q3-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


leob 2010-03-10 21:39

Re: Unable to boot compiled kernel on N800
 
Quote:

Originally Posted by lma (Post 562972)
Could be a compiler incompatibility?

I'll look into it. Seems strange though since I manage to compile kernel modules without any trouble...

Any tips on how to solve it? I am not exactly very experienced when it comes to Scratchbox or kernel compiling.


All times are GMT. The time now is 08:23.

vBulletin® Version 3.8.8