• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [ALPHA] ICS for Optimus M (NOW COMPILED AND BOOTING)

got it fixed.. after hours of toil.. stupid X server wasnt updating my xorg.conf file.. finally.. lol

hows your kernel project coming? anything new?
 
So I think I found out how stuff has to be added. You have to add it in the ICS source yourself. Just putting files in the device make and have it be called doesn't work. For some reason. '\
 
what id like to know is why nothing that i have compiled on 10.04 will boot.. the first completed compile on VM in 11.10 with a crap ton of workarounds booted first time it completed.. im using the same files.. only files that arent the same are the files i didnt have to edit for gcc incompatability... im about to copy my entire source directory from vmware and see if it boots...

UPDATE: ok this one did boot, took the better part of 20 minutes, but it did boot, unfortionately it has less functionality then the first compile, the screen flickers, touch doesnt work at all from what i can tell.. first build booted in a few minutes just like any other fresh flash..
also see alot of goldfish libs in my out folder that i didnt see before.. almost like ghost.riders problem with things not being added.. very strange..
 
Yea i went into frameworks and added the idc file just to see if it would get added to the source out folder. and guess what it was added. :\
 
I cant believe the optimus m has come this far!! ICS? If beta comes out, I might need to downgrade mine & switch back to my lg since not much is goin on in Admire land lol
 
Need someone that knows how to config kernel drivers for the touchscreen so it use pressure. i am not a expertise in that field so i am really not much of a help. if someone knows how to config it. please do so. so we can get further on making this work for our optimus M... :)
 
I cant believe the optimus m has come this far!! ICS? If beta comes out, I might need to downgrade mine & switch back to my lg since not much is goin on in Admire land lol

Yeah, I switched from my Admire back to my Optimus M, too. xD although I think someone is working on CM7 for the Admire.. Maybe we'll just have to wait and see. :p
 
Need someone that knows how to config kernel drivers for the touchscreen so it use pressure. i am not a expertise in that field so i am really not much of a help. if someone knows how to config it. please do so. so we can get further on making this work for our optimus M... :)


What's new on this since the first rom post? If you dont mind me asking that is :D
 
What's new on this since the first rom post? If you dont mind me asking that is :D

not much.. we have been working on getting the screen to work, which will require updating the drivers in the kernel to meet the current requirements of ICS. we have tried many fixes, none of which have worked, and some have made things worse. google has made various kernel source available to the public, which has been updated, and we can hope includes updated drivers for various hardware, but unfortunately, nobody can get the kernel source to unpack, at least for the kernel we want.. so as it is, its either wait and continue trying to get the kernel source to sync correctly, or re-write our own drivers. i have tried the latter, unfortunately, i have had no success in that endeavor, and since switching from a VirtualBox to dual booting Ubuntu, i have yet to compile a ROM that that is as stable as the first one i compiled.. so i am currently moving my previous source to the new machine, may be some file that i have forgotten about that im missing, im not sure, this will be much easier when i can find the time to setup my github and fork everything correctly. anyway we thank you for your patience, and are working as much as we can on getting this working.
 
@reppard, ghostrider

just found this, everything looks to be coded correctly, going to pull it and try to compile our kernel with it. all calls have been changed to meet the new kernel standards.

https://github.com/CyanogenMod/lge-...drivers/input/touchscreen/synaptics_i2c_rmi.c

the headers are different, i may just pull that whole kernel and try to compile it with our config, restoring my phone to the stock rom and pulling a config from the kernel, funky sentence, but i was making up my mind as i was typing.. lol yeah.. so im gonna get started on this, its the new lg kernel source, have to check and see if any patches are going to be required for this.. cross your fingers.
 
ok.. i have configured the kernel for our phone, but somewhere it is still calling cosmo drivers.. i have to track down where its being called.. as im sure things have been edited int his kernel.. but here is the error im getting

Code:
LD      drivers/cosmo/charger/built-in.o
  LD      drivers/cosmo/fuel_gauge/built-in.o
  CC      drivers/cosmo/misc/vibrator.o
