[DEV] How to build CM10.1 (Android 4.2.1) for the galaxysmtd

Search This thread

dany547

Senior Member
Feb 8, 2008
1,386
939
Iași
www.geekchronicles.ro
similar error here
Code:
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
remote: Counting objects: 613778, done.
remote: Compressing objects: 100% (191941/191941), done.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch CyanogenMod/android_frameworks_base

error: Exited sync due to fetch errors
 

smithchipz

Senior Member
Apr 5, 2012
245
84
Melbourne
Yes I'm also getting repo sync errors. Posted a thread in chef central asking if anyone knew what was wrong/needed to be fixed.

Sent from my GT-I9000 using xda app-developers app
 

rubervalrfl

Senior Member
Jan 19, 2011
320
110
LINHARES - ES
www.luandroid.com.br
Good morning guys, today this message appeared to me when I was doing repo sync the cyano and slim, someone could tell me what to do?

Code:
info: Restarting repo with latest version

... A new repo command (1.19) is available.
... You Should upgrade soon:

     cp / media/ruberval/DADOS2/slimrom4.2/.repo/repo/repo / home / Ruberval / bin / repo

warning: local_manifest.xml is deprecated; put in place manifests instead local_manifests
Fetching projects: 100% (334/334), done.
warning: local_manifest.xml is deprecated; put in place manifests instead local_manifests
Syncing work tree: 100% (334/334), done.
 
D

droidjam

Guest
Good morning guys, today this message appeared to me when I was doing repo sync the cyano and slim, someone could tell me what to do?

Code:
info: Restarting repo with latest version

... A new repo command (1.19) is available.
... You Should upgrade soon:

     cp / media/ruberval/DADOS2/slimrom4.2/.repo/repo/repo / home / Ruberval / bin / repo

warning: local_manifest.xml is deprecated; put in place manifests instead local_manifests
Fetching projects: 100% (334/334), done.
warning: local_manifest.xml is deprecated; put in place manifests instead local_manifests
Syncing work tree: 100% (334/334), done.

first do this: cp / media/ruberval/DADOS2/slimrom4.2/.repo/repo/repo /home/Ruberval/bin/repo
This: warning: local_manifest.xml is deprecated; put in place manifests instead local_manifests
is just a warning not an error, we have to move the local_manifest.xml to .repo/local_manifests/ but if I do that it gives me errors. So just ignore it for now.

*Dirty fix for now* :
mkdir local_manifests && cp .repo/local_manifest.xml . && cp local_manifest.xml local_manifests
that gives me no more errors.
 

rubervalrfl

Senior Member
Jan 19, 2011
320
110
LINHARES - ES
www.luandroid.com.br
Thank you very much, it worked actually already existed until the folder you created, just needed to move the file there.
The first error that appears just run the cp command that solves it right there.

One suggestion, you could acrecentar it's the first post would be nice.

hugs
 

danieleb89

Senior Member
Nov 8, 2010
194
36
Patching CM10.1:
apply all patches from here:
http://review.cyanogenmod.org/#/dashboard/1381

Add toolchain path:
Code:
#Android Toolchain PATH
export ARCH=arm
export CCOMPILE=$CROSS_COMPILE
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:/home/YOUR-USERNAME/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin
Hi, thank you for this great guide, I have a question, how do I apply the patches from the url?
And last, about the toolchain path, can I just add these lines to .bashrc?

thank you in advance for the help :)
 

dark_knight35

Senior Member
Jan 15, 2012
1,936
989
AW: [DEV] How to build CM10.1 (Android 4.2.1) for the galaxysmtd

Building with JDK7 is now possible.
 

sada23

Senior Member
Nov 30, 2010
907
943
Sunnyvale, CA
HI,
I am building on ubuntu 12.10 64 bit.

I am getting the following error.

Code:
arm-linux-androideabi-g++: internal compiler error: Segmentation fault


What could be wrong?

Thanks
 

bobo1337

Senior Member
Nov 8, 2012
444
124
I got error what to do can anyone help me?

Code:
E: Unable to locate package libwxgtk2.6-dev
E: Couldn't find any package by regex 'libwxgtk2.6-dev'
 
Last edited:

aways

Senior Member
Nov 11, 2011
4,221
14,036
¯\_(ツ)_/¯
www.c-rom.org
I got error what to do can anyone help me?

Code:
E: Unable to locate package libwxgtk2.6-dev
E: Couldn't find any package by regex 'libwxgtk2.6-dev'

replace to : libwxgtk2.8-dev

---------- Post added at 09:43 PM ---------- Previous post was at 09:37 PM ----------

you need to change

Code:
sudo apt-get install git-core gnupg flex bison python rar original-awk gawk p7zip-full gperf libsdl1.2-dev libesd0-dev [COLOR="Red"]libwxgtk2.8-dev[/COLOR] squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool
 
  • Like
Reactions: bobo1337

bobo1337

Senior Member
Nov 8, 2012
444
124
Problem again what to do?


Code:
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/galaxysmtd/cm.mk]]: "device/samsung/aries-common/device_base.mk" does not exist.  Zaustavi.

** Don't have a product spec for: 'cm_galaxysmtd'
** Do you have the right repo manifest?
 

