Stephen Smalley you are the man!!!! That small bit of information is what I needed to make this work...
I wanted to share what I did because I'm probably not the the only guy who has run into this! Its really not "crystal" clear on that android website. I like real life "working" examples :) -------------------------------- Download the ASOP by doing what is outlined on this website: http://source.android.com/source/downloading.html mkdir ~/bin PATH=~/bin:$PATH curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo mkdir SOURCE cd SOURCErepo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1OR repo init -u https://android.googlesource.com/platform/manifest repo sync * find the binaries for you specific phone and download them to the SOURCE directory -> sh extract-imgtech-maguro.sh * your binary files maybe named differently. execute each one. source build/envsetup.sh lunch* Pick the number that corresponds to the model phone you have make -j1 otapackageOR make* --------------------- You should now have a working version of ASOP. Now build your own kernel. -------------------- *NOTE: I am using the same environment and shell that I used to compile the ASOP so I did not have to make any modifications to my environment variables. If you are using a fresh shell you will have to setup your environment using the info in the *Building* section of this page: http://source.android.com/source/building-kernels.html ------------------------- mkdir /kernel_src cd /kernel_src git clone https://android.googlesource.com/device/ti/panda cd /SOURCE/device/samsung/tuna git log kernel * The log should contain notes of the commit SHA1 for the appropriate kernel project. Keep this value at hand so that you can use it in a later step. TIP: Record the 7 digit number in the body section of the log message. This was not clear to me at 1st. cd /kernel_src/panda git clone https://android.googlesource.com/kernel/omap.git cd omap make tuna_defconfig make cp arch/arm/boot/zImage /SOURCE/device/samsung/tuna/kernel cd /SOURCE make cd /SOURCE/out/target/product/toro flash your *.img files to the cellphone ------------------------------ It should boot with the new custom kernel. :) NOTE: The information above is for Google Nexus. On Tuesday, March 19, 2013 8:15:05 AM UTC-4, Stephen Smalley wrote: > > On 03/18/2013 01:47 AM, Clarence H wrote: > > For some reason I cant seem to compile a kernel for my Googl Nexus. Im > > able to build the ASOP with the stock kernel and flash it to the device > > successfully. When I try to add my own kernel it doesn't work and all of > > the directions I see on line are mostly incomplete. They assume you > > know some part of the process. Its never step by step. > > > > > > ----------- > > I can build the ASOP no problem > > Android 4.2.2_r1 > > Google Nexus Verizon [toro] > > Ubuntu 10.04 > > Java "1.6.0_39" > > > > ---------------- > > This is what I did to compile my kernel. Step by Step. If you do this > > it will fail to work on a Google Nexus 4.2.2_r1. > > > > mkdir /kernel_src > > cd /kernel_src > > > > |git clone https://android.googlesource.com/kernel/omap.git > > cd omap > > git branch -a > > git checkout -b android-omap-tuna-3.0 > remotes/origin/android-omap-tuna-3.0 > > cp arch/arm/boot/zImage /ICS_SOURCE/device/samsung/tuna/kernel > > cd|||/ICS_SOURCE| > > make > > cd /ICS_SOURCE/out/target/product/toro > > > > Then I flashed the *.img files to my Google Nexus and all it does it > hang at the Google boot up screen. > > > > If you were able to get this to work with a Google Nexus can you post > your step by step directions? > > > > Just FYI: I tried > > remotes/origin/android-omap-tuna-3.0-ics-mr1 > > The correct branch for 4.2.2 is android-omap-tuna-3.0-jb-mr1.1 > But the official AOSP guidance is to not rely on specific branches as > they aren't guaranteed to correspond to the prebuilt kernel; instead use > the hash you see in the git log message for that kernel. > > cd device/samsung/tuna > git log kernel > (shows 9f818de as the hash) > > cd kernel/omap > git checkout 9f818de > > Described in: > http://source.android.com/source/building-kernels.html > > -- -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel --- You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-kernel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.