[HACKING] USB Host Driver For Ext HDD - Galaxy S I9000 Android Development

Samsung's press release for the processor confirmed USB host capabilities. But it doesnt look like that functionality is exposed at an OS level yet.
As done similarly for Nexus One, will it be possible to write up a driver or something like that for Samsung Galaxy S?
It would be too good to have an external HDD connected to this device!!! (That means, practically unlimited storage!!)
I know that there could be problems with power required to spin a drive, but my Creative Zen Vision M (60 GB) player had USB host (badly implemented) capabilities - and it was able to spin hard drives.
Is it worth a try with SGS?

What?? Nobody interested?

Was having a look for this same answer. Hope things have progressed a bit.

SGS USB Host Documentation
Guess What!! I was going through the bundled "Documentation" along with the SGS i9000 code and I found this!!
Code:
S3C24XX USB Host support
========================
Introduction
------------
This document details the S3C2410/S3C2440 in-built OHCI USB host support.
Configuration
-------------
Enable at least the following kernel options:
menuconfig:
Device Drivers --->
USB support --->
<*> Support for Host-side USB
<*> OHCI HCD support
.config:
CONFIG_USB
CONFIG_USB_OHCI_HCD
Once these options are configured, the standard set of USB device
drivers can be configured and used.
That is very encouraging. But I haven't done any kernel compiling (hell, I haven't even done any Android coding, this being my first Android phone!!). So its gonna a be a while before I can put this to a good use.
Now, I am not sure if this is just "Host" or if it would support "OTG" also. I found the documentation on S5PC110 [Dev Sheet] a bit confusing also. It does show that the microprocessor has both HOST and OTG capabilities, but I am not sure to what the USB port has been wired to.
May be somebody can put this to a good use.

Well if this as easy as it sounds, it beats any logic whatsoever, why Samsung didn't put in this functionality out-of-the-box with SGS. This device seems severely constricted in features which the S5PC110 chip init readily supports.

samsung are idiots lol, hopefully it works tho

Are there any apps which would tell us what exact piece of hardware we have in an Android phone?

You have a s5pc110 processor, in the Galaxy S.
Any talk about usb host drivers (for that processor / s5pc series) would probably be done on the linux-samsung-soc mailing list.

+1
Really looking for this feature ,,,, very helpful ....
thanks for starting this topic ....

What do people use this feature for? I guess I am having a hard time envisioning why this would be useful on a phone.

brunes said:
What do people use this feature for? I guess I am having a hard time envisioning why this would be useful on a phone.
Click to expand...
Click to collapse
You could connect USB memory disks , external HDDs ,external camera and so on to your Galaxy S and browse files ...... very very helpful...

Any one know how to use this feature? I badly wanna connect USB keyboard to my SGS.

Anyone? Sorry for spaming, but i really need it. Maybe someone have got some links explaining how to enable usb host? I'm not a dev. but i can try do something, anything to get this to work!
What we have to do? Some drivers, or new kernel?
Right now I'm going to buy 2-female USB adapter. Please, reply!

19arek93 said:
Anyone? Sorry for spaming, but i really need it. Maybe someone have got some links explaining how to enable usb host? I'm not a dev. but i can try do something, anything to get this to work!
What we have to do? Some drivers, or new kernel?
Right now I'm going to buy 2-female USB adapter. Please, reply!
Click to expand...
Click to collapse
If you are this desperate why not just use a bluetooth keyboard...

Because is very expensive.

Has it been officially confirmed that the Galaxy S can't do USB host ?
This would be an amazing feature on an already amazing device.

From what I know a about jpc rom it now installs a cdrom drive when plugged in to windows. Seems to that there's soms sort of host capabilities are built in
Sent from my GT-I9000 using XDA App
Sent from my GT-I9000 using XDA App

