Active Topics

 


Reply
Thread Tools
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#1
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]#
 

The Following User Says Thank You to mfiskindal For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#2
I have not used scratchbox2 for compiling to N9 but it looks to me you have some misconfiguration in scratchbox itself.
 
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#3
It took 5 hours.
 
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#4
Is there a shortcut?
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#5
Originally Posted by mfiskindal View Post
It took 5 hours.
So you did manage to compile it after all?
What was the fix, reconfiguring scratchbox? Missing dependency?


Originally Posted by mfiskindal View Post
Is there a shortcut?
Do you mean is there an alternate way to compile the N9 kernel?
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 )
 
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#6
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 #
 
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#7
Only one problem has.
sudo ./copy_kernel.sh /<path-to>/<mounted>/<N9 filesystem>
 
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#8
I solved other problems.
It's about the n9_mer_defconfig file.
 
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#9
/boot dictionary in bzImage and ubiboot.conf file editing but not work 3.5.3 kernel
 
Posts: 20 | Thanked: 2 times | Joined on Oct 2014
#10
/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 #
 
Reply

Thread Tools

 
Forum Jump


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