Gnu compilation?? - Optimus One, P500, V Q&A, Help & Troubleshooting

I have CM7.2 on my phone,and there is a preinstalled terminal emulator app.so, can I install gcc on that..?? If yes,please advice me to do that ...
Sent from my LG-P500

akshay thakare said:
I have CM7.2 on my phone,and there is a preinstalled terminal emulator app.so, can I install gcc on that..?? If yes,please advice me to do that ...
Click to expand...
Click to collapse
No!
If you want to compile something for arm, install a cross toolchain on your PC.

akshay thakare said:
I have CM7.2 on my phone,and there is a preinstalled terminal emulator app.so, can I install gcc on that..?? If yes,please advice me to do that ...
Sent from my LG-P500
Click to expand...
Click to collapse
the terminal emulator app on the phone is pretty useless. only time i used it was to root my iconia a100, otherwise you can pretty much use normal adb. no difference, uness you don't have computer

Related

[i9001][MODULES]Tun.ko{VPN},CIFS.ko,PPP MOdules

If u dont know what CIFS and TUN are,u probably don't need it
Instructions:
1)Extract the modules inside the zip to,say, /system/lib/modules
2)Fire up terminal and type this command
Code:
insmod /system/lib/modules/tun.ko
insmod /system/lib/modules/cifs.ko
Same procedure to load PPP Modules,just change the names
DONE!
Note:If u use above method ,u need to execute above commands on every reboot!
if u want to avoid that hassle,use an app on XDA called "MODULE LOADER"(Google it/Use Search) and bamm..done!
Regards
How did you compile those libs?
Would it be possible to port the liblights for BLN mod?
I tried to load the SII GT9100 libs and the original GT9000 ones but they don't work... or do I need a customized kernel for those?
wintel_mac said:
How did you compile those libs?
Would it be possible to port the liblights for BLN mod?
I tried to load the SII GT9100 libs and the original GT9000 ones but they don't work... or do I need a customized kernel for those?
Click to expand...
Click to collapse
These aren't libs,they are loadable modules compiled from source
manveru0 already tried BLN,he said that it freezes the phone..
try to load DHD liblights...who knows they might work!..of course with some changes in kernel(add bln.c).....pm me
i saw u posted in Droidzone's thread, so just to give u a lil tip, if u have any questions about kernels there is one guy to ask, snq- , he is the God of all kernel devs, i've had my desire for over a year and i saw most of his work, trust me the whole HTC community (not just the desire section) knows who he is
Hei,
what do i need to compile these?
i'm comfortable using ubuntu linux and compiling, but i need to compile the tun.ko for a honeycomb tablet.
are the general android sources from google enough or do i need device specific?
Can you give me short a step by step? (just the steps and sources, i have already compiled modules on my own for ubuntu)
thx in advance
is this tun.ko module works with openvpn? because i saw some blogs posted about this stuff and for tun.ko module to be worked with openvpn, it must be the same with the kernel....is this correct? please help me with this stuff...really appreciated it!
-corrupt1234
@corrupt:yes,this tun.ko is for openVPN
@cheefy:i will pm u when i come back from school
@rayiskon:i know that guy...he overclocked a phone w/o the kernel source.epic!
sakindia123 said:
@rayiskon:i know that guy...he overclocked a phone w/o the kernel source.epic!
EDIT:I will make a nice little 1-min video to compile modules!
Click to expand...
Click to collapse
It wasn't just about overclocking, he added modules, managed to fix the compass with a hack (bear in mind that even HTC couldn't release a fixed compass version), fixed 720p recording, all that on a closed source kernel . he also managed to get the sense 3.0 lockscreen (ring + 4 icons) to work on desire. not to mention his earlier work with extended power menu, battery circle icons etc...
Sent from my GT-I9001 using xda premium
sakindia123 said:
@corrupt:yes,this tun.ko is for openVPN
@cheefy:i will pm u when i come back from school
@rayiskon:i know that guy...he overclocked a phone w/o the kernel source.epic!
EDIT:I will make a nice little 1-min video to compile modules!
Click to expand...
Click to collapse
Owh, i see...so what if i use that tun.ko with your cranium rc5 rom? will it work on openvpn?
Thanks in advance.
-corrupt1234
@Corrupt Yes it should work!
Updated With PPP Modules! Kindly test if possible
sakindia123 said:
@Corrupt Yes it should work!
Click to expand...
Click to collapse
Hi again, dude, one question...is your tun.ko works with any stock roms like zksp and etc? i haven't tried with your ROM though, need to test with stocks first...i'll be happy if it works!!!!
corrupt1234 said:
Hi again, dude, one question...is your tun.ko works with any stock roms like zksp and etc? i haven't tried with your ROM though, need to test with stocks first...i'll be happy if it works!!!!
Click to expand...
Click to collapse
Of course it does
Ok, so i've downloaded your tun.ko and after hours setting up with openvpn....it's finally working. However, it doesn't connect to the Internet as it should be..so i've downloaded another openvpn installer by sasha from the market and guess what, it says tun/tap found but not working but everything else is fine. Sakindia, can you post like tutorial for newbie on how to put your tun.ko and do i have to put that tun.ko together with ciff.ko together? Thank in advance
They are independent of each other.And i think the instructions are pretty easy!
hi.
where is /system/modules ? in phone?
can i use adb for this ?
thx.
kamran k said:
hi.
where is /system/modules ? in phone?
can i use adb for this ?
thx.
Click to expand...
Click to collapse
yes and yes
Hi.
I can't find /system/modules/ in my phone!
I use with script manager. Do i make it and copy?
please help me, thanks
kamran k said:
Hi.
I can't find /system/modules/ in my phone!
I use with script manager. Do i make it and copy?
please help me, thanks
Click to expand...
Click to collapse
Well,i forgot!
U have to place them in /system/lib/modules
My bad!
I do It. but this modules not work, VPN is unable now.
my rom is [KPS]★Cranium RC6 Update #1

