View Single Post
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#23
Originally Posted by humble View Post
Tested on N950. i had to modify

its cool i haven't tested other os as yet thou.

the symlink on the folders so

Code:
cd /mnt/boot
rm -Rf Harmattan 
mkdir Harmattan
cd Harmattan
mkdir boot
then copy kernel into /mnt/boot/Harmattan/boot
The symlinks in /boot/ of the ubifs partition point to "nothing" when you are running Harmattan and have mounted the ubifs partition under /mnt/ directory

Only when you boot up the device from the mnt4 partition and the init script mounts your "/dev/mmcblk0p2/" into "/mnt/2", then will the symlink "/boot/Harmattan->/mnt/2/" point to the real place, which is "/boot/" of your Harmattan root partition

Why I did it like this, I wanted to enable people to just create a /boot/ directory on the Harmattan rootfs, and copy kernel there instead of copying it on the ubiboot FS.

For functionality of course, it does not matter where you keep the kernels as long as they are somewhere where ubiboot kan see them

The important thing is to have the modules in the correct place for the booting 2nd level kernel to find them, which means "/lib/modules/" of the Harmattan root FS.
 

The Following 3 Users Say Thank You to juiceme For This Useful Post: