[Q] Need help!!! Building Kernel for android phone.Please help. - General Questions and Answers

I am working on a building a custom kernel in Ubuntu 12.0.4 LTS for GT-S7560M . I have Android NDK r-10. And when I am going for a command it is printing an error.
The command is
export CROSS_COMPILE=/home/shakcorporation/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-
make clean && make mrproper
make: No rule to make target 'clean' . Stop
I am going all this by watching a video on youtube by OhHeyItsLou. In that video he used fedora instead of Ubuntu and the ndk version he used was r-5c and iam using r-10. I also installed pakage tools for ubuntu and modifies the Makefile to my custom path as it was written in the readme file of th kernel.
Should I download older r-5c version of ndk.
Please help me
:'( :'(
Sent from my GT-S7560M using XDA Premium mobile app

Related

Compile native C application (i.e. wireless-tools)

Hi,
I'm trying to compile a linux library for using it in my Nexus S, but I'm not able to cross-compile it (libconfuse).
I have to run the ./configure but I don't know how to include the android toolchain, include and libs.
Anybody can give me a hint on how to do so?
TA
Edit:
I forgot to mention that I have already compile a helloworld using agcc and the toolchain, but this is far more complicated

[DEV] How to build cm7 for galaxy y (GT-S5360) ! Ubuntu 32 bits !

Requirements :
OS linux Ubuntu 12.04 32bits
2Gb RAM with 3Gb swap or above
Processor dual core or above
120Gb Harddisk or above
Fast internet connection ( i have no this )
First download this file
Installer SDK and Build packages by squadzone modified for me
you will get installerBuildRomGalmin.sh , run this file via Terminal on Ubuntu!
Code:
chmod a+x ~/installerBuildpackages.sh
installerBuildpackages.sh
Create the Directories
You will need to set up some directories in your build environment.
To create them:
mkdir -p ~/bin
mkdir -p ~/android/system
Install the Repository
Enter the following to download make executable the "repo" binary:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
NOTE: You may need to reboot for these changes to take effect.
Now enter the following to initialize the repository:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j16
Device repo !
clone its
choose branch master
put on device tree or replace totoro folder on device tree
(/device/samsung/totoro)
Vender folder clone its
pu on vendor folder !
(/vendor/samsung/totoro)
Download RomManager
NOTE: This only needs to be done when an update to RomManager is released. If you are-up-to date, you may skip to Building CyanogenMod.
Download RomManager which is needed by the build:
~/android/system/vendor/cyanogen/get-rommanager
Configure Build & Compile
Now, the environment must be configured to build and the ROM compiled, from code, for the Galaxys2.
. build/envsetup.sh && brunch totoro
Notes :
based on tutorial for galaxy mini by squadzone
the device repo created for me ( add credits if you use its )
sorry bad english !
changelog :
1.0
-initial tutorial for cm7 galaxy y ( may need some modifications! )
reserved for more updates if necessary !
Thanks for this buddy :good:
OFF : Any news about CM9 ?
wow.. reserved sir whitexp.. long time no post? D
I WIIL TRY IT BOR
By SOMKLL
But this Cyanogen has the same bugs,right?
whitexp what about cm9 ? when will u continue xD
and great guide
This message is COPYRIGHTED to me and stolen from:My post
Cyanogen 7/9 only get developed again when the gpu driver become released
Awesome tutorial sir...
Just one question...if we still have GPU restrictions while compiling CM7/9/10, then what is the use of the tutorial? Is there any update I should be aware of?
I'm not at all disrespecting OP's efforts...I respect him...he is doing commendable job for this device..hat's off! this question is just out of curiosity!
everyone needs brodcom drivers,without it nothing is possible.
PREMOLIKES said:
everyone needs brodcom drivers,without it nothing is possible.
Click to expand...
Click to collapse
Well it's still possible to boot it, so yeah. It's a handy tutorial, LEARN to appreciate guys! That's the reason why SGY devs are leaving, 1 by 1, because of you people that whine! Thank them for the effort!
PREMOLIKES said:
everyone needs brodcom drivers,without it nothing is possible.
Click to expand...
Click to collapse
Without this kind of tutorial and with gpu drivers will you make cm7 for sgy????
Awesome tutorial sir!!
Tutotial is good.no doubt.I said drivers are a stumbling block.
PREMOLIKES said:
Tutotial is good.no doubt.I said drivers are a stumbling block.
Click to expand...
Click to collapse
Drivers will be here soon! I am gettin ready already!
Sent from my GT-S5360 using XDA
Mohamed.Anwar said:
Thanks for this buddy :good:
OFF : Any news about CM9 ?
Click to expand...
Click to collapse
what gaming rom r using
Exellent tut buddy.:thumbup::thumbup:
sent while doin' some burnouts
hell_lock said:
Drivers will be here soon! I am gettin ready already!
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
really?
broadcom will release their drivers or are you just joking around because i just installed windows again on my pc ...
cosminx13 said:
really?
broadcom will release their drivers or are you just joking around because i just installed windows again on my pc ...
Click to expand...
Click to collapse
A suggestion from me.you can use both os like dualboot.for info about this try google
MANY GREEEEETZ!!!

[CUSTOM KERNEL] JB CINK KING Sources. Need help

Hi, i want to compile a custom kernel from cink king JB sources. After a lot of studies of the linux kernel, its modules and configuration, i started a compilation on Ubuntu 12.04 with all ndk and toolchains for android development. After a lot of errors during the kernel compilation that i solved, there is an error that i can't solve and so i need yourhelp.
I write:
$ [email protected]:/kernel# make TARGET_PRODUCT=mt6577 MTK_ROOT_CUSTOM=../mediatek/custom
The compilation begins and it stucks whit this error:
Make: *** No rule to make target "include/config/auto.conf" needed in "include/config/kernel.release". Exiting.
I googled a lot, but nothing helped me.
Sorry for scarry english.
Sent from my GLADIATOR (a110) using xda app-developers app
tatto97 said:
Hi, i want to compile a custom kernel from cink king JB sources. After a lot of studies of the linux kernel, its modules and configuration, i started a compilation on Ubuntu 12.04 with all ndk and toolchains for android development. After a lot of errors during the kernel compilation that i solved, there is an error that i can't solve and so i need yourhelp.
I write:
$ [email protected]:/kernel# make TARGET_PRODUCT=mt6577 MTK_ROOT_CUSTOM=../mediatek/custom
The compilation begins and it stucks whit this error:
Make: *** No rule to make target "include/config/auto.conf" needed in "include/config/kernel.release". Exiting.
I googled a lot, but nothing helped me.
Sorry for scarry english.
Sent from my GLADIATOR (a110) using xda app-developers app
Click to expand...
Click to collapse
Dude use motorola source wiko sources are not usable.
Thanks fo your answer. I will try Motorola source and post here for results.
Sent from my GLADIATOR using xda app-developers app

[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