[MODULES][ARC][NEO][FW:4.0.A.2.368] USB-OTG {Storage, Keyboard & Mouse}

Search This thread

BeNiSh

Member
Aug 22, 2010
47
4
this tutorial is peace of crap! why there is no .cmd install script for all dumbs like me?

I still cant pass part with "busybox insmod" and still getting stupid error "insmod: can't insert 'usbhid.ko': invalid parameter" :confused:
 
Last edited:

shardul_seth

Senior Member
Jul 31, 2011
1,103
1,717
this tutorial is peace of crap! why there is no .cmd install script for all dumbs like me?

I still cant pass part with "busybox insmod" and still getting stupid error "insmod: can't insert 'usbhid.ko': invalid parameter" :confused:

This is a developers forum. This is NOT a dumbs forum. Maybe you are at the wrong place.

Please be careful of what you say..

The error means that the module is not for your kernel. what kernel are you on, btw? And, no, we are not talking about a kernel of popcorn.
 

BeNiSh

Member
Aug 22, 2010
47
4
I tried all 4 modules with same error and USB OTG Helper works great, but didnt works with NTFS drives, becouse I cant find and install right ntfs.ko driver (module)
 

shardul_seth

Senior Member
Jul 31, 2011
1,103
1,717
I tried all 4 modules with same error and USB OTG Helper works great, but didnt works with NTFS drives, becouse I cant find and install right ntfs.ko driver (module)

You can find ntfs.ko driver here.. It was compiled against ICS beta sources, but should work for you..

Edit: if still you have problems, please type "dmesg | tail -n 40" , without quotes in console/terminal and post the output here..
 

gxg

Senior Member
Jan 9, 2008
376
105
Bucharest
Thank you for these.

I have to mention 2 things:
- I don't like usb folders being mounted on /*, I would preffer everything below /sdcard.
- Having another application loading modules at startup uses memory even when we do not use a usb stick. The Q5 Manager should load the required modules.

- Having said the above I modified a Q5 USB Manager build to do the above tasks. It loads the usb-storage module from /system/lib/modules (must exists) at startup and sleeps for 10 secs for the /dev/block/ to be updated. It also creates and uses the mount point under the /sdcard/.

Here

In my Neo V using firmware .62 the above package was tested and working.
usb-hid, mouse, kbd are not required for the Neo V, they are inside the kernel.

You can also have a look, modify or use this little package I made for easy installation of the usb-storage.ko and the q5 manager with just a batch file for my Neo v


Can you upload them again, please!!
 

kamy0074

Senior Member
Mar 1, 2013
75
8
this way work for xperia RAY ??domlord please
answer

---------- Post added at 05:29 PM ---------- Previous post was at 04:57 PM ----------

No one here for help

Sent from my MT15i using Tapatalk 2
 

pren22

Senior Member
Oct 24, 2011
494
124
I'm using Xperia Arc lt15i and doomkernel v22,and usb otg is supported by doom's kernel,so the mouse and keyboard works fine,i have a ibm keyboard which had 2xusb ports so i can connect mouse to,so i can use keyboard and mouse with only une usb port on otg,'cause keyboard has it,but i bought a hub it has 7 ports it's small and cool,and now i was tring to connect usb stick directly to usb otg cable didn't work i tried the app version,can't use cd/system/lib/module/ it says not found,so i said let's try to connect to hub,hub has his own power supply and it worked.What i'm trying to say is that i can't use usb stick only with usb otg i need a hub with power supply,that's the only way it's working for me,but it's fine it's grate.Tnx doomlord you are the best.

btw i'm using Gin2JellyBean rom,it's gingerbread rom with jelly bean look,it's fast and cool.
 

luminousin

Senior Member
Jun 17, 2012
96
75
Hyderabad
USB-STORAGE
USB-HID Downloads are not working
USB-KEYBOARD
USB-MOUSE


The above download links are not working

Any new download links ?


GUYS I BRING GREAT NEWS!

WE NOW HAVE FUNCTIONAL USB-OTG SUPPORT!



[ screenshots ]

lsmod.png

usb-kb.png

usb-mouse.png

usb-storage.png



[ WARNING ]

do not use the connected device for a LONG time period... u may risk burning the device chip/motherboard due to the voltage supply in host mode...

u have been warned!




[ requirements ]

  1. Xperia Arc (Neo?/Play?) on FW: 4.0.A.2.368
  2. preferably rooted + busybox installed
  3. USB-OTG hardware cable
  4. Terminal Emulator app
  5. [OPTIONAL] adb Wireless app


