Android OS Forum banner
1 - 20 of 184 Posts

·
Love your frenemies
Joined
·
1,535 Posts
When you run brunch you first create the OTA and then it's "squished" resulting in the other zip. You can flash either, but the squished one has slightly compressed apks and if you don't want that one, then you're better off using "lunch" pick device number and then "make otapackage" instead of "brunch".
what is the command for this? what is the diff between breakfast brunch and lunch, in quick summary? thx
 

·
Love your frenemies
Joined
·
1,535 Posts
So i have issues on my first build try. Below is the code i use to begin the sync/build:

Code:
<br />
#! /bin/bash<br />
date<br />
cd ~/aokp_jb<br />
PATH=~/bin:$PATH<br />
make clobber<br />
wait<br />
repo sync -f -j2<br />
wait<br />
. build/envsetup.sh && brunch toro && cp out/target/product/toro/aokp_jb_* ~/Dropbox/Flashables/ROM/ && zenity --notification --text "AOKP crackflashing can commence"<br />
wait<br />
date<br />
And here is the code leading up to when it stops:

Code:
<br />
Install: /home/jeremiah/aokp_jb/out/target/product/toro/system/lib/libcameraservice.so<br />
target SharedLib: libsurfaceflinger (out/target/product/toro/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/LINKED/libsurfaceflinger.so)<br />
target SharedLib: camera.goldfish (out/target/product/toro/obj/SHARED_LIBRARIES/camera.goldfish_intermediates/LINKED/camera.goldfish.so)<br />
target SharedLib: libFFTEm (out/target/product/toro/obj/SHARED_LIBRARIES/libFFTEm_intermediates/LINKED/libFFTEm.so)<br />
target SharedLib: libandroid (out/target/product/toro/obj/SHARED_LIBRARIES/libandroid_intermediates/LINKED/libandroid.so)<br />
target SharedLib: libaudioeffect_jni (out/target/product/toro/obj/SHARED_LIBRARIES/libaudioeffect_jni_intermediates/LINKED/libaudioeffect_jni.so)<br />
target SharedLib: libdrmframework_jni (out/target/product/toro/obj/SHARED_LIBRARIES/libdrmframework_jni_intermediates/LINKED/libdrmframework_jni.so)<br />
target SharedLib: libjnigraphics (out/target/product/toro/obj/SHARED_LIBRARIES/libjnigraphics_intermediates/LINKED/libjnigraphics.so)<br />
target SharedLib: librs_jni (out/target/product/toro/obj/SHARED_LIBRARIES/librs_jni_intermediates/LINKED/librs_jni.so)<br />
Install: /home/jeremiah/aokp_jb/out/target/product/toro/system/lib/librtp_jni.so<br />
target SharedLib: libsoundpool (out/target/product/toro/obj/SHARED_LIBRARIES/libsoundpool_intermediates/LINKED/libsoundpool.so)<br />
target SharedLib: libstagefright_soft_aacdec (out/target/product/toro/obj/SHARED_LIBRARIES/libstagefright_soft_aacdec_intermediates/LINKED/libstagefright_soft_aacdec.so)<br />
target SharedLib: libstagefright_soft_aacenc (out/target/product/toro/obj/SHARED_LIBRARIES/libstagefright_soft_aacenc_intermediates/LINKED/libstagefright_soft_aacenc.so)<br />
target SharedLib: libstagefright_soft_amrdec (out/target/product/toro/obj/SHARED_LIBRARIES/libstagefright_soft_amrdec_intermediates/LINKED/libstagefright_soft_amrdec.so)<br />
target SharedLib: libstagefright_soft_amrnbenc (out/target/product/toro/obj/SHARED_LIBRARIES/libstagefright_soft_amrnbenc_intermediates/LINKED/libstagefright_soft_amrnbenc.so)<br />
target SharedLib: libstagefright_soft_amrwbenc (out/target/product/toro/obj/SHARED_LIBRARIES/libstagefright_soft_amrwbenc_intermediates/LINKED/libstagefright_soft_amrwbenc.so)<br />
target SharedLib: libstagefright_soft_rawdec (out/target/product/toro/obj/SHARED_LIBRARIES/libstagefright_soft_rawdec_intermediates/LINKED/libstagefright_soft_rawdec.so)<br />
target SharedLib: libstagefright (out/target/product/toro/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so)<br />
Install: /home/jeremiah/aokp_jb/out/target/product/toro/system/lib/libstagefright_omx.so<br />
target SharedLib: libttscompat (out/target/product/toro/obj/SHARED_LIBRARIES/libttscompat_intermediates/LINKED/libttscompat.so)<br />
Install: /home/jeremiah/aokp_jb/out/target/product/toro/system/lib/libandroid_runtime.so<br />
Install: /home/jeremiah/aokp_jb/out/target/product/toro/system/lib/libsrec_jni.so<br />
target Symbolic: app_process (out/target/product/toro/symbols/system/bin/app_process)<br />
Install: /home/jeremiah/aokp_jb/out/target/product/toro/system/bin/drmserver<br />
target Symbolic: libsurfaceflinger (out/target/product/toro/symbols/system/lib/libsurfaceflinger.so)<br />
target Symbolic: camera.goldfish (out/target/product/toro/symbols/system/lib/hw/camera.goldfish.so)<br />
target Symbolic: libFFTEm (out/target/product/toro/symbols/system/lib/libFFTEm.so)<br />
target Symbolic: libandroid (out/target/product/toro/symbols/system/lib/libandroid.so)<br />
target Symbolic: libaudioeffect_jni (out/target/product/toro/symbols/system/lib/libaudioeffect_jni.so)<br />
target Symbolic: libdrmframework_jni (out/target/product/toro/symbols/system/lib/libdrmframework_jni.so)<br />
target Symbolic: libjnigraphics (out/target/product/toro/symbols/system/lib/libjnigraphics.so)<br />
target Symbolic: librs_jni (out/target/product/toro/symbols/system/lib/librs_jni.so)<br />
target Symbolic: libsoundpool (out/target/product/toro/symbols/system/lib/libsoundpool.so)<br />
target Symbolic: libstagefright_soft_aacdec (out/target/product/toro/symbols/system/lib/libstagefright_soft_aacdec.so)<br />
target Symbolic: libstagefright_soft_aacenc (out/target/product/toro/symbols/system/lib/libstagefright_soft_aacenc.so)<br />
target Symbolic: libstagefright_soft_amrdec (out/target/product/toro/symbols/system/lib/libstagefright_soft_amrdec.so)<br />
target Symbolic: libstagefright_soft_amrnbenc (out/target/product/toro/symbols/system/lib/libstagefright_soft_amrnbenc.so)<br />
target Symbolic: libstagefright_soft_amrwbenc (out/target/product/toro/symbols/system/lib/libstagefright_soft_amrwbenc.so)<br />
target Symbolic: libstagefright_soft_rawdec (out/target/product/toro/symbols/system/lib/libstagefright_soft_rawdec.so)<br />
target Symbolic: libstagefright (out/target/product/toro/symbols/system/lib/libstagefright.so)<br />
target Symbolic: libttscompat (out/target/product/toro/symbols/system/lib/libttscompat.so)<br />
target Strip: app_process (out/target/product/toro/obj/EXECUTABLES/app_process_intermediates/app_process)<br />
target Strip: libsurfaceflinger (out/target/product/toro/obj/lib/libsurfaceflinger.so)<br />
target Strip: camera.goldfish (out/target/product/toro/obj/lib/camera.goldfish.so)<br />
target Strip: libFFTEm (out/target/product/toro/obj/lib/libFFTEm.so)<br />
target Strip: libandroid (out/target/product/toro/obj/lib/libandroid.so)<br />
target Strip: libaudioeffect_jni (out/target/product/toro/obj/lib/libaudioeffect_jni.so)<br />
target Strip: libdrmframework_jni (out/target/product/toro/obj/lib/libdrmframework_jni.so)<br />
target Strip: libjnigraphics (out/target/product/toro/obj/lib/libjnigraphics.so)<br />
target Strip: librs_jni (out/target/product/toro/obj/lib/librs_jni.so)<br />
target Strip: libsoundpool (out/target/product/toro/obj/lib/libsoundpool.so)<br />
target Strip: libstagefright_soft_aacdec (out/target/product/toro/obj/lib/libstagefright_soft_aacdec.so)<br />
target Strip: libstagefright_soft_aacenc (out/target/product/toro/obj/lib/libstagefright_soft_aacenc.so)<br />
target Strip: libstagefright_soft_amrdec (out/target/product/toro/obj/lib/libstagefright_soft_amrdec.so)<br />
target Strip: libstagefright_soft_amrnbenc (out/target/product/toro/obj/lib/libstagefright_soft_amrnbenc.so)<br />
target Strip: libstagefright_soft_amrwbenc (out/target/product/toro/obj/lib/libstagefright_soft_amrwbenc.so)<br />
target Strip: libstagefright_soft_rawdec (out/target/product/toro/obj/lib/libstagefright_soft_rawdec.so)<br />
target SharedLib: libwebcore (out/target/product/toro/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)<br />
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed<br />
make: *** Waiting for unfinished jobs....<br />
Mon Aug 13 06:45:32 MST 2012<br />
[email protected]:~/aokp_jb$<br />
i have no idea what is going on. any ideas, thanks?!
 