drivers/cosmo/misc/vibrator.c:25:26: error: plat/dmtimer.h: No such file or directory
drivers/cosmo/misc/vibrator.c:27:27: error: mach/vibrator.h: No such file or directory
drivers/cosmo/misc/vibrator.c: In function 'set_gptimer_pwm_vibrator':
drivers/cosmo/misc/vibrator.c:82: error: implicit declaration of function 'omap_dm_timer_enable'
drivers/cosmo/misc/vibrator.c:83: error: implicit declaration of function 'omap_dm_timer_set_match'
drivers/cosmo/misc/vibrator.c:84: error: implicit declaration of function 'omap_dm_timer_set_pwm'
drivers/cosmo/misc/vibrator.c:84: error: 'OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE' undeclared (first use in this function)
drivers/cosmo/misc/vibrator.c:84: error: (Each undeclared identifier is reported only once
drivers/cosmo/misc/vibrator.c:84: error: for each function it appears in.)
drivers/cosmo/misc/vibrator.c:85: error: implicit declaration of function 'omap_dm_timer_set_load_start'
drivers/cosmo/misc/vibrator.c:90: error: implicit declaration of function 'omap_dm_timer_stop'
drivers/cosmo/misc/vibrator.c:91: error: implicit declaration of function 'omap_dm_timer_disable'
drivers/cosmo/misc/vibrator.c: In function 'vibrator_probe':
drivers/cosmo/misc/vibrator.c:180: error: implicit declaration of function 'omap_dm_timer_request_specific'
drivers/cosmo/misc/vibrator.c:180: warning: assignment makes pointer from integer without a cast
drivers/cosmo/misc/vibrator.c:189: error: implicit declaration of function 'omap_dm_timer_set_source'
drivers/cosmo/misc/vibrator.c:189: error: 'OMAP_TIMER_SRC_SYS_CLK' undeclared (first use in this function)
drivers/cosmo/misc/vibrator.c:197: error: dereferencing pointer to incomplete type
drivers/cosmo/misc/vibrator.c:198: error: dereferencing pointer to incomplete type
drivers/cosmo/misc/vibrator.c:210: error: dereferencing pointer to incomplete type
drivers/cosmo/misc/vibrator.c: In function 'vibrator_remove':
drivers/cosmo/misc/vibrator.c:231: error: dereferencing pointer to incomplete type
drivers/cosmo/misc/vibrator.c:232: error: dereferencing pointer to incomplete type
drivers/cosmo/misc/vibrator.c: At top level:
drivers/cosmo/misc/vibrator.c:247: error: 'VIB_PWM_NAME' undeclared here (not in a function)
make[3]: *** [drivers/cosmo/misc/vibrator.o] Error 1
make[2]: *** [drivers/cosmo/misc] Error 2
make[1]: *** [drivers/cosmo] Error 2
make: *** [drivers] Error 2

its calling cosmo drivers.. i think if we can get past this this just may work.. im headed to bed for the night.. but will pick this back up int he morning. in the meantime if anyone else wants to give this a shot, thanx lol see yall in the morn
 
past those errors.. have a new error.. working it out.. this thing is so close to a compile.. lol.. the cosmo vibrate driver is being called by our config, i removed the call for it.. we'll get the vibrate working later.. im getting as misc driver error now.. im going through the code trying to sort it out now.
 
ok.. this all relates to the vibrate actuator from what i can see.. its also device specific, and its not for our device..
if defined(CONFIG_MACH_LGE_COSMO_REV_A) || defined(CONFIG_MACH_LGE_COSMO_REV_B) || defined(CONFIG_MACH_LGE_COSMO_REV_C)

