Reply
Thread Tools
Posts: 7 | Thanked: 0 times | Joined on Mar 2010
#1
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's Avatar
Posts: 1,671 | Thanked: 11,478 times | Joined on Jun 2008 @ Warsaw, Poland
#2
Use nokia_n800_defconfig instead?
__________________
As you go on to other communities, remember to build them around politeness, respect, trust and humility. Be wary of poisonous people and deal with them before they end up killing your community.. Seen it happen to too many IRC channels, forums, open source projects.
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2010
#3
Originally Posted by Stskeeps View Post
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).
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#4
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.
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2010
#5
Originally Posted by lma View Post
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.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 03:36.