·
Love your frenemies
Joined
·
1,535 Posts
Just guessing, but I'd try a repo sync again without the -f option (which effectively tells it to skip any errors). It could be that your local source tree is missing a tiny piece (that got skipped due to -f).

Also, just a note (and something I realized after I made my 1337 dropbox post yesterday) - the output file will be named "aokp_toro_$DATE"; you'll need to change your dropbox copy command to "cp out/target/product/toro/aokp_toro_* ~/Dropbox/whatever/".
thanks! I'll try that out. it took 6.5 hours just to get to that point where it crapped itself.

i forgot to add this to the other post but i'm running 64bit ubuntu 12.04 in virtual box using bridge network, 1.5g of ram, 200 g of disk space, latest java6.

If i can get one to freaking work, i'm thinking that ccache thing would be a big boost in time savings.
 

·
Love your frenemies
Joined
·
1,535 Posts
i'm still new to linux coding, but in my build script, how can i write to a new file the start time and end time? i'd like to do that, since you loose the top of the terminal data pretty quick.

thanks!
 

·
Love your frenemies
Joined
·
1,535 Posts
so i had the exact same issue i posted before even though i changed the sync parames from -f to no -f . i have NO ides what i'm doing wrong and why it isn't syncing fully, but it takes 6.5hrs almost exactly each time to fail. ugh...

