[Q] Boot.img Mayhem: Step 4 - Need Help Building - Droid Incredible Q&A, Help & Troubleshooting

Alrighty, so I'm attempting to port something for the first time here, and I've managed to get into the System.img with no visible setbacks... but now that I'm messing with the Boot_signed.img, I'm running into some difficulty.
So here are some of my bigger questions:
1) Ramdisk. Merged. Solved.
2) Kernel. Located. Solved.
3) Libs. Copied and renamed. Solved.
4) Build new boot.img with ramdisk and kernel. NOT solved.
Anyone that is willing to lend some guidance here, it would be really appreciated. I've got GMichaelow, the developer of Uber-Z helping me, but I feel bad bothering him so much. Besides, anyone that helps out will get to enjoy the surprise, as well as bring a new rom into the community, and who knows, maybe even a new Dev!
Thank you for your time.
Edit: At this point, I only need to know how to build the boot.img. Google is not helping search-wise... Is there even a simple way to do this?

I've put up my code for reference. Hope it helps.
http://forum.xda-developers.com/showpost.php?p=10854692&postcount=18

Related

[CM9] Building from source

Hey Everyone,
This is my first post here on XDA. I've been around for a while and always try to read a lot before attempting anything so as not to break stuff; hence the reason for no posts so far. I appreciate all of the helpful information I find on these forums and it has been great for keeping my trusty Dinc running well and running the latest Android OS.
I have been busy with school, but finally have some time to sit down and bang out some Android development, leading me to my
Question/problem: I am attempting to build android from source to get up and running on being able to create my own ROMs or help contribute to others and I've run into a problem. I'm stuck in a boot-loop during the CM9 boot animation. I have a logcat dump during the boot that shows the errors and the cycle of it trying again and again, but I'm not sure where to go next.
Background:
I have been running drk.hd's CM9 ROM for the last month or so (http://forum.xda-developers.com/showthread.php?t=1558923) and I have enjoyed it. It works very well. He has build instructions posted on his github here: https://github.com/drkhd/android_device_htc_inc. I have followed those steps exactly as posted, which all work as expected. I have not run into any build/compile errors, but after flashing the zip file, I end up in the boot-loop.
Logcat:
I pasted the logcat here: http://pastebin.com/wVVbmeRY
The last ~400 lines just repeat until killing the logcat. I can see errors about media services dying and a fatal signal 11, but again, I'm not sure what to do with this information.
Any help is much appreciated. I know this should really be in the dev forum, but as I mentioned, this is my first post; I don't have 10 posts yet, so I cannot post in the dev forum until that point. I am really just starting to dig into this stuff, so go easy on me and help guide me in the right direction so I can take things and run with them. Once I get a feel for how best to approach android development, I should be able to pick it up pretty easily.
Thanks
I know this thread should really be in the dev forum, but if any of you have any suggestions or can at least point me in the right direction for where to look for answers, that would be great.
Thanks again
Dezier11 said:
I know this thread should really be in the dev forum, but if any of you have any suggestions or can at least point me in the right direction for where to look for answers, that would be great.
Thanks again
Click to expand...
Click to collapse
This is the right forum. Development threads are meant to be for ROM and other development support, Q&A is where I would ask about this too but I guess the other devs either aren't around or don't know how to answer your question. cmlusco is a dev of touch of blue and he lingers around Q&A a lot so maybe if he comes across this he can give you some insight. I would really like to get into building ROMs as well but I don't have any experience in coding just yet. I don't really know what kind of experience is required to build ROMs either and my only Ubuntu machine is 32-bit so I am essentially out of the race for now. That being said, I found this guide that I was going to use for my own building ventures until I realized I needed a 64-bit machine but maybe it can help you or maybe the support can give you a little direction. I hope this helps!!
http://forums.androidcentral.com/ve...99-guide-ubuntu-compiling-android-source.html
nschiwy said:
This is the right forum. Development threads are meant to be for ROM and other development support, Q&A is where I would ask about this too but I guess the other devs either aren't around or don't know how to answer your question. cmlusco is a dev of touch of blue and he lingers around Q&A a lot so maybe if he comes across this he can give you some insight. I would really like to get into building ROMs as well but I don't have any experience in coding just yet. I don't really know what kind of experience is required to build ROMs either and my only Ubuntu machine is 32-bit so I am essentially out of the race for now. That being said, I found this guide that I was going to use for my own building ventures until I realized I needed a 64-bit machine but maybe it can help you or maybe the support can give you a little direction. I hope this helps!!
http://forums.androidcentral.com/ve...99-guide-ubuntu-compiling-android-source.html
Click to expand...
Click to collapse
I would love to help but i have no clue how to build from source. All i know how to do is take stock roms and modify and tweak them. I do not have a linux setup, i use win 7 with cygwin and android kitchen. Android kitchen does a lot of the work for you. Apktool is another great windows program for decompiling and recompiling apks. It just takes time to tweak and modify everything. Google and xda are your best friends, you can find the answer to just about anything you want.
cmlusco said:
I would love to help but i have no clue how to build from source. All i know how to do is take stock roms and modify and tweak them. I do not have a linux setup, i use win 7 with cygwin and android kitchen. Android kitchen does a lot of the work for you. Apktool is another great windows program for decompiling and recompiling apks. It just takes time to tweak and modify everything. Google and xda are your best friends, you can find the answer to just about anything you want.
Click to expand...
Click to collapse
yes you can flash it which suitable for your device
---------- Post added at 07:12 AM ---------- Previous post was at 07:07 AM ----------
[email protected] said:
yes you can flash it which suitable for your device
Click to expand...
Click to collapse
I have sync Evervolv source code and I'll make this days
Thank you guys for your responses. I appreciate you taking the time.
nschiwy, I'm still working my way through the thread you provided, hopefully something there will help.

Building new ROM would like to test in Emulator, help!

Building a new ROM for the Optimus V. Got a ROM built, but I would like to test before flashing to device. I've got AVD and when I set it up using the system.img it will not load. I notice I cannot select abiearm-v6 (or Neon) and wonder if that is the issue. I've scoured Google to no avail. If any of you guys out there have a link to a tutorial or some hints to get me going in the right direction I would greatly appreciate it.
Thanks in advanced!

Want to cm11 the VS985

I would love to begin working on cm11 for the VS985! I have some android experience and used to be active here as Backwards1979 but I am completely locked out of that account. I used to work with visableck on the Samsung Galaxy stellar.
I just need to know where to begin to port the cm11 to VS985. Any help or push in the right direction would be greatly appreciated!
Pbaird1979 said:
I would love to begin working on cm11 for the VS985! I have some android experience and used to be active here as Backwards1979 but I am completely locked out of that account. I used to work with visableck on the Samsung Galaxy stellar.
I just need to know where to begin to port the cm11 to VS985. Any help or push in the right direction would be greatly appreciated!
Click to expand...
Click to collapse
It's already been ported to the VS985 man. Posted yesterday:
http://forum.xda-developers.com/verizon-lg-g3/development/rom-cyanogenmod-11-vs985-t2934822
Great to see another dev on here for the VS985 though! If you ever need help with anything let me know. I'm pretty Android and Linux proficient and I'm not afraid to do some low-level modifications to my precious G3! Adb work and leveling LAF to do fastboot work is no problem and I've even had success compiling images from source and making slight modifications to allow porting to similar variants. I'll be glad to test anything you need as well! Best of luck!
Thank you! I have been looking since bump hit and I have not been able to find it!
That includes last night and today... I don't want anyone to think that I just wanted a handout and haven't done any of my research.

Emulator set-up and TWRP compilation for a vk815

I've got a working development set-up and have compiled the Lollipop files and kernel for the vk815 with it. I've installed the SDK but using the 'emulator' is less than easy. I could use help with creating a vk815 config so I can bounce my outputs against it. I would also like to compile TWRP and run that through the 'emulator'. The pre-compilation for that isn't going well and I need some hand holding. Once I'm finished, I'll be happy to share but I really need some help with this last half of the project.
Thanks,
Jim
jowski said:
I've got a working development set-up and have compiled the Lollipop files and kernel for the vk815 with it. I've installed the SDK but using the 'emulator' is less than easy. I could use help with creating a vk815 config so I can bounce my outputs against it. I would also like to compile TWRP and run that through the 'emulator'. The pre-compilation for that isn't going well and I need some hand holding. Once I'm finished, I'll be happy to share but I really need some help with this last half of the project.
Thanks,
Jim
Click to expand...
Click to collapse
Yeah I can't help you with that one. It's over my pay grade but I do want to say thank you and applaud you for this. I've been really surprised no one has stepped up to the plate for this. Thanks for this
Any progress on this?

Signing a custom kernel image?

Hello,
I am new at building a custom kernel, and I seem to have no luck at all. I was wondering if some could give me guidance.
I have loaded CM12 on my V500 using TWRP. That all worked fine. I then compiled just the kernel boot.img and loaded it (this was a test to see if it would work, after this I was going to make my code changes in the kernel source code), which gave me:
:Footer is wrong​:Signature verification failed​Ok I figured that the bootloader did not like the signature. And this is where I have gotten stuck, and was hoping someone could confirm I am right, or better yet, guide me as to where I am wrong.
As I understand it, it seems that I only have a few options:
Degrade to CM10 (JB) and use loki to bypass the signature.
Degrade to CM11 (KK) and use BUMP to overwrite the signature. Although, I am not sure how BUMPing is done since I cannot seem to find the codefire site that would BUMP my boot.img
Replace the aboot.img in CM12(LP) with that of KK, and then, use the BUMP method.
I would expect that a lot of people would be making modified kernel images and that it should be relatively easy, am I just not understanding something? Thanks for any help.
-Erik
https://forum.xda-developers.com/showthread.php?t=2628951
Should give you info.
Thank you very much sleekmason, this gives renewed hope I can figure this out.
One question sleekmason, I noticed that you did this on a V510, will that work as well on a V500? I assume that since I installed CM12.1 the V500 is now an AOSP, correct?
Sorry, ignore this, I did not read far enough down.
Thanks.

Categories

Resources