Signing a custom kernel image? - G Pad 8.3 Q&A, Help & Troubleshooting

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.

Related

[Q] Boot.img Mayhem: Step 4 - Need Help Building

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

[Kernel] SEtweak

SEtweak kernel for Xperia S.
Intro:
I know I failed last time (with Play - it was stolen) and left development. But let's be serious this time.
Since it'll take a bit to set up everything again, I've taken DooM's ramdisk (hope you don't mind) for the first test.
Note: I don't have the device so I can't test it. If you want to, you can donate via Donate button on the left.
Sony finally published everything we need to build kernel.
Due to some possible bootloader problems, kernel might not work.
Features:
Codepage 852 (purely selfish reasons )
NLS UTF-8 (Native Language Support)
NTFS support
TUN/CIFS support
Default governor set to 'ondemand'
Prerooted
init.d support
Coming soon:
More governors
Recovery
Download: be patient
Best regards,
Blagus
Cool.
Ive unlocked my bootloader already so ill test it for you.
Im not rooted yet tho. I did have the rooted rom installed form another thread but i was having issues with app crashes so i flashed the stock .67
Hi there,
I hope the kernel wil be pre rooted and have some nice features....
I will try it
I need someone to send me kernel.sin of 6.0.A.3.62 firmware.
Hi there,
You can download it here : https://github.com/DooMLoRD/Xperia-2012-Official-Kernel-Sources and if its not there you can find it here http://eddy.uni-duisburg.de/bin4ry/L...1257-3921).ftf
Blagus said:
I need someone to send me kernel.sin of 6.0.A.3.62 firmware.
Click to expand...
Click to collapse
Im uploading it now for you
Edit:
Done
https://rapidshare.com/files/1187401250/kernel.sin
Don't bother Blagus. At this point, you can't really use a custom boot image due to a bootloader bug.
deovferreira said:
Don't bother Blagus. At this point, you can't really use a custom boot image due to a bootloader bug.
Click to expand...
Click to collapse
Really? Any more info on that?
It seems to affect some units at this point, I know of others which can boot just fine though using the instructions provided by Sony. This is the one thing preventing CM9 porting at this point.
deovferreira said:
It seems to affect some units at this point, I know of others which can boot just fine though using the instructions provided by Sony. This is the one thing preventing CM9 porting at this point.
Click to expand...
Click to collapse
hi defer,
what is the bug exactly?
i faced some issues yesterday when testing out kernels on a users device...
whenever we tried hotbooting the kernel (fastboot boot kernel.elf) the bootloader always returned "Wrong range" even though i used exactly the same ranges as given by Sony....
the test kernels are posted here:
http://forum.xda-developers.com/showthread.php?p=23868276#post23868276
if anyone wants to try them
I don't know the specifics of the bug, but it's in the bootloader it might be anything really, no way to know. However, what happens is that the bootloader is able to boot signed kernel.sin files but not the unsigned kernel.elf

[WIP][ROM][Verizon] CM10.1 for LG G2 (Verizon) looking for help!!

