yashsingh1/xdaforums huggingface dataset:
[Android] Toni5830:
I managed to compile a kernel but I have a problem: kernel version shows "unavailable"..I have no clue what the problem could be:(

Sent from Italy using Tapatalk
[Android] ParisZZ:
I must study more:rolleyes::rolleyes:
[Android] commencal661:
delete
[Android] Ghostfreak NB:
Pls don't quote the entire OP.. :what:
[Android] commencal661:
Yeah, and learn how NOT to quote the whole OP
[Android] ParisZZ:
sorry:p

---------- Post added at 04:19 PM ---------- Previous post was at 04:01 PM ----------

Sorry:D
[Android] El_Dark:
Instead of saying it, click it! ;) and to gain posts... I recommend you to study and post your doubts when no information is available by searching :) you'll save you and others time ;)

---------- Post added at 05:22 PM ---------- Previous post was at 05:21 PM ----------

through Cygwin, yes, it *may* be possible, but generally it is advised to run native linux, less incompatibility issues ;)
[Android] KainXSS:
trying to build a kernel for my device but gcc throws errors right after I start

gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’

then stops

anyone know what I can do to fix this

using NDK btw
[Android] brymaster5000:
Googled your first error:

http://stackoverflow.com/questions/...roduces-gcc-error-unrecognized-command-line-o

I know it doesn't solve your problem, but shows there is a ton of info on the interwebs.

Sent from my Oney Bone.
[Android] android@system:-$:
Which are the cygwin libs that i need to install? (If it doesn t work: it is only to try. Normally i use linux)

is possible to compile a kernel under android/arm?
[Android] KainXSS:
I got it fixed it was a gcc error because ndk was set up wrong but even after building it right and flashing it, it freezes rebuild with 4.6 toolchain and the same thing, anyone have any ideas
[Android] shazzl:
Can anyone help me how can I upload kernel source to github...
[Android] khojim:
Maybe you can learn from this https://help.github.com/ or this http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1 or this http://www.google.com
[Android] thewadegeek:
Cygwin not suggested, just get a Linux VM or something.If you must however try this: http://xdaforums.com/showthread.php?t=1686310

In theory yes, why the hell would you want to?

Get an error log and debug it?
[Android] android@system:-$:
You can think that I'm crazy... And that's the correct answer! Simply, I want to try to make it more portable than a linux distro normally is, so I can compile my own project on every Windows PC without reboot it.
[Android] KainXSS:
and how can I get the error log adb won't work?
[Android] Bastaerd:
Setup the Android SDK correctly, then adb should work.
[Android] KainXSS:
adb works fine its just that my kernel hangs after the splash so adb never starts I think
[Android] ShivangDave:
Any guide on how to integrate Recovery in kernel ? CWM or TWRP !
[Android] maxrfon:
Adding root to kernel

I am not a big fun of recompiling kernels, but i faced a problem - there is no explanation on how to enable root in kernel config.

I have AOSP 4.2.2.

Can anyone explain?

ro-secure is already 0 but it does not let remount via adb (which is important for the release kernel).
[Android] desalesouche:
do you have in one of the ramdisk file :

that file http://www.mediafire.com/download/zgf6bqisaakf16r/init.superuser.rc ?
[Android] theintelligent:
How can I enable system partition as writeable in Kernel?
[Android] brymaster5000:
Getting this error when compiling vr-ioscheduler:

block/vr-iosched.c: In function 'vr_add_rq_rb':

block/vr-iosched.c:76: error: void value not ignored as it ought to be

block/vr-iosched.c:80: error: void value not ignored as it ought to be

make[1]: *** [block/vr-iosched.o] Error 1

Attached is my vr file. I tried searching for and answer, but I don't know C very well and the search results didn't make sense to me. Thanks in advance.
[Android] KainXSS:
anyone know how I can debug the kernel, I am sure its not starting but I can't find the option to enable printk in makemenu
[Android] someone755:
[MENTION=4428185]brymaster5000[/MENTION]: Exactly the issue I'm having. If you find a solution, do share, please.

