Learn More About Linux with Linux Man Pages

Linux is quite a powerful and very configurable operating system. Thanks to some user-friendly … more

Detect, Avoid IMSI-Catcher Attacks with Android IMSI-Catcher Detector

Privacy is always an important topic, as well as a delicate one to … more

Materialized LeanDroid Fights Your Poor Battery Life

Battery life has always been one of the biggest problems facing most Android devices. … more

Bump! Workaround for the LG G3 Locked Bootloader – XDA TV

The LG G3 is a power house device. It’s been a favorite of many people. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

boot image

OP ipipipipip

31st May 2014, 02:58 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
7 posts
Join Date:Joined: Aug 2010
Can somebody explain me the proper way to build the boot image? I'm able to build a pure kernel image but i'ts now what i need to flash into boot partition.
31st May 2014, 07:46 PM   |  #2  
stunts513's Avatar
Recognized Contributor
Flag New Braunfels, TX
Thanks Meter: 609
 
2,229 posts
Join Date:Joined: Feb 2013
Donate to Me
More
Eh that's a bit complicated, the kindled booting is a uniqueish format. Hashcode made a custom make setup in cm's build system to put it together since it not only has a weird signature but a second bootloader added onto the beginning of it as well. Are you compiling a rom or just trying to rebuild the bootimg?

Sent from my LG-P769 using Tapatalk
1st June 2014, 08:47 AM   |  #3  
OP Junior Member
Thanks Meter: 1
 
7 posts
Join Date:Joined: Aug 2010
Yeah, I've tried to figure out from the CM port how it's built. I've found some code here:
https://github.com/KFire-Android/android_device_amazon_jem/blob/cm-11.0/boot.mk
But I can't figure out how to attach a kernel image, ramdisk, what else.

I'm not building rom, just want to change some features in the stock kernel.
2nd June 2014, 07:34 AM   |  #4  
stunts513's Avatar
Recognized Contributor
Flag New Braunfels, TX
Thanks Meter: 609
 
2,229 posts
Join Date:Joined: Feb 2013
Donate to Me
More
I could attempt to throw one together for you, I think my current setup doesn't bother to check the intramfs as long as it exists in the out directory, I'd just have to replace the kernel and initramfs and attempt a build. O wait I'm in the 8.9" section, I don't have a working build of b2g going for that yet, probably wouldn't be the best idea, would probably work but Idk. You could just build cm from source and pull the bootimg out of the zip it makes. Maybe I can slap together some instructions, I kinda see in the makefile how it works but makefile scripting isn't my forte, its similar to bash but different enough i can get confused at points.

Sent from my Amazon Tate using Tapatalk
2nd June 2014, 04:44 PM   |  #5  
OP Junior Member
Thanks Meter: 1
 
7 posts
Join Date:Joined: Aug 2010
Building the whole cm is a bit overhead. I don't need the complete build script but it would be great if you point out some makefiles, or places to look in the source tree, i'll try to fugure out how to use it.
8th June 2014, 01:14 AM   |  #6  
OP Junior Member
Thanks Meter: 1
 
7 posts
Join Date:Joined: Aug 2010
So anyone?
8th June 2014, 01:20 AM   |  #7  
stunts513's Avatar
Recognized Contributor
Flag New Braunfels, TX
Thanks Meter: 609
 
2,229 posts
Join Date:Joined: Feb 2013
Donate to Me
More
Quote:
Originally Posted by ipipipipip

So anyone?

ah sorry i have been at work most of the week and passing out once i get home (thank you low stamina). Anyways i thought i had posted something on here about where to look but it seems i didnt, look at this file: https://github.com/KFire-Android/and....0/boot.mk#L27

That area (line27ish) should give you the hints you need.

Edit: wait this is a 8.9, wrong link, that would be a nice brick if that was used... Fixed!

most of that file makes sense, the only thing i am unfamiliar with is $@. $ usually means a variable or something else i'm trying to rember involving a program, probably storing output from a program as the variable. As to the @ symbol i have heard it means array, not very sure at all about how it works.
Last edited by stunts513; 8th June 2014 at 01:38 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes