uinput fot Mediacom 722i Tablet

Discussion about DroidMote Server for Android
maxsax
Posts: 5
Joined: Wed Dec 26, 2012 11:24 am

uinput fot Mediacom 722i Tablet

Post by maxsax »

Hi, I've recently acquired a Mediacom Tablet 722i (real producer is Yifang) which I want to use as mediaplayer connected to TV controlled by an Android phone with DroidMote.

I've rooted it, but uinput module is not present;
platform is Amlogic and vermagic is 2.6.34 preempt mod_unload modversions ARMv7 (read in another module), then I've downloaded relative version indicated in FAQ.

Unfortunately kernel complain during uinput load about module_layout (read using dmesg), and I've changed in binary (with an hex editor) 4 bytes with same value of another module.
Now kernel complain about other symbols (below dump of dmesg), but in original module some are not present and some are preceded only by a null byte (for separation from other symbols):

Code: Select all

<4>[  601.455165] uinput: disagrees about version of symbol input_allocate_device
<4>[  601.455226] uinput: Unknown symbol input_allocate_device
<4>[  601.455996] uinput: disagrees about version of symbol dev_get_drvdata
<4>[  601.456025] uinput: Unknown symbol dev_get_drvdata
<4>[  601.456605] uinput: disagrees about version of symbol input_unregister_device
<4>[  601.456633] uinput: Unknown symbol input_unregister_device
<4>[  601.457274] uinput: disagrees about version of symbol input_free_device
<4>[  601.461032] uinput: Unknown symbol input_free_device
<4>[  601.462218] uinput: disagrees about version of symbol input_register_device
<4>[  601.462258] uinput: Unknown symbol input_register_device
<4>[  601.462733] uinput: disagrees about version of symbol kmem_cache_alloc
<4>[  601.462761] uinput: Unknown symbol kmem_cache_alloc
<4>[  601.464092] uinput: disagrees about version of symbol input_event
<4>[  601.464117] uinput: Unknown symbol input_event
<4>[  601.464263] uinput: disagrees about version of symbol nonseekable_open
<4>[  601.464288] uinput: Unknown symbol nonseekable_open
<4>[  601.469678] uinput: disagrees about version of symbol input_ff_create
<4>[  601.469733] uinput: Unknown symbol input_ff_create
<4>[  601.477849] uinput: disagrees about version of symbol input_ff_destroy
<4>[  601.477886] uinput: Unknown symbol input_ff_destroy
<4>[  601.479471] uinput: disagrees about version of symbol dev_set_drvdata
<4>[  601.479497] uinput: Unknown symbol dev_set_drvdata
<4>[  601.479837] uinput: disagrees about version of symbol kmalloc_caches
<4>[  601.479860] uinput: Unknown symbol kmalloc_caches
I've also tried to force load (with modprobe -f; insmod seems not have force option), but without success.

Can I download an uinput version correct for my kernel? Can I modify in some way to work? Or can I recompile it?

Thanks in advance for any suggestion

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

Re: uinput fot Mediacom Tablet

Post by zulu99 »

if the vermagic = 2.6.34 preempt mod_unload modversions ARMv7 in the FAQ not work, you must only recompile with your kernel source code.

but it strange that, if the vermagic of your other module is 2.6.34 preempt mod_unload modversions ARMv7, the uinput in the faq not work.

control well if for other modules in your tablet the vermagic is exactly 2.6.34 preempt mod_unload modversions ARMv7.

or i think you have different hardware configuration. look in the build.prop the board model of your tablet.

in the amlogic kernel source code, there is many configurations for many board. but when you know your board model number is very simple to compile the kernel and add uinput as external module.

make menuconfig

and select uinput as external module.
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
maxsax
Posts: 5
Joined: Wed Dec 26, 2012 11:24 am

Re: uinput fot Mediacom Tablet

Post by maxsax »

I confirm vermagic (read with an hex editor byte-by-byte from 8192cu.ko - a module for WiFi NIC from Realtek - currently loaded), also final space char.

Below first lines of build.prop:

Code: Select all

# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=IMM76I
ro.build.display.id=V2.0.0.IMM76I.eng.root.20120926
ro.build.version.incremental=eng.root.20120926.103054
ro.build.version.sdk=15
ro.build.version.codename=REL
ro.build.version.release=4.0.4
ro.build.date=2012年 09月 26日 星期三 10:32:59 CST
ro.build.date.utc=1348626779
ro.build.type=user
ro.build.user=root
ro.build.host=lockt-desktop
ro.build.tags=release-keys
ro.product.board=DATAM752MCX_C
ro.product.cpu.abi=armeabi-v7a
ro.product.model=M-MP722I
ro.product.brand=MID
ro.product.name=DATAM752MCX_C
ro.product.device=DATAM752MCX_C
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=YIFANG
ro.wifi.channels=14
ro.board.platform=
# ro.build.product is obsolete; use ro.product.device
ro.build.product=DATAM752MCX_C
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=DATAM752MCX_C-user 4.0.4 IMM76I eng.root.20120926.103054 release-keys
ro.build.fingerprint=MID/DATAM752MCX_C/DATAM752MCX_C:4.0.4/IMM76I/eng.root.20120926.103054:user/release-keys
ro.build.characteristics=tablet
# end build properties
# system.prop for M1 reference board
# This overrides settings in the products/generic/system.prop file
#
Where can I find source code for this platform for recompilation?

Many thanks

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

Re: uinput fot Mediacom 722i Tablet

Post by zulu99 »

you have AMLogic 8726-M SoC family

look this page

http://openlinux.amlogic.com/wiki/index ... 726M_Howto

or this:
https://github.com/Pivosgroup/buildroot-linux-kernel

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
maxsax
Posts: 5
Joined: Wed Dec 26, 2012 11:24 am

Re: uinput fot Mediacom 722i Tablet

Post by maxsax »

Hello,
I've downloaded and installed cross-toolchain and kernel source on an Ubuntu 12.10 desktop 32 bit (updated today).
After a succesful menuconfig, executing make I get following error caused by compilation of file arch/arm/kernel/head.S :

Code: Select all

[...]
  CC      arch/arm/kernel/io.o
  LD      arch/arm/kernel/built-in.o
  AS      arch/arm/kernel/head.o
arch/arm/kernel/head.S: Assembler messages:
arch/arm/kernel/head.S:186: Error: selected processor does not support ARM mode `dsb'
arch/arm/kernel/head.S:188: Error: selected processor does not support ARM mode `dsb'
arch/arm/kernel/head.S:194: Error: selected processor does not support ARM mode `dsb'
arch/arm/kernel/head.S:195: Error: selected processor does not support ARM mode `isb'
make[1]: *** [arch/arm/kernel/head.o] Errore 1
make: *** [arch/arm/kernel] Errore 2
It seems that some assembly instruction is not supported by ARM processors, but it's strange ...
Any idea about what's wrong?

Many thanks again

maxsax
vialexis
Posts: 7
Joined: Sun Feb 10, 2013 8:36 am

Re: uinput fot Mediacom 722i Tablet

Post by vialexis »

Hello,

Any progress in getting uinput.ko for AML8726M?

I bought DroidMote server, but can't make use of it as that module is missing in my table (Digma idx7 Type 2)

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

Re: uinput fot Mediacom 722i Tablet

Post by zulu99 »

Now i'm working in other DroidMote update.

I hope that someone can help you.

When i finish, i see what i can do.
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
vialexis
Posts: 7
Joined: Sun Feb 10, 2013 8:36 am

Re: uinput fot Mediacom 722i Tablet

Post by vialexis »

Appreciate any help.

I've seen there are source code of firmware for my tablet (kernel 2.6.34.14 and 3.0.8)

But where is the source code for uinput.ko? Could you help?
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: uinput fot Mediacom 722i Tablet

Post by zulu99 »

Is already in the kernel source code.

To enable uinput, after make menuconfig:

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

What is your vermagic ?

Read faq nr.33
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
vialexis
Posts: 7
Joined: Sun Feb 10, 2013 8:36 am

Re: uinput fot Mediacom 722i Tablet

Post by vialexis »

Hi zulu99,

Managed to find out vermagic

/system/lib # ls *.ko
dhd.ko mali.ko ump.ko
/system/lib # modinfo -F vermagic dhd.ko
vermagic: 2.6.34.14 mod_unload ARMv7


Sources: http://sourceforge.net/projects/wive-ng ... x/sources/

Could you please build uinput.ko for our device (I think you have environment for such builds up & running. As for me, I don't have even any linux installed)?
I think many users of Digma idx7/10 would like to use it as Droidmote server...