I tried deleting stuff, adding it, or editing it (a few schedulers were giving out errors, but deleting stuff fixed it for me), but it doesn't budge. Same goes for BFQ.
[Android] igoryan94:
Error: pagemap.h: error

Hello everyone!

Can you tell me please how can i successfully build an Android kernel if i've got this error?

I tried to compile with NDK 64bit (in Fedora 19 64bit).

Error:
[Android] BirneKlub9:
Hi everyone

i force this problem while compiling a kernel..

drivers/net/wireless/bcmdhd/wl_cfgp2p.c: In function 'wl_cfgp2p_ifidx':
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:439:31: error: argument to 'sizeof' in 'memcpy' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memcpy(index, getbuf, sizeof(index));
^
cc1: all warnings being treated as errors
make[4]: *** [drivers/net/wireless/bcmdhd/wl_cfgp2p.o] Fehler 1
make[3]: *** [drivers/net/wireless/bcmdhd] Fehler 2
make[2]: *** [drivers/net/wireless] Fehler 2
make[1]: *** [drivers/net] Fehler 2
make: *** [drivers] Fehler 2
[Android] maxrfon:
include/linux/pagemap.h:416:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]

In your makefile defined to treat warnings as errors.

Find "-Werror" and delete it.

---------- Post added at 05:44 PM ---------- Previous post was at 05:42 PM ----------

No, i don't have it. I have sources for my board but i don't see in the config where is defined the su usage.
[Android] hazedabeast:
how do i know what to add to the kernel?
[Android] commencal661:
you add what you want to
[Android] andrman1:
I have problem with this step: Mod 1. Applying a patch

I downloaded file from pastebin but file have entension .txt So I removed and renamed to kernelPatch

Im in root folder of my kernel source.

When I type patch -p1 /here's location where is the file kernelPatch/ and nothing happens on my terminal just empty line and nothing.

What needed to appear on screen?

So I skip this step

- On Step 4. Getting a Config file

Why needed to connect throught ADB my device to PC I'm using original source of my phone.

Can I skip this step ?

- On Step 5. Building

At part B:

I typed make I found some files from /mediatek/config/out/jrdsh77_cu_jb

(I forgot to mention my device is using Mediatek 6577 Alcatel STAR)

and here's the error:

/home/ubuntu13/Downloads/OT_6010D/kernel/../mediatek/build/Makefile:13: *** TARGET_PRODUCT/PROJECT is not set. Stop.

sorry for my bad english
[Android] hazedabeast:
like what each commit does
[Android] lozohcum:
[MENTION=3830475]thewadegeek[/MENTION]

How to fix this error:

lozohcum@lozohcum-ubuntu:~/android/kernel/sony/stock$ make menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

ok it's fixed:

sudo apt-get install libncurses5-dev
[Android] thewadegeek:
Install the ncurses library just like it says there. Install the 32-bit version if you are on a 64-bit machine.
[Android] lozohcum:
Worked now. I was also missing some other libs but I installed them manually and now everything works, let's hope I won't get other errors
[Android] thewadegeek:
Linux Distro is about as portable as it gets, but ok. Try with Cygwin, you won't find much support regardless.

Grab the kmsg.

You want to boot to recovery by default? That is one of the boot parameters I believe.

That's a FS change, not a kernel one. All Linux kernels support a root user, as far as I'm aware.

Didn't see the attached file.

Debug kernel not booting? Check kmsg. Already booted? Dmesg.

Like mentioned, you can remove the treat warnings as errors parameter, or read up on pointers and figure out which method is intended.

If you need to ask please don't touch a kernel.

Ummm...try re-reading through the OP. I explain as clear as I know how why each step is needed.

Punctuation would help here. Are you asking a questions about commits or making a statement?

Glad you got it working.
[Android] lozohcum:
[MENTION=3830475]thewadegeek[/MENTION]

do you know maybe how can I move display driver from 3.0.8 kernel to 3.4 kernel?
[Android] brymaster5000:
[MENTION=3830475]thewadegeek[/MENTION]:

See attached. Or here: https://github.com/brymaster5000/OBOne_KernOB/blob/master/block/vr-iosched.c
[Android] thewadegeek:
Hey [MENTION=4428185]brymaster5000[/MENTION] take a look at this link. Specifically, compare 2.6 and something like 3.12. Lemme know if you still can't figure out the issue.
[Android] thewadegeek:
Slightly confused as too the question, but my interpretation is going to be: You want to move to the 3.4 kernel. Can't tell you, merge the changes and fix build errors as you get to them.
[Android] lozohcum:
what changes?which files are exacly display drivers?

I'm porting CM10.1 and my device needs new display drivers, it's quite problematic. I'm trying with many repos from github like qcom-display-caf, qcom-display-legacy but mosty it doesn't work, I think it's the issue in kernel so that's why I'm asking
[Android] thewadegeek:
That's completely dependent on the device, so I'm not going to be much help I'm afraid. I'd start in "drivers/video/<your panel manufacturer>".
[Android] brymaster5000:
I see differences, but not sure what to apply. I tried a few and still got the error. Thanks for your help man!
[Android] thewadegeek:
Ok don't blindly follow this, please try and figure why exactly you are making these changes. If you want to know how I reached this commit feel free to ask. Link. The files you are interested in are elavator.h/\c.
[Android] brymaster5000:
Sorry...was looking in the io files such as deadline for comparison, not the elevator. I totally see it now and makes sense. Thanks for your patience and guidance!

Sent from my Oney Bone.
[Android] jab12:
does the kernel build with android, or do you build the kernel first or 2nd?
[Android] Rittik:
hi after adding the bash kernel patch, it gives a few errors. Can you point me out what is done wrong here?

here is the error terminal output;-

rittik@rittik:~/android/kernel/crater$ patch -p1 < KernelPatch
(Patch is indented 4 spaces.)
patching file drivers/cpufreq/cpufreq_interactivex.c
(Patch is indented 4 spaces.)
patching file drivers/cpufreq/cpufreq_lionheart.c
(Patch is indented 4 spaces.)
patching file drivers/cpufreq/cpufreq_ondemandx.c
(Patch is indented 4 spaces.)
patching file drivers/cpufreq/Kconfig
Hunk #1 succeeded at 100 with fuzz 2 (offset 1 line).
Hunk #2 FAILED at 132.
Hunk #3 succeeded at 173 with fuzz 2 (offset 1 line).
Hunk #4 FAILED at 244.
2 out of 4 hunks FAILED -- saving rejects to file drivers/cpufreq/Kconfig.rej
(Patch is indented 4 spaces.)
patching file drivers/cpufreq/Makefile
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file drivers/cpufreq/Makefile.rej
(Patch is indented 4 spaces.)
patching file include/linux/cpufreq.h
Hunk #1 FAILED at 363.
Hunk #2 FAILED at 372.
2 out of 2 hunks FAILED -- saving rejects to file include/linux/cpufreq.h.rej

and,the defconfig file of crater? can you guess? here is the github link..please check and see..i need the crater defconfig file. am confused seeing these

https://github.com/Grarak/android_kernel_samsung_capri/tree/cm-10.2/arch/arm/configs
[Android] tiktakt0w:
Errors! :)

Can somebody help me? I can't compile the kernel due to an error, here's the last few lines from the terminal:

CC drivers/block/sunxi_nand/nfd/nand_blk.o

CC drivers/block/sunxi_nand/nfd/dma_for_nand.o

CC drivers/block/sunxi_nand/nfd/int_for_nand.o

CC drivers/block/sunxi_nand/nfd/../src/format/nand_format.o

CC drivers/block/sunxi_nand/nfd/../src/logic/bad_manage.o

CC drivers/block/sunxi_nand/nfd/../src/logic/logic_ctl.o

CC drivers/block/sunxi_nand/nfd/../src/logic/mapping.o

CC drivers/block/sunxi_nand/nfd/../src/logic/mapping_base.o

CC drivers/block/sunxi_nand/nfd/../src/logic/merge.o

CC drivers/block/sunxi_nand/nfd/../src/logic/read_reclaim.o

CC drivers/block/sunxi_nand/nfd/../src/logic/wear_levelling.o

CC drivers/block/sunxi_nand/nfd/../src/logic/logic_cache.o

CC drivers/block/sunxi_nand/nfd/../src/scan/nand_scan.o

CC drivers/block/sunxi_nand/nfd/../src/scan/nand_id.o

CC drivers/block/sunxi_nand/nfd/../src/physic/nand_phy.o

CC drivers/block/sunxi_nand/nfd/../src/physic/nand_simple_r.o

CC drivers/block/sunxi_nand/nfd/../src/physic/nand_simple_w.o

CC drivers/block/sunxi_nand/nfd/../nfc/nfc_r.o

CC drivers/block/sunxi_nand/nfd/../nfc/nfc_w.o

LD drivers/block/sunxi_nand/nfd/nand.o

LD drivers/block/sunxi_nand/nfd/built-in.o

LD drivers/block/sunxi_nand/built-in.o

LD drivers/block/built-in.o

CC drivers/cdrom/cdrom.o

LD drivers/cdrom/built-in.o

CC drivers/char/mem.o

CC drivers/char/random.o

CC drivers/char/misc.o

LD drivers/char/built-in.o

LD drivers/clk/built-in.o

LD drivers/clocksource/built-in.o

CC drivers/connector/cn_queue.o

CC drivers/connector/connector.o

LD drivers/connector/cn.o

CC drivers/connector/cn_proc.o

LD drivers/connector/built-in.o

CC drivers/cpufreq/cpufreq.o

CC drivers/cpufreq/cpufreq_stats.o

CC drivers/cpufreq/cpufreq_performance.o

CC drivers/cpufreq/cpufreq_powersave.o

CC drivers/cpufreq/cpufreq_userspace.o

CC drivers/cpufreq/cpufreq_ondemand.o

CC drivers/cpufreq/cpufreq_conservative.o

CC drivers/cpufreq/cpufreq_interactive.o

CC drivers/cpufreq/cpufreq_smartass.o

drivers/cpufreq/cpufreq_smartass.c:35:32: fatal error: linux/earlysuspend.h: No such file or directory

compilation terminated.

make[2]: *** [drivers/cpufreq/cpufreq_smartass.o] Error 1

make[1]: *** [drivers/cpufreq] Error 2

make: *** [drivers] Error 2

tiktakt0w@Kuro-box:~/android/kernel/a13-source$
[Android] Rittik:
Check the cpufreq_smartass.o file you created earlier. If its made correctly as stated in the OP.
[Android] tiktakt0w:
yep, that's what I did and found nothing strange..
[Android] someone755:
You could have done something wrong in the cpu makefile...

Check if the line in the makefile corresponds to the actual name of your governor module.

Only issue I'm seeing.

Though, if that doesn't work, you could just try with smartassv2, it's better and updated more, so it should work in the newer kernels...
[Android] Rittik:
I got a question...I made the zimage. Now how can I make into an odin flashable kernel or a boot.img ...any instructions? Thanks
[Android] Vivek_Neel:
Unpack and repack boot.img with the new zlmage mate.
[Android] Rittik:
Yes..but how to unpack and repack...no clear infos anywhere.
[Android] Vivek_Neel:
Use dsxida kitchen:D
[Android] Rittik:
Damn. Got it
[Android] bsmitty83:
Check the include/Linux folder on your source , its saying there should be an .h file called earlysuspend.h
[Android] dhangejr:
reading

http://faux.androidro.ms/t0ltetmo/README_Kernel.txt

do I need to do that

or can I just flash this "Kernel.tar.gz"

http://faux.androidro.ms/t0ltetmo/

thank you
[Android] someone755:
You can flash the boot image. The file you wanted is 100MB big, and is wayyy too much for a kernel (+ ramdisk and all that).

You could compile it yourself if you wanted to, though.
[Android] gavster26:
Hi im following this tut and all has gone well untill i get to step 5 part b a i get this error

