Firefly Open Source Community

Title: Recompiling Android with MPU6050 [Print This Page]

Author: yonush    Time: 3/1/2015 04:41
Title: Recompiling Android with MPU6050

Hi,

I'm trying to include the Invensense code to the Android firefly image. I have change the .dts files and added the driver to the kernel. That code works and i can see the device (I2C1 on 1-0068) with sysfs after I have flashed it to the board.

The problem I'm having now is that when I build the Android it refuses to include the 'hardware/rk29/mpu' folder and only seems to use the'hardware/rk29/st' folder. I tried various rules including adding BOARD_SENSOR_MPU to the 'BoardConfig.mk' in the 'device/rockchip/rk3288' and even the one in 'device/rockchip/rksdk'. Both refuse to compile the mpu code. If i override the rule (remove it in the mpu android.mk) the build stops.

I have also noticed that when i remove the sensors.rk30board.so library from lib/hw and rebuild does not put it without doing a make clean; make -j24 again.


Anyone have any ideas how to progress further?


Author: busybee    Time: 3/2/2015 15:54
Title: Re: Recompiling Android with MPU6050

Perhaps you're editing the wrong board config file.

Please try replace

  "BOARD_SENSOR_ST := true"

with

  "BOARD_SENSOR_MPU := true"

in SDK/device/rockchip/rksdk/BoardConfig.mk






Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1