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
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
Hi all,
I'm kind of a newbie in building rom's and while my pc was building my first rom for my lg p350 I had this error message:
Code:
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:39: error: Resource does not already exist in overlay at 'config_tether_upstream_regexs'; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:40: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:41: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:105: error: Resource at config_enableScreenOnAnimation appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:108: error: Resource at config_enableScreenOffAnimation appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:111: error: Resource at config_networkLocationProvider appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:114: error: Resource at config_geocodeProvider appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/home/simon/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/home/simon/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
I hope someone can help me...
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
I'm trying to update the f2fs driver for the d852 and cannot get it to compile. I'm new to compiling ROMs so I'm hoping it's something simple. Without these changes I can get lineage to compile with no problems. I have been doing it for a week or so with no issues.
I'm taking https://kernel.googlesource.com/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable/fs/f2fs/* and putting it in kernel/lge/g3/fs/f2fs. I am using the 3.4.y branch from jaedeuk's git. According to my phone currently running lineage, it's using the 3.4.0 kernel.
I get these errors when trying to build lineage for my d852:
Code:
CC fs/ext4/ialloc.o
CC security/keys/process_keys.o
CC fs/ext4/inode.o
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:51:50: error: 'S_SHIFT' undeclared here (not in a function)
static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = {
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:52:2: error: array index in initializer not of integer type
[S_IFREG >> S_SHIFT] = F2FS_FT_REG_FILE,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:52:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:53:2: error: array index in initializer not of integer type
[S_IFDIR >> S_SHIFT] = F2FS_FT_DIR,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:53:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:54:2: error: array index in initializer not of integer type
[S_IFCHR >> S_SHIFT] = F2FS_FT_CHRDEV,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:54:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:55:2: error: array index in initializer not of integer type
[S_IFBLK >> S_SHIFT] = F2FS_FT_BLKDEV,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:55:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:56:2: error: array index in initializer not of integer type
[S_IFIFO >> S_SHIFT] = F2FS_FT_FIFO,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:56:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:57:2: error: array index in initializer not of integer type
[S_IFSOCK >> S_SHIFT] = F2FS_FT_SOCK,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:57:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:58:2: error: array index in initializer not of integer type
[S_IFLNK >> S_SHIFT] = F2FS_FT_SYMLINK,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:58:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:51:22: warning: 'f2fs_type_by_mode' defined but not used [-Wunused-variable]
error, forbidden warning: dir.c:51
/root/android/system/kernel/lge/g3/scripts/Makefile.build:307: recipe for target 'fs/f2fs/dir.o' failed
make[3]: *** [fs/f2fs/dir.o] Error 1
/root/android/system/kernel/lge/g3/scripts/Makefile.build:443: recipe for target 'fs/f2fs' failed
make[2]: *** [fs/f2fs] Error 2
make[2]: *** Waiting for unfinished jobs....
Figured it out. Forgot to copy the new include/linux/f2fs_fs.h which defines S_SHIFT.