Makefile:327: /scripts/Kbuild.include: No such file or directory

Makefile:571: /arch//Makefile: No such file or directory

make: /scripts/gcc-wrapper.py: Command not found

pVp�pVp�bK	bK	pper.py gcc/bin/bash: /scripts/gcc-goto.sh: No such file or directory

�Vp��Vp�PaK	PaK	pper.py gccMakefile:1174: *** target pattern contains no `%'. Stop.

gavin@gavin-HP-Compaq-nc4200-PY302AA-ABU:~/Desktop/work-space/Kernel-Workspace/Dark-Moon/kernel$

what have i done wrong im compiling xperia j kernel source.
[Android] dhangejr:
[MENTION=1183051]someone77[/MENTION]5

thanks thats what the instructions are for
[Android] CallMeAldy:
aldy@aldy-laptop:~/psxk/android_kernel_lge_mako$ make ARCH=arm CROSS_COMPILE=~/toolchain/android_prebuilts_gcc_linux-x86_arm_sabermod-arm-linux-androideabi-4.8/bin/arm-linux-androideabi-

scripts/kconfig/conf --silentoldconfig Kconfig

warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)

warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

CC kernel/bounds.s

/home/aldy/toolchain/android_prebuilts_gcc_linux-x86_arm_sabermod-arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: No such file or directory

Is your PATH set correctly?

make[1]: *** [kernel/bounds.s] Error 2

make: *** [prepare0] Error 2

aldy@aldy-laptop:~/psxk/android_kernel_lge_mako$

HELP PLEASE?
[Android] Noob_XDA:
Your toolchain path is incorrect.

---------- Post added at 03:19 PM ---------- Previous post was at 03:14 PM ----------

Ok first check line 327 of Makefile & see what is referred to. Then look for the source file or directory.
[Android] gavster26:
There is no line 327 tthe arch/arm.makefile goes to line313 which makefile did you mean.
[Android] Noob_XDA:
Was looking here https://github.com/codingtent/XperiaJ-kernel-stock-11.2.A.0.31-source/blob/master/kernel/Makefile

and line 327 is this "include $(srctree)/scripts/Kbuild.include"

so I went to https://github.com/codingtent/XperiaJ-kernel-stock-11.2.A.0.31-source/tree/master/kernel/scripts

and found the file "Kbuild.include"

Check yours and see whether it is there.
[Android] gavster26:
I downloaded stock source from sony developer world was that wrong or would i need both and merge
[Android] Noob_XDA:
Don't get your meaning really. If your downloaded source has missing files then it would be difficult.

Why don't you download from github. The link that I posted under user codingtent has stock source & his modified version.
[Android] someone755:
Or download from another dev's github. They usually have everything fixed...
[Android] siddisking:
mod step 1

i am on the modification step 1 where we have to patch ....

my directory structure looks like android/kernel

in the kernel folder i have extracted the the zip file(source of the kernel)(which i got from github )_and got 2 folders and 1 file named kernel mediatek and a readme file,in this folder toolchain folder is also located and i have placed the patch txt file in this folder....

i have tried ur mentioned command but it says bash kernelpatch no such file or directory i will attach files for better understanding.....

pls help i am following ur guide for the last 4 days .......:crying:
[Android] bsmitty83:
Rename your patchfile without the .txt extension and you should be good to go

Also you have to have the file inside of your kernel source , where the make file is

And you can get rid of the ../ before the patch name :good:
[Android] siddisking:
another prob

i have done as u said moved it into the kernel directory where the android.mk file is and removed it and this is the error
[Android] bsmitty83:
Should be "patch -p1 < yourpatch "

Your missing some spaces lol
[Android] siddisking:
thanks..

sory for that silly question ...

i seriously want to learn all this stuff and thanks again for helping me

can u pls take a look and see if this is done right or not..
[Android] bsmitty83:
That's what its supposed to do , what its showing us is that the patch didn't fully take , all the .rej files are the hunks of code that was supposed to take but didn't . you can manually edit those sections , but yea you did right , that happens building kernels lol

I learned how to build kernels with this thread so I have no problems helping you out or anyone

---------- Post added at 05:16 PM ---------- Previous post was at 05:13 PM ----------

Its a challenge manually patching , but there will be 3 files with the same name . your original , the partially modded , and the reject . open the reject and the file you need to edit and try to find where its supposed to go .

If you Google manually patching Linux kernel you should find helpful websites
[Android] siddisking:
thanks..

thanks again i will search for it definately thanjs for ur help....
[Android] bsmitty83:
No problem ,good luck with your project .
[Android] aweosomeabhijeet:
HELp

addicted@ubuntu:~/xt530_kernel/kernel/motorola/domino+$ make domino+_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/docproc

HOSTCC scripts/basic/hash

HOSTCC scripts/kconfig/conf.o

scripts/kconfig/conf.c: In function ‘conf_askvalue’:

scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result

scripts/kconfig/conf.c: In function ‘conf_choice’:

scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result

HOSTCC scripts/kconfig/kxgettext.o

make[1]: *** No rule to make target `scripts/kconfig/zconf.tab.c', needed by `scripts/kconfig/zconf.tab.o'. Stop.

