[Q] Compiling RNDIS Support into Kernel - Droid Incredible Q&A, Help & Troubleshooting

I'm trying to compile the source from HTC :
Droid Incredible by hTC – Froyo MR3 – 2.6.32 kernel source code 82.1 MB
http://dl4.htc.com/RomCode/Source_and_Binaries/incrediblec-MR3-2.6.32-g9a2fc16.tar.gz
Using heyitslou's kernel .config the kernel compiles, the only thing I'm changing is:
[*] Android gadget RNDIS ethernet function
after that the kernel no longer compiles. I get the following error.
Code:
:~/android/sources/dinc$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/usb/gadget/f_rndis.o
drivers/usb/gadget/f_rndis.c: In function 'rndis_bind':
drivers/usb/gadget/f_rndis.c:703: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:704: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c: In function 'rndis_function_bind_config':
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:884: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:886: error: dereferencing pointer to incomplete type
make[2]: *** [drivers/usb/gadget/f_rndis.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2
Can someone help me track down how to fix/get around this... all I'm looking for is a Froyo kernel with RNDIS (wired-tether) support. Unfortunately everyone likes wireless tether only, which doesn't work reliably enough for me over extended periods of time.
Hopefully someone can help me.
Thanks,
B

https://github.com/getitnowmarketing/Incrediblec-mr3/commit/d80716254f7c444955c3948a1fad97b052400883
This is from my personal non-released kernel. Its not a clone of ziggy's like most every other kernel is.

billygoat32 said:
I'm trying to compile the source from HTC :
Droid Incredible by hTC – Froyo MR3 – 2.6.32 kernel source code 82.1 MB
http://dl4.htc.com/RomCode/Source_and_Binaries/incrediblec-MR3-2.6.32-g9a2fc16.tar.gz
Using heyitslou's kernel .config the kernel compiles, the only thing I'm changing is:
[*] Android gadget RNDIS ethernet function
after that the kernel no longer compiles. I get the following error.
Code:
:~/android/sources/dinc$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/usb/gadget/f_rndis.o
drivers/usb/gadget/f_rndis.c: In function 'rndis_bind':
drivers/usb/gadget/f_rndis.c:703: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:704: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c: In function 'rndis_function_bind_config':
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:884: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:886: error: dereferencing pointer to incomplete type
make[2]: *** [drivers/usb/gadget/f_rndis.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2
Can someone help me track down how to fix/get around this... all I'm looking for is a Froyo kernel with RNDIS (wired-tether) support. Unfortunately everyone likes wireless tether only, which doesn't work reliably enough for me over extended periods of time.
Hopefully someone can help me.
Thanks,
B
Click to expand...
Click to collapse
Can you post the patch your trying to apply

Hey thanks for the quick reply, I appreciate your interest.
All I'm doing is downloading the source available from HTC, pulling the config.gz from my phone (which is running your kernel) moving it into the kernel source directory, `make menuconfig`, load the .config, * the android RNDIS option and then trying to make kernel from there.
Let me know if there is anything else I can do to assist.
Thanks again,
B

On a side note, I've tried this will all the available froyo sources from HTC, the Verizon ones, stock, etc

drellisdee said:
https://github.com/getitnowmarketing/Incrediblec-mr3/commit/d80716254f7c444955c3948a1fad97b052400883
This is from my personal non-released kernel. Its not a clone of ziggy's like most every other kernel is.
Click to expand...
Click to collapse
It seems that you need to apply the patches outlined in drellisdee's post.

shoot, I missed that. Thanks for pointing that out <face-palm>

HeyItsLou,
can you include the rndis support + patch from the post above into your kernel?
https://github.com/getitnowmarketin...0716254f7c444955c3948a1fad97b052400883#diff-0

RNDIS Support
For anyone that is interested I recompiled HeyItsLous kernel with rndis support. I didn't change anything other than adding rndis support for usb wired tether. Let me know if you want it and I'll post it somewhere.

Related

[DEV Only] Making a Hero 2.6.29 Kernel based on the Tattoo's 2.6.29 Kernel

A request to all noobs: Please don't post here!
Click to expand...
Click to collapse
Hey guys,
@Wesgarner and myself started a project for getting 2.6.29 Kernels compiled from source on the Hero to run.
I set up a github.com repo for it, you can find it here:
http://github.com/maxisma/Hero_2.6.29
If you want to contribute send me your github-username so I can add you to the collaborator-list.
We used the Tattoo's Kernel source as a base because it is very similar to the Hero's.
So far we added the *hero* files in arch/arm/mach-msm/ and edited the Kconfig and the Makefile to include these files.
We are using the .config from the leaked 2.6.29 Hero Kernel binary with a few changes to match the Tattoo's Kernel source.
It doesn't compile yet unfortunately.
Here are the errors:
http://pastebin.com/rwbePAd0
gnu gcc compiler? version?
mr.bang said:
gnu gcc compiler? version?
Click to expand...
Click to collapse
arm-eabi-gcc 4.4.0 from the Android source toolchain.
You won't be able to; the ABI has changed, but good luck anyway.
adwinp said:
You won't be able to; the ABI has changed, but good luck anyway.
Click to expand...
Click to collapse
What do you mean with ABI?
the app binary int.
The kernel source should be shortly available after the rom release, so why the bother?
There were a few 2.6.29 projects in the past (loxk's among others), you might have a look at those, not that any serious work was done.
Unless you're a kernel dev., you shouldn't waste your time.
Ok... down to a lot less compile errors:
Code:
arch/arm/mach-msm/board-hero-panel.c: In function 'hero_panel_detect':
arch/arm/mach-msm/board-hero-panel.c:444: error: 'panel_type' undeclared (first use in this function)
arch/arm/mach-msm/board-hero-panel.c:444: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/board-hero-panel.c:444: error: for each function it appears in.)
arch/arm/mach-msm/board-hero-panel.c: In function 'hero_init_panel':
arch/arm/mach-msm/board-hero-panel.c:680: error: 'engineer_id' undeclared (first use in this function)
make[1]: *** [arch/arm/mach-msm/board-hero-panel.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC kernel/hrtimer.o
arch/arm/mach-msm/board-hero.c:155: error: unknown field 'enable_emc_protect_delay' specified in initializer
arch/arm/mach-msm/board-hero.c:155: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:155: warning: (near initialization for 'hero_x_axis.info')
arch/arm/mach-msm/board-hero.c:174: error: unknown field 'enable_emc_protect_delay' specified in initializer
arch/arm/mach-msm/board-hero.c:174: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:174: warning: (near initialization for 'hero_y_axis.info')
arch/arm/mach-msm/board-hero.c:253: error: unknown field 'sensitivity' specified in initializer
arch/arm/mach-msm/board-hero.c:267: error: unknown field 'display_width' specified in initializer
arch/arm/mach-msm/board-hero.c:268: error: unknown field 'display_height' specified in initializer
arch/arm/mach-msm/board-hero.c:276: error: unknown field 'display_width' specified in initializer
arch/arm/mach-msm/board-hero.c:277: error: unknown field 'display_height' specified in initializer
arch/arm/mach-msm/board-hero.c:290: error: variable 'hero_s5k3e2fx_sensor_info' has initializer but incomplete type
arch/arm/mach-msm/board-hero.c:291: error: unknown field 'sensor_i2c_read' specified in initializer
arch/arm/mach-msm/board-hero.c:291: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:291: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:292: error: unknown field 'sensor_i2c_write' specified in initializer
arch/arm/mach-msm/board-hero.c:292: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:292: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:293: error: unknown field 'sensor_probe_initial' specified in initializer
arch/arm/mach-msm/board-hero.c:293: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:293: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:294: error: unknown field 'sensor_deinit' specified in initializer
arch/arm/mach-msm/board-hero.c:294: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:294: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:295: error: unknown field 'sensor_write_exposuregain' specified in initializer
arch/arm/mach-msm/board-hero.c:295: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:295: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:296: error: unknown field 'sensor_set_pclk' specified in initializer
arch/arm/mach-msm/board-hero.c:296: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:296: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:297: error: unknown field 'sensor_setting' specified in initializer
arch/arm/mach-msm/board-hero.c:297: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:297: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:298: error: unknown field 'sensor_resume' specified in initializer
arch/arm/mach-msm/board-hero.c:298: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:298: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:299: error: unknown field 'sensor_suspend' specified in initializer
arch/arm/mach-msm/board-hero.c:299: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:299: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:300: error: unknown field 'sensor_power_down' specified in initializer
arch/arm/mach-msm/board-hero.c:300: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:300: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:301: error: unknown field 'sensor_power_up' specified in initializer
arch/arm/mach-msm/board-hero.c:301: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:301: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:302: error: unknown field 'msmclk_rate_set' specified in initializer
arch/arm/mach-msm/board-hero.c:302: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:302: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:303: error: unknown field 'msmclk_disable' specified in initializer
arch/arm/mach-msm/board-hero.c:303: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:303: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:304: error: unknown field 'msmclk_enable' specified in initializer
arch/arm/mach-msm/board-hero.c:304: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:304: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:305: error: unknown field 'msmclk_camif_clk_select' specified in initializer
arch/arm/mach-msm/board-hero.c:305: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:305: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:306: error: unknown field 'msmio_camif_pad_reg_reset' specified in initializer
arch/arm/mach-msm/board-hero.c:306: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:306: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:307: error: unknown field 'msmio_camif_app_reset' specified in initializer
arch/arm/mach-msm/board-hero.c:307: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:307: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:308: error: unknown field 'msmio_camif_Reset2' specified in initializer
arch/arm/mach-msm/board-hero.c:308: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:308: warning: (near initialization for 'hero_s5k3e2fx_sensor_info')
arch/arm/mach-msm/board-hero.c:317: error: unknown field 'sensor_info' specified in initializer
arch/arm/mach-msm/board-hero.c:317: warning: excess elements in struct initializer
arch/arm/mach-msm/board-hero.c:317: warning: (near initialization for 'hero_s5k3e2fx_device_data')
arch/arm/mach-msm/board-hero.c:364: error: 'MICROP_PIN_CONFIG_GPO_PWM' undeclared here (not in a function)
arch/arm/mach-msm/board-hero.c:416: error: initializer element is not constant
arch/arm/mach-msm/board-hero.c:416: error: (near initialization for 'microp_pins_skuid_1[16].config')
arch/arm/mach-msm/board-hero.c:473: error: initializer element is not constant
arch/arm/mach-msm/board-hero.c:473: error: (near initialization for 'microp_pins_skuid_2[14].config')
arch/arm/mach-msm/board-hero.c:537: error: initializer element is not constant
arch/arm/mach-msm/board-hero.c:537: error: (near initialization for 'microp_pins_skuid_3[14].config')
arch/arm/mach-msm/board-hero.c:687: error: 'BMA150_I2C_NAME' undeclared here (not in a function)
arch/arm/mach-msm/board-hero.c:687: warning: missing braces around initializer
arch/arm/mach-msm/board-hero.c:687: warning: (near initialization for 'i2c_bma150.type')
arch/arm/mach-msm/board-hero.c:687: error: initializer element is not constant
arch/arm/mach-msm/board-hero.c:687: error: (near initialization for 'i2c_bma150.type[0]')
arch/arm/mach-msm/board-hero.c: In function 'hero_init':
arch/arm/mach-msm/board-hero.c:1245: warning: passing argument 3 of 'msm_serial_debug_init' from incompatible pointer type
arch/arm/mach-msm/board-hero.c:1192: note: expected 'const char *' but argument is of type 'struct device *'
Interesting. Hope this gets a bit further.
Abandoned.
Official 2.6.29 source release is near.
maxisma said:
Abandoned.
Official 2.6.29 source release is near.
Click to expand...
Click to collapse
Let's hope they release the sources too..
rom ahero 0.7 comes with 2.6.29 kernel...
pol18 said:
rom ahero 0.7 comes with 2.6.29 kernel...
Click to expand...
Click to collapse
maxisma said:
A request to all noobs: Please don't post here!
Click to expand...
Click to collapse
..........
inertiax3 said:
Let's hope they release the sources too..
Click to expand...
Click to collapse
The GPL licensing of the kernel forces them to do so.
maxisma said:
Abandoned.
Official 2.6.29 source release is near.
Click to expand...
Click to collapse
that was quick...
adwinp said:
The GPL licensing of the kernel forces them to do so.
Click to expand...
Click to collapse
yeah but that didn't stop them being slow first time round..
I wasn't going to say anything... but I couldn't resist.
I really don't see any real point in this at this stage. It's an astronomical amount of work, especially when, as you say, the official 2.1 release is literally around the corner.
nprussell said:
I wasn't going to say anything... but I couldn't resist.
I really don't see any real point in this at this stage. It's an astronomical amount of work, especially when, as you say, the official 2.1 release is literally around the corner.
Click to expand...
Click to collapse
Maybe not so close anymore

Can't compile original kernel

Hello and welcome,
I have a HTC wildfire, Kernel 2.6.29-something.
I downloaded the offical NDK and the offical kernel version from htcdev.
I set the path variable for CROSS_COMPILE and started doing a make.
There are tons of errors ...
The original kernel does not seem to compile - I may post some errors:
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
dnsdomainname: Name or service not known
CC drivers/i2c/chips/mt9t013.o
drivers/i2c/chips/mt9t013.c:33:28: error: mach/msm_iomap.h: No such file or directory
drivers/i2c/chips/mt9t013.c:34:32: error: mach/msm_rpcrouter.h: No such file or directory
drivers/i2c/chips/mt9t013.c:35:23: error: mach/vreg.h: No such file or directory
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_sensor_init':
drivers/i2c/chips/mt9t013.c:459: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:461: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:465: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:469: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:471: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:473: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:474: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:490: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:495: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:497: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:498: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_sensor_suspend':
drivers/i2c/chips/mt9t013.c:529: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_open':
drivers/i2c/chips/mt9t013.c:541: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_release':
drivers/i2c/chips/mt9t013.c:567: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_camif_pad_reg_reset':
drivers/i2c/chips/mt9t013.c:600: error: 'MSM_MDC_BASE' undeclared (first use in this function)
drivers/i2c/chips/mt9t013.c:600: error: (Each undeclared identifier is reported only once
drivers/i2c/chips/mt9t013.c:600: error: for each function it appears in.)
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_ioctl':
drivers/i2c/chips/mt9t013.c:689: error: 'MSM_MDC_BASE' undeclared (first use in this function)
drivers/i2c/chips/mt9t013.c:709: error: 'MSM_CLK_CTL_BASE' undeclared (first use in this function)
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_lens_power':
drivers/i2c/chips/mt9t013.c:821: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:823: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:825: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:826: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_remove':
drivers/i2c/chips/mt9t013.c:1301: warning: 'i2c_detach_client' is deprecated (declared at include/linux/i2c.h:435)
drivers/i2c/chips/mt9t013.c: At top level:
drivers/i2c/chips/mt9t013.c:1322: warning: 'struct platform_device' declared inside parameter list
drivers/i2c/chips/mt9t013.c:1322: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_plat_probe':
drivers/i2c/chips/mt9t013.c:1326: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c:1329: error: dereferencing pointer to incomplete type
drivers/i2c/chips/mt9t013.c: At top level:
drivers/i2c/chips/mt9t013.c:1335: error: variable 'mt9t013_plat_driver' has initializer but incomplete type
drivers/i2c/chips/mt9t013.c:1336: error: unknown field 'probe' specified in initializer
drivers/i2c/chips/mt9t013.c:1336: warning: excess elements in struct initializer
drivers/i2c/chips/mt9t013.c:1336: warning: (near initialization for 'mt9t013_plat_driver')
drivers/i2c/chips/mt9t013.c:1337: error: unknown field 'driver' specified in initializer
drivers/i2c/chips/mt9t013.c:1337: error: extra brace group at end of initializer
drivers/i2c/chips/mt9t013.c:1337: error: (near initialization for 'mt9t013_plat_driver')
drivers/i2c/chips/mt9t013.c:1340: warning: excess elements in struct initializer
drivers/i2c/chips/mt9t013.c:1340: warning: (near initialization for 'mt9t013_plat_driver')
drivers/i2c/chips/mt9t013.c: In function 'mt9t013_init':
drivers/i2c/chips/mt9t013.c:1345: error: implicit declaration of function 'platform_driver_register'
make[3]: *** [drivers/i2c/chips/mt9t013.o] Error 1
make[2]: *** [drivers/i2c/chips] Error 2
make[1]: *** [drivers/i2c] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Could someone please tell me how to get this kernel to work?
To be honest I only need the kernel to be compiled, so that my C-module can get compiled for this kernel.
Thanks for your help.
Kind regards
post this thing to androidstack website. may be there u can get better answers.
Sent from my HTC Wildfire using xda app-developers app
make 100% sure you have installed all the files needed to compile kernels. Look at a few kernel compiling guides and install everything.
Otherwise try a different cross compiler, such as GCC 4.4.3 as this is the safest option

Need help compiling kernel

So I am brand new at all of this and figured I would toy around with this older phone to see what I can learn. I am using directions from this link:
"htcevohacks.com/htc-evo-hacks/how-to-build-your-own-htc-evo-4g-android-kernel/"
I'm trying to make a custom kernel so I can put ubuntu on my phone following the directions from these two links:
"htcevohacks.com/htc-evo-hacks/ubuntu-evo-4g/"
"nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-android/"
So while trying to compile on step 13 off the first link this is what I get when I use the command "make":
:/kernel# make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
<stdin>:1097: warning: #warning syscall fadvise64 not implemented
<stdin>:1265: warning: #warning syscall migrate_pages not implemented
<stdin>:1321: warning: #warning syscall pselect6 not implemented
<stdin>:1325: warning: #warning syscall ppoll not implemented
<stdin>:1365: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
CC arch/arm/mach-msm/devices.o
arch/arm/mach-msm/devices.c:391: error: variable 'android_usb_pdata' has initializer but incomplete type
arch/arm/mach-msm/devices.c:392: error: unknown field 'vendor_id' specified in initializer
arch/arm/mach-msm/devices.c:392: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:392: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:393: error: unknown field 'product_id' specified in initializer
arch/arm/mach-msm/devices.c:393: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:393: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:394: error: unknown field 'adb_product_id' specified in initializer
arch/arm/mach-msm/devices.c:394: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:394: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:395: error: unknown field 'version' specified in initializer
arch/arm/mach-msm/devices.c:395: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:395: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:396: error: unknown field 'product_name' specified in initializer
arch/arm/mach-msm/devices.c:396: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:396: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:397: error: unknown field 'manufacturer_name' specified in initializer
arch/arm/mach-msm/devices.c:397: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:397: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:398: error: unknown field 'nluns' specified in initializer
arch/arm/mach-msm/devices.c:398: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:398: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c: In function 'msm_set_ums_device_id':
arch/arm/mach-msm/devices.c:452: error: 'usb_mass_storage_device' undeclared (first use in this function)
arch/arm/mach-msm/devices.c:452: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/devices.c:452: error: for each function it appears in.)
arch/arm/mach-msm/devices.c: In function 'msm_enable_car_kit_detect':
arch/arm/mach-msm/devices.c:463: error: 'struct msm_hsusb_platform_data' has no member named 'enable_car_kit_detect'
arch/arm/mach-msm/devices.c: In function 'msm_init_ums_lun':
arch/arm/mach-msm/devices.c:469: error: 'mass_storage_pdata' undeclared (first use in this function)
arch/arm/mach-msm/devices.c: In function 'msm_add_usb_id_pin_gpio':
arch/arm/mach-msm/devices.c:486: error: 'struct msm_hsusb_platform_data' has no member named 'usb_id_pin_gpio'
arch/arm/mach-msm/devices.c: At top level:
arch/arm/mach-msm/devices.c:490: warning: 'struct msm_hsusb_product' declared inside parameter list
arch/arm/mach-msm/devices.c:490: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/mach-msm/devices.c: In function 'msm_hsusb_set_product':
arch/arm/mach-msm/devices.c:491: error: 'struct msm_hsusb_platform_data' has no member named 'products'
arch/arm/mach-msm/devices.c:492: error: 'struct msm_hsusb_platform_data' has no member named 'num_products'
arch/arm/mach-msm/devices.c: In function 'board_serialno_setup':
arch/arm/mach-msm/devices.c:1159: error: invalid use of undefined type 'struct android_usb_platform_data'
make[1]: *** [arch/arm/mach-msm/devices.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Click to expand...
Click to collapse
Like I said, I'm new to this so I don't really know what any of that means. The lines should be all correct but I did have to separate them manually after copying it. I'm using Lubuntu and my phone is running CyanogenMod 7
yep
So, I also am having this problem... does anyone have an answer? My issue is exactly the same, and I tried it a second time with the same results, even though I tried different options prior to it starting to compile. Or does anyone have a ready made kernel for this that they would be willing to post?
thanks

Need help for fixing these errors occurred during compiling cm 14

I am compiling cm 14 for core prime ve 3g (sm-g361h).
i am getting these error after executing mka bacon command (i have skipped all log above errors). I am building rom from source first time so i ain't got any clue what this error says (maybe a little bit but that ain't helping).
Code:
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:276: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:314: error: method processSolicited in class RIL cannot be applied to given types;
return super.processSolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:366: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:422: error: method processUnsolicited in class RIL cannot be applied to given types;
super.processUnsolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
[ 3% 1018/28725] host C++: libLLVMCor...2 <= external/llvm/lib/IR/Function.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/hamza/cm14'
#### make failed to build some targets (27:37 (mm:ss)) ####
bump

trouble building kernel

Closed per OP request
So i need to build a modified kernel to patch the usb host driver to hack a nintendo switch.
the patch is here
ive tried 2 kernel sources, here and here
and both are giving the same errors
Code:
CC arch/arm64/kernel/setup.o
arch/arm64/kernel/setup.c: In function 'c_show':
arch/arm64/kernel/setup.c:643:38: error: 'system_rev' undeclared (first use in this function)
seq_printf(m, "Revision\t: %04x\n", system_rev);
^
arch/arm64/kernel/setup.c:643:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm64/kernel/setup.c:645:4: error: 'system_serial_high' undeclared (first use in this function)
system_serial_high, system_serial_low);
^
arch/arm64/kernel/setup.c:645:24: error: 'system_serial_low' undeclared (first use in this function)
system_serial_high, system_serial_low);
^
scripts/Makefile.build:257: recipe for target 'arch/arm64/kernel/setup.o' failed
make[1]: *** [arch/arm64/kernel/setup.o] Error 1
Makefile:964: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
the variables i set are:
Code:
$echo $CROSS_COMPILE
/home/xxxx/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-
$echo $ARCH
arm64
for a config i used
Code:
arch/arm64/configs/msm8937_defconfig
set all "NEW" options to defaults. its my first kernel build, i have no idea what most of it is /shrug
if anyone can give me some tips or a .config that works, would be very much appreciated. i havent had any luck googling the errors yet

Categories

Resources