rk2918 uinput.ko for kernel 3.0.8

Discussion about DroidMote Server for Android
tywerty
Posts: 9
Joined: Fri Feb 01, 2013 6:17 am

rk2918 uinput.ko for kernel 3.0.8

Post by tywerty »

Hi,

I have rk2918 devices without uinput.ko modules, can i use allwinner or AML8726 Modules instead?

Any input are appreciate.

Thanks
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by zulu99 »

i not know if your device have already inside the uinput.ko, but you can't use the allwinner or AML8726 version.

your kernel is different. and you must compile it by yourself.

read the faq. nr 33 to understand if for sure you not have the uinput module.

rockchip in all rk3066 have already inside the uinput module, i not know in the rk2918.

what is your android device ?

this is the kernel:
https://github.com/DJNoXD/rockchip-kernel-rk2918

To enable uinput, after make menuconfig:

Device Drivers --->
Input Device Support --->
Miscellaneous devices --->
User level driver support
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
tywerty
Posts: 9
Joined: Fri Feb 01, 2013 6:17 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by tywerty »

Thanks for your reply.

I checked uinput modules doesn't exist in my N90 device by android terminal as following procedure,

Open terminal emulator and look if you have /dev/uinput or /dev/input/uinput in this mode:

1) Open terminal emulator
2) su
3) cd /
4) cd dev
5) ls
read if you have /dev/uinput

or

1) Open terminal emulator
2) su
3) cd /
4) cd dev/input
5) ls
read if you have /dev/input/uinput

/dev/input/uinput is not a file in this test, you can't see this with a file manager, but you can see this with terminal emulator with the command su and ls.

I am a newbie and do not know how to compile the kernel.

Would you able to give me some guideline? Thanks so much.
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by zulu99 »

you can get any guide that you find in internet to compile a kernel for android. (is very simple and there are many guide)

the only differences is that when you do the commands "make menuconfig", you must select the uinput module as external module in this mode

Device Drivers --->
Input Device Support --->
Miscellaneous devices --->
User level driver support

Now i'm working in optimization and update of DroidMote, if i have time, i can see if i can compile it for you.

i need the vermagic of your kernel / module

get a generic module (search for a .ko file in your device), open it also in windows with a text editor, search the word vermagic and get the complete string vermagic=3.0.8 etc. etc.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
tywerty
Posts: 9
Joined: Fri Feb 01, 2013 6:17 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by tywerty »

Hi,

Thanks for your time and explanation.

I'm new to android system and really have no idea how to compile a kernel for android even it's simple.

I have find the info of vermagic as below and hope it's correct

vermagic=3.0.8+ preempt mod unload ARMv7

I really much appreciate your work if you possbile and have some free time slot to help to compile the kernel.

Many many thanks.
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by zulu99 »

Please try this and let me know if it work


rk2918 vermagic=3.0.8+ preempt mod_unload ARMv7
You do not have the required permissions to view the files attached to this post.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
tywerty
Posts: 9
Joined: Fri Feb 01, 2013 6:17 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by tywerty »

Hi Zulu99,

Thanks so much of your compile kernel. I have tested it but it doesn't work as procedures below :

Run Android Terminal :
1) SU
2) mount -o remount,rw /system
3) cp /mnt/sdcard/uinput.ko /system/lib/modules
4) chmod 644 /system/lib/modules/uinput.ko
5) mount -o remount,ro /system
6) insmod /system/lib/modules/uinput.ko

Error=> insmod: init_module '/system/lib/modules/uinput.ko' failed (Invalid argument)

Can you check above procedures is it correct or i missing some steps?
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by zulu99 »

Your procedure is correct, i think your board is different. I will retry to recompile for your specific board.

Please put for me in attachment your build.prop

And please make on your device in terminal emulator the command
uname -a

and in terminal emulator the command
dmesg
after you load the uinput.ko module posted by me.

Please send me this information in the next post.

I try to solve
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
tywerty
Posts: 9
Joined: Fri Feb 01, 2013 6:17 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by tywerty »

Hi Zulu99,

Thanks for your prompt reply.

Android terminal command : uname -a
Linux localhost 3.0.8+ #534 PREEMPT Tue Apr 10 14:01:59 CST 2012 armv7l GNU/Linux

Android terminal command : dmesg
cpufreq : got 408000 kHz
cpufreq : 816000 kHz r 1(H) selected 816000 kHz (1200000 uV)
cpufreq : pre change
cpufreq : post change
cpufreq : got 816000 kHz
cpufreq : 408000 kHz r 1(H) selected 408000 kHz (1200000 uV)
cpufreq : pre change
cpufreq : post change

Download Link
http://www.mediafire.com/view/?0f8vy1hy7eh41i1


[build.prop]
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=IML74K
ro.build.display.id=rk29sdk-eng 4.0.3 IML74K eng.fjp.20120406.162709 test-keys
ro.build.version.incremental=eng.fjp.20120406.162709
ro.build.version.sdk=15
ro.build.version.codename=REL
ro.build.version.release=4.0.3
ro.build.date=2012骞?04鏈?06鏃?鏄熸湡浜?16:37:21 CST
ro.build.date.utc=1333701441
ro.build.type=eng
ro.build.user=fjp
ro.build.host=fae
ro.build.tags=test-keys
ro.product.model=N90
ro.product.brand=Android
ro.product.name=rk29sdk
ro.product.device=rk29sdk
ro.product.board=rk29sdk
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=unknown
ro.product.locale.language=zh
ro.product.locale.region=CN
ro.wifi.channels=
ro.board.platform=rockchip
# ro.build.product is obsolete; use ro.product.device
ro.build.product=rk29sdk
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=rk29sdk-eng 4.0.3 IML74K eng.fjp.20120406.162709 test-keys
ro.build.fingerprint=Android/rk29sdk/rk29sdk:4.0.3/IML74K/eng.fjp.20120406.162709:eng/test-keys
ro.build.characteristics=tablet
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.config.alarm_alert=Alarm_Classic.ogg
ro.config.facelock=enable_facelock
persist.facelock.detect_cutoff=5000
persist.facelock.recog_cutoff=5000
ro.opengles.version=131072
wifi.interface=wlan0
persist.sys.timezone=Asia/Shanghai
persist.sys.timezone=Asia/Shanghai
persist.sys.timezone=Asia/Shanghai
persist.sys.timezone=Asia/Shanghai
wifi.supplicant_scan_interval=15
persist.sys.usb.config=mtp
persist.sys.strictmode.visual=false
dalvik.vm.jniopts=warnonly
ro.sf.hwrotation=270
ro.rk.sdcard_volume=Interal
Storage
ro.rk.external_volume=SD
Card
ro.rk.usb_host_volume=USB
Disk
ro.sf.fakerotation=true
webcore.adblock.enable=1
sys.hwc.compose_policy=6
rild.libargs=-d_/dev/ttyUSB1
ril.pppchannel=/dev/ttyUSB2
rild.libpath=/system/lib/libril-rk29-dataonly.so
ril.function.dataonly=1
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=64m
dalvik.vm.heapsize=256m
ro.rksdk.version=RK2918_ANDROID4.0.3-SDK_V2.11_20120306
ro.product.version=1.0.0
ro.product.ota.host=www.rockchip.com:2300
ro.kernel.android.checkjni=1
ro.setupwizard.mode=OPTIONAL
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt


build.prob download link
http://www.mediafire.com/?cod53hrq575wnxo

Hope above information will sufficient for you. Thanks Again
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: rk2918 uinput.ko for kernel 3.0.8

Post by zulu99 »

in dmesg log, i not see error log about the uinput.ko


you must copy this log after you try to load the uinput module

after: insmod /system/lib/modules/uinput.ko

the problem is that i can't find the precise source code of the kernel of the N90 tablet.

the problem of many cheap chinese android device is this: violation of GPL :evil:

now i'm try with a very close kernel source code, but i need the information of the error after insmod.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto