06-02-2012 02:00 PM
325 ... 34567 ...
tools
  1. Invincible Madness's Avatar
    Well it was easy, yet time consuming. All I really had to do was open the default.xml and edit the place where it got the files from. For example:
    I changed:

    Code:
    <project path="frameworks/base" name="gannon5197/android_frameworks_base" />
    to
    Code:
    <project path="frameworks/base" name="CNA/android_frameworks_base" revision="mod" />
    ALSO: you're going to want to do the same with some of the apps.
    Thanks bro. So how did you set up YOUR repo on git (lets say for CNA)? Did you fork all the ICS folders, device and vendor files from IHO and edit default.xml to grab frameworks, apps, media from CNA? I'm a little confused here, do will still do the same work as in porting a ROM except we do it on Git with forks or the whole process is different?
    03-16-2012 09:40 PM
  2. rukin5197's Avatar
    Thanks bro. So how did you set up YOUR repo on git (lets say for CNA)? Did you fork all the ICS folders, device and vendor files from IHO and edit default.xml to grab frameworks, apps, media from CNA? I'm a little confused here, do will still do the same work as in porting a ROM except we do it on Git with forks or the whole process is different?
    I forked all the necessary folders that Jerry said to Here from Bob's repo (you would use thekraven's) and changed all the BobZhome's in the default.xml to mine.

    Correctamundo. This is actually pretty easy, except for the fact that you have to be VERY specific when messing with a default.xml (revisions, names, etc.) Like I said before, you can build from my repo and get CNA. But I would recommend building from thekraven's and just comparing his default.xml to mine. Note: to save time, you might want to repo init thekraven's, and then BEFORE you repo sync, go to (cd) ~/android/system/.repo/manifests/ and gedit default.xml. This will show you what is going to be synced before you sync it. This way you don't have to wait until it syncs before you can edit the default.xml. Lol good luck! Are you planning on syncing with IHO or CM9?
    03-16-2012 10:03 PM
  3. Invincible Madness's Avatar
    I tried all options from reposync all the way to reposync -j16 and it stops 99% with this error

    Code:
    error: RPC failed; result=18, HTTP code = 2008 MiB | 98 KiB/s
    I'm trying to build GB from IHO
    03-17-2012 02:39 AM
  4. JerryScript's Avatar
    I tried all options from reposync all the way to reposync -j16 and it stops 99% with this error

    Code:
    error: RPC failed; result=18, HTTP code = 2008 MiB | 98 KiB/s
    I'm trying to build GB from IHO
    Try running this command:
    Code:
    git config http.postBuffer 524288000
    Then delete your .repo folder.

    Then start from the beginning with repo init -u

    I'm not 100% sure that will fix your issue, but it's worth a shot.
    03-17-2012 07:25 AM
  5. Invincible Madness's Avatar
    Thanks Jerry. Though, I was impatient and deleted android, bin folders and started over with thekraven's ICS1.
    reposync finished successfully but getting this error with make bacon.

    Code:
    target Generated: libwebcore <= external/webkit/Source/WebCore/dom/make_names.pl
    target Generated: libwebcore <= external/webkit/Source/WebCore/dom/make_names.pl
    target Generated: libwebcore <= external/webkit/Source/WebCore/dom/make_names.pl
    target Generated: libwebcore <= external/webkit/Source/WebCore/css/tokenizer.flex
    target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in
    Notice file: external/webkit/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libwebcore.so.txt
    Notice file: external/webkit/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libwebcore.a.txt
    Notice file: external/libxml2/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libxml2.a.txt
    Notice file: external/skia/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libskiagpu.a.txt
    Notice file: external/v8/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libv8.a.txt
    Notice file: external/webrtc/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libwebrtc_audio_preprocessing.so.txt
    Notice file: external/icu4c/stubdata/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/usr/icu/icudt46l.dat.txt
    Notice file: dalvik/dexdump/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/xbin/dexdump.txt
    Notice file: external/bluetooth/bluez/tools/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/xbin/hcitool.txt
    make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `out/target/product/thunderc/system/app/Term.apk'.  Stop.
    make: *** Waiting for unfinished jobs....
    Notice file: system/su/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/xbin/su.txt
    vamshi@ubuntu:~/android/system$
    EDIT: Ran make bacon again and its running
    03-17-2012 07:40 AM
  6. rukin5197's Avatar
    Thanks Jerry. Though, I was impatient and deleted android, bin folders and started over with thekraven's ICS1.
    reposync finished successfully but getting this error with make bacon.

    Code:
    target Generated: libwebcore <= external/webkit/Source/WebCore/dom/make_names.pl
    target Generated: libwebcore <= external/webkit/Source/WebCore/dom/make_names.pl
    target Generated: libwebcore <= external/webkit/Source/WebCore/dom/make_names.pl
    target Generated: libwebcore <= external/webkit/Source/WebCore/css/tokenizer.flex
    target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in
    Notice file: external/webkit/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libwebcore.so.txt
    Notice file: external/webkit/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libwebcore.a.txt
    Notice file: external/libxml2/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libxml2.a.txt
    Notice file: external/skia/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libskiagpu.a.txt
    Notice file: external/v8/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libv8.a.txt
    Notice file: external/webrtc/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/lib/libwebrtc_audio_preprocessing.so.txt
    Notice file: external/icu4c/stubdata/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/usr/icu/icudt46l.dat.txt
    Notice file: dalvik/dexdump/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/xbin/dexdump.txt
    Notice file: external/bluetooth/bluez/tools/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/xbin/hcitool.txt
    make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `out/target/product/thunderc/system/app/Term.apk'.  Stop.
    make: *** Waiting for unfinished jobs....
    Notice file: system/su/NOTICE -- out/target/product/thunderc/obj/NOTICE_FILES/src//system/xbin/su.txt
    vamshi@ubuntu:~/android/system$
    EDIT: Ran make bacon again and its running
    Weird that you ran it again and it is working for you. I believe that you have to delete some lines from a BoardConfig.mk in order to tell it that you don't want to build it. Because after all, it's not necessary
    03-17-2012 08:46 AM
  7. Invincible Madness's Avatar
    Weird that you ran it again and it is working for you. I believe that you have to delete some lines from a BoardConfig.mk in order to tell it that you don't want to build it. Because after all, it's not necessary
    Whats not necessary? Term.apk? I'll try to find the BoardConfig.mk file and see if my noobish brain can help me edit it.

    Gannon, you are right, it ran for a while and stopped at the same error. I searched for boardconfig.mk and found more than 5 files.
    Not sure which one to edit (path would help) and how to remove term.apk from it.
    03-17-2012 09:23 AM
  8. Invincible Madness's Avatar
    I get this error now.

    Code:
    make: *** No rule to make target `vendor/lge/thunderc/proprietary/lib/modules/wireless.ko', needed by `out/target/product/thunderc/system/lib/modules/wireless.ko'.  Stop.
    gannon, i remember you said somewhere that as long as these errors have nothng to do with OUT folder, its easy to fix, how is that?
    03-17-2012 09:54 AM
  9. rukin5197's Avatar
    I get this error now.

    Code:
    make: *** No rule to make target `vendor/lge/thunderc/proprietary/lib/modules/wireless.ko', needed by `out/target/product/thunderc/system/lib/modules/wireless.ko'.  Stop.
    gannon, i remember you said somewhere that as long as these errors have nothng to do with OUT folder, its easy to fix, how is that?
    Well out folder errors are easy to fix because it's usually the candidate of another error. Because after all, one error always leads to another :P
    Here is what you need, because I'm far too busy to post it right now:

    http://forums.androidcentral.com/opt...ml#post1616386
    (second post down)
    What I would do is delete your whole out folder (rm -rf ~/android/system/out) and fix these changes and re- . build/envsetup.sh.

    Although when I ran into this error I downloaded a random term.apk from the internet and put it in that spot where it needs it.
    03-17-2012 10:56 AM
  10. Invincible Madness's Avatar
    Well out folder errors are easy to fix because it's usually the candidate of another error. Because after all, one error always leads to another :P
    Here is what you need, because I'm far too busy to post it right now:

    http://forums.androidcentral.com/opt...ml#post1616386
    (second post down)
    What I would do is delete your whole out folder (rm -rf ~/android/system/out) and fix these changes and re- . build/envsetup.sh.

    Although when I ran into this error I downloaded a random term.apk from the internet and put it in that spot where it needs it.
    Thanks man. The error however is wireless.ko, term.apk is taken care of
    03-17-2012 11:02 AM
  11. tdm's Avatar
    I press control Z to stop and repo sync again, but stops here all the time.
    Press ^C to stop.

    ^Z will not stop the process. It puts the process into the background (pauses it). The process will continue to take memory on your machine while it is paused and may hold files open, etc.
    Invincible Madness likes this.
    03-17-2012 11:24 AM
  12. Invincible Madness's Avatar
    Press ^C to stop.

    ^Z will not stop the process. It puts the process into the background (pauses it). The process will continue to take memory on your machine while it is paused and may hold files open, etc.
    Thanks Sir, any advice for wireless.ko error?
    03-17-2012 11:26 AM
  13. tdm's Avatar
    Thanks Sir, any advice for wireless.ko error?
    Sorry I lost track of which repositories you are pulling your device/lge/thunderc and vendor/lge/thunderc from.

    If this is IHO, you should see:

    Code:
    ~/src/iho$ find device/lge/thunderc/ vendor/lge/thunderc/ -name "wireless.ko"
    device/lge/thunderc/files/LS670/kernel/wireless.ko
    device/lge/thunderc/files/VM670/kernel/wireless.ko
    If you can't find wireless.ko in those directories, something is wrong.
    03-17-2012 11:30 AM
  14. Invincible Madness's Avatar
    Sorry I lost track of which repositories you are pulling your device/lge/thunderc and vendor/lge/thunderc from.

    If this is IHO, you should see:

    Code:
    ~/src/iho$ find device/lge/thunderc/ vendor/lge/thunderc/ -name "wireless.ko"
    device/lge/thunderc/files/LS670/kernel/wireless.ko
    device/lge/thunderc/files/VM670/kernel/wireless.ko
    If you can't find wireless.ko in those directories, something is wrong.

    Oh, I'm building from thekraven's ICS1. Would it still be the same then?
    03-17-2012 11:37 AM
  15. tdm's Avatar
    Oh, I'm building from thekraven's ICS1. Would it still be the same then?
    I think he's on this thread. He will probably reply soon....
    03-17-2012 11:48 AM
  16. rukin5197's Avatar
    Oh, I'm building from thekraven's ICS1. Would it still be the same then?
    I believe in ICS it should be in /android/system/vendor/lge/thunderc/proprietary/lib/modules/wireless.ko
    03-17-2012 11:51 AM
  17. thekraven's Avatar
    Check to see if those drivers are in these folders. Otherwise, you will need to grab iscream or gingerkernel and place them in

    Code:
    # 
    Wifi
    PRODUCT_COPY_FILES += \
     vendor/lge/thunderc/proprietary/lib/modules/wireless.ko:system/lib/modules/wireless.ko 
    \
    vendor/lge/thunderc/proprietary/lib/modules/librasdioif.ko:system/lib/modules/librasdioif.ko \
    vendor/lge/thunderc/proprietary/lib/modules/tun.ko:system/lib/modules/tun.ko \
    Then place the kernel in device/lge/thunderc. You might have to rename zimage to kernel.
    What you could do is go back to a previous state in that vendor folder, the current state may not be buildable.
    cd vendor/lge/thunder
    git reflogg
    For example, if you see something like 1234567... HEAD0 build 3 or any commit
    git reset --hard 1234567
    03-17-2012 05:06 PM
  18. thekraven's Avatar
    Here's a script that i use to build and makes a log file. Just place in your build folder like android/system. It builds thunderc so it will work for VM or sprint for now till it gets more device specific in the lunch menu.

    Code:
    #!/bin/bash
    SOURCE_DIR="$(dirname "$(readlink -f "$0")")"
    setup()
    {
        USE_CCACHE=1
        CCACHE=ccache
        CCACHE_BASEDIR="$SOURCE_DIR"
        CCACHE_COMPRESS=1
        CCACHE_DIR="$SOURCE_DIR/.ccache"
        export USE_CCACHE CCACHE_DIR CCACHE_COMPRESS CCACHE_BASEDIR
        source build/envsetup.sh
        lunch cm_$1-userdebug
    }
    setup thunderc
    if [ "$1" = "clean" ]; then
        make CC=gcc-4.4 CXX=g++-4.4 clean
    fi
    START=$(date +%s)
    make CC=gcc-4.4 CXX=g++-4.4 -j`cat /proc/cpuinfo| grep processor | wc -l` otapackage 2>&1 | tee build_log 
    END=$(date +%s)
    ELAPSED=$((END - START))
    E_MIN=$((ELAPSED / 60))
    E_SEC=$((ELAPSED - E_MIN * 60))
    printf "Time to compile: "
    [ $E_MIN != 0 ] && printf "%d min(s) " $E_MIN
    printf "%d sec(s)\n" $E_SEC
    And just run
    . build.sh

    For a fresh build
    . build.sh clean
    03-17-2012 06:26 PM
  19. Invincible Madness's Avatar
    Kraven, i placed the iScream kernel files like you mentioned. Now when I run it's stopping at the config.xml error at line 127. I looked at the file at that line and it looks like

    Code:
     <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
    </resources>
    I remember you said last time that there is a '>' missing somewhere. What should I change the above line to?

    error is
    Code:
    device/lge/thunderc/overlay/frameworks/base/core/res/res/values/config.xml:127: error: Error parsing XML: mismatched tag
    make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
    make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
    make: *** Waiting for unfinished jobs....
    Also, I unzipped the build.sh to the folder you said and will use it from now on. Thanks much for supporting
    03-17-2012 06:41 PM
  20. thekraven's Avatar
    You might have better luck grabbing my syncing with my icsa7 branch
    03-18-2012 12:14 AM
  21. Invincible Madness's Avatar
    You might have better luck grabbing my syncing with my icsa7 branch
    Should I just delete android and bin folders and start over again? and use the build script you linked above?
    03-18-2012 12:16 AM
  22. thekraven's Avatar
    i need to push a couple files first then you should be able to build alpha5
    03-18-2012 12:20 AM
  23. thekraven's Avatar
    But its line 35 that needs another <

    <bool name="config_sf_slowBlur">false</bool>
    03-18-2012 12:26 AM
  24. Invincible Madness's Avatar
    I'll try tomorrow
    03-18-2012 05:16 AM
  25. Invincible Madness's Avatar
    i need to push a couple files first then you should be able to build alpha5
    Did you push the files you said you would? So, I should delete the /android and /bin folders and start again with icsa7 instead of ics1 right? and use the script you attached above.
    03-18-2012 06:58 PM
325 ... 34567 ...
LINK TO POST COPIED TO CLIPBOARD