Site Notice - We are currently investigating an issue with missing download links. Apologies for any inconvenience caused. PaulOBrien

  • Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

USB Host mode driver

46 posts in this topic

Posted · Report post

I found work of a guy who made USB host mode drivers for ZTe Blade, for stock ROMs. Since Blade and Racer have almost the same hardware, same chipset, Racer have hardware capabilities for that.

Here is the link Blade USB host mode drivers.

Is it possible to port his work to Racer ROM's? If so we'd have full fledged computer instead of phone :).

Thank you

3

Share this post


Link to post
Share on other sites

Posted · Report post

Anyone have thoughts, or suggestions how this can be done? I'd help but I'm not a developer.

If someone can point this out to Racer ROMs developers, it'd be great

0

Share this post


Link to post
Share on other sites

Posted · Report post

HEllo world :)!

I finaly manged to make kernel with USB HOST mode enavled. EVerything works fine except Racer camera, since I used deadlink's old sources and configuration

BTw, I'm writing now from my PCkeyboard and using my mose on Racer

1

Share this post


Link to post
Share on other sites

Posted · Report post

Great news, man! Maybe you trying different kernel, to fix problem with racer camera?

0

Share this post


Link to post
Share on other sites

Posted · Report post

HEllo world :)!

I finaly manged to make kernel with USB HOST mode enavled. EVerything works fine except Racer camera, since I used deadlink's old sources and configuration

BTw, I'm writing now from my PCkeyboard and using my mose on Racer

NICE :)

isnt deadlinks kernal#64 source code available? camera works with that, any luck asking vamshistunner on his source code ?

0

Share this post


Link to post
Share on other sites

Posted · Report post

NICE :)

isnt deadlinks kernal#64 source code available? camera works with that, any luck asking vamshistunner on his source code ?

no luck with vamshistunner code

I don't know how to use git, and I downloaded sources from link on 4pda forum deadlink provided (it's Tom Giordano's sources). I also downloaded sources from his git repository, but after compiling kernel from those, I got stuck in booting loops

0

Share this post


Link to post
Share on other sites

Posted · Report post

Finally I managed to compile working kernel with usb hos mode enabled. Everything works fine now, camera, touchscreen.

Kernel is based on deadlink's source code. It has support for HID devices (mouse, keyboard) and mass storage devices (flash memory, usb sticks etc.), ntfs and fat file systems on storage devices.

If anyone is interested testing it I'll post it here.

Here is manual;

- First you'll need USB OTG cable/adapter, you can one make yourself -

is how, or you can buy one (google for it, or buy on amazon)

- Then you'll need powered usb hub which can provide upstream power to phone

- Kernel with host mode enabled

- Download attached usb_host_mode.zip. Unpack it and place usb_host_mode_kernel.zip and kernel_modules folder on root of your sdcard

- Flash usb_host_mode_kernel.zip with CWM, then reboot phone

After you get to desktop, use adb shell or terminal emulator (connect bot, or other) to load modules.

In shell type commands in following order:


su


 insmod /mnt/sdcard/kernel_modules/ntfs.ko


 insmod /mnt/sdcard/kernel_modules/scsi_wait_scan.ko


 insmod /mnt/sdcard/kernel_modules/usb-storage.ko  # ignore any errors when loading

As for using mouse and keyboard, just plug them into usb hub

is video how basicaly everything should look like

If anything goes wrong, don't hesitate to ask me.

Cheers :)

usb_host_mode.zip

4

Share this post


Link to post
Share on other sites

Posted · Report post

nice work man :) pm for you

0

Share this post


Link to post
Share on other sites

Posted · Report post

Finally I managed to compile working kernel with usb hos mode enabled. Everything works fine now, camera, touchscreen.

Kernel is based on deadlink's source code. It has support for HID devices (mouse, keyboard) and mass storage devices (flash memory, usb sticks etc.), ntfs and fat file systems on storage devices.

If anyone is interested testing it I'll post it here.

Here is manual;

- First you'll need USB OTG cable/adapter, you can one make yourself -

is how, or you can buy one (google for it, or buy on amazon)

- Then you'll need powered usb hub which can provide upstream power to phone

- Kernel with host mode enabled

- Download attached usb_host_mode.zip. Unpack it and place usb_host_mode_kernel.zip and kernel_modules folder on root of your sdcard

- Flash usb_host_mode_kernel.zip with CWM, then reboot phone

After you get to desktop, use adb shell or terminal emulator (connect bot, or other) to load modules.

In shell type commands in following order:


su


 insmod /mnt/sdcard/kernel_modules/ntfs.ko


 insmod /mnt/sdcard/kernel_modules/scsi_wait_scan.ko


 insmod /mnt/sdcard/kernel_modules/usb-storage.ko  # ignore any errors when loading

As for using mouse and keyboard, just plug them into usb hub

is video how basicaly everything should look like

If anything goes wrong, don't hesitate to ask me.

Cheers :)

usb_host_mode.zip

Exellent job man.Thanx.

Samo napred.

0

Share this post


Link to post
Share on other sites

Posted · Report post

it would be nice to make a video out too :D

connecting the racer to PC and see the screen there

Grats man . good work :D

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

@ vukodav Great Job man :)

it would be nice to make a video out too :D

connecting the racer to PC and see the screen there

Grats man . good work :D

You can also connect the mobile to your PC and control it.

checkout this cool application in market. there is a video too. It is just like an web OS. You can send messages, transfer files, etc from the PC. You can use the mobile screen on PC using this application, but its an add-on to the above application.

Edited by vamshistunner
0

Share this post


Link to post
Share on other sites

Posted · Report post

@ vukodav Great Job man :)

You can also connect the mobile to your PC and control it.

checkout this cool application in market. there is a video too. It is just like an web OS. You can send messages, transfer files, etc from the PC. You can use the mobile screen on PC using this application, but its an add-on to the above application.

thanks for tip :)

0

Share this post


Link to post
Share on other sites

Posted · Report post

it would be nice to make a video out too :D

connecting the racer to PC and see the screen there

Grats man . good work :D

As vamshistunner pointed there are apps on market for controlling phone on PC. There is also a way to add bigger screen to phone over USB, framebuffer devices. But you'll have to wait for that cause I have to buy some usb to vga video adapters and test it first

0

Share this post


Link to post
Share on other sites

Posted · Report post

If anything goes wrong, don't hesitate to ask me.

Before I make anything stupid, I rather ask about things I can't seem to get clear about:

- my hub has B-type upstream port and does not provide power to the phone (it is not charging). What hub do you use in that video?

- does the phone automatically detect whether it is host or client based on the type of cable you plug in?

- can other kernel modules (e.g. Sven's for Blade) be used to experiment with other external hardware?

Some extra thoughts: managed to run Ubuntu in chroot - veeery slow but also very exciting. I can connect to it with VNC, but was wondering if it could use an external display connected to the phone directly via USB? I will throw out my laptop if that works ;)

And finally many thanks for this topic!

0

Share this post


Link to post
Share on other sites

Posted · Report post

Good day all, I beg someone to get into this topic a schematic diagram for usb hostcable

0

Share this post


Link to post
Share on other sites

Posted · Report post

Give someone a scheme of this cable, please! p.s Sorry for flood!

and who will be able to port the kernel to gen2!???

0

Share this post


Link to post
Share on other sites

Posted · Report post

Before I make anything stupid, I rather ask about things I can't seem to get clear about:

- my hub has B-type upstream port and does not provide power to the phone (it is not charging). What hub do you use in that video?

- does the phone automatically detect whether it is host or client based on the type of cable you plug in?

- can other kernel modules (e.g. Sven's for Blade) be used to experiment with other external hardware?

Some extra thoughts: managed to run Ubuntu in chroot - veeery slow but also very exciting. I can connect to it with VNC, but was wondering if it could use an external display connected to the phone directly via USB? I will throw out my laptop if that works ;)

And finally many thanks for this topic!

First, sorry for late answer. I used common 4 port USB hub, and Y type USB cable. Y USB cable I used has two A male and one mini B plug. I plugged one A plug to phone charger (it provides power to phone and hub) and the other in OTG cable, mini B plug is for connecting hub.

As for your other question, you can't use Sven's kernel modules. Kernel modules have to be compiled along with kernel with which they are used. I didn't compile modules for USB VGA adapters because I don't have hardware to test them with

0

Share this post


Link to post
Share on other sites

Posted · Report post

Give someone a scheme of this cable, please! p.s Sorry for flood!

and who will be able to port the kernel to gen2!???

I don't have scheme for this cable. I googled how to make it.

0

Share this post


Link to post
Share on other sites

Posted · Report post

and the voltage only usb Hub should do, or on the phone too??

0

Share this post


Link to post
Share on other sites

Posted · Report post

and the voltage only usb Hub should do, or on the phone too??

USB standard requires 5V and 500mA per port. Iknow Racer charger doesn't have 5V and has 700mA power but it all worked. Phone was charging and USB hub working

0

Share this post


Link to post
Share on other sites

Posted · Report post

just at this the same cable and connect the mouse or do nothing except chargeproishidit, I installed the library. The reason?

0

Share this post


Link to post
Share on other sites

Posted · Report post

First, sorry for late answer. I used common 4 port USB hub, and Y type USB cable. Y USB cable I used has two A male and one mini B plug. I plugged one A plug to phone charger (it provides power to phone and hub) and the other in OTG cable, mini B plug is for connecting hub.

As for your other question, you can't use Sven's kernel modules. Kernel modules have to be compiled along with kernel with which they are used. I didn't compile modules for USB VGA adapters because I don't have hardware to test them with

Thank you, I managed to connect and play with the mouse, but none of my flash drives is recognized. Since I do not have a proper hub, I drew power from the wall charger using a Y cable... This kernel is great!

0

Share this post


Link to post
Share on other sites

Posted · Report post

Thank you, I managed to connect and play with the mouse, but none of my flash drives is recognized. Since I do not have a proper hub, I drew power from the wall charger using a Y cable... This kernel is great!

thank you. I don't know why your flash drives don't work. Did you loaded kernel modules first?

0

Share this post


Link to post
Share on other sites

Posted · Report post

just at this the same cable and connect the mouse or do nothing except chargeproishidit, I installed the library. The reason?

I don't understand your question. Can you explain more about your problem?

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.