[DEV] LineageOS bring-up thread for Lenovo P2 [P2a42]

Status
Not open for further replies.

wzedlare

Senior Member
Jul 7, 2015
552
1,104
133
Adana, Turkey

maxysoft

Senior Member
May 6, 2011
57
8
0
Rome
I already tried to change the zimage with the stock one and is the same thing. The only difference is that the phone doesn't reboot into bootloader after Rom flash

Inviato dal mio Lenovo P2a42 utilizzando Tapatalk
 

wzedlare

Senior Member
Jul 7, 2015
552
1,104
133
Adana, Turkey
I already tried to change the zimage with the stock one and is the same thing. The only difference is that the phone doesn't reboot into bootloader after Rom flash

Inviato dal mio Lenovo P2a42 utilizzando Tapatalk
If it stucks at logo instead of rebooting to bootloader, we should use new boot with stock zimage.Can you flash this zip after the rom(which includes boot.img with stock zimage).This time we will try msm8952 gpu blobs.If it won't boot again, you should take logcat.

https://mega.nz/#!SwlxCAaT!OfS7nVhCpB0kgogU6LNwdQrlZr1g3sHYOBUlkqaBFZw

How to take a logcat?
- Use the boot.img that I gave in my previous message.
- Use this code to take a logcat in adb folder.
Code:
adb logcat > log.txt
Wait for some time and unplug your phone,then upload and share it with us.It might not be caused by gpu blobs.
 
Last edited:

maxysoft

Senior Member
May 6, 2011
57
8
0
Rome
If it stucks at logo instead of rebooting to bootloader, we should use new boot with stock zimage.Can you flash this zip after the rom(which includes boot.img with stock zimage).This time we will try msm8952 gpu blobs.If it won't boot again, we should take logcat.

https://mega.nz/#!SwlxCAaT!OfS7nVhCpB0kgogU6LNwdQrlZr1g3sHYOBUlkqaBFZw

How to take a logcat?
- Use the boot.img that I gave in my previous message.
- Use this code to take a logcat in adb folder.
Code:
adb logcat > log.txt
Wait for some time and unplug your phone,then upload and share it with us.It might not be caused by gpu blobs.
Yes let me backup everything and I'll also try your boot.img

I've tried to flash first the rom and your boot.img without any fix and now the bootanimation appears but when appears preparation boot the phone restarts and again the black screen with blue LEDs. Here is the logcat
 

Attachments

Last edited:

wzedlare

Senior Member
Jul 7, 2015
552
1,104
133
Adana, Turkey
Yes let me backup everything and I'll also try your boot.img

I've tried to flash first the rom and your boot.img without any fix and now the bootanimation appears but when appears preparation boot the phone restarts and again the black screen with blue LEDs. Here is the logcat
Well then, I should fix the kernel source.I will fix f2fs.You will try the new kernel with your stock rom.If it boots, then we will proceed to cyanogenmod :)
 

maxysoft

Senior Member
May 6, 2011
57
8
0
Rome
Well then, I should fix the kernel source.I will fix f2fs.You will try the new kernel with your stock rom.If it boots, then we will proceed to cyanogenmod :)
I've put the missing imscmlibrary.jar but the phone won't boot. Here is another logcat.I will try the boot.img with the stock rom but after that I have to go. I will be away for a bit.

edit.
The boot.img isn't working on the stock rom. Stucks on the lenovo logo
 

Attachments

Last edited:

wzedlare

Senior Member
Jul 7, 2015
552
1,104
133
Adana, Turkey
I need someone to test CM Recovery, if it works then it means that compiled kernel is working perfectly.By the way my oem will be unlocked after 6 more days :) It will make it faster to boot cyanogenmod.It is just matter of minutes but my oem is locked and I have been waiting for days for its approval from lenovo.

https://mega.nz/#!v0szgLwZ!5gvv73Zo3fS-YiHr4wFSFbTcRuKhOdXHiegSr707fOk

How to try using fastboot? Just boot it, booting won't replace your recovery, it is just one time trying then you can use your twrp again.
Code:
fastboot boot recovery.img
 
Last edited:
  • Like
Reactions: ilmervanhattem

ilmervanhattem

Senior Member
May 21, 2013
221
33
0
37
Amsterdam
I need someone to test CM Recovery, if it works then it means that compiled kernel is working perfectly.By the way my oem will be unlocked after 6 more days :) It will make it faster to boot cyanogenmod.It is just matter of minutes but my oem is locked and I have been waiting for days for its approval from lenovo.

https://mega.nz/#!v0szgLwZ!5gvv73Zo3fS-YiHr4wFSFbTcRuKhOdXHiegSr707fOk

How to try using fastboot? Just boot it, booting won't replace your recovery, it is just one time trying then you can use your twrp again.
Code:
fastboot boot recovery.img


and then..



3th try...



Will try tommorow, maybe I'm doing it wrong.
Tired af, so bedtime.

Take care
 
Last edited:

ilmervanhattem

Senior Member
May 21, 2013
221
33
0
37
Amsterdam
Got TWRP flashed and rooted, converted to ext4, wiped, and then/but when installing CM error 7 pops up! Talk to you guys tommorow.

EDIT: Fixed! Working fresh original rom with ext4, twrp and supersu! Happy.
 
Last edited:

wzedlare

Senior Member
Jul 7, 2015
552
1,104
133
Adana, Turkey

ilmervanhattem

Senior Member
May 21, 2013
221
33
0
37
Amsterdam
You didn't need to test cm, you should just try booting recovery :)

This time, try booting this one with fastboot boot.

https://mega.nz/#!34sBRCpA!G0fO70mJlqxSL9fL9qEhmHpi-Xyp9DjoEzIsoffDjDM
Code:
C:\P2a42-Root>fastboot boot recovery.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
downloading 'boot.img'...
OKAY [  0.563s]
booting...
OKAY [  0.518s]
finished. total time: 1.086s
but no recovery boots...
 

wzedlare

Senior Member
Jul 7, 2015
552
1,104
133
Adana, Turkey
Status
Not open for further replies.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone