Android vendor/modules drivers question

Started by ozko, October 01, 2013, 09:54:31 AM

Previous topic - Next topic

ozko

I work with olinuxino and Im using it as a touch screen control for different machines
using MODBUS protocols with a FTDI chip serial connection on USB.
I have found drivers for android and I put them in /system/vendor/modules/ftdi_sio.ko
and initialize them in preinstall.sh like this:
/system/bin/insmod /system/vendor/modules/ftdi_sio.ko
chmod 0666 /dev/ttyS0
chmod 0666 /dev/ttyS1
chmod 0666 /dev/ttyS2
chmod 0666 /dev/ttyS3
chmod 0666 /dev/bus/usb/*


And it works.
Now I have personal tablet with same android version 4.0.3 and 3.0.8 kernel
with cortex A5 dualcore processor.
Im trying the same thing and It doesnt work... also there isnt a /system/vendor/modules folder only /system/vendor/ so I created it but still.
I need this for test and portability when going on work trips...
Im no good with linux, so am I missing something or I do something completely wrong?


EDIT
When I manually insmod ftdi_sio.ko in ADB I get this:
<3>[  112.575894] ftdi_sio: version magic '3.0.8 preempt mod_unload modversions
ARMv7 ' should be '3.0.8-tcc preempt mod_unload ARMv7 '

Can I edit a compiled .ko?