Need help compiling kernel

Search This thread

Im_a_RHEL_boy

New member
Jan 11, 2014
1
0
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

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
 
Last edited:

jeeper74

Member
Sep 8, 2012
5
1
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