Version 1 (modified by androreas, 3 years ago)

--

Enabling the accelerometer (does not work yet)

  1. from the extracted archos firmware copy the following files to your froyo image:
    • /system/lib/hw/sensors.archos.so to /system/lib/hw/
    • /system/lib/libshm.so to /system/lib/
    • /lib/modules/mma74561.ko to /lib/modules/
  2. add the following lines to your /init.rc in your froyo image (before the "on boot" line)

    mkdir /dev/shm
    mount tmpfs tmpfs /dev/shm

    insmod /lib/modules/mma7456l.ko 

What will happen:

  • the hardware gets initialized, /dev/shm/accelerometer will be created by the userspace library
  • ... but it wont work (tested with abuduction!)

Questions:

  • when building froyo, do we have to specify that we actually HAVE an accelerometer somewhere?
  • is sensors.archos.so compatible with froyo? (at least lights.archos.so is)