samsung source code
Hi!
I too find this feature very useful. However, I found little information about it on the net. So I started digging through the source code provided by Samsung (GT-I9000_OpenSource.zip). From this and from the specs of the chip (S5PC110_EVT1_UM10.pdf), I take it that the phone does support USB host. The problem is, it can only do either client or host, not both at the same time. Now here is where it gets tricky.
The Samsung kernel source is not as neatly separated into independent modules as you would expect from a Linux kernel. The USB client stuff (usb-storage, modem...) is connected with the driver that checks for cable plugging and unplugging which in turn is connected with the driver for the voltage regulator that starts charging the battery and supplies the cpu with power as soon as you connect the phone to your computer. Consequently you can't just build the USB client stuff as a module to be able to unload it and load the USB host module instead.
I have started to write a workaround for that, separating these interconnected drivers from each other. The easiest point to take it apart seems to be the driver of the voltage regulator. It has the fewest external dependencies. It does, however, pose the problem that the phone won't charge if something goes wrong...
Well, I got as far as being able to compile the source with the USB client stuff as bunch of modules and the independent part compiled into the kernel. I got that flashed on the phone. It boots, it doesn't blow up, and USB client is disabled. So far, so good.
Problem is, the client modules won't load. I don't know why, yet. Having to work with the on screen keyboard and a terminal instead of getting a shell via "adb shell" isn't helping either...
Well. That's as far as I got today.
Suggestions? Comments?

Woah!!! You've gone forward way farther than I have!!
I took a lot of time trying to get around to a proper working kernel itself! :-( I am a complete noob at this - SGS being my first phone. [Not to mention the fact that I almost got my phone bricked once and got into infinite boot sequence on another instance.]
I had been trying to add modules built-in into the kernel itself - without making any code changes. I find when I plug-in my Mircro USB OTG cable - dmesg gives out 4 lines of log entries -
Code:
[s3c_usb_cable]done_clk_enable
[s3c_usb_cable]done_udc_reinit
[s3c_usb_cable]done_udc_enable
FSA INTR = dev1 : 0x80, dev2 : 0x0, Attach : 0x1
Of the above 4 lines - for the first 3 I was able to find the code in the file -
Code:
<Path_to_source_code>/GT-I9000_OpenSource/GalaxyS_Kernel.tar/GalaxyS/linux-2.6.29/drivers/usb/gadget/s3c_udc_otg.c
Now these entries come up only when I connect my OTG cable. Normal cable does not give this. May be the SGS can do both OTG and Device mode at the same time?
To understand more of this I tried to enable DEBUG. But apart from getting in to infinite boot loop, I was not able to move ahead much.
Another interesting thing that I noticed was that -
Code:
CONFIG_USB_S3C_OTGD=y
is set in the normal/unmodified .config file obtained from OpenSource website of Samsung.
From what I understand, this means that the OTG module is directly compiled and linked in to all of our kernels. But for some reason, it is not working as expected.
Well I am stumped!!! May be I will look more in to this during this weekend.

coooolboyz said:
Samsung's press release for the processor confirmed USB host capabilities. But it doesnt look like that functionality is exposed at an OS level yet.
As done similarly for Nexus One, will it be possible to write up a driver or something like that for Samsung Galaxy S?
It would be too good to have an external HDD connected to this device!!! (That means, practically unlimited storage!!)
I know that there could be problems with power required to spin a drive
Is it worth a try with SGS?
Click to expand...
Click to collapse
If you used an SSD you wouldn't have to worry about power to spin it up Although I don't think I've seen a USB one anywhere...
Best of luck, this would be an awesome and very useful feature to have!

Related

USB Host mode

ADMIN EDIT:
adq is also a member here, direct link to his site about this:
http://adq.livejournal.com/95689.html
for dev's a patch is available to patch the kernel to enable this
It looks that one there are some guys that succeed to use the USB in host mode on an Android device ....
issue 738 on code.google http://code.google.com/p/android/iss...ummary%20Stars
Implementing the USB on the Go feature on a phone, will allow you to
conect to the phone:
- regular keyboards - imagine how easy you enter contacts, edit notes
and other text information into your phone when you go to home / work
and connect the keyboards from the computers you are using there.
- regular mice
- flash drivers, card readers, external hard drives, foto camera
- printers - so you can easily print the photos you make wit the built
in camera, and office documents you edit from the phone.
- scanners
- monitors (with a USB-to-VGA adapter, like the HTC Advantage X7510
does)
- WiFi cards
- USB ethernet cards - this would be an imensely great feature.
Because with propper software you can test an ethernet port (ping,
etc), even test UTP cables - like the expensive Fluke devices do. Just
imagine how convenient is to test a network without taking the laptop
with you and without buying expensive network testing tools.
- TV Tuners
- another phone that will stay in "slave mode"
- web camera - maybe it's a silly idea, but hey, why not?
- pen tablets
- USB hubs - so you will be able to connect all the above peripherals
to the phone in the same time.
Click to expand...
Click to collapse
for HTC Hero
http://adq.livejournal.com/
This guy succeed to attache a real keyboard, a real mouse that is used as a trackball and a external USB storage device!!
Also he is using a battery USB hub to resolve the charging needs of some of the devices.....
how to create the cable , and some tests for Motorola Droid...
http://www.tombom.co.uk/blog/?p=124
Whoa, nice find. I didn't think this was even possible. I've been telling anyone who asked about it to keep dreaming. My bad.
yes..I also wanted to do this since I bought my first WM phone .... someone else tried this ?
instead of creating that patched cable do you think that a battery hub like this one that can change the gender of the USB, can be use instead ?
http://www.everfast.com.hk/catalog/usb-hub-battery-charger-usb-hub-4-ports-p-138.html
PS: it has also battery based charging capabilities
That's an interesting thought, although I don't have anything near the technical knowledge of this type of thing to say for sure. Your guess is as good as mine.
craig0r said:
That's an interesting thought, although I don't have anything near the technical knowledge of this type of thing to say for sure. Your guess is as good as mine.
Click to expand...
Click to collapse
i'd say it should work with this. but i am afraid we'll have to wait until someone actually implements this somehow...
can someone pleeeease implement this somehow?
Keep in mind that If i read this correctly, this patch will disable usb device mode (i.e. wont be able to access the sd card as a mass storage device anymore and HTC Sync will be disabled as well).
Edit: At least for the time being. The dev seems keen on getting the device-mode/ host-mode drivers to cooperate.
alt236 said:
Keep in mind that If i read this correctly, this patch will disable usb device mode (i.e. wont be able to access the sd card as a mass storage device anymore and HTC Sync will be disabled as well).
Edit: At least for the time being. The dev seems keen on getting the device-mode/ host-mode drivers to cooperate.
Click to expand...
Click to collapse
Yeah, it shouldn't be too hard to implement a software switch.
On the other blog they propose this cables :
http://www.brightonnet.co.jp/english/product/other/bbm-wireel.html
http://www.overstock.com/Electronic...d=123620&fp=F&ci_src=14110944&ci_sku=12436069
http://cgi.ebay.com/Micro-USB-Host-...Accessories?hash=item3a57229ee9#ht_5104wt_939
PS : I would like to buy one of this cables
PS2: I see on that e-bay link that this is already working on various linux powered mobile devices.
Hi, thanks for posting this here
Yeah, I'm just reading how the OMAP USB drivers implement the software switch just now to see how best to do it; right now looks like three drivers - two actually implementing the host/device mode, and one stub mediating which one is actually active.
I'm hoping to have something along these lines working next week.
thats great news mate will u posting your cabel guide to also this should be added i think to the custom roms (or at least a option the the kitchen tool)
There has been some progress:
http://adq.livejournal.com/
http://groups.google.com/group/android-kernel/browse_thread/thread/b871a27624f69b85
is it still not ready to be implemented even in experimental ROMs?
How should I install that? From Recovery? Like a Rom
is there any update on this? I would love to be able to read my SDCARD on my digital camer just by linking in with a usb cable
USB devices not detected by USB HOST
I am developing application to detect my printer by NOVO 7 Paladin(Android 4.0).
By USB HOST CONTROLLER application(which is available in market) the printer/mouse/keyboard is detected. But in my application(Written in java) these devices are not detected
With the reference of below link this application is developed
developer.android.com/guide/topics/usb/host.html
My Code Sample
mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE);
HashMap<String, UsbDevice> foundDevices = mUsbManager.getDeviceList();
Iterator<UsbDevice> iterator = foundDevices.values().iterator();
if (foundDevices.size()>0)
{String old = textv.getText().toString();
textv.setText(old +" foundDevices ");
}

[Q] USB-VGA Display Adapter Graphics Card works with android

hello, this is my first post, and i wish that somebody know if this adapter graphics card:
http ://www .dealextreme. com/p/usb-2-0-to-vga-display-adapter-cable-for-extra-monitor-screen-34756
http ://www .pandawill. com/usb-to-vga-usbvga-display-adapter-for-monitor-screen_p38476.html
or this
http ://www .amazon. com/Plugable-UGA-125-Multiple-Monitors-1280x1024/dp/B003IE49T8/ref=sr_1_3?ie=UTF8&qid=1304438526&sr=8-3
works in a device with android and usb host.
will be nice if i could connect any cellphone to a lcd tv or connect a tablet to two monitors.
leomg said:
hello, this is my first post, and i wish that somebody know if this adapter graphics card:
http ://www .dealextreme. com/p/usb-2-0-to-vga-display-adapter-cable-for-extra-monitor-screen-34756
http ://www .pandawill. com/usb-to-vga-usbvga-display-adapter-for-monitor-screen_p38476.html
or this
http ://www .amazon. com/Plugable-UGA-125-Multiple-Monitors-1280x1024/dp/B003IE49T8/ref=sr_1_3?ie=UTF8&qid=1304438526&sr=8-3
works in a device with android and usb host.
will be nice if i could connect any cellphone to a lcd tv or connect a tablet to two monitors.
Click to expand...
Click to collapse
This depends solely on which phone you have.
Also try going to forum.xda-developers.com and scroll down to your particular phone and search thier general forum for it, mainly because chances are someone already has asked or talked about this
I don't think any Android phone will support USB to Video adapters. Some android phones have hdmi or video out capabilities. But those types of USB to Video adapters need special drivers which I don't believe are available for Android OS.
zarathustrax said:
I don't think any Android phone will support USB to Video adapters. Some android phones have hdmi or video out capabilities. But those types of USB to Video adapters need special drivers which I don't believe are available for Android OS.
Click to expand...
Click to collapse
I think that too, but there are drivers for linux and then android should make it work. I was just wondering if anyone tried.
here i found a list of the devices that are compatible with displaylink:
w w w.displaylink.com/shop/index.php?product=5
and in "download driver" are drivers for linux.
someone know if the driver for linux works for android ??
Pd: If a linux based router can: w w w.engadget.com/2009/05/18/displaylink-for-linux-turns-a-humble-wireless-router-into-a-beau/
why android cellphone or tablet cant.
also i found an app ($1,99) that allow to convert ipad screen into a new display for a computer through wireless, is there some app like that for android??
leomg said:
here i found a list of the devices that are compatible with displaylink:
w w w.displaylink.com/shop/index.php?product=5
and in "download driver" are drivers for linux.
someone know if the driver for linux works for android ??
Pd: If a linux based router can: w w w.engadget.com/2009/05/18/displaylink-for-linux-turns-a-humble-wireless-router-into-a-beau/
why android cellphone or tablet cant.
also i found an app ($1,99) that allow to convert ipad screen into a new display for a computer through wireless, is there some app like that for android??
Click to expand...
Click to collapse
Android runs on top of a modified linux kernel, but it's not a true linux distro, so it can't run linux apps or drivers. Something would have to be written special. Maybe if you can run ubuntu off your device, you may be able to do something. What device do you have that has USB host?
Also, if its not USB 2, you may not have enough speeds to transfer. I think sending video output through usb would take a lot of processing power, which it may not be worthwhile with a phone.
What device do you have and exactly what are you trying to do... If I knew what you're trying to do, I might be able to help. I'm good with stuff like that.
You could maybe just get a DLNA adapter and wireless send video to a monitor or TV, instead. I'm not sure what you are exactly trying to get accompliched. give more details.
I bought a SmartQ t10, that still doesnt arrive, I bought it for the screen and battery, then i saw this adapter, so im seeing if can get video out.
I found a mailing list where a guy with a motorola droid (who managed to switch to USB host mode) trying to do this.
w w w.mailinglistarchive.com/html/[email protected]/2010-07/msg00073.html
according to what I understood you should enable the auxiliary output video and change the driver to operate with mobile device processor.
here i found how to do it:
sites.google.com/site/voyageofbeagleboard/Home/displaylink-for-android
Code:
DisplayLink for android (latested version)
How to build displaylink driver for android
Displaylink is asic vender for USB-DISPLAY converter. It's is little slow, but expand your gadet example for android based equipment. So I modified the displaylink driver called udlfb for android.
How to build
- prepare android source code. I checked on beagleboard and android2.0
- extract and replace files with framework-core.tgz under framegework/base
- extract and replace files with kernel.tgz under kernel
- rebuild kernel and android
Description of tar archives
- framework-core.tgz
Import mouse and touch features support from android-x86 project . This is depend on android2.0 eclair
Touch features is following as:
Touch the right corner on and off touch feature.
[HOME] Touch the status bar
[MENU] Touch the status bar from left to right
[BACK] Touch status bat from right to left
- kernel.tgz
udlfb driver for android. Original udlfb driver source code is in latest linux driver/stagine/udlfb
Add double size frame buffer for pan_display
Add pan_display function
Make maximu resolution 1024x768. Original code support much more high resolution, but It cause crash under memory allocation.
Contents of tar archives
framework-core.tgz
==============================
Import usefule function from android-x86
core/java/android/view/RawInputEvent.java
include/ui/EventHub.h
libs/ui/EventHub.cpp
services/java/com/android/server/InputDevice.java
services/java/com/android/server/KeyInputQueue.java
services/java/com/android/server/WindowManagerService.java
services/java/com/android/server/status/StatusBarView.java
services/java/com/android/server/status/TouchFeature.java
kernel.tgz
==============================
touchscreeen driver depend my equipment.
drivers/input/touchscreen/Kconfig
drivers/input/touchscreen/usbtouchscreen.c
DisplayLink driver for android
drivers/video/Kconfig ->add configuration
drivers/video/Makefile ->add udlfb/Makefile
dotconfig -> .config example
drivers/video/udlfb/ -> driver
this will work??
If your phone does not have USB host mode you can modify your kernel to support it. Then it's a case of getting drivers, which may or may not be difficult.
Yes, i found that too, usb host for nexus one: sven.killig.de/android/N1/2.2/usb_host/
i guess that work for any device.
but I'm interested in that first run the driver already having a device with USB host, because is there more research about getting usb host or usb otg
Here is a android 1.6 driver from the opensource .
http://libdlo.freedesktop.org/wiki/
or
https://github.com/magoroku15/DisplayLink-driver-for-android
Any one know how to use it or update it to work on newer android ?
Gingerbread has very good compatibility mode so it "could" run there.
Sent from my Huge Device 2 using XDA App
zarathustrax said:
Android runs on top of a modified linux kernel, but it's not a true linux distro, so it can't run linux apps or drivers. Something would have to be written special. Maybe if you can run ubuntu off your device, you may be able to do something. What device do you have that has USB host?
Also, if its not USB 2, you may not have enough speeds to transfer. I think sending video output through usb would take a lot of processing power, which it may not be worthwhile with a phone.
What device do you have and exactly what are you trying to do... If I knew what you're trying to do, I might be able to help. I'm good with stuff like that.
You could maybe just get a DLNA adapter and wireless send video to a monitor or TV, instead. I'm not sure what you are exactly trying to get accompliched. give more details.
Click to expand...
Click to collapse
he simply wants to project his phone display on a lcd tv or a pc monitor.
many ppl with no hdmi output would love to stream by usb, it also allows to connect other usb devices which not supported with MHL.
usb 2.0 is fast enough to stream.
i have same problem
dsa
vga adapter
i was thinking about getting 7 of these to run an office, but they are hdmi.
http://www.ebay.com/itm/TBS2910-Mat...1085685686?pt=Desktop_PCs&hash=item4d163ea3b6
and i stumbled apon this anyone tried this yet? idk how it interacts with android to get the display, but it must work somehow lol
http://www.ebay.com/itm/MHL-Micro-U...Phone_PDA_Cables_Adapters&hash=item4ac7878c5f
<img src="http://i.ebayimg.com/00/s/NTAxWDQyMA==/z/vKYAAOxy4M5R9wYk/$(KGrHqEOKpwFHcVK2kc5BR9wYkDdGg~~60_3.JPG">
I've been researching the same kind of thing. I have an android head unit that I want to show everything I see on my roof screen but so far no luck. I have tried UBS to RCA and UBS to VGA adaptors but so far no luck. I even thought maybe something like android to android screen share like 'say' mobile-phone to android-tv-box and connect the tv-box in the car and share my Android head-unit to the tv-box but I can't find an app that works with doing that either.

