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

[GUIDE/DEV] Building AOSP 4.2 for the skyrocket

OP sk8erwitskil

14th November 2012, 05:54 AM   |  #1  
sk8erwitskil's Avatar
OP Recognized Contributor
Flag San Jose
Thanks Meter: 2,637
 
1,362 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Im in the process of compiling android 4.2 for the skyrocket right now. i wanted to share the changes i needed to make to get it to keep compiling. i am not currently done with the compiling process right now but i have made a few changes that others can use to get them along the way as well. if you have any other changes i have not listed here PLEASE LET ME KNOW so i can add them to this google drive doc and always have it up to date. if there also is something you think should be in there PLEASE LET ME KNOW! i would like to collaborate with some people to get this built quick. we did an awesome job with jellybean and i have hope we can get this going quick.

Here is the google drive doc i have with the changes needed to get this compiling.
Google Drive Doc to build Android AOSP 4.2

if i come across any issues that i cannot solve i will be asking on this thread so please be checking back every once in a while if you are an experienced dev.
Last edited by sk8erwitskil; 14th November 2012 at 09:20 AM.
The Following 49 Users Say Thank You to sk8erwitskil For This Useful Post: [ View ]
14th November 2012, 06:08 AM   |  #2  
sk8erwitskil's Avatar
OP Recognized Contributor
Flag San Jose
Thanks Meter: 2,637
 
1,362 posts
Join Date:Joined: Apr 2010
Donate to Me
More
i have already made a few changes to the doc. im trying to make this as easy as possible to build.
The Following 4 Users Say Thank You to sk8erwitskil For This Useful Post: [ View ]
14th November 2012, 07:30 AM   |  #3  
sk8erwitskil's Avatar
OP Recognized Contributor
Flag San Jose
Thanks Meter: 2,637
 
1,362 posts
Join Date:Joined: Apr 2010
Donate to Me
More
i got it to completely build without any errors. http://d-h.st/Dvo
it does not boot though. and i dont know why. im going to need some help on this one.
im guessing maybe it has something to do with the ramdisk
The Following 6 Users Say Thank You to sk8erwitskil For This Useful Post: [ View ]
14th November 2012, 08:22 AM   |  #4  
sk8erwitskil's Avatar
OP Recognized Contributor
Flag San Jose
Thanks Meter: 2,637
 
1,362 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by sk8erwitskil

i got it to completely build without any errors. http://d-h.st/Dvo
it does not boot though. and i dont know why. im going to need some help on this one.
im guessing maybe it has something to do with the ramdisk

so i diff'd the init.rc of the skyrocket cm10 and the init.rc and of the stock nexus4 system image from the android website and theyre exactly the same. so im guessing its not the init.rc. i tried copying over adbd and init from the n4 ramdisk but it gets stuck at the samsung logo.

edit: ignore that. i was looking at the same file. lol. this is what comes from no sleep
Last edited by sk8erwitskil; 14th November 2012 at 08:46 AM.
The Following 5 Users Say Thank You to sk8erwitskil For This Useful Post: [ View ]
14th November 2012, 08:41 AM   |  #5  
gs2usr's Avatar
Senior Member
Flag Tri-Cities, WA
Thanks Meter: 2,551
 
1,006 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by sk8erwitskil

i got it to completely build without any errors. http://d-h.st/Dvo
it does not boot though. and i dont know why. im going to need some help on this one.
im guessing maybe it has something to do with the ramdisk


thanks for sharing your efforts, ill be downloading the source over night and tackling this in the morning, with this ill have a head start on it, appreciate sharing your work.
The Following 5 Users Say Thank You to gs2usr For This Useful Post: [ View ]
14th November 2012, 08:53 AM   |  #6  
sk8erwitskil's Avatar
OP Recognized Contributor
Flag San Jose
Thanks Meter: 2,637
 
1,362 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by sk8erwitskil

so i diff'd the init.rc of the skyrocket cm10 and the init.rc and of the stock nexus4 system image from the android website and theyre exactly the same. so im guessing its not the init.rc. i tried copying over adbd and init from the n4 ramdisk but it gets stuck at the samsung logo.

edit: ignore that. i was looking at the same file. lol. this is what comes from no sleep

the issue is most definitely in the ramdisk. im 99% sure. so if anyone with ramdisk knowledge wants to help it would be very appreciated. i only know a little bit about what it should look like. the BOOTCLASSPATH needs to be changed and some permissions have been changed in 4.2 but besides that im lost. the init.rc that it builds is completely wrong. i think we would be best off taking the cm10 one and editing it.
The Following 2 Users Say Thank You to sk8erwitskil For This Useful Post: [ View ]
14th November 2012, 09:00 AM   |  #7  
gs2usr's Avatar
Senior Member
Flag Tri-Cities, WA
Thanks Meter: 2,551
 
1,006 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by sk8erwitskil

the issue is most definitely in the ramdisk. im 99% sure. so if anyone with ramdisk knowledge wants to help it would be very appreciated. i only know a little bit about what it should look like. the BOOTCLASSPATH needs to be changed and some permissions have been changed in 4.2 but besides that im lost. the init.rc that it builds is completely wrong. i think we would be best off taking the cm10 one and editing it.


which kernel modules did you use? since you added the kernel during the build?
The Following 3 Users Say Thank You to gs2usr For This Useful Post: [ View ]
14th November 2012, 09:05 AM   |  #8  
sk8erwitskil's Avatar
OP Recognized Contributor
Flag San Jose
Thanks Meter: 2,637
 
1,362 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by gs2usr

which kernel modules did you use? since you added the kernel during the build?

i didnt manually add any modules. i thought those get added from the vendor/samsung/skyrocket folder.
The Following User Says Thank You to sk8erwitskil For This Useful Post: [ View ]
14th November 2012, 09:09 AM   |  #9  
gs2usr's Avatar
Senior Member
Flag Tri-Cities, WA
Thanks Meter: 2,551
 
1,006 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by sk8erwitskil

i didnt manually add any modules. i thought those get added from the vendor/samsung/skyrocket folder.


if the make file was not building you a kernel, then it shouldnt make you any modules, could you check if you have anything on dir system/lib/modules
The Following User Says Thank You to gs2usr For This Useful Post: [ View ]
14th November 2012, 09:12 AM   |  #10  
sk8erwitskil's Avatar
OP Recognized Contributor
Flag San Jose
Thanks Meter: 2,637
 
1,362 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by gs2usr

if the make file was not building you a kernel, then it shouldnt make you any modules, could you check if you have anything on dir system/lib/modules

haha wow i totally missed that. it didnt add any modules. imma add the ones from cm10 to the zip and re-install and see if it works.

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

Advanced Search
Display Modes