Howdy folks
I'd like to thank:
Dan Rosenberg (djrbliss) for Loki (the exploit that allows for custom boot images)
Dees_Troy (for TWRP)
Everybody who has contributed to the CyanogenMod Project
xiaolu for github tools used for unpacking and repacking boot images
I picked up my brand new LG G2 on Friday and I've been hard at work to get CM10.1 booting on it ever since yesterday; but a few hours ago I got my first boot -> http://imgur.com/a/1sZz2
I'm using a few proprietary files that I'd like to not use in the future (more than just the Adreno blobs)
But I'm looking to get a team together to get this working 100%
I will post device and vendor source as soon as I get back from cleaning gutters at my dad's house
What works:
Literally nothing, Android won't boot unless you have the necessary EGL libraries, so I just threw those in because I knew it would boot, and nothing else just to get a bare-bones (but booting) ROM. You can navigate throughout UI fine though (it's very smooth believe it or not).
I'll also upload a proof-of-concept build for those willing to see what CM10.1 will look like on our G2s. I'm currently unable to flash a zip in TWRP recovery, so I have to boot into recovery, wipe data, boot into fastboot, flash a system.img and a boot.img and reboot
If I were any person who likes to ROM but will like to remain stock until there's a stable ROM, I'd add a random "#" to any empty line in the file /system/build.prop which will throw off the sha1sum checker when the recovery goes to install an OTA update (this will block all OTAs from ever installing, thus keeping the current boot image exploit viable and it won't be patched up as the OTA won't be able to install. (root is required)
Edit: kernel, device and vendor sources are up!
https://github.com/JackpotClavin/android_device_lge_g2
https://github.com/JackpotClavin/android_kernel_lge_g2
https://github.com/JackpotClavin/android_vendor_lge_g2
10/17/13:
http://forum.xda-developers.com/showpost.php?p=46554268&postcount=271
10/12/13: alpha
http://forum.xda-developers.com/showpost.php?p=46407049&postcount=138
10/3/13: Super alpha
http://forum.xda-developers.com/showpost.php?p=46147336&postcount=74
I would love to help, but I admit I don't know much about Android development. I've got an AT&T G2 and I know C# and a bit of C++, so I'm sure I can figure out C. I think it's awesome that you're working on CM, if I can help out somehow I'd love to!
Not trying to be a **** because I can't wait for CM on this device, but why 10.1? Why not just go ahead to CM 10.2 and Android 4.3?
bose301s said:
Not trying to be a **** because I can't wait for CM on this device, but why 10.1? Why not just go ahead to CM 10.2 and Android 4.3?
Click to expand...
Click to collapse
Because our kernel, etc., are all set up for Android 4.2.2. Meaning, it is easier to get 4.2.2 running, and then move forward to get 10.2.
JackpotClavin: We already have a "few" devs prepping a device tree, though it still misses the proprietary blob references. You should take a look at them, all the device trees are on Github, under TeamLGOG.
fonix232 said:
Because our kernel, etc., are all set up for Android 4.2.2. Meaning, it is easier to get 4.2.2 running, and then move forward to get 10.2.
JackpotClavin: We already have a "few" devs prepping a device tree, though it still misses the proprietary blob references. You should take a look at them, all the device trees are on Github, under TeamLGOG.
Click to expand...
Click to collapse
Ok, that is what I was thinking but I have never done any dev work or anything so I figured I would ask.
I cant help but I sure want to thank you folks for trying to get this up and running. This phone is an absolute BEAST! Coming from the gnex I'm excited about the G2's potential.
Sent from my VS980 4G using Tapatalk 4
Thanks!
I just wanted to thank you very very much for working on this! I knew this was going to be a well developed phone and I bet before 4 months we will have a good amount of choice as far as roms go. Thanks again!
I've been trying to port beanstalk to the G2 but I need the same information you are trying for. I need device trees to sync with. I can PM you with what info I've came up with So far if you are interested.?
Edit: tress are up! Great work
Sent from my LG-D800 using xda app-developers app
If you lived in my town I'd probably help by cleaning the gutters for you hehe. Thanks for your work!
Sent from my EVO using xda app-developers app
I am definitely willing to help in any way I can.
I am willing to beta test and report bugs, dont know much about development but I want CM i have been using it forever...
grandmasterlarry said:
I am willing to beta test and report bugs, dont know much about development but I want CM i have been using it forever...
Click to expand...
Click to collapse
same goes for me, I have the Korean version.
Does CyanogenMod get rid of features like KnockON? I have grown accustomed to it and don't know if I could do without it (my device sits in a vehicle dock a lot of the time where the buttons on the back are 100% inaccessible unless I disconnect the charger, remove phone from dock/holder and find the buttons on the back.)
Is KnockON a Snapdragon 800 feature, or an LG UI feature (I think so, as it doesn't seem to work except in the notif bar, the stock browser, and the stock lock screen)? Can it be added to the AOSP/CM code perhaps?
mrbig012 said:
Does CyanogenMod get rid of features like KnockON? I have grown accustomed to it and don't know if I could do without it (my device sits in a vehicle dock a lot of the time where the buttons on the back are 100% inaccessible unless I disconnect the charger, remove phone from dock/holder and find the buttons on the back.)
Is KnockON a Snapdragon 800 feature, or an LG UI feature (I think so, as it doesn't seem to work except in the notif bar, the stock browser, and the stock lock screen)? Can it be added to the AOSP/CM code perhaps?
Click to expand...
Click to collapse
LG UI feature. I'm fairly sure it will be ported to an AOSP/CM10/LGUI hybrid ROM at some point. I believe part of the issue that devs are running into is that a lot of the custom LG software appears to be tied together.
Can you guys keep us updated on your progress, this is a make or break thing for me with this phone, CM is just so much better than any stock ROM that I don't know if I can deal with a phone that has no prospect of official support.
JackpotClavin said:
Howdy folks
I'd like to thank:
Dan Rosenberg (djrbliss) for Loki (the exploit that allows for custom boot images)
Dees_Troy (for TWRP)
Everybody who has contributed to the CyanogenMod Project
xiaolu for github tools used for unpacking and repacking boot images
I picked up my brand new LG G2 on Friday and I've been hard at work to get CM10.1 booting on it ever since yesterday; but a few hours ago I got my first boot -> http://imgur.com/a/1sZz2
I'm using a few proprietary files that I'd like to not use in the future (more than just the Adreno blobs)
But I'm looking to get a team together to get this working 100%
I will post device and vendor source as soon as I get back from cleaning gutters at my dad's house
What works:
Literally nothing, Android won't boot unless you have the necessary EGL libraries, so I just threw those in because I knew it would boot, and nothing else just to get a bare-bones (but booting) ROM. You can navigate throughout UI fine though (it's very smooth believe it or not).
I'll also upload a proof-of-concept build for those willing to see what CM10.1 will look like on our G2s. I'm currently unable to flash a zip in TWRP recovery, so I have to boot into recovery, wipe data, boot into fastboot, flash a system.img and a boot.img and reboot
If I were any person who likes to ROM but will like to remain stock until there's a stable ROM, I'd add a random "#" to any empty line in the file /system/build.prop which will throw off the sha1sum checker when the recovery goes to install an OTA update (this will block all OTAs from ever installing, thus keeping the current boot image exploit viable and it won't be patched up as the OTA won't be able to install. (root is required)
Edit: device and vendor sources are up!
https://github.com/JackpotClavin/android_device_lge_g2
https://github.com/JackpotClavin/android_vendor_lge_g2
Click to expand...
Click to collapse
Are we going to try getting mobile network and wifi working first? Is adb working?
droid_<3er said:
Are we going to try getting mobile network and wifi working first? Is adb working?
Click to expand...
Click to collapse
First is audio. It's proving to be a big problem. I can't get anything working using either prebuilt binaries from stock, or building from source
JackpotClavin said:
First is audio. It's proving to be a big problem. I can't get anything working using either prebuilt binaries from stock, or building from source
Click to expand...
Click to collapse
I am NOT a developer, but this could help perhaps?
http://opensource.wolfsonmicro.com/content/wm5110-linux-driver-released
Not sure if it really is open source or only available as binaries, but the WM5110 is the audio SoC in this phone... I am probably not helping.
Additionally, I think the S4 uses this SoC as well. It's a pretty new part but is gaining a lot of momentum.
Edit: My god that WM5110 is a hell of a part... quad-core, 600 MIPS... dayum!
Glad to hear an update, even if it's about issues. Seeing that there are people actively working on this to make it happen makes me much happier and less worried about keeping this phone vs. returning it tomorrow or Friday to see how the Nexus 5 plays out etc.
Have any of you tried talking to Ricardo Cerqueira? He is in fact the primary maintainer for all LG Devices with regards to Cyanogenmod. I am sure he is planning on supporting this device in the near future, I just don't know when. It will probably be when the device is more readily available since it was pretty much just released.

willing to put in on bounty for getting custom stock kernel on unlocked variants?

I love lg stock roms but love to have more control of the kernel and was hoping we could get a bounty to get a great kernel dev like dorimanx or if you guys have any other great devs in mind...G4 is a great device and I'm more than willing to donate if anyone is interested...Thanks!
There is already an early stock custom kernal available. dev is working on the Cyanogenmod Rom also.
http://forum.xda-developers.com/g4/orig-development/h815-tornadorx-r1-t3179317
IIIIkoolaidIIII said:
There is already an early stock custom kernal available. dev is working on the Cyanogenmod Rom also.
http://forum.xda-developers.com/g4/orig-development/h815-tornadorx-r1-t3179317
Click to expand...
Click to collapse
I have h811 T-Mobile...nothing in the works yet afaik...hoping to find a dev to build for all unlocked models and who is willing to add support for devices that get unlock/workaround down the line
jamesd1085 said:
I have h811 T-Mobile...nothing in the works yet afaik...hoping to find a dev to build for all unlocked models and who is willing to add support for devices that get unlock/workaround down the line
Click to expand...
Click to collapse
Fair enough, I didn't know you had the H811. Though I'm sure Mythops234 will be more than willing to look at other devices once CyanogenMod is into at least a beta state. Why not send him a PM.
IIIIkoolaidIIII said:
Fair enough, I didn't know you had the H811. Though I'm sure Mythops234 will be more than willing to look at other devices once CyanogenMod is into at least a beta state. Why not send him a PM.
Click to expand...
Click to collapse
I might talk to him once cm stabilty comes...they are busy enough without me asking more of them
When I get home from Saudi Arabia I can put together a nice stock custom kernel. It was on my list of things to do, but I have been hung up on getting a deodexed rom base going. Its proving to be a major pain in the ass. 64 bit isn't being very cooperative and coupled with the weird mounts and other generally weird crap with this phone afaik everyone working on traditional zip flashable roms are running into the same issues. I suppose I can put that on the back burner and make a kernel... I wont be home for another week or 2 though.
Thread closed.
This thread is omnidirectional, please make it linear.
OP if you would like to start a new thread, please be more specific in your title and then in the OP of your thread.

Completion kernel for Stock ROM

Hello guys. in this thread Mini says:" Only way to fix Wi-Fi for stock is to merge stock source into my current kernel and I really don't want to do that.. so unfortunately users will have to stay on stock kernel for stock roms."
link to her post and thread http://forum.xda-developers.com/showpost.php?p=67372709&postcount=104
anyone can do it? I (I'm sure many others as well) are ready to donate.
I tried to replace some file in the "Module" folder, as well as their entire folder, but without success.
Why do you even need to do that? Just get the Wi-Fi module from a M8 ROM and replace it with yours, you're done. Don't want to do this all, flash the zip in attachment, it will do the work.
aj20010319 said:
Just get the Wi-Fi module from a M8 ROM and replace it with yours, you're done.
Click to expand...
Click to collapse
so simple!!! wow) all worked perfectly!
so, we need to replace files from M*, not Desire eye. right? lol, i don't know that this will be omportant)
thank you very much, bro=) now we have custom kernel for 100% stock ROM!! woohoooooo

Categories

Resources