yadavjpr

Senior Member
Jun 7, 2011
276
246
Pune
Questions...

1. How I can build single app like Calculator, cClock etc.
2. I want to remove some apps like Apollo from build, how?

Thanks
 

saszseb

Senior Member
Jan 30, 2011
4,613
1,018
Hungary, Gy-M-S.
Problem again what to do?


Code:
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/galaxysmtd/cm.mk]]: "device/samsung/aries-common/device_base.mk" does not exist.  Zaustavi.

** Don't have a product spec for: 'cm_galaxysmtd'
** Do you have the right repo manifest?

Is " Android SDK Manager" running?

Sent from my GT-I9000 using Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    Hello! time for a good guide,
    GOOD LUCK!
    If you are running into any error please post them here i'll try to fix them.

    STEP 1 :
    Install the Ubuntu packages:
    Code:
    sudo apt-get install git-core gnupg flex bison python rar original-awk gawk p7zip-full gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool
    sudo apt-get install libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils
    sudo apt-get install g++-multilib lib32z1-dev ia32-libs lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++-multilib xsltproc

    STEP 2:
    Install OpenJDK 6:
    Code:
    sudo apt-get install openjdk-6-jdk

    STEP 3:
    Install the Android SDK:

    -Set up directories:
    Code:
    cd ~
    mkdir android
    cd android
    mkdir sdk

    -Download Android SDK from http://developer.android.com/sdk/index.html

    -extract it to: ~/android/sdk

    -Add Android SDK Path:
    Code:
    sudo gedit ~/.bashrc

    Enter the following:
    Code:
    #Android PATH
    export PATH=$PATH:~/android/sdk
    export PATH=$PATH:~/android/sdk/platform-tools
    export PATH=$PATH:~/android/sdk/tools

    -Add Extra Path For USB:
    Code:
    sudo gedit /etc/udev/rules.d/99-android.rules

    Enter this:
    Code:
    #Samsung
    SUBSYSTEM==usb, SYSFS{idVendor}==04e8, MODE=0666
    
    SUBSYSTEM=="usb", ATTRS{idVendor}=="####:####", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev"
    TEST=="/var/run/ConsoleKit/database", \
    RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"

    -Save and close the file and run:
    Code:
    sudo chmod +x /etc/udev/rules.d/99-android.rules

    -Close and open a new terminal

    -run:
    Code:
    android
    -install the SDK platform tools

    STEP: 4
    Installing the repo

    -Download the repo:
    Code:
    mkdir -p ~/bin
    mkdir -p ~/android/system
    curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    chmod a+x ~/bin/repo

    -Add Repo to path:
    Code:
    sudo gedit ~/.bashrc

    enter this:
    Code:
    export PATH=$PATH:~/bin

    -Initialize Repository & Sync:
    Code:
    cd ~/android/system/
    repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
    repo sync

    -Get repos for our device:
    Code:
    . build/envsetup.sh && breakfast galaxysmtd

    -Connect Phone to computer and type:
    Code:
    adb root
    cd ~/android/system/device/samsung/galaxysmtd/
    ./extract-files.sh

    -Get prebuilts:
    Code:
    ~/android/system/vendor/cm/get-prebuilts

    Patching CM10.1:
    apply all patches from here:
    http://review.cyanogenmod.org/#/dashboard/1381

    Add toolchain path:
    Code:
    #Android Toolchain PATH
    export ARCH=arm
    export CCOMPILE=$CROSS_COMPILE
    export CROSS_COMPILE=arm-eabi-
    export PATH=$PATH:/home/YOUR-USERNAME/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin

    STEP 5: BUILDING ANDROID
    Code:
    cd ~/android/system
    . build/envsetup.sh && brunch galaxysmtd

    STEP 6: How to do a new build?
    Code:
    cd ~/android/system
    repo sync 
    make installclean
    
    find ./out/ -name 'build.prop' | xargs rm
    find ./out/ -name 'cm_galaxysmtd-target_files-eng.*.zip' | xargs rm


    This was it! if you liked it hit the thanks button please!
    3
    Is anybody trying to compile SlimRom, I have a problem that I'm not able to fix, can someone help.


    make: *** No rule to make target `/ media/ruberval/DADOS2/slimrom4.2/out/target/product/galaxysmtd/utilities/flash_image ', needed by` TARGET_KERNEL_BINARIES'. Stop.
    make: ** Waiting for other processes to finish.
    target StaticLib: libmtdutils
    target StaticLib: libminadbd
    Ruberval Fenix ​​@ :/ $ media/ruberval/DADOS2/slimrom4.2

    go in slimrom4.2/out/target/product/galaxysmtd/ on here create new folder and rename it utilities

    now you have slimrom4.2/out/target/product/galaxysmtd/utilities copy here from slim rom zip bml_over_mtd, bml_over_mtd.sh, erase_image, flash_image, make_ext4fs

    and go go go...
    2
    I've a question... How must I make that?
    now not need to any patch all merged on sources.
    1
    Let me know!

    Sent from my GT-I9000 using xda premium
    1
    Well, I've successful to build a rom. After, I think it is not an exploit, anyone should be able to do.
    The most complicated is certainly make its own modifcations (options & additions).