these driver files are also not present in the stock kernel for our phone, and im using the config for our phone, so im not sure why they are being called, the errors are all omap related, and we are using msm, another confusion.. but here is the error im trying to work around.. i have yet to track down where these drivers are being called to even be included..
CC drivers/misc/tspdrv/tspdrv.o
In file included from drivers/misc/tspdrv/tspdrv.c:46:
drivers/misc/tspdrv/ImmVibeSPI.c:68:1: warning: "PWM_DUTY_MAX" redefined
drivers/misc/tspdrv/ImmVibeSPI.c:47:1: warning: this is the location of the previous definition
In file included from drivers/misc/tspdrv/tspdrv.c:46:
drivers/misc/tspdrv/ImmVibeSPI.c: In function 'vib_generatePWM':
drivers/misc/tspdrv/ImmVibeSPI.c:105: error: implicit declaration of function 'omap_dm_timer_enable'
drivers/misc/tspdrv/ImmVibeSPI.c:106: error: implicit declaration of function 'omap_dm_timer_set_match'
drivers/misc/tspdrv/ImmVibeSPI.c:107: error: implicit declaration of function 'omap_dm_timer_set_pwm'
drivers/misc/tspdrv/ImmVibeSPI.c:107: error: 'OMAP_TIMER_TRIGGER_OVERFLOW_AND_COMPARE' undeclared (first use in this function)
drivers/misc/tspdrv/ImmVibeSPI.c:107: error: (Each undeclared identifier is reported only once
drivers/misc/tspdrv/ImmVibeSPI.c:107: error: for each function it appears in.)
drivers/misc/tspdrv/ImmVibeSPI.c:108: error: implicit declaration of function 'omap_dm_timer_set_load_start'
drivers/misc/tspdrv/ImmVibeSPI.c:117: error: implicit declaration of function 'omap_dm_timer_stop'
drivers/misc/tspdrv/ImmVibeSPI.c:118: error: implicit declaration of function 'omap_dm_timer_disable'
drivers/misc/tspdrv/ImmVibeSPI.c: In function 'ImmVibeSPI_ForceOut_Initialize':
drivers/misc/tspdrv/ImmVibeSPI.c:177: error: implicit declaration of function 'omap_dm_timer_request_specific'
drivers/misc/tspdrv/ImmVibeSPI.c:177: warning: assignment makes pointer from integer without a cast
drivers/misc/tspdrv/ImmVibeSPI.c:182: error: implicit declaration of function 'omap_dm_timer_set_source'
drivers/misc/tspdrv/ImmVibeSPI.c:182: error: 'OMAP_TIMER_SRC_SYS_CLK' undeclared (first use in this function)
In file included from drivers/misc/tspdrv/tspdrv.c:46:
drivers/misc/tspdrv/ImmVibeSPI.c: In function 'ImmVibeSPI_ForceOut_SetSamples':
drivers/misc/tspdrv/ImmVibeSPI.c:255: error: implicit declaration of function 'omap_dm_timer_start'
drivers/misc/tspdrv/ImmVibeSPI.c:211: warning: unused variable 'tmp'
make[3]: *** [drivers/misc/tspdrv/tspdrv.o] Error 1
make[2]: *** [drivers/misc/tspdrv] Error 2
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
 
new plan of attack.. going to try to compile new drivers with existing kernel source

EDIT:
added drivers to our kernel source.. had a few warning when compiling it.. but made it past and its still going.. just might make it to the end.. hopefully it does.. then time to pack it and flash it

got an error,, at what i hope is the end..

LD .tmp_vmlinux1
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: arch/arm/mach-msm/built-in.o: in function mtc_send_key_log_data:tlmm-msm7200a.c(.text+0x3fdd4): error: undefined reference to 'max_x'
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: arch/arm/mach-msm/built-in.o: in function mtc_send_key_log_data:tlmm-msm7200a.c(.text+0x3fdd8): error: undefined reference to 'max_y'
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: drivers/built-in.o: in function SynaDoReflash:lowmemorykiller.c(.text+0x88134): error: undefined reference to 'is_need_forced_update'
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: drivers/built-in.o: in function SynaDoReflash:lowmemorykiller.c(.text+0x8813c): error: undefined reference to 'is_fw_reflash'
make: *** [.tmp_vmlinux1] Error 1
 
