Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Recompiling Android with MPU6050

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 3/1/2015 04:41:23        Only Author  1#

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?

Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 3/2/2015 15:54:57        Only Author  2#

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

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list