yashsingh1/xdaforums huggingface dataset:
[Android] .torrented:
Ok, I want to share a Kernel Building Tool that I've been using because "make" just isn't working for me! (mainly for the people with CROSS_COMPILE errors like myself)

***!!! MAKE SURE TO EDIT THE UPDATER-SCRIPT @ LINE 23 TO YOUR BOOT PARTITION !!!***

https://github.com/torrented/android-kernel-build-tools

I've included a python script to help create the kerneltools-build-config file that is needed to use this tool

to see how I have mine set up, take a look at this:

CROSS_COMPILE=~/androidkernel/toolchains/linaro-4.8/bin/arm-eabi-
HOST_CC=gcc
LOCAL_BUILD_DIR=~/androidkernel/dna-kernel/dna
TARGET_DIR=~/androidkernel/dna-kernel/dna
SYSTEM_PARTITION="/dev/block/mmcblk0p32"
DEFCONFIG=torrented_defconfig

FLASH_BOOT='write_raw_image("/tmp/boot.img", "boot")'

# ----

N_CORES=4
VERSION=torrented-4.2.2-Stable

# ----

BANNER=`cat <<EOF
ui_print("**********************************************");
ui_print("* *");
ui_print("* crpalmer's *");
ui_print("* *");
ui_print("* HTC Droid DNA Kernel *");
ui_print("* *");
ui_print("* modified by .torrented *");
ui_print("* *");
ui_print("* Sweep-2-Wake - OC - UV *");
ui_print("* *");
ui_print("* *");
ui_print(" Version: $VERSION ");
ui_print("* *");
ui_print("* *");
ui_print("**********************************************");

Simply cd into your kernel source dir and run:

git clone git@github.com:torrented/android-kernel-build-tools.git

then run:

./android-kernel-build-tools/config-builder.py

A few MUST NEED CHANGES!!!!

Go into the Updater-Script and go to line 23 and set it to your boot partition if it is not 19 or else you will flash the boot.img to the wrong partition!!!!

run_program("/tmp/dd", "if=/dev/block/mmcblk0p[COLOR="Red"]19[/COLOR]", "of=/tmp/boot.img");;
[Android] deathgod98:
when i use the comand make maker.defconfig the terminal give me this error

/home/giuseppe/Kernel/arch/arm/Makefile:237: /home/giuseppe/Kernel/mediatek/Makefile: No such file or directory

make: *** No rule to make target `/home/giuseppe/Kernel/mediatek/Makefile'. Stop.
[Android] .torrented:
what is the name of the defconfig you are trying to use? is it in /arch/arm/configs/ ?
[Android] deathgod98:
the name is tct_hammer_defconfig and it is in arch/arm/config
[Android] kylon:
The right command is

'make tct_hammer_defconfig'

Inviato dal mio Desire S usando Tapatalk 4
[Android] .torrented:
is your source on github?
[Android] deathgod98:
I controlled github but nothing
[Android] deathgod98:
I think i choose a wrong defconfig
[Android] desalesouche:
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_pmksa':

drivers/net/wireless/bcm4329/wl_iw.c:5096:5: error: array subscript is above array bounds [-Werror=array-bounds]

drivers/net/wireless/bcm4329/wl_iw.c:5099:5: error: array subscript is above array bounds [-Werror=array-bounds]

cc1: all warnings being treated as errors

make[4]: *** [drivers/net/wireless/bcm4329/wl_iw.o] Error 1

make[3]: *** [drivers/net/wireless/bcm4329] Error 2

make[2]: *** [drivers/net/wireless] Error 2

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

make: *** [drivers] Error 2

line in read are lines corresponding to errors

here:

if ((pmkid_list.pmkids.npmkid > 0) && (i < pmkid_list.pmkids.npmkid)) {

bzero(&pmkid_list.pmkids.pmkid, sizeof(pmkid_t));

for (; i < (pmkid_list.pmkids.npmkid - 1); i++) {

bcopy(&pmkid_list.pmkids.pmkid[i+1].BSSID,

&pmkid_list.pmkids.pmkid.BSSID,

ETHER_ADDR_LEN);

bcopy(&pmkid_list.pmkids.pmkid[i+1].PMKID,

&pmkid_list.pmkids.pmkid.PMKID,

WPA2_PMKID_LEN);

}

any help please?

thank you
[Android] kylon:
http://blog.droidzone.in/2011/10/31/solving-kernel-compilation-errors-part-1-new-toolchain/

@op

You should add this in the op xD
[Android] Pons:
[MENTION=3830475]thewadegeek[/MENTION] this would also make a good addition to the OP. A lot of people are trying to compile/customize a kernel, without actually knowing what a kernel does.

Android Basics 101: Understanding Kernels – XDA Developer TV
[Android] desalesouche:
this lead to others error

drivers/net/wireless/bcm4329/dhd_linux.c:31:22: fatal error: typedefs.h: No such file or directory

compilation terminated.

make[4]: *** [drivers/net/wireless/bcm4329/dhd_linux.o] Error 1

make[4]: *** Waiting for unfinished jobs....

CC net/ipv4/netfilter/arptable_filter.o

CC net/wireless/ethtool.o

drivers/net/wireless/bcm4329/linux_osl.c:32:22: fatal error: typedefs.h: No such file or directory

dhd_linux.ko http://pastebin.com/q2jCaZG0
[Android] kylon:
Add the file

Inviato dal mio Desire S usando Tapatalk 4
[Android] desalesouche:
thank you but can you elaborate some more please?

i have to copy and paste , then push?
[Android] kylon:
Go to the driver folder

Go to include

Paste typedef.h from the stock source or from a source for your phone

Inviato dal mio Desire S usando Tapatalk 4
[Android] desalesouche:
it seems i had already one in drivers/net/wireless/bcm4329/include/

http://pastebin.com/kQnpjsQ0 so i don't understand what is the problem...

but this file seem quite empty , may be that is why i am getting error?

if i change tool chaine i hav another kind of error

so confusing
[Android] kylon:
No

Check the name

It s strange

Which toolchain are u using

Inviato dal mio Desire S usando Tapatalk 4
[Android] desalesouche:
fist one:

1= make -j4 ARCH=arm CROSS_COMPILE=${HOME}/android/toolchain/android-ndk-r9/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-

2= make -j4 ARCH=arm CROSS_COMPILE=${HOME}/android/toolchain/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-

i used these 2 one, can test others if necessary
[Android] kylon:
:eek: a long command

when i had your problem i was using linaro 4.5.4
[Android] GuneetAtwal:
Hey Senior Devs

i am trying to compile a Kernel from Official Qualcomm MSM7627a sources but the kernel is not booting and when i flash the kernel the phone shows white screen :/

Here is my dmseg report =link

So i want someone to put some light over the problems

Kernel Source
[Android] Toni5830:
Help please.. I'm getting this error SOLVED

sh-3.2# export TOOLCHAIN=/Users/tonelloalberto/arm-cs-tools/bin/
sh-3.2# export TOOLCHAIN_PREFIX=arm-none-eabi-
sh-3.2# make -j4 ARCH=arm CROSS_COMPILE=/Users/tonelloalberto/arm-cs-tools/bin/arm-none-eabi-
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
scripts/mod/mk_elfconfig.c:4:17: error: elf.h: No such file or directory
scripts/mod/mk_elfconfig.c: In function ‘main’:
scripts/mod/mk_elfconfig.c:9: error: ‘EI_NIDENT’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:9: error: (Each undeclared identifier is reported only once
scripts/mod/mk_elfconfig.c:9: error: for each function it appears in.)
scripts/mod/mk_elfconfig.c:16: error: ‘ELFMAG’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:16: error: ‘SELFMAG’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:20: error: ‘EI_CLASS’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:21: error: ‘ELFCLASS32’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:24: error: ‘ELFCLASS64’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:30: error: ‘EI_DATA’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:31: error: ‘ELFDATA2LSB’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:34: error: ‘ELFDATA2MSB’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:9: warning: unused variable ‘ei’
make[2]: *** [scripts/mod/mk_elfconfig] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....

solved: http://www.mail-archive.com/android-kernel@googlegroups.com/msg00066.html
[Android] mronly1love:
error: unrecognized command line option ‘-mlittle-endian

how to solve it?
[Android] :
The kernel source code for my device on htcdev says it's meant for ics. What changes will I need to make in order for it to run on jellybean? Also, will that kernel work on aosp or just on sense?
[Android] N•X™:
You cannot just change something and then run a ICS kernel on JB...

You'll have to wait for HTC to publish JB kernel sources for your device.

Or you can try to use source of any custom JB kernel for your device
[Android] :
So the first jellybean kernel available for my device had to built from the ground up?
[Android] N•X™:
No I guess the avaible JB Custom Kernel for your device are somekind of a port from a device which has already JB kernel sources out and has a similar architecture (for example for Galaxy S2 some JB Changes were merged from Galaxy s4 kernel - not the whole kernel if you know what i mean)
[Android] :
K. Thanks for your help!
[Android] as1132686204:
完全看不懂
[Android] .torrented:
In English? After all it was in the rules if you read/understood them...

XDA Rule #4

4. Use the English language.

We understand that with all the different nationalities not everyone speaks English well, but please try. If you're really unable to post in English use an online translator, You're free to include your original message in your own language below the English translation. (This covers your posts, profile entries and signature).​
[Android] nitsua98:
According to Google Translate it means "Totally do not understand"
[Android] commonelementary:
Great info!

Thanks
[Android] mohsin931:
Owsem tutorial

i have googled it many times and i have also requested on xda to give us a tutorial how to add ext support in a kernel but no body give any positive response rather they said use this kernel or that...but i want to learn how to add ext support in kernel while building it from source

and it is my request to you to give us a tutorial on it i shall be thankful to you [MENTION=3830475]thewadegeek[/MENTION]
[Android] kylon:
Do u mean ext3 etc..?

You only need to enable it with menuconfig
[Android] 87Fra87:
i'm trying adb pull /proc/config.gz but i reiceive this message:

remote object '/proc/config.gz' does not exist

I have xperia v lt25i with stock kernel

What i must do to extract config file?
[Android] desalesouche:
upgrading kernel with patch

If your kernel is version 2.6.32.Y start with 2.6.32.X (where x = y + 1).

Put it in the root folder of your kernel, open up a terminal and fire:

Code:

patch -p1 < 2.6.32.Y-X.patch

hi i am trying to patch my 3.0.83 kernel.

kernel path is under android/kernel/honor

should i copy or extract patch to android /kernel/honor/ ?

or should i make it under android/kernel/ ?

patch is: patch-3.0.84-rc1

how should i write correct command to patch kernel please ?

so i tried in terminal after cding into android/kernel/honor

and i have this output=

patch -p1 < 3.0.83-3.0.84-rc1.patch

bash: 3.0.83-3.0.84-rc1.patch: No such file or directory another question: i have read that rc-patch might not be the better to upgrade.

if someone can send me link to good patch?

i would appreciate.

please write me command with given path above , as i am hard to understand sometimes with this kind od command...> ( patch -p1 < 2.6.32.Y-X.patch).

thank you all.

thank you very much
[Android] 87Fra87:
i have digit:

make ARCH=arm CROSS_COMPILE=arm-linux-androideabi-4.8 blue_tsubasa_defconfig

this is output:

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/zconf.lex.c

SHIPPED scripts/kconfig/zconf.hash.c

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)

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

#

# configuration written to .config

#

What are this error?
[Android] .torrented:
Nothing Its just writing to the .config file... do this instead:

you dont need to do the defconfig but once

export ARCH=arm
export CROSS_COMPILE=~/path/to/linaro/bin/arm-eabi-
make
[Android] 87Fra87:
Sorry i di not understand what you want say when you tell:

Nothing Its just writing to the .config file... do this instead:

you dont need to do the defconfig but once

What you want say with this? I can't translate..........

If i open menuconfig i visualize many option. Does anyone know a guide concerning the kernel options?

Inviato dal mio GT-N8000 con Tapatalk 2
[Android] hell_lock:
Can anyone tell me which is the latest linaro toolchain these days?
[Android] Bastaerd:
https://launchpad.net/linaro-toolchain-binaries
[Android] Ryrzy:
hi all...

after applying kernel patch 3.0.91 -> 3.0.93 (no problems with patch) i have compile error like this:

CC arch/arm/mm/cache-l2x0.o
arch/arm/mm/cache-l2x0.c: In function 'l2x0_init':
arch/arm/mm/cache-l2x0.c:393:15: error: 'cache_id' undeclared (first use in this function)
arch/arm/mm/cache-l2x0.c:393:15: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/arm/mm/cache-l2x0.o] Błąd 1
make: *** [arch/arm/mm] Błąd 2
make: *** Oczekiwanie na niezakończone zadania....

device: samsung s3 i9300

toolchain: linaro 4.7.4

any ideas how to fix this ? ?
[Android] kylon:
Yes, check the patch again.

You forgot something

I did this patch and it is working

Inviato dal mio Desire S usando Tapatalk 4
[Android] .torrented:
https://www.linaro.org/downloads

scroll down till you see Components / Android and click the flopy icon to the right of w/e toolchain you want
[Android] Ryrzy:
no i didn't .... everything is ok. this file is patched in 3.0.92 patch ... you can look here https://github.com/ryrzy/yoda-kernel-i9300-JB/commit/7a23ea0339700e76cd57be5851e7d9747f77a1b5
[Android] KAD79:
hey all, hoping for some help here

relatively new with kernel's but I've successfully compiled kernel and modules for some asus tablets

now I'm trying to compile for HTC Desire X and getting quite a few errors, which I'm unable to resolve

arm-eabi-gcc: No such file or directory

root@linux-desktop:/home/kris/Desktop/Kris/android/kernel/desireX# export ARCH=arm
root@linux-desktop:/home/kris/Desktop/Kris/android/kernel/desireX# export CROSS_COMPILE=../toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
root@linux-desktop:/home/kris/Desktop/Kris/android/kernel/desireX# make DesireX_defconfig
Kconfig:13:warning: type of 'CABLE_DETECT_8X55' redefined from 'tristate' to 'boolean'
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_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
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_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
#
# configuration written to .config
#
root@linux-desktop:/home/kris/Desktop/Kris/android/kernel/desireX# make modules
scripts/kconfig/conf --silentoldconfig Kconfig
Kconfig:13:warning: type of 'CABLE_DETECT_8X55' redefined from 'tristate' to 'boolean'
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_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
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_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
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
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
root@linux-desktop:/home/kris/Desktop/Kris/android/kernel/desireX#

now this seems like it should be a simple fix

1. path is not wrong - nope double checked path

2. maybe missing 32 bit libs - checked correct libs are installed

3. tried multiple versions of the toolchains, including the regular (non linaro) toolchain

4. Same build environment successfully compiles kernel and modules for asus tf300, and using same toolchain works

Originally I tried this on ubuntu 13:04 64bit

finally decided maybe something basic has been messed up/corrupted

fortunately, I'm using a spare machine,

so I wiped it, fresh install of ubuntu 12:10 64bit

set up build envirnment and result was same, works to build asus kernel, but not htc kernel or modules

any idea's would be appreciated
[Android] Ryrzy:
you have bad directory in Makefile to toolchan...
[Android] someone755:
Can anyone tell me where I can grab the latest toolchain (not the linaro one, pls)?

I've been bashing my head with this for quite some time now, I can only find DoomLord's outdated ones...

Thanks! :D

P.S.

I found lots of Linaro ones, but none of the standard ones...
[Android] .torrented:
did you check googles git/repo stuff whatever its called... where they keep all their source.
[Android] someone755:
I thought Google's toolchain is outdated o.O

Or is it...?
[Android] someone755:
The compiled file is in [source folder]/arch/arm/boot. The compiled file is named 'zImage'. (Output tells you that too, says 'zImage is ready'.)

You have to use Sony's mkelf.py file and put some files together (namely your new zImage, the ramdisk (or initramfs), and (depending on your phone) the RPM.bin). Letama wrote a great guide for 2012 phones, here it is: http://xdaforums.com/showthread.php?t=2418893

For any newer phones, consult your General or maybe Development sections, you're bound to find a tutorial :D
[Android] lozohcum:
Thanks, I will check it :)
[Android] lozohcum:
I've succesfully compiled 3.4 kernel for my Xperia J. Do you know any sites with patches for improvements I can add to this kernel?

I tried to apply patch from this thread but I got one error:

lozohcum@lozohcum:~/android/kernel$ patch -p1 < ../kernelPatch
(Stripping trailing CRs from patch.)
patching file drivers/cpufreq/cpufreq_interactivex.c
(Stripping trailing CRs from patch.)
patching file drivers/cpufreq/cpufreq_lionheart.c
(Stripping trailing CRs from patch.)
patching file drivers/cpufreq/cpufreq_ondemandx.c
(Stripping trailing CRs from patch.)
patching file drivers/cpufreq/Kconfig
Hunk #1 succeeded at 88 (offset -11 lines).
Hunk #2 succeeded at 121 (offset -11 lines).
Hunk #3 succeeded at 175 (offset -11 lines).
Hunk #4 FAILED at 258.
1 out of 4 hunks FAILED -- saving rejects to file drivers/cpufreq/Kconfig.rej
(Stripping trailing CRs from patch.)
patching file drivers/cpufreq/Makefile
(Stripping trailing CRs from patch.)
patching file include/linux/cpufreq.h
Hunk #1 succeeded at 366 (offset 3 lines).
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 378 with fuzz 1 (offset 3 lines).
lozohcum@lozohcum:~/android/kernel$

May I ignore it and still compile working kernel?
[Android] someone755:
Don't patch things that work already (I see you went and patched some governors, no need for that).

If your phone already has a working custom kernel (or even if it doesn't), "borrow" some code from that and put it into your kernel sources. Following the XDA-U guide here: http://xda-university.com/as-a-developer/adding-features-to-your-kernel , I was able to build my own kernel for the Xperia S. ;)

And if you can't find any kernels for your device, the Xperia S developers have a LOT of tweaks :D
[Android] lozohcum:
Ok, I'll check some repos for X S on github to find tweaks. [MENTION=4275152]someone755[/MENTION]

I added governor smartass and now when I type make my_device_config it gives me that error:

drivers/cpufreq/Kconfig:45:error: recursive dependency detected!
drivers/cpufreq/Kconfig:45:	choice <choice> contains symbol CPU_FREQ_GOV_SMARTASS
drivers/cpufreq/Kconfig:60:	symbol CPU_FREQ_GOV_SMARTASS is part of choice CPU_FREQ_DEFAULT_GOV_SMARTASS
drivers/cpufreq/Kconfig:53:	symbol CPU_FREQ_DEFAULT_GOV_SMARTASS is part of choice <choice>

do you know what is wrong? Maybe I put those pieces of code in wrong place?

Solved.

I had to put smartass code after all governors
[Android] dtrail1:
Hallo

You sure it works? What do you mean with "smartass code after all governors"?

I thought it was even caused by missing entries for in" /include/linux/curfreq.h" - which is needed of you want to use a governor as default.

And also a wrong entry in kconfig...

Edit: sorry, I didn't look right. You had multiple smartass entries in kconfig? Make sure you have one entry for the governor choice and one entry for the default governor choice - for each governor. And make sure you have the right entry in the file I mentioned above.

Gesendet von meinem XT910 mit Tapatalk 4
[Android] lozohcum:
No it doesn't.

I fixed that, Kconfig was in a big mess. But there were some errors in smartass itself (couldn't compile file) so I'm going to replace smartass with smartassv2. I think I had too old file.

Can you recommend my any site to download governors and I/O schedulers? I mean the latest files for kernels. I have 3.4 kernel.
[Android] someone755:
Any kernel source that works. Franciscofranco, DoomLord, ForzaFerrariLeo, me :P

Try and see if it works. I found that some of ForzaFerrariLeo's sources work and some don't. You'll learn from mistakes.

If you ever need any help with errors or adding stuff, throw me a PM ;)
[Android] lozohcum:
Oh thank you so much :)

