[ICS] Help with Gamepad/Controller Support

Discuss anything Scroll Excel Tablet related here.

Re: [ICS] Help with Gamepad/Controller Support

Postby Wully » March 18th, 2012, 11:19 am



I checked it and googled info about the processor, it doesn't support the mips instruction set I think. Im gona try and get the normal 3.0.8 kernel, not the mips port, and following the instructions in that post as best I can!
User avatar
Wully
Serious Scroller
Serious Scroller
 
Posts: 92
Joined: January 2nd, 2012, 4:18 am
Location: Scotland
Scroll Version: Scroll Excel Android 4.0.3

Re: [ICS] Help with Gamepad/Controller Support

Postby suggsy89 » March 18th, 2012, 11:49 am

ro.product.cpu.abi=armeabi-v7a

So its ARM v7a

BTW i will try to compile from source too ;)
User avatar
suggsy89
Trusted Developer
Trusted Developer
 
Posts: 971
Joined: June 28th, 2011, 4:33 pm
Real Name: John
Scroll Version: Scroll Excel - Jellybean 4.1.2
Yarvik Go Zetta - Scroll Extreme Jellybean 4.1.1

Re: [ICS] Help with Gamepad/Controller Support

Postby Wully » March 18th, 2012, 1:03 pm

I'll try compiling with ARCH=armv7-a on the mips kernel is that the kernel your using suggsy or a different one?

Don't we need a makefile for armv7-a? Forgive me I'm still very noobish at this xD

I tried the one on that rhombus-tech.net but I can't get it to compile.

EDIT*
Image
User avatar
Wully
Serious Scroller
Serious Scroller
 
Posts: 92
Joined: January 2nd, 2012, 4:18 am
Location: Scotland
Scroll Version: Scroll Excel Android 4.0.3

Re: [ICS] Help with Gamepad/Controller Support

Postby suggsy89 » March 18th, 2012, 3:46 pm

Only just started :lol: If we can compile the 3.0.17 kernel it will be a start of course.
User avatar
suggsy89
Trusted Developer
Trusted Developer
 
Posts: 971
Joined: June 28th, 2011, 4:33 pm
Real Name: John
Scroll Version: Scroll Excel - Jellybean 4.1.2
Yarvik Go Zetta - Scroll Extreme Jellybean 4.1.1

Re: [ICS] Help with Gamepad/Controller Support

Postby Wully » March 18th, 2012, 3:57 pm

:lol: I'm following this tutorial, http://forum.xda-developers.com/showthr ... ?t=1490886
and using the unofficial allwinner 3.0.8 kernel from https://github.com/amery/linux-allwinner, wish me luck

Edit*

Heres the default .config file from the ICS 3.0.8 build I pulled from my tablet
http://dl.dropbox.com/u/6632380/ICS/ICS%203.0.8%20Kernal%20config
User avatar
Wully
Serious Scroller
Serious Scroller
 
Posts: 92
Joined: January 2nd, 2012, 4:18 am
Location: Scotland
Scroll Version: Scroll Excel Android 4.0.3

Re: [ICS] Help with Gamepad/Controller Support

Postby suggsy89 » March 18th, 2012, 4:27 pm

Im trying to build the 3.0.17 kernel, this is going to be fun :D
User avatar
suggsy89
Trusted Developer
Trusted Developer
 
Posts: 971
Joined: June 28th, 2011, 4:33 pm
Real Name: John
Scroll Version: Scroll Excel - Jellybean 4.1.2
Yarvik Go Zetta - Scroll Extreme Jellybean 4.1.1

Re: [ICS] Help with Gamepad/Controller Support

Postby Wully » March 18th, 2012, 5:11 pm

Let me know how you get on, I tried the unofficial allwinner 3.0.8, it failed.

Just tried the MIPS 3.0.8 kernel again and it compiled and output the two modules I wanted, xpad.ko and ff-memless.ko

Last section of the compile:
Code: Select all
  CC      drivers/input/ff-memless.mod.o
  CC      drivers/input/joystick/xpad.mod.o
  CC      drivers/media/common/tuners/tea5761.mod.o
  CC      drivers/net/usb/asix.mod.o
  CC      drivers/net/usb/mcs7830.mod.o
  CC      drivers/net/usb/rtl8150.mod.o
  CC      drivers/net/usb/usbnet.mod.o
  Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  CC      drivers/scsi/scsi_wait_scan.mod.o
  CC      net/core/pktgen.mod.o
  GZIP    arch/arm/boot/compressed/piggy.gzip
  LD [M]  drivers/input/joystick/xpad.ko
  LD [M]  drivers/net/usb/asix.ko
  CC      arch/arm/boot/compressed/misc.o
  LD [M]  drivers/net/usb/mcs7830.ko
  CC      arch/arm/boot/compressed/decompress.o
  LD [M]  drivers/net/usb/rtl8150.ko
  LD [M]  drivers/net/usb/usbnet.ko
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  LD [M]  drivers/scsi/scsi_wait_scan.ko
  LD [M]  net/core/pktgen.ko
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD [M]  drivers/input/ff-memless.ko
  LD [M]  drivers/media/common/tuners/tea5761.ko
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready


Checked the architecture of the files.
FF-memless.ko
http://dl.dropbox.com/u/6632380/ICS/ff-memless.ko
Image
xpad.ko
http://dl.dropbox.com/u/6632380/ICS/xpad.ko
Image

Just going to test insmod them onto the tablet and I'll edit this post with the results.

EDIT

It failed, it returned ff-memless.ko failed (Exec format error) again
This is the output of dmesg on the tablet:
Image

This is from modinfo on the xpad.ko I compiled, you can see the vermagic line:
3.0.8+ preempt mod_unload modversions ARMv5
Code: Select all
william@william-VirtualBox:~/mipskernel/dev-android-linux-mti-3.0.8/drivers/input/joystick$ modinfo xpad.ko
filename:       xpad.ko
license:        GPL
description:    X-Box pad driver
author:         Marko Friedemann <mfr@bmx-chemnitz.de>
*section removed*
depends:       
vermagic:       3.0.8+ preempt mod_unload modversions ARMv5
parm:           dpad_to_buttons:Map D-PAD to buttons rather than axes for unknown pads (bool)
parm:           triggers_to_buttons:Map triggers to buttons rather than axes for unknown pads (bool)
parm:           sticks_to_null:Do not map sticks at all for unknown pads (bool)


Stuck again :lol:
Last edited by Wully on March 18th, 2012, 5:47 pm, edited 1 time in total.
User avatar
Wully
Serious Scroller
Serious Scroller
 
Posts: 92
Joined: January 2nd, 2012, 4:18 am
Location: Scotland
Scroll Version: Scroll Excel Android 4.0.3

Re: [ICS] Help with Gamepad/Controller Support

Postby suggsy89 » March 18th, 2012, 5:25 pm

Just tested...

Code: Select all
# insmod /system/vendor/modules/xpad.ko
insmod /system/vendor/modules/xpad.ko


insmod: init_module '/system/vendor/modules/xpad.ko' failed (Exec format error)

255|root@android:/ #
User avatar
suggsy89
Trusted Developer
Trusted Developer
 
Posts: 971
Joined: June 28th, 2011, 4:33 pm
Real Name: John
Scroll Version: Scroll Excel - Jellybean 4.1.2
Yarvik Go Zetta - Scroll Extreme Jellybean 4.1.1

Re: [ICS] Help with Gamepad/Controller Support

Postby suggsy89 » March 18th, 2012, 5:44 pm

I think you must build for your kernel version, currently our ICS uses 3.0.8+ kernel
How are you trying to build unofficial allwinner 3.0.8 kernel
What commands are you using?
User avatar
suggsy89
Trusted Developer
Trusted Developer
 
Posts: 971
Joined: June 28th, 2011, 4:33 pm
Real Name: John
Scroll Version: Scroll Excel - Jellybean 4.1.2
Yarvik Go Zetta - Scroll Extreme Jellybean 4.1.1

Re: [ICS] Help with Gamepad/Controller Support

Postby Wully » March 18th, 2012, 6:10 pm

To build it?

make ARCH=arm oldconfig
then accepting the defaults for the .config
then make ARCH=arm

I changed the CROSS_COMPILE variable in the Makefile to point to where I downloaded/extracted the tool chain

I just got a module of xpad.ko from here:
http://www.slatedroid.com/topic/26637-official-ics-40-by-zenithink-beta-rom-1224/page__view__findpost__p__286881
I downloaded it and done modinfo on it:
Code: Select all
william@william-VirtualBox:~$ modinfo xpad.ko
filename:       xpad.ko
license:        GPL
description:    X-Box pad driver
author:         Marko Friedemann <mfr@bmx-chemnitz.de>
srcversion:     07DBAB16C16A0A5BD8D9085
*section removed*
depends:        ff-memless
vermagic:       2.6.34 mod_unload modversions ARMv7
parm:           dpad_to_buttons:Map D-PAD to buttons rather than axes for unknown pads (bool)
parm:           triggers_to_buttons:Map triggers to buttons rather than axes for unknown pads (bool)


Notice the vermagic 2.6.34 mod_unload modversions ARMv7
Makes me thing thats properly compiling in ARMv7 but when I do it on my xpad.ko it returns:
3.0.8+ preempt mod_unload modversions ARMv5

I think its the right kernel version, just wrong ARM version its compiling with?

I'm awfully confused lol

Unless we have the source of the kernel the ICS 3.0.8 build we have was compiled with, were probably not going to get a working module unless we can compile a working kernel from a different source and flash it?
User avatar
Wully
Serious Scroller
Serious Scroller
 
Posts: 92
Joined: January 2nd, 2012, 4:18 am
Location: Scotland
Scroll Version: Scroll Excel Android 4.0.3

PreviousNext

Return to Scroll EXCEL - General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron