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)

nickh 2019-11-22 18:14

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have tried a number of things, and am still unable to get past the Bootloader when i am trying to boot SFOS WIP 0.13. Was able use 2.0.11.1 for a while. Is there any recommendations for default rom in multiboot? or any thoughts on what else i could be doing wrong here.

My current path is:
base rom: https://forum.xda-developers.com/goo...e-zip-t3157299 with franco kernel
Recovery: 2.8.7 multirom
cm zip: cm-12.1-20160704-UNOFFICIAL-hammerhead-nocheck.zip
SFOS rootfs: sailfishos-hammerhead-release-3.2.0.12-cm12.1-wip0.13.zip

I am thinking of recording a video of my steps if anyone things that might be best.

Thanks in advance for the help, you all have been very helpful with everything!

edp17 2019-11-22 20:43

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I am using the factory 6.0.1 rom from this post (Download section)
You need a kexec kernel from the same post (Kernel w/ kexec-hardboot patch (Stock 6.0 and 6.0.1):)

Let me dig out how I installed multirom on my Nexus 5 and will come back soon.

edp17 2019-11-22 20:50

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I see now.
Did you flash a kexec kernel?
Did you installed the modified MultiROM Manager Android apk?
You already mentioned the TWRP, so that should be ok, however I would install the one from the previous post (TWRP_multirom_hammerhead_20160210.img)
With this you cannot flash additional zip on an existing rom but you can install sailfish or ut with it.

edp17 2019-11-22 22:04

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

Originally Posted by mautz (Post 1562456)
Deleting the kernel files and do a repo sync should be enough, give it a try, it would only download about 300megs or so if this works.

And please create a Gihub account and push your work there, it would make everythin much easier. And please use patches with git and do not modify all the files by hand.

I have deleted the kernel folder in my android tree, then cloned Jonh's kernel (cm-12.1), then applied all commits you recommended and changed the flags in the defconfig.

Finally I have forked John's kernel into my repo and followed the instruction in the hadk at section 5.4.1 Kernel config - Contribute your mods back. I used the hybris-12.1-edp17 branch.
However when I checked this branch in github the only changed file I saw was the defconfig. :eek:
When I applied those commits from your post, I changed a lots of files. I thought when I push my work to the github, it will include all of them.

I see now why. Because the doc says:
"DEFCONFIG=arch/arm/configs/cyanogenmod_hammerhead_defconfig

git add $DEFCONFIG"

So basically I just pushed that file only.

And my kernel compilation just crashed at this moment. Great. :(

edp17 2019-11-22 22:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The errors are:
Code:

../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c:200:18: error: redefinition of parameter 'type'
    unsigned int type, unsigned int code, int value)
                  ^
../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c:199:65: note: previous definition of 'type' was here
 static int hidp_input_event(struct input_dev *dev, unsigned int type,
                                                                ^
../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c: In function 'hidp_setup_input':
../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c:712:15: warning: assignment from incompatible pointer type [enabled by default]
error, forbidden warning: core.c:712
  AS      arch/arm/lib/memset.o
make[5]: *** [net/bluetooth/hidp/core.o] Error 1
make[4]: *** [net/bluetooth/hidp] Error 2
make[3]: *** [net/bluetooth] Error 2
make[2]: *** [net] Error 2


nickh 2019-11-22 22:11

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
For kernel I have tried Franco, kexec, and ElementalX.
Not sure about a modified MultiRom manager but the one I have says: Multirom v33a, recovery 2016-02-10 (I have tried both), kernel has kexec.

edp17 2019-11-22 22:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Nevermind, I have found it.
Multiple commits amended the same file 'net/bluetooth/hidp/core.c'
and that ha caused this.

edp17 2019-11-22 22:22

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

Originally Posted by nickh (Post 1562493)
For kernel I have tried Franco, kexec, and ElementalX.
Not sure about a modified MultiRom manager but the one I have says: Multirom v33a, recovery 2016-02-10 (I have tried both), kernel has kexec.

I have not tried those kernels. The one on the multirom post works as I am using that. I am not sure whether you need the modified multirom manager app, but I needed as wanted to install Ubuntu Touch too.
What I have done, rooted the stock 6.0.1 android, then installed a recovery, then installed the multirom apk, then installed the multirom TWRP.

I used this post for the multirom part. It says you need the multirom app too.

edp17 2019-11-22 22:34

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

Originally Posted by edp17 (Post 1562494)
Nevermind, I have found it.
Multiple commits amended the same file 'net/bluetooth/hidp/core.c'
and that ha caused this.

And got a new one:
Code:

../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c: In function 'hidp_hidinput_event':
../../../../../../kernel/lge/hammerhead/net/bluetooth/hidp/core.c:195:5: warning: 'hdr' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: core.c:195
make[5]: *** [net/bluetooth/hidp/core.o] Error 1
make[4]: *** [net/bluetooth/hidp] Error 2

I have a feeling that those commits are not enough. There should be something else too.

edp17 2019-11-22 22:44

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

I have pushed all other changes into github. Available in this commit

The defconfig is available in this commit.
Thank you.


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

vBulletin® Version 3.8.8