[Q] Compiling CM kernel from source - G2 and Desire Z Q&A, Help & Troubleshooting

My problem was caused because $CCOMPILE wasn't set. Mods please delete this post

Related

Compile CM9 with CMParts included

Hi all,
I've managed to properly build CM9 so far, but I noticed somehow CM settings aren't included. Does anyone know how to add this to the build? What I tried so far:
Downloaded the source files for CMParts from CM github, placed them in /packages/apps/CMParts/ and added CMParts to the core.mk file in build/../.
It starts compiling, but always returns an error complaining about deprecated API's.
Hope someone can give some advice here! Been searching like crazy the past few days, but cannot seem to find the answer. Thanks in advance...
(oh, and while I'm at it: after a build I have to manually add a couple of libs to /system/vendor/firmware/ -bcm4330 and some others-. Is there anyway to include them in the source so that they are automatically added? Thanks! )

[DEV] LG P350 general dev thread - CM 7 & 9 or kernel development

THIS THREAD IS FOR DEVELOPERS ONLY!
Please do not post your problems with ROM here.
Post your ideas about working on ICS or CM7 and your problems with compiling sources or similiar.
I posted my p350 sources on github:
https://github.com/pax0r
You will find an instruction how to download mine soruces and compile it by yourself at:
https://github.com/pax0r/android_device_lge_pecan
Here we can speak how to improve this ROM ( 7.2 ) and also how to work on ICS. On my github you can find branch "ics" - it is somehow releated to my work on ICS but it's not complete.
So let's make our device EPIC!
For the begining I will post my problems releated to working on P350:
The problem I have with 7.2 release is that BT is not working - drapalyuk fixed it somehow in last release but I don't know how. If any one have idea what was changed from 1910 to 2010 drap release please let me know!
Also I started to port .35 kernel for our phone - but it's not working yet. Kernel boots and console via adb is usable at this moment but Android itself does not start on it. I will post more in this topic later.
now syncing the source
hi pax0r,
I'm trying to build CM 7.2 using your guide and source code but I notice a couple of issue that maybe create problems to someone beginner like me:
1) if you run ./extract-files.sh on a phone with CM 7.2 (vivekkalady) the extraction will fail on 3 files: libloc-rpc.so, libloc.so, libcommondefs.so. Maybe they are located in a different path.
2) I think this line of code in extract-files.sh is wrong:
Code:
adb pull /system/lib/hw/gralloc.default.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib/hw/gralloc.default.so
it should be:
Code:
adb pull /system/lib/hw/gralloc.default.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib/hw/gralloc.pecan.so
to avoid issue later.
I'd like to try to compile ics. What do you think is missing to make it works?
Best Regards,
Gabriele
hi pax0r,
the market crash few times at the begin but after I reboot it seems to be fine.
I attached the logcat.
Gabriele
megasoft78 said:
hi pax0r,
I'm trying to build CM 7.2 using your guide and source code but I notice a couple of issue that maybe create problems to someone beginner like me:
1) if you run ./extract-files.sh on a phone with CM 7.2 (vivekkalady) the extraction will fail on 3 files: libloc-rpc.so, libloc.so, libcommondefs.so. Maybe they are located in a different path.
2) I think this line of code in extract-files.sh is wrong:
Code:
adb pull /system/lib/hw/gralloc.default.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib/hw/gralloc.default.so
it should be:
Code:
adb pull /system/lib/hw/gralloc.default.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib/hw/gralloc.pecan.so
to avoid issue later.
I'd like to try to compile ics. What do you think is missing to make it works?
Best Regards,
Gabriele
Click to expand...
Click to collapse
Thanks for your contribute
For me there are no missing libs - I was running it on 7.1 so mby Vivek 7.2 is missing them?
About gralloc - there should be two libraries gralloc.default.so and gralloc.pecan.so
About ICS I have no idea yet and now no time to look at it - studies, work and 7.2 rom is everything I can do at once ;P
pax0r said:
Thanks for your contribute
For me there are no missing libs - I was running it on 7.1 so mby Vivek 7.2 is missing them?
About gralloc - there should be two libraries gralloc.default.so and gralloc.pecan.so
About ICS I have no idea yet and now no time to look at it - studies, work and 7.2 rom is everything I can do at once ;P
Click to expand...
Click to collapse
I think the problem about missing libs is related with vivek 7.2 rom.
it's strange but I can't see gralloc.pecan.so. Anyway I'll check it this evening.
I was able to build everything using your tutorial but now I want to try with ICS. I need a bit of searching on internet.
Thank you for your work,
Gabriele
Hm I've checked it and it fact there were no gralloc.pecan in extract - it was obviously a bug, I pulled everything from device, then I was making some refactoring and I didnt check it after that. I will push commit with fixes today.
Thanks for pointing it!
I see a keylayout headset push, how did you make the headset button works? I replaced both keylayout (qwerty with the haptic fix and 7k), but the dammed button still with problems =/
Thanks
PD: The new implementation of gralloc will fix the dammn warning of prelink? (on the log)
I'm not sure if this keylayout will make headset work as I don't have one but it was suggested that it may help but this need test. New gralloc is because it is open source comparing to the original propriety one and I'm testing its speed - it is at least the same so I will leave it
To solve a problem with prelink there should be a prelink.map created but I dont know exatly how to build one. It is not a critical error but with prelink.map the boot process could be faster.
I still didnt fixed copybit ;/
If you have some idea how to help refer to this post:
http://forum.xda-developers.com/showpost.php?p=21592280&postcount=28
EDIT: copybit fixed
hey could some one with the headset use this app:
https://market.android.com/details?id=aws.apps.keyeventdisplay
click headset buttons few times and post output of this app (if any)?
BTW do the headset buttons works on Vivek ROM?
Let me compile it with the new changes and I will try
At least, I'm currently using 7.1.0 (your 7.1.0) and nothing happens. (EDITED)
call\music button problem
paxor can u rectify the call\music button for wired headset
Can you compile ICS with your new files and send it to me ??
I will try to port ICS with your new files
Hey pax0r, are you sure with the fix? Compiled, installed... but I get a weird screen on menu =S
Thanks
I get a minor success at porting .35 kernel for p350. It boots and works but it still to bugged to public release. However if you have any dev experience you can grab it here https://github.com/pax0r/lge-kernel-msm7x27 and help me fix it!
I don't know exactly how Android handles GUI, IDK how to help right now, but I just can told you about the bug when android it's displaying interface.
Can you upload your compiled ICS so that we can tweak it to get it working!
I've removed my built version and now my source code wont even build :/
Hi Pax0r! well, i want to become a dev, i have some kind of linux knowledgement and have a good willing to learn, could you please point me out to some basic tutorials about building from cyanogen source? i've searched myself in the wiki but i didnt saw anything about lg pecan, any information you can give me, I will study it and maybe then become of help in dev community! thanks in advance!!
There is not much info about anything for P350 as it is not very popular device. Everything you need to start building CM for P350 is here, in mine Readme file:
https://github.com/pax0r/android_device_lge_pecan/blob/gingerbread/README.mkdn
Everything else you need to get by yourself =p but I will try answer all your questions
I learned everything by checking avaibale info for similar devices (MSM7227 board, for example: LG P500, ZTE Blade) and source codes.