[ tested on ]

Xperia Arc Stock FW: 4.0.A.2.368 with DooMKernel v08




[ how to ] (general instructions for modules) [u can use this app to auto-load module]

  1. download the modules and push the modules to /system/lib/modules/

  2. use adb shell or terminal emulator to enter following code/commands

  3. Code:
    su
    cd/system/lib/modules/
    busybox insmod usbhid.ko
    busybox insmod usbmouse.ko
    busybox insmod usbkbd.ko
    busybox insmod usb-storage.ko
  4. check if all modules are live are not:
    Code:
    lsmod
    lsmod.png


  5. done the modules are LIVE!
  6. [IMP] u will have to manually reload the modules on EVERY boot... unless u use start-up scripts which will take care of this!


[ how to ] (instructions for usb-storage) [simpler way]

  1. download app: http://android.gval.biz/download/Q5_USB_Memory_Manager.apk
  2. follow instructions: http://android.gval.biz/Q5_USB_Menory_Manager.php
  3. the usb storage device should now be mounted to /usb_storage/
  4. u will need to use RootExplorer for this to work



[ how to ] (instructions for usb-storage) [manual way]

  • before u begin/connect device there are few things which need to be done

  • creating necessary directory structure
    Code:
    su
    cd /sdcard/
    mkdir usbStorage
    chmod 777 usbStorage
  • now connect the usb storage device via usb-otg cable to phone
  • now enter the following command:
    Code:
    dmesg
  • at the last part u will see some info of connected device (an if it was rejected due to power issues)

    deviceinfo.png

  • now enter
    Code:
    ls -l /dev/block/sd*
  • u will get output similar to the one posted below
    devsearch.png

    note if the last part: /dev/block/sda1

  • finally mount this device (following is generic command... for NTFS specific command read this post)

    Code:
    mount /dev/block/sda1 /sdcard/usbStorage
  • if u get no error then enjoy usb storage is now mounted

  • to unmount usbstorage (following is generic command)
    Code:
    umount /dev/block/sda1

    if that doesnt work try the following command: (this will try to force unmount)

    Code:
    umount -f /dev/block/sda1

    if that doesnt work try the following command:(this will try to force unmount and remove loop) [use this as LAST resort]

    Code:
    umount -f -l /dev/block/sda1


[ donations ]

if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc ;)

PAYPAL DONATION LINK


[ download links ]

  1. USB-STORAGE
  2. USB-HID
  3. USB-KEYBOARD
  4. USB-MOUSE



[ known issues ]

  1. usb mouse works but there is no cursor... but u can move around and select (left click on stuff)
  2. when using usb-storage mode some devices will not be mountable if:
    • they require more power (u can check this in dmesg)
    • they have filesystem not supported by ur current kernel
  3. sometimes the mounted usb-storage files wont appear using some apps... i have tested it to be wrking using RootExplorer... though it will work in adb shell/terminal emulator also...


[ troubleshooting ]

when u post any error/issue please include the full output of dmesg command (adb shell dmesg > dmesg_log.txt) OR (dmesg > /sdcard/dmesg_log.txt)


P.S.: all these features will be included in next version of DooMKernel for all supported Xperia 2011 devices ;)

icon8.gif