new plan of attack.. going to try to compile new drivers with existing kernel source

EDIT:
added drivers to our kernel source.. had a few warning when compiling it.. but made it past and its still going.. just might make it to the end.. hopefully it does.. then time to pack it and flash it

got an error,, at what i hope is the end..

There are a few things missing from that driver that our lge board source needs....still noodling this one over in the ol brain.
 
I can't hit the thanks button enough for what you guys are doing. Really great job. I admire your dedication because honestly I would have put a few bullets through my monitor by now lol
 
There are a few things missing from that driver that our lge board source needs....still noodling this one over in the ol brain.

yeah i noticed that the error i have is coming from the new driver.. im digging around in the cosmo kernel source trying to find where those 4 things are being defined, once i have that figured out i think it will work
 
just tried something probably not going to wok.. lol.. changed the define from uint16_t to int.. max x and max y are being defined in the driver file.. in the section of code where they are used..

uint16_t max_x, max_y;
 
Code:
CC      drivers/input/touchscreen/synaptics_reflash.o
In file included from drivers/input/touchscreen/synaptics_reflash.c:22:
drivers/input/touchscreen/synaptics_abstractionlayer.h:52: warning: function declaration isn't a prototype
In file included from drivers/input/touchscreen/synaptics_reflash.c:23:
drivers/input/touchscreen/synaptics_firmwareimage.h:1814: warning: large integer implicitly truncated to unsigned type
In file included from drivers/input/touchscreen/synaptics_reflash.c:24:
drivers/input/touchscreen/synaptics_reflash.h:15: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:16: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:17: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:18: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:19: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:21: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:23: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:24: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:26: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:27: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.h:30: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:80: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:91: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c: In function 'SynaReadFirmwareInfo':
drivers/input/touchscreen/synaptics_reflash.c:103: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
drivers/input/touchscreen/synaptics_reflash.c: At top level:
drivers/input/touchscreen/synaptics_reflash.c:108: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c: In function 'SynaReadConfigInfo':
drivers/input/touchscreen/synaptics_reflash.c:120: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
drivers/input/touchscreen/synaptics_reflash.c: At top level:
drivers/input/touchscreen/synaptics_reflash.c:124: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:142: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c: In function 'RMI4WaitATTN':
drivers/input/touchscreen/synaptics_reflash.c:211: warning: unused variable 'm_ret'
drivers/input/touchscreen/synaptics_reflash.c: At top level:
drivers/input/touchscreen/synaptics_reflash.c:314: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:326: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:338: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:421: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:426: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:431: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:509:1: warning: "/*" within comment
drivers/input/touchscreen/synaptics_reflash.c:511: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c: In function 'SynaFlashFirmwareWrite':
drivers/input/touchscreen/synaptics_reflash.c:517: warning: unused variable 'i'
drivers/input/touchscreen/synaptics_reflash.c:515: warning: unused variable 'temp'
drivers/input/touchscreen/synaptics_reflash.c: At top level:
drivers/input/touchscreen/synaptics_reflash.c:561: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c:586: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_reflash.c: In function 'SynaProgramConfiguration':
drivers/input/touchscreen/synaptics_reflash.c:591: warning: unused variable 'i'
drivers/input/touchscreen/synaptics_reflash.c:590: warning: unused variable 'temp'
drivers/input/touchscreen/synaptics_reflash.c: At top level:
drivers/input/touchscreen/synaptics_reflash.c:634: warning: function declaration isn't a prototype
  CC      drivers/input/touchscreen/synaptics_abstractionlayer.o
In file included from drivers/input/touchscreen/synaptics_abstractionlayer.c:1:
drivers/input/touchscreen/synaptics_abstractionlayer.h:52: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_abstractionlayer.c:17: warning: function declaration isn't a prototype
drivers/input/touchscreen/synaptics_abstractionlayer.c: In function 'SynaI2CClientInit':
drivers/input/touchscreen/synaptics_abstractionlayer.c:128: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct i2c_client *'
  CC      drivers/input/touchscreen/mcs6000_ts.o
drivers/input/touchscreen/mcs6000_ts.c: In function 'mcs6000_ts_probe':
drivers/input/touchscreen/mcs6000_ts.c:710: warning: unused variable 'hw_ver'
drivers/input/touchscreen/mcs6000_ts.c:710: warning: unused variable 'fw_ver'
there is a slight issue.. the file i am getting these warnings on.. doesnt exist int he cosmo source

Code:
CC      drivers/video/msm/mddi_hitachi_hvga.o
drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_vsync_detected':
drivers/video/msm/mddi_hitachi_hvga.c:455: warning: unused variable 'num_vsyncs'
drivers/video/msm/mddi_hitachi_hvga.c:454: warning: unused variable 'elapsed_us'
drivers/video/msm/mddi_hitachi_hvga.c:453: warning: unused variable 'now'
drivers/video/msm/mddi_hitachi_hvga.c:450: warning: unused variable 'first_time'
drivers/video/msm/mddi_hitachi_hvga.c:449: warning: unused variable 'start_time'
drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_init':
drivers/video/msm/mddi_hitachi_hvga.c:731: warning: ISO C90 forbids mixed declarations and code
drivers/video/msm/mddi_hitachi_hvga.c: At top level:
drivers/video/msm/mddi_hitachi_hvga.c:36: warning: 'mddi_hitachi_curr_vpos' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:37: warning: 'mddi_hitachi_monitor_refresh_value' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:38: warning: 'mddi_hitachi_report_refresh_measurements' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:48: warning: 'mddi_hitachi_usecs_per_refresh' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:107: warning: 'mddi_hitachi_display_on_1st' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:133: warning: 'mddi_hitachi_display_off' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:152: warning: 'mddi_hitachi_initialize_1st' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:303: warning: 'mddi_hitachi_initialize_3rd_p500' defined but not used
drivers/video/msm/mddi_hitachi_hvga.c:384: warning: 'compare_table' defined but not used
  CC      drivers/video/msm/mddi_novatek_hvga.o
drivers/video/msm/mddi_novatek_hvga.c: In function 'mddi_novatek_lcd_vsync_detected':
drivers/video/msm/mddi_novatek_hvga.c:1022: warning: unused variable 'num_vsyncs'
drivers/video/msm/mddi_novatek_hvga.c:1021: warning: unused variable 'elapsed_us'
drivers/video/msm/mddi_novatek_hvga.c:1020: warning: unused variable 'now'
drivers/video/msm/mddi_novatek_hvga.c:1017: warning: unused variable 'first_time'
drivers/video/msm/mddi_novatek_hvga.c:1016: warning: unused variable 'start_time'
drivers/video/msm/mddi_novatek_hvga.c: At top level:
drivers/video/msm/mddi_novatek_hvga.c:1172: warning: initialization from incompatible pointer type
drivers/video/msm/mddi_novatek_hvga.c:1172: warning: initialization from incompatible pointer type
drivers/video/msm/mddi_novatek_hvga.c: In function 'mddi_novatek_lcd_init':
drivers/video/msm/mddi_novatek_hvga.c:1236: warning: ISO C90 forbids mixed declarations and code
drivers/video/msm/mddi_novatek_hvga.c: At top level:
drivers/video/msm/mddi_novatek_hvga.c:61: warning: 'mddi_novatek_curr_vpos' defined but not used
drivers/video/msm/mddi_novatek_hvga.c:62: warning: 'mddi_novatek_monitor_refresh_value' defined but not used
drivers/video/msm/mddi_novatek_hvga.c:63: warning: 'mddi_novatek_report_refresh_measurements' defined but not used
drivers/video/msm/mddi_novatek_hvga.c:73: warning: 'mddi_novatek_usecs_per_refresh' defined but not used
drivers/video/msm/mddi_novatek_hvga.c:131: warning: 'mddi_novatek_display_on' defined but not used
drivers/video/msm/mddi_novatek_hvga.c:151: warning: 'mddi_novatek_display_off' defined but not used
drivers/video/msm/mddi_novatek_hvga.c:953: warning: 'compare_table' defined but not used
  LD      drivers/video/msm/built-in.o
also why is it calling 2 screens? that was the 2 differant model of the phone right?

andheres the last.. still get the same error, even changing uint16_t to int

Code:
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: arch/arm/mach-msm/built-in.o: in function mtc_send_key_log_data:tlmm-msm7200a.c(.text+0x3fdd4): error: undefined reference to 'max_x'
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: arch/arm/mach-msm/built-in.o: in function mtc_send_key_log_data:tlmm-msm7200a.c(.text+0x3fdd8): error: undefined reference to 'max_y'
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: drivers/built-in.o: in function SynaDoReflash:lowmemorykiller.c(.text+0x88134): error: undefined reference to 'is_need_forced_update'
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: drivers/built-in.o: in function SynaDoReflash:lowmemorykiller.c(.text+0x8813c): error: undefined reference to 'is_fw_reflash'
make: *** [.tmp_vmlinux1] Error 1
 
the kgonfig and makefile are differant.. i copied them over.. got a few more options.. might need to tweak them.. but its a start i think the cosmo uses the same screen as us.. if not i think its similar.. the makefile had 5 differant options for synaptics i2c toushscreen
 
ok.. i copied the kconfig, makefile synaptics_i2c_rmi.c, synaptics_ts_firmare.h, synaptics_ts_firmware_rev_c.h from the cosmo driver/input/touchscreen directory to our kernel, and the synaptics_i2c_rmi.h file from cosmo to our kernel in /includes/linux, have to add int use_irq to the file, i made it through the driver section without any warnings at all, went right through, i am however still getting the max x and max y error, but i am not getting the other 2 errors anymore.. so close...

Code:
  CC      drivers/input/sensor/ami304.o
  LD      drivers/input/sensor/built-in.o
  CC      drivers/input/touchscreen/synaptics_i2c_rmi.o
  LD      drivers/input/touchscreen/built-in.o
  CC      drivers/input/keyreset.o
  LD      drivers/input/built-in.o
  CC      drivers/leds/led-core.o
  CC      drivers/leds/led-class.o

/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: arch/arm/mach-msm/built-in.o: in function mtc_send_key_log_data:tlmm-msm7200a.c(.text+0x3fdd4): error: undefined reference to 'max_x'
/home/tripdoc/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-ld: arch/arm/mach-msm/built-in.o: in function mtc_send_key_log_data:tlmm-msm7200a.c(.text+0x3fdd8): error: undefined reference to 'max_y'
make: *** [.tmp_vmlinux1] Error 1

max x and y errors is coming from from something in the arch/arm/mach-msm/lge folder i think

Code:
  CC      arch/arm/mach-msm/lge/lge_handle_panic.o
arch/arm/mach-msm/lge/lge_handle_panic.c: In function 'display_panic_reason':
arch/arm/mach-msm/lge/lge_handle_panic.c:231: warning: comparison between pointer and integer
  CC      arch/arm/mach-msm/lge/lge_proc_comm.o
  CC      arch/arm/mach-msm/lge/LG_rapi_client.o
arch/arm/mach-msm/lge/LG_rapi_client.c:62: warning: type defaults to 'int' in declaration of 'boot_info'
arch/arm/mach-msm/lge/LG_rapi_client.c: In function 'msm_chg_LG_cable_type':
arch/arm/mach-msm/lge/LG_rapi_client.c:94: warning: ISO C90 forbids mixed declarations and code
  CC      arch/arm/mach-msm/lge/lge_mtd_direct_access.o