one more thing for now, is it possible to add zRam/swapp support to my stock kernel? many users of my Xperia J would be very happy if they have those on stock rom
[Android] darkcack:
thnx :)
[Android] desalesouche:
building kernel error

hi may i ask for help about these errors?

drivers/net/wireless/bcmdhd/dhd_linux.c:696:21: error: conflicting types for 'dhd_idx2net'

In file included from drivers/net/wireless/bcmdhd/dhd_linux.c:55:0:

drivers/net/wireless/bcmdhd/dhd.h:492:28: note: previous declaration of 'dhd_idx2net' was here

drivers/net/wireless/bcmdhd/dhd_linux.c: In function 'dhd_rx_frame':

drivers/net/wireless/bcmdhd/dhd_linux.c:1400:13: error: 'DHD_PACKET_TIMEOUT' undeclared (first use in this function)

drivers/net/wireless/bcmdhd/dhd_linux.c:1400:13: note: each undeclared identifier is reported only once for each function it appears in

drivers/net/wireless/bcmdhd/dhd_linux.c:1504:11: error: 'DHD_EVENT_TIMEOUT' undeclared (first use in this function)

drivers/net/wireless/bcmdhd/dhd_linux.c:1537:2: error: implicit declaration of function 'DHD_OS_WAKE_LOCK_TIMEOUT_ENABLE' [-Werror=implicit-function-declaration]

drivers/net/wireless/bcmdhd/dhd_linux.c: In function 'dhd_ioctl_entry':

drivers/net/wireless/bcmdhd/dhd_linux.c:2032:46: error: 'DHD_EVENT_TIMEOUT' undeclared (first use in this function)

cc1: some warnings being treated as errors

make[4]: *** [drivers/net/wireless/bcmdhd/dhd_linux.o] Error 1

make[3]: *** [drivers/net/wireless/bcmdhd] Error 2

make[2]: *** [drivers/net/wireless] Error 2

dhd_linux.h = http://pastebin.com/NC8fz2s5

dhd_linux.c = http://pastebin.com/d65LL7ss

thank you.. :D
[Android] kylon:
Add the missing functions

Inviato dal mio Desire S usando Tapatalk 4
[Android] desalesouche:
can you please be more explicit...as all that is quite new for me ...thank you
[Android] brymaster5000:
Search what implicit declaration means. You probably have two functions that are similar in two separate files, but the parameters are slightly off, or you are using a function without first declaring it.

Sent from my Skyraiding Dinc2.
[Android] kin912:
I will try this,thanks!
[Android] Fawad Farooq:
Hi.

I want to use my usb flash device to my htc explorer. I have the usb otg cable also but it seems that htc explorer doesn't support such thing. Is there any rom or any kernel or anything to use my usb flash storage device. I have to watch movies from it.

Sorry if I am posting in a irrelevant forum.

Thanks.