maybe i'm hosed until i make a proper ubuntu system or dual boot, virtual box may not be working for me with 1.5g of ram, but i don't understand why it still dies. so frustrating. why can't something this simple seeming (given the simple repo sync command) just freaking work,

ah well......
 

·
Love your frenemies
Joined
·
1,535 Posts
Syncing has nothing to do with why your builds are failing. You're running out of memory compiling frameworks/base which contains a very large chunk of the overall codebase. That's why it always stops about the same place.

Sent from my Galaxy Nexus using Tapatalk 2
can i make a dual boot on a partition connected to an external esata drive? should work fine right so long as it's powered up by the time the MBR looks for bootables. what is the best/free partition program?

should the 4 g of ram be plenty for it?
 

·
Love your frenemies
Joined
·
1,535 Posts
thanks for the info guys. for swap file.... is that something i can do in Virtual Box? i didn't see any swap options. frankly, i'd like to try that first, and then give up, and go to a real solution.
 

·
Love your frenemies
Joined
·
1,535 Posts
I'm not sure - it's been a while since I've installed Ubuntu in a VM. If you pull up your partition manager in Ubuntu (GParted) you should be able to see whether or not a partition is listed with a file system "linux-swap". If you don't have one created, you may be able to follow the instructions provided here for creating a swap file after the fact. Note that you'll have to adjust the instructions slightly since you're in a virtual environment.
thanks for your great help!
 

