English

Porting LineageOS to FP2

lineageos
Tags: #<Tag:0x00007fefc3c8fdb0>

#21

I was basing that stuff off the CyanogenMod 12.1 port (which was never working) but I had to fix a lot of issues in very different parts of the boot process.

Are you willing to share your fixes? I was about to look into fp2 cm-12.1 issues, but it might be a better investment to look into 14.1, it looks promising already! Kudos!


#22

Investing into 12.1 is not worth it tbh. Lineage 13 could be interesting but I thought why not just jump to the latest and fix stuff there. Yes, it would have been easier with the steps in-between but I think it’s too late and too much work right now.


#23

I think it’s the right way to let the Fairphone Team work on Marshmellow and concentrate on Nougat.


#24

Agreed, do you have your fixes somewhere accessible? I.e. github?

Regards!


#25

Device tree: https://github.com/z3ntu/android_device_fairphone_fp2
Kernel source: https://github.com/z3ntu/android_kernel_fairphone_fp2 - see branches cm-14.1 and cm-14.1-merge right now.


#26

Hey, @z3ntu, given that @Arvil nor me are currently working on the port, you’re free to use and manage the WeAreFairphone organization repos if you wish:

(I finally managed GitHub Support to point the repos to the original ones, not mines, as you could see)

Congrats on your booting milestone, again. I’ll try to setup a server and try a few compilations, but I’m afraid I won’t have the time to work on this, only occasionally.

PS: Does anyone know if this Docker image works? It seems it had a reputation on XDA while it was docker-cyanogenmod.


#27

Awesome work, thank you.


#28

I actually want to keep the repos seperate for now.
About the docker image: I am actually using my own custom image for building found here.

Thanks :slight_smile:


#29

Would be great if we could join forces at WeAreFairphone (Github).


#30

Later hopefully :wink:

and some additional characters for 20 chars minimum


#31

After some initial trouble, my setup is finally up and running and I was able to test my first build.

Unsurprisingly I didn’t get everything right the first time…

01-01 04:58:01.628   870   870 E libEGL  : load_driver(/vendor/lib/egl/libEGL_adreno.so): 
dlopen failed: cannot locate symbol "RSA_verify_PKCS1_PSS" referenced by 
"/system/vendor/lib/egl/libEGL_adreno.so"...
01-01 04:58:01.628   870   870 F libEGL  : couldn't find an OpenGL ES implementation

My best guess is that I’m using the wrong library here. @z3ntu, which rom did you use to pull the blobs off the device? Was it the latest Fairphone Open (17.03.0), or some other version?


#32

Yep that’s because you don’t have the beautiful proprietary blobs :wink:

Put that stuff into your local manifest (you probably only have the first two repos in there) - and don’t ask why I declare a new remote for GitHub, I have my reasons:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote fetch="https://github.com/" name="github2" />
  <project name="z3ntu/android_device_fairphone_fp2" path="device/fairphone/fp2" remote="github2" revision="cm-14.1" />
  <project name="z3ntu/android_kernel_fairphone_fp2" path="kernel/fairphone/fp2" remote="github2" revision="cm-14.1" />
  <project name="FairBlobs/proprietary_vendor_fairphone" path="vendor/fairphone" remote="github2" revision="cm-14.1" />
</manifest>

#33

I see. Was hoping the extract-files.sh would pull everything I need.
Will give it a try tomorrow, thanks!


#34

Take the repo as already there are files from other phones that are tedious to get manually :slight_smile:

Btw the blobs are from a 6.0 preview build (17.04.1 to be precise) so I have no idea if 5.1 blobs work.


#35

Good news! The correct blobs did the trick. My build (Android 7.1.2) boots fine now. Debugging from here is a bit tricky though, since the USB port doesn’t work at all. This means no ADB or easy file transfer. I’ll try to sort that out first.

On a side note, there’s also bad news. A portion of my touch screen broke somewhere along the way (not related to the rom but more likely a hardware issue from what I read here on the forums). Which means that my phone might become unusable for a while soon…


#36

I’ll probably get my display replaced because of the “bright spot” issue but I’ll travel to England on Sunday and I need my phone there…


#37

Debugging from here is a bit tricky though, since the USB port doesn’t work at all. This means no ADB or easy file transfer. I’ll try to sort that out first.

compiling with brunch lineage_fp2-eng instead of brunch fp2 does the trick with ADB. Unfortunately I have no time to do debugging and developing, but I hope this helps someone :slight_smile:


#38

Hey,

it might help you guys, what I have recently done for FP2 and lineage.

It is pretty much a WIP (work-in-progress) and nowhere near a proper lineage device bringup.

But what works so-far to some extend:

  • Wifi, Bluetooth, 4G modem, audio, GPS, sensors, led notifications

What does not work at all:

  • Camera, Netflix (widevine?)

Not tested:

  • FM radio

Known issue:

  • Audio volume e.g. hangout calls too low.

Sources:




#39

Actually: camera works now :slight_smile:


#40

Netflix works when downgrading to older version.