maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   kernel compilationl problems n9 meego (https://talk.maemo.org/showthread.php?t=84345)

fedyame 2012-05-18 22:06

kernel compilationl problems n9 meego
 
Hi all i'm trying to compile own kernel for n9


steps:
1./scratchbox/login (now i'm into sdk)
2.apt-get source kernel
3.cd kernel-2.6.32/
4.make rm581_defconfig
5.make -j4

in out i get zImage kernel file


i flash it

/flasher -a DFL61_HARMATTAN_30.2012.07-1_PR_LEGACY_001-OEM1-958_ARM.bin -k zImage --flash-only=kernel -f -R


But kernel still not bootable.
After reboot i see only "Warning message" boot process stopped
and after 3-5 minutes of stuck phone reboot again.

Please help me.

rainisto 2012-05-19 07:41

Re: kernel compilationl problems n9 meego
 
you did not not upload the matching modules to phone, so it doesn't bootup. You need to patch the kernel not to check kernel modules during boot if you want to be able to bootup without uploading the matching modules.

fedyame 2012-05-19 10:29

Re: kernel compilationl problems n9 meego
 
I use default kernel that already installed in my n9
in other linuxes if kernel is same and version not changed
not to do anything with modules

rainisto 2012-05-19 12:59

Re: kernel compilationl problems n9 meego
 
Quote:

Originally Posted by fedyame (Post 1209138)
I use default kernel that already installed in my n9
in other linuxes if kernel is same and version not changed
not to do anything with modules

Sorry to disapoint you, but it has everything to do with kmod_check. Check the openmode patch for the change in kmod. Other linuxes dont have timestamp/kmod checking enabled.

fedyame 2012-05-20 23:09

Re: kernel compilationl problems n9 meego
 
Actually i trying to compile official sources

in SDK
  • apt-get source kernel
  • cd kernel-2.6.32
  • dpkg-buildpackage -b -uc -rfakeroot

in out i get zImage and lots of kernel deb files
seems i needed only zImage
i flashed it again and phone stucks in bootloop after scary screen.


openmode patch applied into debian/rules

rainisto 2012-05-21 04:24

Re: kernel compilationl problems n9 meego
 
apt-get does not give you matching kernel sources, you needs to compile the kernel sources from dvd which matches your PR release.

PS. If you want to boot into apt-get kernel, then you also need to copy/install all the matching kernel modules to /lib/modules/current before booting to your kernel. Flashing zImage only is only possible when you compile kernel that matches your PR release with patch applied. In all other combinations (like apt-get version, vanilla without patch or changed kernel config) you need also install all the kernel modules (to /lib/modules/current/) before you boot to your new kernel.

coderus 2012-05-21 04:25

Re: kernel compilationl problems n9 meego
 
here: http://talk.maemo.org/showthread.php?t=83017


All times are GMT. The time now is 06:09.

vBulletin® Version 3.8.8