[DEV][TUTORIAL]Compile your own kernel from Samsung Sources! *Newbie Friendly*

Ok,let's start with kernel first....
I want this guide to be n00b friendly...so lets start!
1)Install Ubuntu 10.10 or later(virtual distro may work too!)......Ubuntu coz its easy for beginners....This guide should work on Fedora distros,but u will need to download separate packages.
Use this for samsung devices:
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
2)Download the source code from opensource.samsung.com
3)Open terminal and download the the necessary tools:
For 32/64 bitsi use this)
Code:
apt-get install git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
For 64 bits ONLY:
Code:
ia32-libs lib32z1-dev lib32ncurses5-dev gcc-multilib g++-multilib
4)Download the code soucery toochain:Toolchain
Note:This is an old toolchain.u may/should use a newer one...(optional)
ur machine is good to GO!
Ok,so i assume u have set up your machine
Now,all of the files should be placed in ~/Downloads (for my convinience to explain!but u may put it anywhere)
extract the sources and everything else u downloaded....then go into the top directory
Code:
cd Kernel
u enter into the root of the kernel directory with this
then type :
Code:
gedit Makefile
The Make file will open.........look out for this and change CROSS_COMPILE= "your toolchain path"
EXAMPLE:
Code:
CROSS_COMPILE ?= /home/sarthak/Downloads/Toolchains/arm-eabi-4.4.3/bin/arm-eabi-
This will open up the Makefile in a gedit,and the changed values will correspond to wherever u placed your toolchain................the EXTRAVERSION refers to current sub-version of your linux kernel version on ur phone
Get the config from your phone..Type:
Code:
adb pull /proc/config.gz
This will fetch a working config from the current kernel on your phone....u can alternatively make a new one with "make menuconfig"
Then gunzip it and copy it to to ur kernel source root:
Code:
gunzip config.gz
rename to .config
Now,make the necessary changes in your source.When you are done,type:
Code:
make -jX
,where X=no.op cpu threads multiplied by 1 or 2.
Sit down and have a smoke!
The resulting kernel will be in Kernel/arch/arm/boot/zImage
MORE COMING SOON!guide unfinished
reserved..................
last one!!!!!1
sakindia123 said:
last one!!!!!1
Click to expand...
Click to collapse
Sir why dont you create yourself a good Powerfull kernel for us please.............Thanks in advance
rohit589769 said:
Sir why dont you create yourself a good Powerfull kernel for us please.............Thanks in advance
Click to expand...
Click to collapse
Respect bro.
@Saki* you have any links for other toolchain compiler.
Sent from my LG-P920 using xda premium
Will this work with virtualbox as well?
bumslayer said:
Will this work with virtualbox as well?
Click to expand...
Click to collapse
yap but i think it requires a different set-up
cool sir saki
i think ill wait until i get my Comp.
we're using win7 Ult. pretty dumb =="
btw, can i be ran in Fedora?
mtvtitan said:
Respect bro.
@Saki* you have any links for other toolchain compiler.
Sent from my LG-P920 using xda premium
Click to expand...
Click to collapse
u can pick arm toolchains from Codesoucery site(google it)..
i personally use 2011.03
@bumslayer-yes it will work,but it will be slower
sakindia whats the point for this?you also try it but didnt work on flashing.so why to create unusable kernels?
sakindia123 said:
u can pick arm toolchains from Codesoucery site(google it)..
i personally use 2011.03
@bumslayer-yes it will work,but it will be slower
Click to expand...
Click to collapse
ok googling............
thanks anyway..........
bumslayer said:
Will this work with virtualbox as well?
Click to expand...
Click to collapse
sakindia123 said:
@bumslayer-yes it will work,but it will be slower
Click to expand...
Click to collapse
novaday's virtual machines does not have significant overhead, so performance degradation is negligible. Go ahead, using vm is a good choice!
Me personally using Ubuntu inside a Microsoft Virtual PC (sometimes Oracle VM VirtualBox). My suggestion is not to use the virtual machines virtual desktop it's a bit laggy, but telnet or ssh into the virtual machine, you feel more convenient.
The only drawback, than you don't have direct USB connection to the phone. You have to transfer the files between the Linux and the phone using the host OS (eg Windows).
Doky73 said:
The only drawback, than you don't have direct USB connection to the phone. You have to transfer the files between the Linux and the phone using the host OS (eg Windows).
Click to expand...
Click to collapse
I wonder whether USB support would be sufficient in VirtualBox to support the SDK. some USB devices work quite well in a VM.
But i didnt understand what is use of compiling kernel?
Kernel Compiling is not easy task like making ROM.
1st you have to understand linux enverioment
2nd you have to make Android Enverioment in linux enverioment
3rd you have to sound knowledge of C
4th you have to know how to patch kernel
5th you have to be ready to brick phone (atleast your)
so better is leave kernel stuff to a developer who understand this and enjoy either stock kernel or patched kernel which developer release frequently.
I suggessing dont go for kernel compiling if you didnt know what it is.
sajidmkhan said:
But i didnt understand what is use of compiling kernel?
Kernel Compiling is not easy task like making ROM.
1st you have to understand linux enverioment
2nd you have to make Android Enverioment in linux enverioment
3rd you have to sound knowledge of C
4th you have to know how to patch kernel
5th you have to be ready to brick phone (atleast your)
so better is leave kernel stuff to a developer who understand this and enjoy either stock kernel or patched kernel which developer release frequently.
I suggessing dont go for kernel compiling if you didnt know what it is.
Click to expand...
Click to collapse
Very well said..
i've seen many people who know the stuff but are not familiar how it works with android.....
sakindia123 said:
i've seen many people who know the stuff but are not familiar how it works with android.....
Click to expand...
Click to collapse
actually i agree w/ saki. i've visited ace's and htc evo 4g. some ppl dunno how those linux things works but thy have compiled a kernel =="
We must learn ,sudnt leave the responsibility to only a few.Also I think kernel can be ported?
premolikeshtc said:
We must learn ,sudnt leave the responsibility to only a few.Also I think kernel can be ported?
Click to expand...
Click to collapse
135MB Size of Kernel Source
2693 Directory
35492 Files
This is exact situation of 5360 Galaxy Y Kernel source which you have to mod and compile.
dude Start learning from now
---------- Post added at 06:35 AM ---------- Previous post was at 06:34 AM ----------
musashihatred said:
actually i agree w/ saki. i've visited ace's and htc evo 4g. some ppl dunno how those linux things works but thy have compiled a kernel =="
Click to expand...
Click to collapse
compile didnt take anything its just one command.
Important is patching kernel cuz without patching output will be worst then stock kernel
YEah,someone with zero knowledge wouldn't dabble into the source.....Tis guide is just a simple tut to set up the environment and compile stock zImage.

[GUIDE] Compile CM from source, source basics & FAQ - Very detailed and noob friendly

[GUIDE] Compile CM from source, source basics & FAQ - Very detailed and noob friendly
Hey guys, I know there is already a tutorial about compiling CyanogenMod by sakindia123 but it requires basic Linux knowdlegde and he missed some things. I wrote this tutorial very detailed and simple.
This Guide have 4 parts:
1. How to compile CyanogenMod from source
2. Hardware Requirments and using SWAP memory
3. CyanogenMod source and device tree basics
4. FAQ
Click to expand...
Click to collapse
Before we start, I would like to thank these guys:
sakindia123, derefas, lirokoa, cute_prince - for amazing work on CM7-10.1 and Kernel 3.0
Nihar G. and bhargz16 that never refused to help me
How to compile CyanogenMod from source​
Lets assume you are new in Linux world and you just installed a fresh Ubuntu installation.
I will use:
- Ubuntu 12.10 64bit
- CyanogenMod 10.1 (sakindia123 device tree) - because its newest, and currently WIP, so its exciting to get new bulid with something fixed before release!
- Kernel 3.0.16 for Pico (sakindia123 github tree)
Lets get it started.
1. Open the Terminal (Press CTRL+ALT+T).
2. Get rid of administrator permissions ****.
Type:
sudo su
then type your password you set up during Ubuntu installation (password will be invisible) and hit enter
Click to expand...
Click to collapse
3. Download, install and setup Java:
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java6-installer
apt-get install oracle-java6-set-default
Click to expand...
Click to collapse
4. Install a needed packages:
apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc pngcrush gcc-multilib lib32z1 schedtool
Click to expand...
Click to collapse
5. Download a Google Repo tool. Type these commands:
mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Click to expand...
Click to collapse
6. Reboot your computer. (No need for sudo su after reboot)
If you are building for HTC Explorer
7. Initalize the CyanogenMod 10.1 repository (with included pico stuff):
mkdir -p ~/CM10.1/android/system
cd ~/CM10.1/android/system
PATH=~/bin:$PATH
repo init -u git://github.com/TeamPico/manifest -b cm-10.1
Click to expand...
Click to collapse
8. Start source downloading (repository syncing):
repo sync
Click to expand...
Click to collapse
9. Get Terminal Emulator prebulit APK:
cd ~/CM10.1/android/system/vendor/cm/
./get-prebuilts
Click to expand...
Click to collapse
10. Start compiling bulid!
. build/envsetup.sh
brunch cm_pico-userdebug -jX
X is a number of your CPU cores + 1 or 2
Click to expand...
Click to collapse
Your bulid will be located at /CM10.1/android/system/out as cm-10.1-year/month/date-UNOFFICIAL-pico.zip
If you are building for other devices
7. Initalize the CyanogenMod 10.1 repository:
mkdir -p ~/CM10.1/android/system
cd ~/CM10.1/android/system
PATH=~/bin:$PATH
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
Click to expand...
Click to collapse
8. Start source downloading (repository syncing):
repo sync
Click to expand...
Click to collapse
9. Get Terminal Emulator prebulit APK:
cd ~/CM10.1/android/system/vendor/cm/
./get-prebuilts
Click to expand...
Click to collapse
How to get vendor, kernel, and device tree - search for developers github, its ofter mentioned on dev-thread or his xda profile..
manufacturer - htc, samsung,lge...
codename - device model codename (codename you can easily find on name of github repos of device tree,vendor and kernel)
Examples:
Explorer - pico
Desire - bravo
Galaxy Mini - tass
Galaxy Mini 2 - jena
Nexus 4 - mako
For some devices, example some LGs it can be model number like LG Optimus Me - p350
10. Setup a vendor tree:
Download the vendor tree and extract proprietary folder inside <something>-master folder in archive to /CM10.1/android/system/vendor/manufacturer/codename (you need to manually create folders)
Click to expand...
Click to collapse
11. Setup a device tree:
Download the device tree and extract files and folders inside <something>-master folder in archive to /CM10.1/android/system/device/manufacturer/codename (you will need to manually create folders)
Click to expand...
Click to collapse
12. Setup a kernel source:
Download the kernel source and extract files and folders inside <something>-master folder in archive to /CM10.1/android/system/kernel/manufacturer/codename (you will need to manually create folders)
Click to expand...
Click to collapse
13. If you are building for older device you will probably need to add display legacy support, as it's dropped in CM10.1:
Download the legacy display zip and extract files and folders inside android_hardware_qcom_display-legacy-cm-10.1 folder in archive to /CM10.1/android/system/hardware/qcom/display-legacy folder (you will need to manually create folder)
Click to expand...
Click to collapse
14, If you are building qualcomm (msm) device, apply singleton.h patch
Type in Terminal:
cd ~/CM10.1/android/system/frameworks/native
git fetch http ://review.cyanogenmod.org/CyanogenMod/android_frameworks_native/refs/changes/69/30269/1 && git format-patch -1 --stdout FETCH_HEAD
(delete space between http and :
Click to expand...
Click to collapse
15. Start compiling bulid!
. build/envsetup.sh
brunch cm_codename-userdebug -jX
X is a number of your CPU cores + 1 or 2
Click to expand...
Click to collapse
Your bulid will be located at /CM10.1/android/system/out as cm-10.1-year/month/date-UNOFFICIAL-codename.zip
If I missed something, feel free to report!
Hardware Requirments and using SWAP Memory​
Compiling uses alot of CPU power, but when you run out of RAM memory, you will get "Killed." error. No, you dont need to buy more RAM. You can use SWAP. Quickest and easiest way is to format USB drive to linux-swap and enable SWAP.
Less than 4GB of RAM - You will need SWAP
4GB - Just enough, but if you want to do something other on PC during compiling, its recommemend to make SWAP, just in case.
More than 4GB - You dont need SWAP.
1. Optionally, Copy your USB files to PC as a backup.
2. Go to GParted (preinstalled on Ubuntu)
3. Right-click on your USB drive -> Format -> linux-swap
4. Right-click on your USB drive -> Swap-on
5. Done!
After you are done right-click on your USB drive -> Swap-off, reformat your partition to FAT32 or NTFS and restore data you copied before (if you have any)
CyanogenMod Source and Device Tree basics​
Basic source folders:
/packages - apps
/frameworks - framework (UI look)
/kernel - kernel source folder when using inline kernel buliding (can be changed in BoardConfig.mk, and I'm going to explain that later in this post)
/device - device config
/hardware - drivers for display. audio etc...
What is BoardConfig?
It's a file where you setup pathes to files and enable/disable stuff, its very easy to understand - https://github.com/sakindia123/cm10.1_htc_pico/blob/master/BoardConfig.mk
--
How to use prebulit kernel:
1. Unpack boot.img using boot image tools (check sakindia123's compiling tutorial for step-by-step unpacking boot.img)
2. Rename zimage to 'kernel'
3. Put it in any folder u like you like (example: /prebulitkernel)
4. In BoardConfig.mk add this:
TARGET_PREBUILT_KERNEL := /prebulitkernel/kernel
and comment out these lines:
TARGET_KERNEL_SOURCE := kernel/htc/pico
TARGET_KERNEL_CONFIG := pico_defconfig
TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.4.3
Click to expand...
Click to collapse
5. Done!
--
How to remove ringtones, video editor, CM wallpapers from bulid:
1. Go to device/releasetools/extras.txt
2. Delete anything you don't want/doesn't need. So easy
--
Where are "bulid.prop tweaks"?
bulid.prop settings is located in device/system.prop
--
What is pico.mk?
In pico.mk (device/pico.mk) you can:
- define what libs (drivers) will be compiled (PRODUCT_PACKAGES)
- add prebulits (PRODUCT_COPY_FILES)
you add them in format: path-to-file-in-source: path-to file in compiled bulid (zip),
example: device/htc/pico/prebuilt/etc/media_codecs.xml:system/etc/media_codecs.xml
- change some usb settings (ADDITIONAL_DEFAULT_PROPERTIES)
- play with some "misc" settings (PRODUCT_PROPERTY_OVERRIDES)
- Set default resolution (PRODUCT_AAPT_CONFIG := ... and PRODUCT_AAPT_PREF_CONFIG := ...)
I'm not an expert, If I made some mistake, feel free to report, or tell if you have something interesting I can add!
FAQ
Frequently asked questions​
Q: What's the repository size?
A: CM9 - 4.9GB
CM10 - 9.6GB
CM10.1 - cca. 16GB
Q: Can I compile any other ROM than CyanogenMod with this tutorial?
A: Yes, you will need to, of course, repo init other repo, and maybe change few things in device tree, and probably you can skip part with adding legacy display and patching singleton.
Q: I have "_____ command not found error."
A: Make sure you done all steps, are you in right directory, and did you downloaded all packages.
Q: I have "Killed." error during compiling.
A: Check if you met have enough RAM (read 2nd post of this thread)
Q: I have any other error during compiling
A: Post your problem on this thread
Re: [TUT][REMAKE] Compile CyanogenMod from source
Nice work bro...
Sent from my Nexus 7
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
Great work bro, very helpfull! :thumbup:
Sent from my HTC Explorer A310e using xda app-developers app
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
Cm10 will complile on 32 bit system?
Sent from my HTC Explorer A310e using xda app-developers app
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
wmapt said:
Cm10 will complile on 32 bit system?
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
no rom will compile on 32 bit system... you can only compile kernels on 32 bit systems..
Sent from my Nexus 7
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
Awesome work bro. Glued to this thread. BTW ICS and higher require 64 bit right ?
Sent from my HTC Explorer A310e using xda app-developers app
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
akshat.shenoy said:
Awesome work bro. Glued to this thread. BTW ICS and higher require 64 bit right ?
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Tnx. AFAIK Yes.
Sent from a chocolate cake.
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
+1 brooo,
How much size of the stuffs like repository and other things u mention to download in various steps....based on that I can manage to download.....
Sent from my HTC Explorer A310e using xda premium
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
galaxyfreak said:
Hey guys, I know there is already a tutorial about compiling CyanogenMod by sakindia123 but it requires basic Linux knowdlegde and he missed some things. I wrote this tutorial very detailed and simple.
Before we start, I would like to thank these guys:
sakindia123, derefas, lirokoa, cute_prince - for amazing work on CM7-10.1 and Kernel 3.0
Nihar G. and bhargz16 that never refused to help me
Lets assume you are new in Linux world and you just installed a fresh Ubuntu installation.
I will use:
- Ubuntu 12.10 64bit
- CyanogenMod 10.1 (sakindia123 device tree) - because its newest, and currently WIP, so its exciting to get new bulid with something fixed before release!
- Kernel 3.0.16 for Pico (sakindia123 github tree)
Lets get it started.
1. Open the Terminal (Unity Dash Search, just type terminal and hit enter)
2. Get rid of administrator permissions ****.
Type:
3. Install a needed packages:
4. Download a Google Repo tool. Type these commands:
5. Reboot your computer.
6. Initalize the CyanogenMod 10.1 repository:
7. Start source downloading (repository syncing):
9. Get Terminal Emulator prebulit APK:
10. Setup a vendor tree:
11. Setup a device tree:
12. Setup a kernel source:
13. Add display legacy support, as it's dropped in CM10.1:
14. Start compiling bulid!
Your bulid will be located at /android/out as cm-10.1-year/month/date-UNOFFICIAL-pico.zip
If I missed something, feel free to report!
Click to expand...
Click to collapse
Plzz provide link to download Ubuntu n every single thing required to compile then it will be noon friendly
Sent from my HTC Explorer A310e using xda premium
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
abhiparmar92 said:
+1 brooo,
How much size of the stuffs like repository and other things u mention to download in various steps....based on that I can manage to download.....
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
the sources all vary in size... Ics sources are generally limited anywhere upto 10gb.. Cm9 is 4. 9..
Cm10 onwards, the source sizes go upto 15 gb...
Sent from my Nexus 7
---------- Post added at 10:04 AM ---------- Previous post was at 10:03 AM ----------
maxy! said:
Plzz provide link to download Ubuntu n every single thing required to compile then it will be noon friendly
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
i dont think it was meant to be noob friendly..
But anyways, you can dowload ubuntu over ar ubuntu.com..
whichever version you download, just make sure its 64 bit..
Sent from my Nexus 7
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
Really gr8 work bro !!!
Sent from my HTC Explorer A310e using xda premium
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
bhargz16 said:
the sources all vary in size... Ics sources are generally limited anywhere upto 10gb.. Cm9 is 4. 9..
Cm10 onwards, the source sizes go upto 15 gb...
Sent from my Nexus 7
---------- Post added at 10:04 AM ---------- Previous post was at 10:03 AM ----------
i dont think it was meant to be noob friendly..
But anyways, you can dowload ubuntu over ar ubuntu.com..
whichever version you download, just make sure its 64 bit..
Sent from my Nexus 7
Click to expand...
Click to collapse
Not necessarily my friend i read somewhere 32 bit can also be used but will req a little more things to do the same job
Sent from my HTC Explorer A310e using xda premium
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
immortal_yash said:
Not necessarily my friend i read somewhere 32 bit can also be used but will req a little more things to do the same job
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
but thats only for upto froyo.. For gb and above, 32 bit cant handle it..
Sent from my Nexus 7
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
bhargz16 said:
but thats only for upto froyo.. For gb and above, 32 bit cant handle it..
Sent from my Nexus 7
Click to expand...
Click to collapse
Dude i was building mini cm 9 on Ubuntu 11.10 32 bit and everything worked except when there was a motherboard failure
Sent from my HTC Explorer A310e using xda premium
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
immortal_yash said:
Dude i was building mini cm 9 on Ubuntu 11.10 32 bit and everything worked except when there was a motherboard failure
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
hmmmm... Thats weird..
Coz google themselves recommend 64 bit for gb n above
Sent from my Nexus 7
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
bhargz16 said:
hmmmm... Thats weird..
Coz google themselves recommend 64 bit for gb n above
Sent from my Nexus 7
Click to expand...
Click to collapse
They recommend but we can use 32 bit as well just a little more downloading will be req
Sent from my HTC Explorer A310e using xda premium
Re: [TUT][REMAKE] Compile CyanogenMod from source - Very detailed and noob friendly
immortal_yash said:
They recommend but we can use 32 bit as well just a little more downloading will be req
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
i've never tried 32 for rom compiling..
Get that info here.. So op can add it..
Sent from my Nexus 7

[wip] mtk6577 alps sources and kitkat dev

first off all i dont know where to start such thread so moderate can move it to whatever place they thought of
now i had some good news and not some good news
good news is i had found complete mtk sources and compiled rom out of it succesfully
and not so good news is
sources are of 4.1.2 and im new to this so i need developers help
i'm posting the steps that i had followed for compiling
DOWNLOAD
1. download and install ubuntu if not installed already
2. download sources http://pan.baidu.com/wap/link?uk=2869617224&shareid=4195729301&third=0
3. download jdk-6u29-linux-x64.bin (this worked for me)
SETTING UP MACHINE
1. open terminal and type
2.
Code:
sudo apt-get install flex bison gperf build-essential curl zlib1g-dev g++-multilib g++-4.4-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z1-dev wine mingw32 tofrodos libxml2-utils
3. after it finishes installation of required pakages type
Code:
cd /usr/bin
sudo mv gcc gcc.bak
sudo ln -s gcc-4.4 gcc
sudo mv g++ g++.bak
sudo ln -s g++-4.4 g++
4. now setup java change to directory where jdk-6u29-linux-x64.bin resides and extract using
Code:
./jdk-6u29-linux-x64.bin
cammand in terminal
make sure permission of jdk-6u29-linux-x64.bin is executable
5. type following in terminal
Code:
gedit ~/.bashrc
and following lines to bashrc in gedit
Code:
#java Settings
export JAVA_HOME=~/toolchain/jdk1.6.0_29
export JRE_HOME=JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
make sure to setup up path correctly in my case java is exracted in toolchain folder yours may differ
6 type follwing in terminal
Code:
sudo mv /bin/sh /bin/sh.bak
sudo ln -s /bin/bash /bin/sh
BUILDING ROM
1. extract sources( in my case in alps folder at home)
2. open mbldenv.sh in root directory of extracted folder and edit java path as done before
3. open terminal emulator
and type
Code:
./mk -h for all commands
and type
Code:
./mk -o=TARGET_BUILD_VARIANT=user mbk77_tb_jb n
(for a complete new build of mbk77_tb_jb project)
###########################################################
now i request all developers to colabrate and make kitkat possible
im trying my bit but new to all this and mtk sources are complete mess
if you got any problem or error im here to help to best of my possibilities
screenshot of out folder and generated build.prop is attached
and dont ask me to upload anything as my net speed is slow it takes 7 days to download sources
Great Initiative Buddy
All the best :good:
got all imgs compiled without any errors ??
Sent from my XOLO A700 using Tapatalk
AnoopKumar said:
got all imgs compiled without any errors ??
Sent from my XOLO A700 using Tapatalk
Click to expand...
Click to collapse
Yes buddy no error sources are complete but a big mess too
Sent from my NeXus using xda app-developers app
I don'y have the device but my neighbour has since i can't use his phone all day i can just help by making device tree for CM11 and try and add patches which were made for MT6589
I an not sure if this can work the only thing is @bindassdost you sync the sources and try we can make a organisation on Github and submit the patches
GuneetAtwal said:
I don'y have the device but my neighbour has since i can't use his phone all day i can just help by making device tree for CM11 and try and add patches which were made for MT6589
I an not sure if this can work the only thing is @bindassdost you sync the sources and try we can make a organisation on Github and submit the patches
Click to expand...
Click to collapse
brother i cant sync sources my net is slow (256kbps) only it took me 7 days to download 2.7gb compressed souorces i dont know how long it will take to sync 9gb sources to github thats why i wrote everything that i did so that someone with good speed do the task
thats the reson i cant procede further as cm sources are also huge arround 10gb but i can help if someone else do this
bindassdost said:
brother i cant sync sources my net is slow (256kbps) only it took me 7 days to download 2.7gb compressed souorces i dont know how long it will take to sync 9gb sources to github thats why i wrote everything that i did so that someone with good speed do the task
thats the reson i cant procede further as cm sources are also huge arround 10gb but i can help if someone else do this
Click to expand...
Click to collapse
GuneetAtwal said:
I don'y have the device but my neighbour has since i can't use his phone all day i can just help by making device tree for CM11 and try and add patches which were made for MT6589
I an not sure if this can work the only thing is @bindassdost you sync the sources and try we can make a organisation on Github and submit the patches
Click to expand...
Click to collapse
i can help u with that i have downloaded the synced sources..and will upload if the phone boots up...
i am just thing of how to build it as it is not supported...
just help me with that and the recovery which will reqire selinux..
,[email protected]
also i have cloned the kernal sources of your bindassboost..is it ok..i did not have any other souces of kernal..
well my cm 11 sorce downloading is complete around 13.54 gb..
plus my net speed is 2 mbps..
Avenger4droid said:
i can help u with that i have downloaded the synced sources..and will upload if the phone boots up...
i am just thing of how to build it as it is not supported...
just help me with that and the recovery which will reqire selinux..
,[email protected]
also i have cloned the kernal sources of your bindassboost..is it ok..i did not have any other souces of kernal..
well my cm 11 sorce downloading is complete around 13.54 gb..
plus my net speed is 2 mbps..
Click to expand...
Click to collapse
First try the build output coming from these sources as they will be 4.1.2 so you don't require any special Recovery for now so try that
GuneetAtwal said:
First try the build output coming from these sources as they will be 4.1.2 so you don't require any special Recovery for now so try that
Click to expand...
Click to collapse
i havent made the output file yet...
cause i dont know..
i have cloned the sources ....but i m confused how to build ???
is there a folder called "protect" in "source/mediatek/"
Sent from my XOLO A700 using Tapatalk
probably yes...cause i had one when i downloaded the sources...
also is there a vender folder in mediatek...???
So now Can WE Expect Kitkat For CAnvas2 ... Don't know When Micromax Gonna Release It .. @bindassdost
I think these are MT8377 sources :/
Can't work on it without a device to test.
Sent from my C2105 using Tapatalk
varun.chitre15 said:
Can't work on it without a device to test.
Sent from my C2105 using Tapatalk
Click to expand...
Click to collapse
Hi sir, its good to see you back.....:victory:if you are sure(i mean undertaking cm development) we shall start a fundraiser thread if you wish to have a device
varun.chitre15 said:
Can't work on it without a device to test.
Sent from my C2105 using Tapatalk
Click to expand...
Click to collapse
Nice See You varun.chitre15 Buddy........
hello sir..
varun.chitre15 said:
Can't work on it without a device to test.
Sent from my C2105 using Tapatalk
Click to expand...
Click to collapse
thank you sir for returning sir...i am very grateful to you...
i have downloaded cm 11 sources and also made the evironment for developing...
all i need is ur help to compile it as i dont have complete device trees..and kernal sources...
also i have not made cm for unsupported device..
your help is very important and gratefull to me..
regards
Avenger4droid
Avenger4droid said:
thank you sir for returning sir...i am very grateful to you...
i have downloaded cm 11 sources and also made the evironment for developing...
all i need is ur help to compile it as i dont have complete device trees..and kernal sources...
also i have not made cm for unsupported device..
your help is very important and gratefull to me..
regards
Avenger4droid
Click to expand...
Click to collapse
tHATS fANTASTIC bROTHER... =
bindassdost said:
(...)
good news is i had found complete mtk sources and compiled rom out of it succesfully
(...)
Click to expand...
Click to collapse
Hi
You do know that those sources aren't for MT6577 ?
They are for MT8377, a Tablet SoC , and there are a lot of diffs between MT6577 and MT8377 (mainly GPU; max RES; etc, etc )
So, just imagine the mess it would be, by working on some sources that aren't exaclly for your SoC.
Even with full sources for MT6589, the CM Builds required alot of work, and the build status are still WIP. And with a lot of things to be fixed...
B.Regards
Check these sources
mxrootrom.blogspot.in/2014/02/mediatek-mtk-kernel-source-code-leaked.html?m=1
Sent from my MICROMAX CANVAS 2 using XDA Premium 4 mobile app

[APP] [Linux x86/x64] LAFI (Linux Adb Fastboot Installer]

Hi there! This is my first thread on XDA
So, what is LAFI ?
In Linux, the installation of the adb and fastboot drivers is hard or take some times. And all new Linux Users have not many knowledge in Linux. So with this script you can install Adb+fastboot Drivers in 1 Sec ! Also now you can use Flashtool and adb commands without making hard things . You don't need to install SDK before.
Instruction
Download and Extract the zip or clone the repo and go into the folder
Launch the installer script with terminal
All is done! you don't need to reboot your computer!
Changlog
V1: Initial Release
V2: Added More Devices on Udev Rules
V3: Added Moreeeee Devices on Udev Rules
Tested On
Ubuntu 12.04 - Ubuntu 14.04 (Works on Linux Mint/Ubuntu Based OS Too)
Debian Wheezy
Debian Jessie
Kali Linux 2.0 and Rolling Version
Wiko Rainbow
Lenovo A600 Plus
Zenfone 5
You tell me
Download Links
http://github.com/nullrndtx/LAFI
If you like my works, please buy me a cup of coffee.
btw, sorry for my bad english
Lafi in action
archlinux support pls [emoji6]
Sent from my Redmi Note 2 using Tapatalk
acestars said:
archlinux support pls [emoji6]
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
i never using archlinux before but, i'll try on next release
Nice . Really helpful , i think.
Sent from my E2303 using XDA Free mobile app
iambetmen said:
Hi there! This is my first thread on XDA
So, what is LAFI ?
In Linux, the installation of the adb and fastboot drivers is hard or take some times. And all new Linux Users have not many knowledge in Linux. So with this script you can install Adb+fastboot Drivers in 1 Sec ! Also now you can use Flashtool and adb commands without making hard things . You don't need to install SDK before.
Instruction
Download and Extract the zip or clone the repo and go into the folder
Launch the installer script with terminal
All is done! you don't need to reboot your computer!
Changlog
V1: Initial Release
V2: Added More Devices on Udev Rules
V3: Added Moreeeee Devices on Udev Rules
Tested On
Ubuntu 12.04 - Ubuntu 14.04 (Works on Linux Mint/Ubuntu Based OS Too)
Debian Wheezy
Debian Jessie
Kali Linux 2.0 and Rolling Version
Wiko Rainbow
Lenovo A600 Plus
Zenfone 5
You tell me
Download Links
http://github.com/nullrndtx/LAFI
If you like my works, please buy me a cup of coffee.
btw, sorry for my bad english
Click to expand...
Click to collapse
Working well on Budgie thanks :good::good::good:
k1ks said:
Nice . Really helpful , i think.
Sent from my E2303 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks
anttaz said:
Working well on Budgie thanks :good::good::good:
Click to expand...
Click to collapse
it works on any ubuntu/debian family, thanks for testing my apps
Android one support!!
i've bought Mito A10 Impact (Android One Generation) and i tested with my LAFI script, and it works very well on any rom versions

Categories

Resources