·
Love your frenemies
Joined
·
1,535 Posts
so i totally just figured out how to write out a text file of when my build script starts and ends:
Code:
<br />
date >> ~/buildtime.txt<br />
blah blah blah<br />
<br />
date >> ~/buildtime.txt<br />
sawheet!
 

·
Love your frenemies
Joined
·
1,535 Posts
I highly recommend a dual-boot setup, if possible, but then I'm a noob myself, so feel free to take my recommendation with a grain of salt (though I prefer crushed red pepper). Still, from what I've seen in the research I've done, and from the people I've talked to, virtual machine setups cut your available RAM down by about half.
understood, i'm going to try to increase the virtual swap file first. if that don't work, then i can try to dual boot. my primary drive though doesn't have enough space on it for me to boot onto that, so that's why i wanted to do the eSata which has a crapload of space
 

·
Love your frenemies
Joined
·
1,535 Posts
I don't see why you couldn't install wubi on your esata and boot off of that. You will probably have to expand the virtual drive since wubi only gives the option for 18 gigs. I use that for my build environment

Sent from my Galaxy Nexus using Tapatalk 2
just read about it. looks like it might work. does yours work well? and it uses alllllll of the system resources, as though it were on it's own partition? how do you expand the virtual drive, through gparted? i might try that. i just finished expanding my swap disk from 1.5g to 25g (i have room to spare on my esata), so i'm going to try that out real quick.
 

·
Love your frenemies
Joined
·
1,535 Posts
k, just started the build. i have txt file to tell me when each part of the script begins. with the huger swapfile, we'll see how it runs and if it works and how long it takes. thanks all for help.
 

·
Love your frenemies
Joined
·
1,535 Posts
SO!!!:
NEW BUILD
08/14/2012
Started:
12:16:32 PM
Clearing Old Build Data:
12:16:32 PM
Syncing Data:
12:17:07 PM
Building:
12:22:07 PM
Done!
08:31:57 PM

Finished my first build after 8.25 hours! Huzzah

I know it's been posted before, but there were the two output zips, one with ota-eng-username and the other with the date, and only a slight difference in filesize. What's the diff, aagain? And does either work the same?

How long does it talk all'y'all to make a build start to finish? I know 8 is way long. But it looks like the RAM issue was indeed the problem, as expressed by a previous poster, thanks. My mega-swap-file fixed that, but of course since it's in virtualbox, on a platter drive and external with swap-ram, it's going to be slow. I might try Wibu just to compare.
 

·
Love your frenemies
Joined
·
1,535 Posts
does anyone know what timezone gerrit reports in? i'd like to know which merges made it into my build, i didn't record what the last merge was. but i have my local time.
 

·
Love your frenemies
Joined
·
1,535 Posts
Congrats!

The zip with the date is the one you want. It is the result of the squisher tool and is a bit optimized and such. Take a look at vendor/aokp/tools/squisher to see exactly what happens.

If you enable ccache it should cut subsequent build times significantly. My first build took provably six hours; they now build in a bit over two.

I think it is Central US time.
you are the man!

yea i did the ccache thing last night, ran another build that took 8.5 hours. we'll see what the next build looks like. i successfully got the build to copy over to a shared folder with windows (since i'm in vbox) and that was a folder that I have Box auto sync (i don't have access to dropbox at work). and that worked great. very very cool stuff. that last build came out to 173 megs though... hmm. that's after i had installed pngcrush, the previous build was 165 megs. not sure what went one. but the 165meg version flashed fine. haven't flashed the new one yet.

do anyone know if you can do variable math in script? or in terminal? i know you can set variables.
 
1 - 20 of 184 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top