enjoy!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    GUYS I BRING GREAT NEWS!

    WE NOW HAVE FUNCTIONAL USB-OTG SUPPORT!



    [ screenshots ]

    lsmod.png

    usb-kb.png

    usb-mouse.png

    usb-storage.png



    [ WARNING ]

    do not use the connected device for a LONG time period... u may risk burning the device chip/motherboard due to the voltage supply in host mode...

    u have been warned!




    [ requirements ]

    1. Xperia Arc (Neo?/Play?) on FW: 4.0.A.2.368
    2. preferably rooted + busybox installed
    3. USB-OTG hardware cable
    4. Terminal Emulator app
    5. [OPTIONAL] adb Wireless app


    [ tested on ]

    Xperia Arc Stock FW: 4.0.A.2.368 with DooMKernel v08




    [ how to ] (general instructions for modules) [u can use this app to auto-load module]

    1. download the modules and push the modules to /system/lib/modules/

    2. use adb shell or terminal emulator to enter following code/commands

    3. Code:
      su
      cd/system/lib/modules/
      busybox insmod usbhid.ko
      busybox insmod usbmouse.ko
      busybox insmod usbkbd.ko
      busybox insmod usb-storage.ko
    4. check if all modules are live are not:
      Code:
      lsmod
      lsmod.png


    5. done the modules are LIVE!
    6. [IMP] u will have to manually reload the modules on EVERY boot... unless u use start-up scripts which will take care of this!


    [ how to ] (instructions for usb-storage) [simpler way]

    1. download app: http://android.gval.biz/download/Q5_USB_Memory_Manager.apk
    2. follow instructions: http://android.gval.biz/Q5_USB_Menory_Manager.php
    3. the usb storage device should now be mounted to /usb_storage/
    4. u will need to use RootExplorer for this to work



    [ how to ] (instructions for usb-storage) [manual way]

    • before u begin/connect device there are few things which need to be done

    • creating necessary directory structure
      Code:
      su
      cd /sdcard/
      mkdir usbStorage
      chmod 777 usbStorage
    • now connect the usb storage device via usb-otg cable to phone
    • now enter the following command:
      Code:
      dmesg
    • at the last part u will see some info of connected device (an if it was rejected due to power issues)

      deviceinfo.png

    • now enter
      Code:
      ls -l /dev/block/sd*
    • u will get output similar to the one posted below
      devsearch.png

      note if the last part: /dev/block/sda1

    • finally mount this device (following is generic command... for NTFS specific command read this post)

      Code:
      mount /dev/block/sda1 /sdcard/usbStorage
    • if u get no error then enjoy usb storage is now mounted

    • to unmount usbstorage (following is generic command)
      Code:
      umount /dev/block/sda1

      if that doesnt work try the following command: (this will try to force unmount)

      Code:
      umount -f /dev/block/sda1

      if that doesnt work try the following command:(this will try to force unmount and remove loop) [use this as LAST resort]

      Code:
      umount -f -l /dev/block/sda1


    [ donations ]

    if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc ;)

    PAYPAL DONATION LINK


    [ download links ]

    1. USB-STORAGE
    2. USB-HID
    3. USB-KEYBOARD
    4. USB-MOUSE



    [ known issues ]

    1. usb mouse works but there is no cursor... but u can move around and select (left click on stuff)
    2. when using usb-storage mode some devices will not be mountable if:
      • they require more power (u can check this in dmesg)
      • they have filesystem not supported by ur current kernel
    3. sometimes the mounted usb-storage files wont appear using some apps... i have tested it to be wrking using RootExplorer... though it will work in adb shell/terminal emulator also...


    [ troubleshooting ]

    when u post any error/issue please include the full output of dmesg command (adb shell dmesg > dmesg_log.txt) OR (dmesg > /sdcard/dmesg_log.txt)


    P.S.: all these features will be included in next version of DooMKernel for all supported Xperia 2011 devices ;)

    icon8.gif



    enjoy!
    5
    Thank you for these.

    I have to mention 2 things:
    - I don't like usb folders being mounted on /*, I would preffer everything below /sdcard.
    - Having another application loading modules at startup uses memory even when we do not use a usb stick. The Q5 Manager should load the required modules.

    - Having said the above I modified a Q5 USB Manager build to do the above tasks. It loads the usb-storage module from /system/lib/modules (must exists) at startup and sleeps for 10 secs for the /dev/block/ to be updated. It also creates and uses the mount point under the /sdcard/.

    Here

    In my Neo V using firmware .62 the above package was tested and working.
    usb-hid, mouse, kbd are not required for the Neo V, they are inside the kernel.

    You can also have a look, modify or use this little package I made for easy installation of the usb-storage.ko and the q5 manager with just a batch file for my Neo v
    3
    reserved reserved
    3
    Script

    You can use my simple script to load modules after each reboot

    install Gscript Lite from market : https://market.android.com/details?id=nl.rogro.GScriptLite&feature=search_result
    put ''Load Modules.sh'' to sdcard
    in Gscript App select add script and than load file from sd card

    you can load modules with one touch

    for mount & umount you have to create folder as (0-USB) name manually on root of sdcard or edit scripts file with Gscript app for other folder name
    2
    NTFS

    mount command for NTFS usb-storage devices:

    Code:
    chmod 777 /sdcard/usbStorage
    Code:
    busybox mount -t ntfs -o rw,umask=0000,uid=1000,gid=1015 /dev/block/sda1 /sdcard/usbStorage

    with this command the files should now be visible under any standard file manager (not just RootExplorer)

    there is still some issue with writing files to external device (NTFS) but we will figure something out soon ;)