make: *** [domino+_defconfig] Error 2

Tried to search a lot. Wasn't able to find a solution. So last option left is posting here. Hope somebody could help.
[Android] xdazhang:
how to make MIUI rom on my phone?when i replace the boot in android kitchen ,i con't boot my phone.
[Android] xcly:
Is there any way the zImage is built successfully but be faulty?
[Android] bsmitty83:
Absolutely
[Android] brymaster5000:
Fellow b-teamer is right. If the code doesn't match what your phone needs, it may build but not boot.

Sent from my Bad A$$ Ecliptic One.
[Android] desalesouche:
see here if it helps you.

http://forums.opensuse.org/showthread.php/467261-problem-cross-compiling?p=2401645#post2401645
[Android] Rudjgaard:
I can mange to build roms without trouble but I've never manged to build the kernel alone...

The error is always for a missing c header, but the file is obviously there and the path is correct..

Is it a toolchain problem? I tried with gcc 4.6 and 4.7
[Android] aweosomeabhijeet:
Thanks for the reply mate.

But sadly this didn't help :(
[Android] Noob_XDA:
Using toolchain which is too new can also be a cause.
[Android] xcly:
Do you have toolchains from ndk revision 7? Trying to build for the Note 2 as well, but I don't have the arm-linux-androideabi-4.4.3 toolchains for 64bit linux
[Android] Noob_XDA:
In /scripts/kconfig/Makefile [was looking here https://github.com/Zesters/Kernel_spicekey/blob/master/scripts/kconfig/Makefile

###

# The following requires flex/bison/gperf

# By default we use the _shipped versions, uncomment the following line if

# you are modifying the flex/bison src.

# LKC_GENPARSER := 1

ifdef LKC_GENPARSER

$(obj)/zconf.tab.c: $(src)/zconf.y

$(obj)/lex.zconf.c: $(src)/zconf.l

$(obj)/zconf.hash.c: $(src)/zconf.gperf

%.tab.c: %.y

bison -l -b $* -p $(notdir $*) $<

cp $@ $@_shipped

lex.%.c: %.l

flex -L -P$(notdir $*) -o$@ $<

cp $@ $@_shipped

%.hash.c: %.gperf

gperf < $< > $@

cp $@ $@_shipped

endif

Maybe u need to install flex , bison & gperf package for your distro

---------- Post added at 05:56 PM ---------- Previous post was at 05:39 PM ----------

I use MentorGraphics Sourcery Codebench Lite Edition toolchain. It's free for download if u register http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/

Download the GNU/Linux release toolchain for ARM processors. The latest is 4.8.1 and the oldest is from 2008

U have a choice of 32 or 64 bits for the more recent versions.

Datasheet and FAQs are given providing a treasure trove of info.
[Android] letmeputdatipin:
Delete
[Android] aweosomeabhijeet:
Thanks mate!

But all these packages are already installed and up to date in the distro. :(