[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
[13.01.207]I created device/kernel/vendor trees for Lenovo P2 (P2a42[kuntao_row] only).

Update[20.02.2017]:Work In Progress, just wait until it becomes bugless :)

How to install:
- Always make a nandroid backup before trying it.
- After making it make your wipes and install this zip.

Device Tree: https://github.com/Wzedlare/android_device_lenovo_p2a42
Kernel Source: https://github.com/Wzedlare/android_kernel_lenovo_msm8953
Vendor Blobs: https://github.com/Wzedlare/android_vendor_lenovo_p2a42

Credits and thanks goes to: @wzedlare @kaankulahli @celoxocis @DeftonesOT
 
Last edited:

celoxocis

Senior Member
Apr 12, 2010
1,597
2,171
0
Belgrade
You can pull the missing blobs/files from the stock ROM. Just use Superr's Kitchen to extract them. I contacted him and he has already added support for the chunk file extract for Lenovo.

Look at my github repo for the partition sizes or lookup the "Lenovo P2 is coming soon" thread for all partition information.

You actually don't need root to figure out the partition size.
 

wzedlare

Senior Member
Jul 7, 2015
552
1,104
133
Adana, Turkey
You can pull the missing blobs/files from the stock ROM. Just use Superr's Kitchen to extract them. I contacted him and he has already added support for the chunk file extract for Lenovo.

Look at my github repo for the partition sizes or lookup the "Lenovo P2 is coming soon" thread for all partition information.

You actually don't need root to figure out the partition size.
I will fix the partition sizes but I'm not sure about blobs because they seem to be symlinked to firmware and persist partitions
 
  • Like
Reactions: nandakis4

maxysoft

Senior Member
May 6, 2011
57
8
0
Rome
I'm trying to install the zip but it gave a an error 7. Can I edit the updater-script and remove the first 2 rows or this can be a problem? I can also upload the files you are missing just tell me where can i find the msadp cause I can't find it..
 

Attachments

maxysoft

Senior Member
May 6, 2011
57
8
0
Rome
The rom doesn't boot. After the reboot from the recovery it goes into bootloader and if I force it to start after the lenovo logo the screen became black with a blue led and the phone vibrates for 3 sec.
 

celoxocis

Senior Member
Apr 12, 2010
1,597
2,171
0
Belgrade
I'm trying to install the zip but it gave a an error 7. Can I edit the updater-script and remove the first 2 rows or this can be a problem? I can also upload the files you are missing just tell me where can i find the msadp cause I can't find it..
That''s because the TWRP i build was made specifically for zip files containing the proper "ro.build.product=" like stock zip files and stock OTA files do. Allowing TWRP to be compatible with those files and prefenting "not so advanced" users from installing the wrong ROM.

https://github.com/Celoxocis/android_device_lenovo_P2a42/blob/cm-13.0/system.prop#L4

You need to open up the zip file and change that information accordingly.

---------- Post added at 16:56 ---------- Previous post was at 16:54 ----------

The rom doesn't boot. After the reboot from the recovery it goes into bootloader and if I force it to start after the lenovo logo the screen became black with a blue led and the phone vibrates for 3 sec.
Meaning stock graphic blobs are not working with AOSP base.
 

maxysoft

Senior Member
May 6, 2011
57
8
0
Rome
That''s because the TWRP i build was made specifically for zip files containing the proper "ro.build.product=" like stock zip files and stock OTA files do. Allowing TWRP to be compatible with those files and prefenting "not so advanced" users from installing the wrong ROM.

https://github.com/Celoxocis/android_device_lenovo_P2a42/blob/cm-13.0/system.prop#L4

You need to open up the zip file and change that information accordingly.

---------- Post added at 16:56 ---------- Previous post was at 16:54 ----------



Meaning stock graphic blobs are not working with AOSP base.
Do you know how to fix that? I have everything of my computer and if you can tell me what files need to be changed I can try to fix it. Thanks
 

celoxocis

Senior Member
Apr 12, 2010
1,597
2,171
0
Belgrade
As I said before, there are some files symlinked to other parts like firmware and persist.I can't pull them because I am not root.


No! Everything that is in persist is actually just calibration data. Its called persist to "persist" between reboots.
Everything placed there comes from system.
For those files look in:
/system/etc/wifi/WCNSS_qcom_cfg.ini
/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv_lenovo.bin
./system/etc/firmware/wlan/prima/WCNSS_wlan_dictionary_lenovo.dat

just rename them properly for a bring-up.
 

celoxocis

Senior Member
Apr 12, 2010
1,597
2,171
0
Belgrade

wzedlare

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

kaankulahli

Senior Member
Sep 3, 2015
317
446
0
İstanbul
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