arch/arm/mach-msm/lge/lge_mtd_direct_access.c:96: warning: initialization from incompatible pointer type
arch/arm/mach-msm/lge/lge_mtd_direct_access.c:106: warning: initialization from incompatible pointer type
arch/arm/mach-msm/lge/lge_mtd_direct_access.c:133: warning: initialization from incompatible pointer type
arch/arm/mach-msm/lge/lge_mtd_direct_access.c:230: warning: initialization from incompatible pointer type
  CC      arch/arm/mach-msm/lge/lg_diag_testmode.o
arch/arm/mach-msm/lge/lg_diag_testmode.c: In function 'LGF_TestModeBlueTooth_RW':
arch/arm/mach-msm/lge/lg_diag_testmode.c:182: warning: passing argument 3 of 'update_diagcmd_state' makes integer from pointer without a cast
arch/arm/mach-msm/lge/lg_fw_diag_communication.h:28: note: expected 'int' but argument is of type 'byte *'
arch/arm/mach-msm/lge/lg_diag_testmode.c:202: warning: format '%d' expects type 'int', but argument 4 has type 'byte *'
  CC      arch/arm/mach-msm/lge/lg_fw_diag_class.o
  CC      arch/arm/mach-msm/lge/lg_fw_diag_communication.o
  CC      arch/arm/mach-msm/lge/lg_diag_event_log.o
  CC      arch/arm/mach-msm/lge/lg_diag_keypress.o
arch/arm/mach-msm/lge/lg_diag_keypress.c:67: warning: excess elements in array initializer
arch/arm/mach-msm/lge/lg_diag_keypress.c:67: warning: (near initialization for 'keytrans_table')
arch/arm/mach-msm/lge/lg_diag_keypress.c:68: warning: excess elements in array initializer
arch/arm/mach-msm/lge/lg_diag_keypress.c:68: warning: (near initialization for 'keytrans_table')
arch/arm/mach-msm/lge/lg_diag_keypress.c:69: warning: excess elements in array initializer
arch/arm/mach-msm/lge/lg_diag_keypress.c:69: warning: (near initialization for 'keytrans_table')
  CC      arch/arm/mach-msm/lge/lg_diag_screen_shot.o
  CC      arch/arm/mach-msm/lge/lg_diag_udm.o
  CC      arch/arm/mach-msm/lge/lg_fw_diag_mtc.o
  CC      arch/arm/mach-msm/lge/lg_diag_wifi.o
  CC      arch/arm/mach-msm/lge/lg_pcb_version.o
  CC      arch/arm/mach-msm/lge/board-thunderc.o
  CC      arch/arm/mach-msm/lge/board-thunderc-mmc.o
  CC      arch/arm/mach-msm/lge/board-thunderc-snd.o
  CC      arch/arm/mach-msm/lge/board-thunderc-panel.o
  CC      arch/arm/mach-msm/lge/board-thunderc-bt.o
  CC      arch/arm/mach-msm/lge/board-thunderc-camera.o
  CC      arch/arm/mach-msm/lge/board-thunderc-input.o
arch/arm/mach-msm/lge/board-thunderc-input.c: In function 'ts_set_vreg':
arch/arm/mach-msm/lge/board-thunderc-input.c:206: warning: unused variable 'rc'
arch/arm/mach-msm/lge/board-thunderc-input.c: At top level:
arch/arm/mach-msm/lge/board-thunderc-input.c:250: warning: initialization from incompatible pointer type
  CC      arch/arm/mach-msm/lge/board-thunderc-misc.o
arch/arm/mach-msm/lge/board-thunderc-misc.c:465: warning: 'thunderc_hs_mic_bias_power' defined but not used
  CC      arch/arm/mach-msm/lge/board-thunderc-pm.o
  CC      arch/arm/mach-msm/lge/lge_flight_mode.o
arch/arm/mach-msm/lge/lge_flight_mode.c: In function 'lge_tempdevice_probe':
arch/arm/mach-msm/lge/lge_flight_mode.c:81: warning: no return statement in function returning non-void
  CC      arch/arm/mach-msm/lge/devices_lge.o
 
Back
Top Bottom