CM-10.1 Compiling isuue

Hi,
i have trouble when a compile latest cm-10.1 sources to nozomi. I use instruction from cynaogenmod page. Log is in file.
Can someone help me with this, or please give instruction how to remove these error.

[Q] [COMPİLİNG ROM] for beginners

hi guys
i want to compile rom for ancora but i dont know anything about this job
im begiiner and i want to help from you
my only request is editing commits(simply changing,wiritng and deleting) in roms(github repos)
example i want to change some commits on arco's kernel and rom (samsung msm7x30 and android device ancora) and then make a flashable zip for rom
i dont have account of github i know i must get account
and then what must i do?
probably for compiling ron i must install ubuntu into my pc
i dont want to rebuild rom or build new rom i just want editing commits in some roms
can someone make instruction list for me?

[DQ][PORT][CM11/4.4]how to port 4.4 kernel to play?

hi everyone,i have a project to Port CM11(from 2011 xperia line) to our play.but i dont know how to transplant the kernel .i need the help! does anyone could help me?
sorry for my bad English
Sent from my HUAWEI C8813Q using xda app-developers app
can it be even done ?? can we port kernels ? I heard only about ROM's.. we had a thread here of making kernel from source.. you can go through it.
http://forum.xda-developers.com/showthread.php?t=2237755
---------- Post added at 02:09 PM ---------- Previous post was at 02:08 PM ----------
can it be even done ?? can we port kernels ? I heard only about ROM's.. we had a thread here of making kernel from source.. you can go through it.
http://forum.xda-developers.com/showthread.php?t=2237755
i recommend you checking the cyanogenmod wiki how to build your own build, get used to github, c coding and learn about linux and how computing devices work.
check the github repos from @mikeioannina
the kernel and cm build is already there, compiling and booting. cm11 should be doable when the 3.4+ sucessfully initializes the component drivers. next big step should be to load the touchscreen drivers.
perhaps a string somewhere is not right - but well i don't know.
i would love to help and it would be great frustrating fun but i have no time at all

Categories

Resources