[Kernel][Both] USB host mode for SGT (github link)

Hi ya'll,
I added host mode support for the SGT (probably works on other samsung devices as well). However, I'm not really able to maintain an 'end user' ROM/kernel. If any of you devs would like to pull from my github site (attribution appreciated) please do. I'm happy to help if you have questions, comments or find bugs.
The first dev besides me that tries this will need to be reasonably comfortable with wiring up a 30 pin connector, though I gather from searching that there are off the shelf cables that are almost right for this application. Later support for off the shelf cables can be added.
The only thing that makes the standard USB cable not suitable is that the USB-OTG mode pin needs to be pulled to ground. That pin is entirely detected by software, so if someone wanted to make a little app that toggles USB host mode on/off then an off the shelf cable would probably work.
Here's the original thread I posted in the wrong forum (didn't have enough posts to post here):
http://forum.xda-developers.com/showthread.php?t=1233072
Nice, looking forward to a working kernel than I will buy a secound data cable
Sent from my GT-P1000 using XDA Premium App
If this is not a joke... WOW
Let's say, if they find a cure for cancer tomorrow, this would be still best news of this week...
Usb sticks, card readers, external hdds, printers everything....
Looking forward to an "end-user"-kernel...
Sent from my GT-P1000 using XDA App
spike1985 said:
Usb sticks, card readers, external hdds, printers everything....
Click to expand...
Click to collapse
One note: From looking at the code I kinda doubt that "isochronous mode" USB will work without more bug fixes. I don't think this is a big deal because this mode is used by few USB device types (cameras and USB audio). So don't expect those sorts of devices to work.
Memory sticks, keyboards, mice and printers are probably fine. I've tried a number of USB serial adapters and they all work fine.
Here are the docs
In the interest of discussing this fix, here's what's involved.
If you are a dev and want to try this in your kernel, please PM me if you find any problems or have questions. (I don't follow these forums very much)
----
This file is a collection of notes on using the USB OTG port of the Samsung Galaxy Tab in HOST mode.
I'm writing this document to capture both the software and hardware changes needed for this device in one place.
If you are a brave Android kernel hacker, please try these changes out and send pull requests to github with any
fixes you add. I have been unable to find a 'master' github site where hobbyists are maintaining a master Samsung
kernel and Android OS, if you have such a site feel free to include my fixes (though credit would be appreciated).
These fixes are provided 'as-is' and you could bust your device or do any number of bad things.
I'm going to post these notes on the xda forums, but for the latest code and documentation please see my github site.
History: The Samsung open source kernel files (from opensource.samsung.com) contained a USB host mode driver for the
S5PC110 chipset. These drivers were located in drivers/usb/host/s3c-otg. The driver contained a number of bugs which
I've fixed and it now seems to work reasonably well for USB serial ports, flash drives etc.
Hardware: To use USB host mode on your samsung tablet _external 5V DC seems to be required_. I have not found
turning any of the samsung LDOs on to make the unit provide USB power (if you find different, please let me know).
To wire up a USB host mode cable you'll need the following pinout (found on a web forum):
1 Gnd P
2 Gnd P
3 USB_DP_CON I/O
4 USB_DM_CON I/O
5 IF_CON_SENSE I
6 V_ACCESSORY_5.0V P
7 V_BUS_1 P
8 V_BUS_1 P
9 VOUT_CHARGER P (gives out 4v when checked with a multimeter)
10 VOUT_CHARGER P (gives out 4v when checked with a multimeter)
11 --- --
12 --- --
13 ACCESSORY_ID / USB_ID I
14 ACCESSORY_INT I
15 Gnd P
16 Gnd P
17 MHL_DP I/O
18 MHL_DM I/O
19 MHL_ID I
20 IF_RXD I
21 IF_TXD O
22 --- --
23 AP_TV_OUT O
24 REMOTE_SENSE I
25 --- --
26 --- --
27 EAR_L_CRADLE O
28 EAR_R_CRADLE O
29 3.5_INT_TEST I
30 Gnd P
Your cable will need to connect the following five pins:
1 Gnd
3 USB_DP
4 USB_DM
8 5V+ (at least 1A if you want to support high speed charging of the tablet)
13 Host mode (attach to ground to run tablet as a host, or leave disconnected to run tablet as a USB target)
A summary of my driver changes:
* Fix a nubmer of cases where TDs would be used after delete_td and the associated storage was freed (caused kernel
heap corruption)
* Allow a bit more time for some mystery Samsung LDO to power up before switching to host mode (caused failure in device detect)
* Wait for channel disabled interrupt when cancelling transactions (prevents a race condition with the ISR)
* Properly switch into USB host mode when a host mode cable is detected (see 30pin_con.c)
* Mark transfers as done when cancel_to_transfer_td is called (prevents rescheduling transactions we have freed)
* do not force is_need_to_insert_scheduler true in cancel_transfer, this caused list corruption in the ed list
spike1985 said:
If this is not a joke... WOW
Let's say, if they find a cure for cancer tomorrow, this would be still best news of this week...
Usb sticks, card readers, external hdds, printers everything....
Looking forward to an "end-user"-kernel...
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
yea turn out little tabs into a pc but is it really possible??? I heard people smarter than me say that the tab doesn’t have the required hardware and no amount of code will make it magically appear
spike1985 said:
If this is not a joke... WOW
Let's say, if they find a cure for cancer tomorrow, this would be still best news of this week...
Usb sticks, card readers, external hdds, printers everything....
Looking forward to an "end-user"-kernel...
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
sorry pal, but I rather had the cure for cancer!!! It won't bring my mother back, but it sure would help others.
sick!
Sorry. Did not want to hurt anybody. Lost several frinds and family by cancer as well. Just wanted to quote from a sitcom...
Sorry for hurting
Sent from my GT-P1000 using XDA App
thanks for saying sorry explaining
take care!
Sent from my GT-P1000 using xda premium
Hi Punk Geek, regarding the state change between host and client in software, what command would be required to achieve this? I'm looking to test on a Galaxy S i9000 if possible so there's obviously no 30 pin connector.
If only someone could integrate this in the overcome rom.
Or make a seperate installer for this . (is that possible or does it has to be integrated into the rom ?)
zoro007 said:
If only someone could integrate this in the overcome rom.
Or make a seperate installer for this . (is that possible or does it has to be integrated into the rom ?)
Click to expand...
Click to collapse
It gets integrated into the kernel.
PunkGeek - Did you use the information from this thread to make the wire?
http://forum.xda-developers.com/showthread.php?t=1149442
If so, it seems fairly straight forward.
After a long time it seems that it was in the new version of Humber-OS
CM9 RC01 version 20120127
implemented found this app in the release
Must we design these adapter self, or can we use the one for the new Galaxy Tab.
Edit
---------- Post added at 10:14 PM ---------- Previous post was at 10:10 PM ----------
punkgeek said:
One note: From looking at the code I kinda doubt that "isochronous mode" USB will work without more bug fixes. I don't think this is a big deal because this mode is used by few USB device types (cameras and USB audio). So don't expect those sorts of devices to work.
Memory sticks, keyboards, mice and printers are probably fine. I've tried a number of USB serial adapters and they all work fine.
Click to expand...
Click to collapse
Hi @punkgeek, kindly elaborate on how you able to run usb to serial. Im interested on this.
Anybody can also share their setup.
Thanks
Sent from my GT-P1000 using xda premium

[Q] Burn ISO to USB

Ok, this may be more of a general android question rather than device specific. I have several ISO files for various operating systems that I carry around on my memory card. Is there a way within Android ( likely similar to a dd command ) that I could burn the image to USB key? Im looking for a way to fix/repair computers on the go without needing to carry around my laptop ( Or download new / test releases and live boot them so to speak ).
Before you ask, yes I have a kernel that supports USB OTG and i can read/write to my usb key within my phone already. I was looking on the market for something similar to "live usb creator" but had no luck.
This is one of the only threads ive ever started and I do look around first. The information given could help many out if there is such a way The GS2 technically has more processing power than my n450 powered netbook It would be nice to actually utilize it as such.
pyraxiate said:
Ok, this may be more of a general android question rather than device specific. I have several ISO files for various operating systems that I carry around on my memory card. Is there a way within Android ( likely similar to a dd command ) that I could burn the image to USB key? Im looking for a way to fix/repair computers on the go without needing to carry around my laptop ( Or download new / test releases and live boot them so to speak ).
Before you ask, yes I have a kernel that supports USB OTG and i can read/write to my usb key within my phone already. I was looking on the market for something similar to "live usb creator" but had no luck.
This is one of the only threads ive ever started and I do look around first. The information given could help many out if there is such a way The GS2 technically has more processing power than my n450 powered netbook It would be nice to actually utilize it as such.
Click to expand...
Click to collapse
From android OS I have no clue bro. However, you can try UnetBootin. This program will take an ISO and burn it to a USB drive that will boot. I do it all the time with Linux distros or Windows repair disks. Good luck
KillaHurtz said:
From android OS I have no clue bro. However, you can try UnetBootin. This program will take an ISO and burn it to a USB drive that will boot. I do it all the time with Linux distros or Windows repair disks. Good luck
Click to expand...
Click to collapse
Hi there. Thanks for the reply. I've used UnetBootin actually. I'm really looking for an equivalent that will run on android OS lol.
Sent from my SGH-T989 using xda premium
very interesting new App potential i see here
i could myself find this useful
to "burn" a bootable USB key to fix/boot repair a dead PC or something along the lines
so, the challenge will be to port over any of the Linux tools over to Android to get it working, shouldn't be too hard
unfortunately i do not have the spare time to get into this yet
but any DEV with free time wanting a fun challenge, this is an interesting one to play with
AllGamer said:
very interesting new App potential i see here
i could myself find this useful
to "burn" a bootable USB key to fix/boot repair a dead PC or something along the lines
so, the challenge will be to port over any of the Linux tools over to Android to get it working, shouldn't be too hard
unfortunately i do not have the spare time to get into this yet
but any DEV with free time wanting a fun challenge, this is an interesting one to play with
Click to expand...
Click to collapse
I'm looking into our available commands using terminal emulation So far its looking promising ( more like a cat command but still ).
If there are any Devs out there reading this, it would be a nice tool to have ;-)
In theory it should be very possible. Also, I was thinking about the possibility of porting over qtparted. Most of us techs have external USB to SATA/IDE adapters. Imagine pulling a laptop drive, wiping virii, repairing using scandisk, repartitioning borked disks, ect. Great ideas :-D This phone has more processing power than most netbooks in the market ( and actually better gpu capability too lol ). Why not put them to use !
Sent from my SGH-T989 using xda premium
would be nice
I would love to see something like this. my pc hard drive has failed, New drive acquired but no win or ubuntu boot disks. If I could just put a boot on my spare 4gb micro ad... only have the phone for web access
hi
Yes I've wanted to do the same thing on a android tablet android tablets are missing out on such software iso burning and CD DVD writer tht connects too the tablet would be great the only thing stopping me from converting from Windows to android tablet with keyboard is this problem . Google would acutely make a killing if programmes and hardware like this was out for tablets .
Same here I have a tablet with that kernel that I can connect USB drives to but no burning software gutted
Try DroidDrive.
I'm going to test if it can boot iso's too.
Normally, it can boot img's.
Yes...I too need such apps like rufus on phone to create bootable pendrive
---------- Post added at 08:03 PM ---------- Previous post was at 08:00 PM ----------
Droid drive can only be used to boot pc from phone, but it can't be used to make pendrive bootable, and that is actually what we need.
From Terminal Emulator
dd if=/path/to/iso of=/block/device/id (for flash drive)
The only problem is that this method uses the entire flash drive.
Oh, and finding the block device id of your otg flash drive on android seems to be problematic.
Haven't tried it yet...
but it works on linux, and busybox
provides dd to android so...
Anyone have a way to find block device id for a usb otg flash drive?
ISO to USB on Play Store does this with no root
Am I missing something. I've been looking for hours and the app mentioned is very suspect and unreliable. I need create windows boot aswell whether from usb of phone itself.
Can't use root option app either due to SM-S908W as my phone.
Help pls!!
Bump

Bada 2 USB host feature

A new tutorial has been upload recently, seems that bada 2.0 has an interesting API like the new android one, allowing to control a generic device/accessory through the usb cable interface of the phone, watch this video:
http://www.youtube.com/watch?feature=player_embedded&v=yb_IghbBoP0
and the tutorial:
http://developer.bada.com/article/Developing-a-bada-Accessory
in the requirements section of the article they reports:
-bada device (Wave 3) and its USB cable -> this means there is an hardware limitation for wave s8500 and s8530??
Sure it needs a special hardware but im not sure even wave 3 has the hardware
and this article is not about usb host feature
r_22009 said:
Sure it needs a special hardware but im not sure even wave 3 has the hardware
and this article is not about usb host feature
Click to expand...
Click to collapse
have you read/understood it?
the article is strictly about usb host feature application in bada, and at the beginning of the article, second paragraph:
"...
As the development environment, you need the following:
Latest bada SDK
bada device (Wave 3) and its USB cable
Arduino Mega ADK
..."
edit: in the first screenshoot the phone is a wave II with bada 2.0, so the answer seems 'yes, no hardware limits..'
No the answer is that this article is about controlling some accessories like arm devices ,robots and like these via bada phone
so it doesnt need a special hardware
but be sure that usb host need special HW that even wave 3 doesnt have it
you can see in gsmarena
for instance SGS2 has it
r_22009 said:
No the answer is that this article is about controlling some accessories like arm devices ,robots and like these via bada phone
so it doesnt need a special hardware
but be sure that usb host need special HW that even wave 3 doesnt have it
you can see in gsmarena
for instance SGS2 has it
Click to expand...
Click to collapse
mm.. sorry maybe you're right... I said usb host, but I was not thinking about the native ability of the os to recognize e.g. external hard drive (this perhaps, power supply issues excluded, is also software-dependant http://forum.xda-developers.com/showthread.php?t=1468531) but about the general capability to send and receive messages on the usb serial interface from the bada application level.
Anyway the usb host function seems that have to be integrated on the external device..
but this function provided with bada 2 API can't be related to the usb otg function that it's supported by wave I, II, III (http://forum.xda-developers.com/showthread.php?t=1101954)?

Categories

Resources