maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

mautz 2019-11-13 00:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Could you paste the content of your 'device/lge/hammerhead/sepolicy/file_contexts'
file on pastebin or a similar page?

Edit: SInce this seems to be an SELinux related problem, you could try to disable it and compile again.

Take a look at these commits:
https://github.com/RealJohnGalt/andr...371afbefae2cae
https://github.com/RealJohnGalt/andr...ebe9fc087c0226

Maybe you need to do a breakfast $device after doing this changes again.

edp17 2019-11-13 00:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I try another kernel cm-12.1 instead of stable/cm-12.1-YOG4P.
(The last commit on the cm-12.1 was in 2015 while the other cm-12.1-YOG4P changed in 2013 last time. It might matter.)

So, I have changed the local_manifest accordingly and am re-doing the repo init and sync. Then we will see how the kernel compilation goes.

edp17 2019-11-13 00:22

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1561906)
Could you paste the content of your 'device/lge/hammerhead/sepolicy/file_contexts'
file on pastebin or a similar page?

Edit: SInce this seems to be an SELinux related problem, you could try to disable it and compile again.

Take a look at these commits:
https://github.com/RealJohnGalt/andr...371afbefae2cae
https://github.com/RealJohnGalt/andr...ebe9fc087c0226

Maybe you need to do a breakfast $device after doing this changes again.

How did you find out this was SELinux related? I take a look into John's commits.

mautz 2019-11-13 00:33

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Just googled a bit.

Just use the cm-12.1 branch(without stable). RealJohnGalt was only a few commits behind and he got it working.

Edit:

And the waiting for other jobs to finish while compiling the kernel isn't an error. You'll get this message if one of the jobs stopped due to an error. This only tells you that the other jobs are still compiling and will finish their current work.

edp17 2019-11-13 00:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1561906)
Could you paste the content of your 'device/lge/hammerhead/sepolicy/file_contexts'
file on pastebin or a similar page?

Sorry, I missed this request. Unfortunately I started to download the other kernel branch (cm-12.1) so this file has probably overwritten.
I will do the compilation again (with selinux disabled) and if it fails I will post that file and let you know.
Thanks for your support! :)

edp17 2019-11-13 00:37

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1561909)
Just googled a bit.

Just use the cm-12.1 branch(without stable). RealJohnGalt was only a few commits behind and he got it working.

I should have checked this earlier. I checked the 'cyanogenmod_hammerhead_defconfig' file in both repo (John's and CM) and the 'CONFIG_SECURITY_SELINUX_BOOTPARAM' doesn't exist in John's repo, however it is commented out and in CM.
Now I am trying to find the location of BoardConfig.mk to double check the 'selinux=0' bit.

Edit: I have found it. In CM there is no 'selinux=0' but in John's there is. I will update these both files BoardConfig.mk and cyanogenmod_hammerhead_defconfig once the new kernel is downloaded and before I start compiling.

edp17 2019-11-13 00:46

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I should have used John's repos directly from the beginning. :( It would save me a few hours. (Although I gained a lot knowledge from this. :rolleyes:)

mautz 2019-11-13 00:50

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sorry, you are right, it was deleted by this commit:

https://github.com/RealJohnGalt/andr...371afbefae2cae

BoardConfig.mk should be in device/lge/hammerhead/ directory.

Good Luck!

mautz 2019-11-13 00:57

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
After a bit of reseaching, he disabled CONFIG_SECURITY_SELINUX_BOOTPARAM in his defconfig, because he disabled CONFIG_AUDIT which also disables SELinux.

Some information can be found in the files for the mer-kernel-check script here: https://github.com/mer-hybris/mer-ke...el_config#L196

edp17 2019-11-13 01:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1561914)
After a bit of reseaching, he disabled CONFIG_SECURITY_SELINUX_BOOTPARAM in his defconfig, because he disabled CONFIG_AUDIT which also disables SELinux.

Some information can be found in the files for the mer-kernel-check script here: https://github.com/mer-hybris/mer-ke...el_config#L196

Thank you!
I will adapt this change too. Although I am concerning he might have done too other changes am not aware of. :confused:

I am strongly thinking about to abort the sync which is running and using John's repos instead of the CM. (both the device and kernel)
Well, if the compilation errors again, I will scrap the whole repo I downloaded and use John's repos.

Thank you VERY much for your help!! I very much appreciated you stayed awake and helped me! In Germany it is already 2 in the morning. :)


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

vBulletin® Version 3.8.8