Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,354 Members 41,715 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL] Setting up and Compiling JB and ICS from AOSP

Tip us?
 
shenye
Old
#21  
shenye's Avatar
Retired Forum Moderator / Recognized Developer - OP
Thanks Meter 1303
Posts: 488
Join Date: Oct 2009
Location: London

 
DONATE TO ME
Quote:
Originally Posted by EddyOS View Post
Fixed, dsixda updated the kitchen to extract the boot.img before flashing (which is why it was failing before)
Yeah...I can see that being the issues that's causing errors :P

Follow me on Twitter: @shen_ye
Circle me on Google+: google.com/+ShenYe
 
EddyOS
Old
#22  
EddyOS's Avatar
Recognized Contributor
Thanks Meter 2917
Posts: 13,123
Join Date: Jan 2010
Location: Liverpool, Merseyside
Still not working, getting same error, even though the update-script is now:

assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/platform/omap/omap_hsmmc.0/by-name/boot"),
delete("/tmp/boot.img"));

Change it to this (as per Paul O'Brien's MCR) and it works:

package_extract_file("boot.img", "/tmp/boot.img");
run_program("/sbin/busybox", "dd", "if=/tmp/boot.img", "of=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot");
delete("/tmp/boot.img");
HTC One M8 (Gunmetal Grey) 16GB
ROM: 2.22.401.4 (KTU84L) | HBOOT: 3.18.0.0000 S-OFF | Recovery: Stock | Baseband: 1.19.2133147.09G_20.57.4196.01L_F | Kernel: Stock | CID: HTC__001

OnePlus One (Sandstone Black) 64GB
ROM: CyanogenMod 11S (XNPH25R)

If you have a question, great - but DO NOT PM ME WITH IT!!! | [GUIDE] Return your EU M8 to 100% Stock (S-OFF Required) | [GUIDE] Return your OPO to 100% Stock
 
TulpiX
Old
#23  
Member
Thanks Meter 4
Posts: 89
Join Date: Sep 2008
I got it to compile thx for the tutorial
i chose to compile to get an .img file

but i have a question:
how would you add files to or delete files from (or directories) the .img file ?

thx
 
scratch42069
Old
#24  
Member
Thanks Meter 5
Posts: 41
Join Date: Dec 2011
I'd also like to know how to go about modifying after everything has been built. I currently have 4.0.3 pulled and built on 20/12/2011 and as far as I know it built successfully because it didn't error out and everything appeared in the out folder.
 
xHausx
Old
(Last edited by xHausx; 26th December 2011 at 07:22 PM.) Reason: enhanced
#25  
xHausx's Avatar
Forum Moderator / Recognized Developer
Thanks Meter 4509
Posts: 6,766
Join Date: Jul 2010
Location: Central Florida

 
DONATE TO ME
Quote:
Originally Posted by bk201doesntexist View Post
If you didn't code it yourself, it doesn't belong in dev subforum. There's Q&A subforum for that.

/me sent this on a i9250 using tapatalk
I can see you're point with Q&A but when it comes down to it the whole point of this site is to share stuff you've created with others. Q&A is more for people to ask questions while development is for those who want to share something they've done. Although, I do wonder why the OP didn't host it on XDA instead?
The Following User Says Thank You to xHausx For This Useful Post: [ Click to Expand ]
 
gabrielperroni
Old
#26  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Great Tutorial!
 
melterx12
Old
#27  
melterx12's Avatar
Senior Member
Thanks Meter 15
Posts: 716
Join Date: Dec 2009
Location: New York City

 
DONATE TO ME
I can't seem to find the radio binaries for the VZW Galaxy Nexus, does anyone know where I can get them?
 
RogerPodacter
Old
#28  
Senior Member
Thanks Meter 396
Posts: 5,576
Join Date: Apr 2010
Location: Los Angeles, CA
Quote:
Originally Posted by scratch42069 View Post
I'd also like to know how to go about modifying after everything has been built. I currently have 4.0.3 pulled and built on 20/12/2011 and as far as I know it built successfully because it didn't error out and everything appeared in the out folder.
You mean modifying code? Once you compile the stock AOSP code, now you can go into whatever file or driver etc, make the code change and compile and it will only compile the new change making it much quicker to compile. I'd there was a problem with your change you may error or get warnings.
Past projects
Github
My N1 Battery Project

Phone: Nexus 5
ROM: stock rooted
Recovery: CWM Touch
The Following User Says Thank You to RogerPodacter For This Useful Post: [ Click to Expand ]
 
TulpiX
Old
#29  
Member
Thanks Meter 4
Posts: 89
Join Date: Sep 2008
Quote:
Originally Posted by RogerPodacter View Post
You mean modifying code? Once you compile the stock AOSP code, now you can go into whatever file or driver etc, make the code change and compile and it will only compile the new change making it much quicker to compile. I'd there was a problem with your change you may error or get warnings.
I think he meant the same as i did.
Not modifying code but if you have a compile .img file, how do you add or remove files or directories from it ?

or more global where do you go from there ?
The Following User Says Thank You to TulpiX For This Useful Post: [ Click to Expand ]
 
nprussell
Old
(Last edited by shenye; 28th December 2011 at 10:03 PM.)
#30  
nprussell's Avatar
Recognized Developer
Thanks Meter 362
Posts: 1,284
Join Date: Sep 2009
I can't believe Shen kanged my guide and claimed it as his own. -_-

(I'm just trolling)

[B]Follow me on Twitter - @nprussell

Tags
compile ics maguro aosp
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes