yashsingh1/xdaforums huggingface dataset:
[Android] thehacker911:
can someone please tell me what is wrong?

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

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

KCONFIG_SELINUX((null))

KCONFIG_LOG_SELINUX((null))

KCONFIG_VARIANT((null))

***

*** You must specify VARIANT_DEFCONFIG !

***

make[1]: *** [config_defconfig] Fehler 1

make: *** [config_defconfig] Fehler 2

maik@ubuntu:~/android/kernel$
[Android] thewadegeek:
*** You must specify VARIANT_DEFCONFIG !
[Android] thehacker911:
Sorry my first kernel...

maik@ubuntu:~/android/kernel/kernels4$ export ARCH=arm

maik@ubuntu:~/android/kernel/kernels4$ make VARIANT_DEFCONFIG=jf_eur_defconfig jf_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

arch/arm/configs/jf_defconfig:646:warning: override: reassigning to symbol RFKILL

arch/arm/configs/jf_defconfig:654:warning: override: reassigning to symbol GENLOCK

arch/arm/configs/jf_defconfig:655:warning: override: reassigning to symbol GENLOCK_MISCDEVICE

arch/arm/configs/jf_defconfig:656:warning: override: reassigning to symbol BLK_DEV_LOOP

warning: (ZRAM) selects ZSMALLOC which has unmet direct dependencies (STAGING && X86)

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

KCONFIG_SELINUX((null))

KCONFIG_LOG_SELINUX((null))

KCONFIG_VARIANT(arch/arm/configs/jf_eur_defconfig)

KCONFIG_DEBUG((null))

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

warning: (ZRAM) selects ZSMALLOC which has unmet direct dependencies (STAGING && X86)

#

# configuration written to .config

#

maik@ubuntu:~/android/kernel/kernels4$ make

scripts/kconfig/conf --silentoldconfig Kconfig

warning: (ZRAM) selects ZSMALLOC which has unmet direct dependencies (STAGING && X86)

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

warning: (ZRAM) selects ZSMALLOC which has unmet direct dependencies (STAGING && X86)

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« ist bereits aktualisiert.

CC kernel/bounds.s

/home/maik/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: No such file or directory

Is your PATH set correctly?

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

make: *** [prepare0] Fehler 2

maik@ubuntu:~/android/kernel/kernels4$
[Android] thewadegeek:
Well I think you are having issues finding the tool chain, check paths and permissions on the executables.
[Android] rao_hamza:
Nice work

awesome
[Android] thehacker911:
Ok thanks is working!

Gesendet von meinem GT-I9505 mit Tapatalk 2
[Android] dtrail1:
I could solve my localversion problem. But now it is always appended twice... Why? I searched all scripts, makefiles, etc. On the first time I build with my new localversion it was appended as expected - one time. But after that it always will be appended twice..

Edit: Ok, solved it by adding a build script which exports the localversion by command line and removed the localvesion from defconfig"
[Android] thewadegeek:
Weird. Glad you figured it out, never seen issues like that before.
[Android] dtrail1:
Because you probably never played with an Android kexec kernel?
[Android] GuneetAtwal:
Hey bro can you solve this problem i have Ubuntu 12.10 64 bit

And i tried many toolchains followed your tut. very sharply but everytime i get this wrong path error even though the path is correct :confused:

scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/function/Kconfig:4:warning: type of 'USB_MSM_OTG' redefined from 'tristate' to 'boolean'
drivers/video/msm/Kconfig:349:warning: defaults for choice values not supported
drivers/usb/gadget/Kconfig:1284:warning: defaults for choice values not supported
warning: (ARCH_MSM7X27A && ARCH_MSM7X30 && ARCH_QSD8X50 && ARCH_MSM8X60) selects MSM_DALRPC which has unmet direct dependencies (ARCH_MSM && (ARCH_MSM_SCORPION || ARCH_MSM_KRAIT))
warning: (ARCH_MSM7X27A && ARCH_MSM7X30 && ARCH_QSD8X50 && ARCH_MSM8X60) selects MSM_DALRPC which has unmet direct dependencies (ARCH_MSM && (ARCH_MSM_SCORPION || ARCH_MSM_KRAIT))
CHK include/linux/version.h
include/config/auto.conf: line 500: KERNEL_LOCAL_VERSION: command not found
/home/guneet/android/kernel/msm7627a/scripts/gcc-version.sh: line 25: /home/guneet/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: No such file or directory
/home/guneet/android/kernel/msm7627a/scripts/gcc-version.sh: line 26: /home/guneet/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: No such file or directory
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
/home/guneet/android/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....

Hope you can find some solution :silly:
[Android] varun.chitre15:
Use the CROSS_COMPILE flag rather than exporting the PATH
[Android] GuneetAtwal:
Which one ?:eek:
[Android] rajit:
need a help..

i found jb boot.img custompack2.img and system.img of mtk6575 single core of a devicxe which specs are same as micromax a68..

i flashed the boot.img and system but stuck on boot logo.. any help will be highly appreciated
[Android] thewadegeek:
Do you have ia32-libs installed? Do you have executable permissions on the tool chain?
[Android] mohammed510:
step 3 number D:

i should move to the root of the kernel source i already downloaded and extracted, forexample: android/kernel/galaxyS3/kernelsource ??

in number E:

i did not understand the meaning of the 2 dots after "<"

does it mean i should write the directroy forexample: android/kernel/kernelpatch.txt ?

should i write it like this patch -p1 < android/kernel/kernelpatch.txt ?

thank you very much

edit : N.M i did it but i get an output like

Hunk #1 succeeded at 88 (offset -11 lines).

Hunk #2 succeeded at 121 with fuzz 2 (offset -11 lines).

Hunk #3 succeeded at 189 (offset 3 lines).

Hunk #4 FAILED at 258.
[Android] mmmcfc:
I was wondering if you could add a part to this guide explaining how to increase the max CPU frequency, I searched for a while but could not do it successfully. BTW excellent guide, very helpful for first time kernel developers such as myself.
[Android] thewadegeek:
The ".." mean the folder above the one I'm in right now, and you do not need to specify the directory, the ".." shortcut does that for you. It looks like the patch didn't quite match your file, you are going to need to manually open it up and check the differences.
[Android] thewadegeek:
The issues with this/over-clocking is that it is VERY device/processor specific. If you set the Max too high on a processor that can't handle it you are going to have a lot of trouble. What device/processor are you trying to build the kernel for? And no problem glad it's being of use to people!
[Android] Hacre:
Hey man

Can I suggest a massive disclaimer at the start of your guide that people should have a rudimentary knowledge of using Linux and the command line before taking on such tasks like patching source code? It's somewhat worrying that you're having to almost turn this into a beginner's guide to Linux.
[Android] Hacre:
A bit more advice:

The only answer you should give to that request is "no", it is outside the scope of your guide. You're not here to guide people in every single aspect of kernel customisation for every single device, there comes a stage, ie right after the end of your guide, people should be branching out on their own and learning how to. There's more than enough information out there on Google and these forums for people to go and look for so they can gain more understanding of what their kernel is actually doing.
[Android] thewadegeek:
Sure good idea. Thanks.

Hmmm yeah, I was going to run a quick search through github on his processor for him, but I see your point.
[Android] mmmcfc:
it's for the Nexus 7 (tegra 3). I know the highest you can go is around 1.6Ghz, but I'm hoping to clock it to around 1.4Ghz as I believe that is reasonably safe. Could you possibly PM if you do not want to risk confusing others. I just need to know what you change to increase CPU frequency, not what number it has to be. Thanks in advance.
[Android] thewadegeek:
I'm actually going to reply to this in the thread so others can read the answer. I can't walk you through how to do this, or do it for you. I refuse to write code for anything I do not have myself and can not test myself, it's just safer that way. So I'm going to suggest you find out exactly what kind of processor the Nexus 7 has(There are multiple versions of the Tegra3 I believe). That will tell you where to start. Then start searching through XDA/Github and looking at how others implemented it. It normally doesn't involve a ton of changes, but you do need to be at least semi-knowledgeable in C to figure it out. (Tip guys: Do NOT copy and paste, it's just asking for trouble.). It's going to take you a bit but I'm sure you'll get it eventually.

And as a side note I also think that's probably a safe speed based off the spec sheet I just glanced at.
[Android] da-pharoah:
Nice thread dude! This will certainly help in my kernel learning adventures!
[Android] gparent:
I'm not saying you aren't right, but by what standard?

On GCC's website, GCC 4.7.1 is the latest stable version. GCC 4.6 is stated as the oldest maintained release, which means that 4.5.3 is completely out of date.

Linaro ships a modified 4.7.1, again stable.

In AOSP, you get to compile with GCC 4.4.3 on stable ICS, 4.6 on master, and 4.6 on JB. I believe fix version isn't specified, it appears to be a trunk build.

I'm all for the GPL, but it's already good enough without inventing additional clauses that require asking the author for permission. There is no permission required to modify GPL code (GPL -code- is free, not the user, not the developer), you just need to submit changes back to the people you're distributing to.
[Android] thewadegeek:
Notice the term "and" that implies in addition to. I was not adding a clause to it, I was just telling everyone to be polite and respectful of other people's work by asking permission.
[Android] Hacre:
This is a kernel guide, not an AOSP guide. 4.5.3 gcc is still the only 100% proven stable compiler when it comes to turning the kernel tree into something that boots.
[Android] gparent:
I suppose the bugs are often less obvious than "doesn't boot" because my GCC 4.6 kernel booted just fine with a single patch. I'll keep that in mind if I have issues.

I'm not gonna lie, I totally missed that comma and it changes your sentence entirely. We'll just have to disagree about the permissions though, I find that the best way to respect a developer's public domain/GPL work is to reuse it. I completely agree with respecting the author's wishes if he decides to use other licenses though.
[Android] thewadegeek:
No problem, we can agree to disagree.
[Android] Hacre:
FYI he's right, there's no need (nor should there be) to ask permission when it comes to things released under the GPL, the permission is implied in the license.
[Android] thewadegeek:
I know he is right, that's why I'm not arguing with him. But in my mind it's still the polite thing to do, so I'm going to leave it in the tutorial.
[Android] manoranjan2050:
How Fix This Error ...............Plz Help Me I'm New To Kernel Dev
[Android] zainthesnipe:
reviving thread cause i use it :P
[Android] mDroidd:
Add this link:

https://github.com/DooMLoRD/Xperia-2011-Kernel-2.6.32.9/tree/master/kernel/drivers/cpufreq

That's a great place to get governors from ;)
[Android] GuneetAtwal:
No i dont have that as i don't know how to install them i have only installed libncurses5 package

Can you tell me the command i am pretty noob in Kernel development in learning stage
[Android] coolsandie:
Run this in Terminal:

sudo apt-get install ia32-libs

This maybe, though not sure ...

Open Makefile, find the line, and change it to your toolchain name

CROSS_COMPILE =../arm-eabi-linaro-4.6.2/bin/arm-eabi-
[Android] cj360:
I see Werror, isn't that a flag to tell the compiler to treat all warnings as errors? I would like to disable it and test the kernel first instead of it causing the build to fail. (And the kernel works fine on cm 4.1.2)

/home/andrew/aokp/kernel/semc/msm7x30/drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_pmksa':
/home/andrew/aokp/kernel/semc/msm7x30/drivers/net/wireless/bcm4329/wl_iw.c:5335:5: error: array subscript is above array bounds [-Werror=array-bounds]
/home/andrew/aokp/kernel/semc/msm7x30/drivers/net/wireless/bcm4329/wl_iw.c:5338:5: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors

make[6]: *** [drivers/net/wireless/bcm4329/wl_iw.o] Error 1
make[5]: *** [drivers/net/wireless/bcm4329] Error 2
make[4]: *** [drivers/net/wireless] Error 2
make[3]: *** [drivers/net] Error 2
make[2]: *** [drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
host C++: libclangSema <= external/clang/lib/Sema/IdentifierResolver.cpp
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/andrew/aokp/kernel/semc/msm7x30'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/semc/msm7x30 O=/home/andrew/aokp/out/target/product/zeusc/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=" /home/andrew/aokp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" modules_install
make[1]: Entering directory `/home/andrew/aokp/kernel/semc/msm7x30'
[Android] Ankhie:
HELP

I'm missing libwxgtk2.6-dev and ia32-libs,,when i run sudo apt-get install ia32-libs libwxgtk2.6-dev it says package not found
[Android] GuneetAtwal:
You just have to write sudo apt-get install ia32-libs for installing ia32 package and also check whether your Internet connection is working or not as this is a common problem when you are on a Virtual machine
[Android] commencal661:
Hey guys,

I have a problem. I'm trying to compile a kernel for HTC Sensation on Ubuntu 13.04 64x. The problem is I always get bunch of errors and I don't know why they appear and what they actually mean.

I attached the output of terminal if anyone wants to take a look at it.

View attachment error_log.txt
[Android] percy_g2:
Set compiler location in make file or manually in terminal .read back some posts and search.
[Android] commencal661:
Well, I did export the CROSS_COMPILE at the beginning, and I double checked that the path to the toolchain is right.

Sent from my HTC Sensation Z710e (phone says Z715e)
[Android] puretone:
Clarifications from a not-so-n00b

Good post by the OP, can I correct your grammar? I'm a bit obsessive when it comes to good grammar.

Now on to the clarification(s):

1. Blindly typing mkdir anywhere, though it won't cause much harm (you'll get a nice permission denied if you're not allowed to create directories otherwise, so no sweat), is not really the best idea. He is assuming that when you "open the terminal", that you are in the userland area. In UNIX geek-speak that means /home/usr, /users, /home/'username', /~username etc just to name a few. It is generally the default location for most UNIX/Linux/BSD flavors that the terminal/shell application will default to in either pure shell access or in some form of GUI within X Window System / X11. Unless some of the user config files were edited.

Either way, if you feel unsure about where you are located when firing up the terminal, do a simple 'pwd' command in your terminal to see where you are within the file system. Something indicating you are within your account/username area should be displayed.

If you see anything vaguely indicative of the word "root" displayed after you invoke the 'pwd' command, stop right there and find out how it is that you got root level access. Something to the effect of /root or ~root will show....log off immediately, log in as a regular user, switch usernames within the shell or any other method to get out of the super-user account.

The grand idea here is to make a directory within your user level access area, to store all the files needed/required to successfully build a linux kernel. Sort of your My Documents location in Windows.

2. Strictly speaking, the command 'cd' just means "Change Directory". The command 'mv' stands for "MoVe", and is used when moving files/directories from one place to another....the Cut & Paste actions in Windows, OSX etc operating systems. In short, you want to Change Directory in order to get to the working directory you need to be in; "MoVing" (by this I mean the command 'mv'...) to that directory is not the intention, there will likely be a complaint from the command terminal/shell saying so.

It is but a minor terminology discrepancy, my money is on most of having figured this out already. Thus this serves the total UNIX n00b the best, hopefully avoiding their confusion.

You *might* want to specifically add to these instructions that some form of "Developer Tools" have also been installed. I'm not 10000000% sure if Ubuntu installs the GNU Compiler(s), the 'gcc' & it's variants application, by default. I have no first hand knowledge of Ubuntu...I'm a BSD kinda guy.

A linux kernel (or Android kernel for that matter) can be built on almost any UNIX/Linux variant, provided the proper configs & changes/switches are made.

Now to all n00bs, carry on and teach thyself more UNIX/Linux/BSD, it is a great skill to have, looks excellent on your resume and will help do your part in keeping the Free OS community alive.
[Android] dtrail1:
Looks like there are some conflicting configuration options selected, but hard to say because I don't know your source. Have a look in the related kconfig files to see on what the options (ARCH_MSM...) are depending.

Next thing; seems that the toolchain is not in your path, it cannot find the compiler. Try to export it in command line like:

export PATH=/PATH/TO/TOOLCHAIN/bin:$PATH

or:

export CROSS_COMPILE=/PATH/TO/TOOLCHAIN/

last thing : in your defconfig you have "KERNEL_LOCAL_VERSION"

which is wrong. It should be:

CONFIG_LOCALVERSION="-any-name"

Gesendet von meinem A100 mit Tapatalk 2
[Android] GuneetAtwal:
Thanks mate i am using this source and it is code aurora source only and i am getting many other errors also i req. if you can download the source(115mb) and try to fix the errors i will be very helpful or help me in fixing those errors :):)
[Android] thicklizard:
My suggestion is if you can't fix the errors yourself don't use linero
[Android] dtrail1:
Sorry, but I don't have the time to fix a whole source for you.

You should spend some time to learn C or how to use linaro.

I had to spend months for learning all that stuff.

Otherwise just use arm-eabi-4.4.3 to build your kernel.

M.o.t.o.r.o.l.a.R.a.z.r - JBX-Kernel 0.5a - Tapatalk4
[Android] bourbon79:
Hello. I have changed the digitizer of my Htc Sensation and it works with Gingerbread Kernels but it does not with ICS kernels. I have downloaded the Gingerbread kernel sourcecode from HTCdev and there is a folder with the touchscreen drivers in format "driverX.c". Is it possible to copy these drivers into the sourcecode of a ICS kernel sourcecode and compile it to make my digitizer work?.

Thanks
[Android] espmartin:
Hello guys!

I'd like to build a kernel for my new AOKP build, and so my question is: if the Kangbang kernel works awesome on this rom, can I use THAT as a base for a new kernel? If so, is there a guide to use an existing kernel as a starting point?
[Android] iHateWebOS:
Open source of course. however if you clone kang bang, add a few commits and release publicly as YOUR kernel.. Well that's just not "good practice". If the kernel works awesome "as is" then just inline it and use it the way it is. Or do what every other dev does and start from scratch and cherry-pick all there commits.......
[Android] espmartin:
I was not suggesting I'd kang it and take sole credit :silly: I just want to update it (as it's at .75) to .78, and tweak away. I have already decided to start from scratch, so thanks anyway ;)
[Android] kylon:
Hei guys what about the optimization flags.

Are they really useful?

Is there any flag that i should add for a better kernel?

Thanks

sent from my powerful HTC Desire S
[Android] thicklizard:
Really all depends. There is snapdragon optimization flags if your kernel is for a snapdragon processor. There is linaro optimization flags if you use the linaro compiler. I use both sets. It generally will give you errors you will need to resolve though.
[Android] kylon:
I have snapdragon 2 and linaro xD

Which flags are u using?

sent from my powerful HTC Desire S
[Android] thicklizard:
https://github.com/thicklizard/HTC-...mmit/c57feca989ea527e70bda7b2bf49849295360689
[Android] GuneetAtwal:
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: alignment.c:298
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
make: *** Waiting for unfinished jobs....

Can anyone solve this problem?

:confused:
[Android] k1000o63:
Thanks!

I was looking for something similar for my first custom ROM for my xperia U!
[Android] brymaster5000:
you need to initialize offset.un before it is used in line 298.
[Android] GuneetAtwal:
How ? little weak in C
[Android] thicklizard:
Are you trying to use linaro?
[Android] GuneetAtwal:
Yes :silly:
[Android] thicklizard:
That's why you are getting errors. You will continue to get errors. Either learn c or Google linaro fix ups and see what you get. I have a few commits on my github repos for linaro fix ups. Don't forget to credit if you use someone else's code. ;)
[Android] GuneetAtwal:
I am already learning C so that i can do this more precisely and i will know actually what am i doing

EDit: [MENTION=4165809]thicklizard[/MENTION] Can you link me to a stable toolchain which i can use to compile for Snapdragon processor that too arm-eabi
[Android] kylon:
Linaro is a good toolchain

I know how to fix it

If i remember right it was offset.un = 0

edit:

maybe our code is different but i did this to fix the problem

static int
do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
{
union offset_union offset;
unsigned long instr = 0, instrptr;
int (*handler)(unsigned long addr, unsigned long instr, struct pt_regs *regs);
unsigned int type;
unsigned int fault;
u16 tinstr = 0;
int isize = 4;
int thumb2_32b = 0;

[B][COLOR=DarkRed]offset.un = 0;[/COLOR][/B]

instrptr = instruction_pointer(regs);

if (thumb_mode(regs)) {
u16 *ptr = (u16 *)(instrptr & ~1);
fault = probe_kernel_address(ptr, tinstr);
if (!fault) {
if (cpu_architecture() >= CPU_ARCH_ARMv7 &&
IS_T32(tinstr)) {
/* Thumb-2 32-bit */
u16 tinst2 = 0;
fault = probe_kernel_address(ptr + 1, tinst2);
instr = (tinstr << 16) | tinst2;
thumb2_32b = 1;
} else {
isize = 2;
instr = thumb2arm(tinstr);
}
}
} else
fault = probe_kernel_address(instrptr, instr);

if (fault) {
type = TYPE_FAULT;
goto bad_or_fault;
}

if (user_mode(regs))
goto user;

ai_sys += 1;

fixup:

regs->ARM_pc += isize;

switch (CODING_BITS(instr)) {
case 0x00000000: /* 3.13.4 load/store instruction extensions */
if (LDSTHD_I_BIT(instr))
offset.un = (instr & 0xf00) >> 4 | (instr & 15);
else
offset.un = regs->uregs[RM_BITS(instr)];
[Android] kylon:
As far as i know the problem is ur config file

An ex.

My phone is a desire s

But the config says # desire s is not set

The problem could also be that there s no desire s=y o desire s is not set line in my config

To fix this you can download a working config for ur phone from github to see which is your system type

sent from tapatalk