
Originariamente inviato da
Androyx96
Ragazzi sono finalmente riuscito a far andare il sensore di rotazione (alias G-Sensor, accelerometro) sulla CyangonMod 10.1 !!! Sono megacontento.. Io l'ho testato (per ora) solamente sulla 20130407 (semplicemente perchè è quella che avevo montata in quel momento) ma in teoria dovrebbe andare anche sulla CyanBook e sulle altre build della CM 10.1
Ora vi lascio lo ZIP da flashare tramite CWM.. Fatemi sapere se vi funziona o no
Allegato 71650
provata sulla cyanbook v4 e non funziona, il sensore non viene riconosciuto
dmesg iniziale:
codice:
<6>[ 22.610000] =====================================Novatek_TouchDriver================================
<6>[ 22.640000] Novatek_TouchDriver VERSION =Rocky@inet Novatek_TouchDriver_20120412.1417
<4>[ 22.640000] m_inet_ctpState return true,just return
<6>[ 22.690000] ecompass driver: init
<6>[ 22.730000] input: ecompass_data as /devices/virtual/input/input3
<6>[ 22.740000] mxc622x driver: init
<4>[ 22.770000] ========gsensor_fetch_sysconfig_para===================
<3>[ 22.770000] gsensor_fetch_sysconfig_para: name bma250 does not match SENSOR_NAME.
<3>[ 22.840000] mxc622xmxc622x_init: after fetch_sysconfig_para: normal_i2c: 0x0. normal_i2c[1]: 0x0
<4>[ 22.840000] i2c i2c-0: Invalid probe address 0x00
<4>[ 22.880000] i2c i2c-1: Invalid probe address 0x00
<4>[ 22.880000] i2c i2c-2: Invalid probe address 0x00
<4>[ 22.940000] ======mma7660_init=========.
<4>[ 22.940000] ========gsensor_fetch_sysconfig_para===================
<3>[ 22.970000] gsensor_fetch_sysconfig_para: name bma250 does not match SENSOR_NAME.
<3>[ 22.970000] mma7660mma7660_init: after fetch_sysconfig_para: normal_i2c: 0x0. normal_i2c[1]: 0x0
<4>[ 23.010000] i2c i2c-0: Invalid probe address 0x00
<4>[ 23.010000] i2c i2c-1: Invalid probe address 0x00
<4>[ 23.020000] i2c i2c-2: Invalid probe address 0x00
<6>[ 23.020000] add mma7660 i2c driver
invece dopo il mio compatibility contenente il bma250.ko con vermagic diverso dalla versione del kernel, naturalmente dice
bma250: bad vermagic: kernel tainted. Disabling lock debugging due to kernel taint , ma poi il modulo viene riconosciuto normalmente
codice:
<6>[ 14.910000] =====================================Novatek_TouchDriver================================
<6>[ 14.950000] Novatek_TouchDriver VERSION =Rocky@inet Novatek_TouchDriver_20120412.1417
<4>[ 14.950000] m_inet_ctpState return true,just return
<4>[ 15.060000] bma250: bad vermagic: kernel tainted.
<4>[ 15.060000] Disabling lock debugging due to kernel taint
<4>[ 15.070000] ========gsensor_fetch_sysconfig_para===================
<4>[ 15.070000] gsensor_fetch_sysconfig_para: after: gsensor_twi_addr is 0x18, dirty_addr_buf: 0x18. dirty_addr_buf[1]: 0xfffe
<4>[ 15.130000] gsensor_fetch_sysconfig_para: twi_id is 1.
<4>[ 15.130000] BMA250_init: after fetch_sysconfig_para: normal_i2c: 0x18. normal_i2c[1]: 0xfffe
<6>[ 15.150000] gsensor_detect: Detected chip bma250 at adapter 1, address 0x18
<4>[ 15.150000] incomplete xfer (0x20)
<4>[ 15.160000] Paul tempvalue 0xffffffba
<4>[ 15.170000] Paul tempvalue 0x10f9 addres 0x19
<6>[ 15.170000] Bosch Sensortec Device detected!
<6>[ 15.170000] BMA250E registered I2C driver!
<6>[ 15.190000] input: bma250 as /devices/virtual/input/input6
<6>[ 15.340000] ecompass driver: init
<6>[ 15.340000] input: ecompass_data as /devices/virtual/input/input7
<6>[ 15.480000] mxc622x driver: init
<4>[ 15.480000] ========gsensor_fetch_sysconfig_para===================
<3>[ 15.490000] gsensor_fetch_sysconfig_para: name bma250 does not match SENSOR_NAME.
<3>[ 15.500000] mxc622xmxc622x_init: after fetch_sysconfig_para: normal_i2c: 0x0. normal_i2c[1]: 0x0
<4>[ 15.510000] i2c i2c-0: Invalid probe address 0x00
<4>[ 15.520000] i2c i2c-1: Invalid probe address 0x00
<4>[ 15.520000] i2c i2c-2: Invalid probe address 0x00
<4>[ 15.530000] ======mma7660_init=========.
<4>[ 15.540000] ========gsensor_fetch_sysconfig_para===================
<3>[ 15.540000] gsensor_fetch_sysconfig_para: name bma250 does not match SENSOR_NAME.
<3>[ 15.550000] mma7660mma7660_init: after fetch_sysconfig_para: normal_i2c: 0x0. normal_i2c[1]: 0x0
<4>[ 15.560000] i2c i2c-0: Invalid probe address 0x00
<4>[ 15.570000] i2c i2c-1: Invalid probe address 0x00
<4>[ 15.570000] i2c i2c-2: Invalid probe address 0x00
<6>[ 15.580000] add mma7660 i2c driver