![]() |
N9 kernel Update Project
Hello sailors,
I complete the process in GitHub. https://github.com/nemomobile/kernel-adaptation-n950-n9 I'm compiling to kernel with sb2 arm compliler. I get stuck at some point. https://wiki.merproject.org/wiki/N9_...update_project "Build instructions from git" I proceed from the point. user@SDK:~$ sudo su [sudo] password for user: root@SDK:/home/user# /srv/mer/ sdks/ targets/ root@SDK:/home/user# /srv/mer/ sdks/ targets/ root@SDK:/home/user# /srv/mer/sdks/sdk/mer-sdk-chroot Mounting system directories... Mounting / as /parentroot Mounting home directory: /home/user Entering chroot as user sailor@SDK:~$ su Password: [root@SDK user]# /srv/mer/targets/n950rootfs/ bash: /srv/mer/targets/n950rootfs/: is a directory [root@SDK user]# cd /srv/mer/targets/n950rootfs/ [root@SDK n950rootfs]# sb2-init -L "--sysroot=/" -C "--sysroot=/" -c /usr/bin/qemu-arm-dynamic -m sdk-build -n -N -t / nemo-n950 /opt/cross/bin/armv7hl-meego-linux-gnueabi-gcc Using /opt/cross/bin/armv7hl-meego-linux-gnueabi-gcc to detect target architecture: collect2: cannot find 'ld' Finished writing sb2.gcc.config gcc configured. sb2-init: Target architecture is 'armv7hl' sb2-init: Host architecture is 'i[3456]86' Finished writing sb2.config sb2-init: Creating Debian build system settings for this target: [root@SDK n950rootfs]# cd usr/src/ debug/ kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1/ kernel-adaptation-n950-n9-master/ kernels/ [root@SDK n950rootfs]# cd usr/src/ debug/ kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1/ kernel-adaptation-n950-n9-master/ kernels/ [root@SDK n950rootfs]# cd usr/src/kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1/ [root@SDK kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1]# sb2 make n9_mer_defconfig sb2: Error: Invalid target specified, aborting. [root@SDK kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1]# sb2 make -j4 zImage sb2: Error: Invalid target specified, aborting. [root@SDK kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1]# sb2 make -j4 modules sb2: Error: Invalid target specified, aborting. [root@SDK kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1]# sb2 make modules_install INSTALL_MOD_PATH=./mods sb2: Error: Invalid target specified, aborting. [root@SDK kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1]# |
Re: N9 kernel Update Project
I have not used scratchbox2 for compiling to N9 but it looks to me you have some misconfiguration in scratchbox itself.
|
Re: N9 kernel Update Project
It took 5 hours.
|
Re: N9 kernel Update Project
Is there a shortcut?
|
Re: N9 kernel Update Project
Quote:
What was the fix, reconfiguring scratchbox? Missing dependency? Quote:
Yes, there are lots of ways you can do it. Using scratchbox is one, using just the crosscompiler without chrooting is another, and using native compiler on the device itself is third. However compiling on any crosscompile-method on any decent PC hardware should not take 5 hours! Less than 30 minutes is something you'd expect. (except if you are compiling on cygwin env under windoze or something silly like that... then it might as well take a week or so :eek:) |
Re: N9 kernel Update Project
BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands. /home/user # cd kernel-adaptation-n950-n9-maste r/ sh: cd: can't cd to kernel-adaptation-n950-n9-master/ /home/user # cd MyDocs/kernel-adaptation-n950-n 9-master/ /home/user/MyDocs/kernel-adaptation-n950-n9-mas/home/user/MyDocs/kernel-adaptation-n950-n9-master # make clean; make mrproper; ARCH=arm make rm696_nemo_defconfig CLEAN scripts/basic HOSTCC scripts/basic/fixdep scripts/basic/fixdep.c:106: fatal error: sys/types.h: No such file or directory compilation terminated. make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 /home/user/MyDocs/kernel-adaptation-n950-n9-master # |
Re: N9 kernel Update Project
Only one problem has.
sudo ./copy_kernel.sh /<path-to>/<mounted>/<N9 filesystem> |
Re: N9 kernel Update Project
I solved other problems.
It's about the n9_mer_defconfig file. |
Re: N9 kernel Update Project
/boot dictionary in bzImage and ubiboot.conf file editing but not work 3.5.3 kernel
|
Re: N9 kernel Update Project
/rootfs/boot # ls -l
total 19304 lrwxrwxrwx 1 root root 6 Apr 30 07:18 bzImage -> zImage -rwxr-xr-x 1 root root 3437368 Apr 30 07:18 zImage -rw-r--r-- 1 29999 root 2777948 Mar 11 2014 zImage-2.6.32.54-dfl61-20121301 -rw-r--r-- 1 29999 root 2860652 Mar 11 2014 zImage.pr13 -rw-r--r-- 1 29999 root 2777924 Mar 11 2014 zImage_2.6.32.54-openmode_l2fix -rw-r--r-- 1 29999 root 7899680 Mar 7 2014 zImage_2.6.32.54-ubiboot-02_040613 /rootfs/boot # |
Re: N9 kernel Update Project
Did you also upload modules & do depmod on them?
|
Re: N9 kernel Update Project
How to upload modules ?
//Sorry my bad English :) My pc in cd KernelDictionary and using depmod -a command. Is it a wrong action? |
Re: N9 kernel Update Project
Quote:
When you're done, you will find the modules under the lib/modules/<version_number> directory on your build directory. Take a tar of the modules directory, untar it to /lib/modules/ of your device, and say "depmod -a <version_number>" in the <version_number> directory. |
Re: N9 kernel Update Project
sb2 -t nemo-n950 make n9_mer_defconfig
sb2 -t nemo-n950 make -j4 zImage sb2 -t nemo-n950 make -j4 modules sb2 -t nemo-n950 make modules_install INSTALL_MOD_PATH=./mods ./prepare_modules.sh /media/user/rootfs adding kernel header ... using telnet mv kernel archives rootfs ./copy_kernel.sh /<path-to>/<mounted>/<N9 filesystem # The second OS is usually Harmattan. # This section lists the Harmattan specific switches and kernels G_OS2_NUM=5 G_OS2_AUTOBOOT=0 G_OS2_PARTITION=2 G_OS2_NAME="Harmattan" G_OS2_1_LABEL="2.6.32.54 + fbconsole" G_OS2_1_FILE="/boot/Harmattan/boot/Image-2.6.32.54-fbconsole" G_OS2_2_LABEL="2.6.32.54 Nemo backport" G_OS2_2_FILE="/boot/Harmattan/boot/zImage-2.6.32.54-juice_backport" G_OS2_3_LABEL="Nitdroid pr13 kernel" G_OS2_3_FILE="/boot/Harmattan/boot/zImage.pr13" G_OS2_4_LABEL="Openmode + L2fix" G_OS2_4_FILE="/boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix" G_OS2_5_LABEL="Linux Kernel 3.5.3" G_OS2_5_FILE="/boot/Harmattan/boot/bzImage" G_OS2_6_LABEL="" G_OS2_6_FILE="" |
Re: N9 kernel Update Project
I open bootloader then opens and MeeGo.
Flash red lights and turns off. |
Re: N9 kernel Update Project
root@SDK:/home/user/Masaüstü/kernel-adaptation-n950-n9-nemo-n9-3.5.3.20130912.1#
sudo ./copy_kernel.sh /media/user/rootfs/ Copying modules Copying zImage to /boot linking /boot/bzImage to point to zImage instead of vmlinuz* Copy done. If you want to revert back to old kernel change the bzImage symlink to point back to original vmlinuz-2.6* file in /media/user/rootfs//boot dir |
Re: N9 kernel Update Project
What does your ubiboot.log say, you can find some information from there why the loading fails.
|
Re: N9 kernel Update Project
|
Re: N9 kernel Update Project
Device boot on Openmode l2fix kernel.
|
Re: N9 kernel Update Project
Do I need to delete the old modules? We will delete Or later?
|
Re: N9 kernel Update Project
Quote:
As it is, unfortunately ubiboot cannot detect problems that happen after loading the kernel, for example if there are problems loading the modules or running init. Quote:
When the kernel boots, it will try to load the modules from the directory named like release number, so the original N9 kernel will try to load from /lib/modules/2.6.32.54-dfl61-20121301, and the kernel-plus from /lib/modules/2.6.32.61-plus. This way you can have multiple kernels to boot, each one will know to load its modules from its own module directory. |
Re: N9 kernel Update Project
I'm selected kernel 3.5.3 on ubiboot menu .
nokia red lettering came out and closed. |
Re: N9 kernel Update Project
Quote:
After all it took real hard effort of a talented person (@Hurrian) to make the port from 2.6.32-54 to 2.6.32-61 ! What's your diff linecount? Can you publish your port, please? |
Re: N9 kernel Update Project
juiceme: you can already get a working 3.5.3 kernel for N9 from filippz github repository, which is the kernel used in latest SFOS and Nemo images for N9. It's already available, and works!
|
Re: N9 kernel Update Project
I using 3.5.3 kernel with sfos and nemo working on N9.
|
Re: N9 kernel Update Project
Quote:
I assume that branch is not directly compatible with it? |
Quote:
|
Re: N9 kernel Update Project
Quote:
Prominent Features in 3.1 Prominent Features in 3.2 Prominent Features in 3.3 Prominent Features in 3.4 Prominent Features in 3.5 |
Re: N9 kernel Update Project
How to install Wayland on SailfishOS ?
Is it possible to SailfishOS SDK? or Mer SDK ? |
Re: N9 kernel Update Project
SFOS comes with Wayland already :)
In fact you cannot use it without :p |
Re: N9 kernel Update Project
Applications crashes, this normal?
|
Re: N9 kernel Update Project
Quote:
Do they crash in startup or later? Do you invoke start from launcher or from terminal? What do you get in journal when an application crashes? If started from terminal, what gets written to stdout/stderr? etc... etc...? |
All times are GMT. The time now is 23:34. |
vBulletin® Version 3.8.8