yashsingh1/xdaforums huggingface dataset:
[Desire General] tknv:
Resolve it.

This problems isuue by USB hub chip.

I use GL850A- USB 2.0 Low-Power HUB Controller GENESYS LOGIC,then work it.

>Hello gr0gmint,

>USB devices are not enumerated.

>Also I would like to build kernel and more modules.

>Where could I get 2.6.32.9-bravo-froyo-r15 kernel source?

>by the way,Is there difference Desire and X06HT ?

>Thanks.
[Desire General] royleecn:
Thanks, but I have a Samsung Galaxy I9000. Any idea that we can let the OTG function goes with I9000?
[Desire General] zeyna:
Hi all! This is my first post here.

Slaskis, did you make this work? I am thinking about buying an HTC Desire because of this USB host (otg) feature, I need to connect throught the USB some components and I need the phone to recognize them (and work with them too). I know about Sven's work, but i'm not sure about this phone.

TIA
[Desire General] 318vert:
This would be a hell of a lot more usefull if this was an app that can turn usb host on or off.
[Desire General] uipe:
oki so I ported this to CM 6.0, followed the needed kernel changes on the modules like on the config from sven.

Results:

-Was able to use my mouse so ya the usb works.

-Usb stick or disk reboots my desire.

Still need to find the log files with the crash report...

if you want i can post my update file created with anykernel.
[Desire General] waebi:
I'd really like to see this on my phone (running the recent version of OpenDesire atm) :) Any chance some devs could jump in and give us a progress update or make it usable for the masses? Would really appreciate that :D
[Desire General] bramfeld:
I would like to have this update for CM. I tried the update from first post in opendesire and it actually worked, but I guess it isn't a very good idea.. because wi-fi stopped working. Now I'm running CM 6.0.
[Desire General] emuboy:
I'm interested too :)
[Desire General] uipe:
Oki here it goes, the kernels were compile from the teamdesire repo and the this zips were created using AnyKernel from koush.

These are only the kernel and they can be installed over a CM6 nightly without the need to wipe, (now I am using nightly 133 and yes I have wifi working).

cm_default - is the default kernel config just flash it to have usb funtions back.

cm_host - is the default config from sven everything is compiled has modules so you will have to insmod them.

cm_host_static - it has usb core, usb host, usb storage and hid usb compiled into the kernel so it just plug and play.

The usb stick led lights up after the desire reboots and stays on until the kernel is loaded again... really strange. The mouse works normally, without problems.

Tomorrow I will test with a serial adapter, just for kicks.
[Desire General] rayui:
USB Host mode on the Desire - video!

I used the latest Cyanognen git kernel (2.6.35.6) and sven killig's patches which I had to modify slightly. Unfortunately usb-storage.ko forces the phone to reboot when a stick is inserted into the hub. If anyone gets any news on this I'd be really interested to hear it. I had wondered if it was possible to debug this by using a pl2303 usb to serial converter to log the sys log files to an external device. Is there any easier way to debug the android kernels?

Anyway, I'll be buying some cdc-acm gear in a couple of weeks so will let you know how that goes. In the meantime, I attach my kernel config.

There is a video of me demoing a USB keyboard on the Desire here if you search youtube for "usb host desire". Cheers!
[Desire General] uipe:
exactly like my problem, also I thought that with a crash like this something would be written to /data/dontpanic but the folder is empty.
[Desire General] markrs:
Glad other people are interested in seeing this in CM 6 as well as the offshoots (OD and defrost). For me this is the last major feature I was looking for as we have CIFS (network storage) and bluetooth HID (bluetooth keyboard).
[Desire General] fllash:
Can you adb logcat?

Edit: Or is the kernel a different kettle of fish altogether?
[Desire General] mister_r:
Highly interested in this myself, please keep the good work going!
[Desire General] Mastaxlokks:
missing bus glue

Hey,

i am interested in getting the ftdi kernel Module to work on my HTC Desire. I was able to use hostmode with the paches you supplied. Unfortunately the Kernel I checked out with git from git://github.com/teamdesire/cm-kernel.git was 2.6.35.7, so modules I build with this won't work with 2.6.35.4.

So I tried recompiling the kernel completely which almost worked fine. I was able to compile the Kernel and run it on the phone. I was also able to insmod ftdi_sio.ko but i was missing the ehci-hcd.ko. Turns out, I get a error when I try to compile this feature.

The error states: "missing bus glue for ehci-hcd"

Anybody else got this error and knows how I can get rid of this? I can't find anything anywhere about any "Bus glue".

The other alternative would be that I use a 2.6.35.4 Kernel. Does anybody know some point where I can check out that version?

Thanx :)
[Desire General] Mastaxlokks:
I thought I followed all the instructions, but now I realized i didn't apply any patch... so after I couldn't find it on Sven Killings Website, I found it via Google and applied it.

After that everything compiled nicely and I got the Hostmode running with 2.6.35.7 Kernel. Also the ftdi_sio.ko works fine :)
[Desire General] hawkeyexp:
Can anybody upload the modules for the 2.6.35.7 cm6.1 Nightly-Kernel ?

thx !
[Desire General] 1Satoshi:
QSD common?

[based on the fact that Desire has a qsd8250 processor and the new mytouch4g/HTCGlacier has a qsd8255 processor]

is it possible to install this on the new mytouch 4g? or do the qsd's have nothing in common????
[Desire General] faqu:
latest defrost

is it possible to install and run usb-host kernel on latest defrost build ?
[Desire General] tknv:
[ROM]:USB-hosted

I build kernel cm-kernel 2.6.35.4 with USB host,Displaylink driver and aufs.

then my aim is use directvnc on extend monitor(usb-hosted displaylink dev).

But can not open /dev/tty0 .

Does anyone know how fix it ?

by theway mplayer can play mp4 video on extend monitor from bravo device.

Forked kernel(ccyrowski/cm-kernel->defer/cm-kernel->teamdesire/cm-kernel)

then -> tknv / cm-kernel.

and modify.

+ USB host patch from sven.killig:http://sven.killig.de/android/N1/2.2/usb_host/

+ aufs from http://aufs.sourceforge.net/

+ udlfb from http://git.plugable.com/gitphp/index.php?p=udlfb&a=summary

+ Native and Chroot Debian from http://www.telesphoreo.org/pipermail/g1-hackers/2008-November/000032.html

This ROM Based on DeFroST6.0C.

How to

1.download:[ROM]:http://firestorage.jp/download/e05648f28bcd0a7582c102b3c7792b050d621dbf

2.download:native Debian set:http://firestorage.jp/download/2ba5aaebf241f4968592fbc83ffbb2020dbd83af

uncompress zip and put all in SDcard(same dir ｈierarchie)

3.put all download file to SDcard

4.Flash ROM to 1 ROM image(pls. backup your origin ROM)

5.Connect your USB devices,Powered USB hub,Displaylink USB monitor,USB keyboard(for easy input) and what ever you like.

6.Boot your bravo

7.Need gscript.apk or input your self for loading modules.

7a.from gscript:

load 01-ld-usb-cores -- wait loading modules and init device.

load 02-ld-usb-hid -- wait loading modules and init device until keyboard work etc.

load 03-ld-udlfb -- wait loading modules and init monitor,when active monitor show green panel.

7b.from terminal emu:

be root

# sh /sdcard/gscript/01-ld-usb-cores.sh.sh

# sh /sdcard/gscript/02-ld-usb-hid.sh.sh

# sh /sdcard/gscript/03-ld-udlfb.sh.sh

8.Set Debian system from terminal emu

be root

# sh /sdcard/set-deb.sh

9.Set Framebuffer env from terminal emu

Maybe already Debian system ovelay on Android linux.

# export FRAMEBUFFER=/dev/graphics/fb1

# mplayer <your mp4 file>

Then should can see video on external display.

Now I am going to fork kernel, I need help fixing can not open /dev/tty0 for running directvnc on external monitor from Android.

In the ROM there is dvd driver etc. I did not test it,Because I do not have it.

WARNING: No Guarantee,No responsibility.

P.S.

apt-get is can not use at Native Debian on Android.

If you want use apt-get, please below way.

Run debian in chroot, use /sdcard/chroot-set-deb.sh at 8 of "HOW to"　sequence.

# sh /sdcard/chroot-set-deb.sh

from here in chroot.

# mount -t devpts devpts /dev/pts

# mount -t proc proc /proc

# mount -t sysfs sysfs /sys

you can find link in http://tknv.tk
[Desire General] jjb555:
This is a very interesting news. I tried to download the ROM but the links seems to be broken :-( .

does the mplayer play the mp4 video without lags?
[Desire General] sonic74:
If I remember correctly, this has something todo with the virtual console missing. Look in my .config for the relevant options.
[Desire General] sonic74:
They're available on GitHub now.
[Desire General] bergfex:
Hi

has anyone tried to use this patches on an Desire HD?
[Desire General] tknv:
> thanks sonic74

It was resolved as same as your advice.

and here result:http://xdaforums.com/showthread.php?t=815855&highlight=debian&page=2
[Desire General] tknv:
mplayer

Unnn,I set download link available until 500times....

Thanks interesting it,[ROM]http://firestorage.jp/download/8bda0d23f257d6aee6d5b66d5c768bb397e375fb

Here Native Debian img ext2 and scripts:http://firestorage.jp/download/51178eaf1f34462fb1d5dbd6f73c0e522e6579fa

Here that kernel source:https://github.com/tknv/cm-kernel/tree/android-msm-2.6.35-bravo

And When mplayer play mp4 that took by bravo device,It shown probably correct and no lags.

But when play mp4 source download from youtube,some mp4,It could not play. Maybe view resolution(size?) was too big. Still I did not know it.
[Desire General] tknv:
Does anyone know how to configure directvnc screen ?

I used that ROM and try use directvnc from bravo. But very wild view.

Do you know how to configure it ?

Here issue details.http://stackoverflow.com/questions/4275230/how-to-configure-directfbrc-for-directvnc-running-on-udlfb-device:(
[Desire General] tknv:
here is,but usb hosted kernel

> hawkeyexp

ROM inclue this modules:(but I dont know which modules you want)http://firestorage.jp/download/92a33016980f673d2eca424797f164fe2acd54a9

2010/11/18 11:18 9,306 ah6.ko

2010/11/18 11:18 42,112 auth_rpcgss.ko

2010/11/18 11:18 240,914 bcm4329.ko

2010/11/18 11:18 283,722 cifs.ko

2010/11/18 11:18 53,283 ehci-hcd.ko

2010/11/18 11:18 8,610 esp6.ko

2010/11/18 11:18 5,830 exportfs.ko

2010/11/18 11:18 3,084 fb_sys_fops.ko

2010/11/18 11:18 80,944 fuse.ko

2010/11/18 11:18 19,107 ip6_tunnel.ko

2010/11/18 11:18 5,439 ipcomp6.ko

2010/11/18 11:18 318,947 ipv6.ko

2010/11/18 11:18 85,747 lockd.ko

2010/11/18 11:18 9,058 mip6.ko

2010/11/18 11:18 347,486 nfs.ko

2010/11/18 11:18 257,062 nfsd.ko

2010/11/18 11:18 4,404 nfs_acl.ko

2010/11/18 11:18 3,431 nls_utf8.ko

2010/11/18 11:18 31,776 rpcsec_gss_krb5.ko

2010/11/18 11:18 15,945 sit.ko

2010/11/18 11:18 222,944 sunrpc.ko

2010/11/18 11:18 4,362 syscopyarea.ko

2010/11/18 11:18 5,050 sysfillrect.ko

2010/11/18 11:18 3,978 sysimgblt.ko

2010/11/18 11:18 5,522 tunnel6.ko

2010/11/18 11:18 20,336 udlfb.ko

2010/11/18 11:18 169,826 usbcore.ko

2010/11/18 11:18 27,577 usbhid.ko

2010/11/18 11:18 4,351 xfrm6_mode_beet.ko

2010/11/18 11:18 3,726 xfrm6_mode_transport.ko

2010/11/18 11:18 4,371 xfrm6_mode_tunnel.ko

2010/11/18 11:18 8,363 xfrm6_tunnel.ko
[Desire General] hawkeyexp:
Hi tknv,

thanks for the link ! I'm looking for the usage of usb storage devices (usb-storage.ko) but i will try out the available modules in the package !

Greats Hawkeye
[Desire General] tknv:
Unfortunatly It is not build and include usb-storage.ko ...

Here that kernel I usedhttps://github.com/teamdesire/cm-kernel
[Desire General] jjb555:
tknv,

Thank you very much, for the download links :-).

Regards.
[Desire General] the-fallen:
Heya,

I am trying to get the USB Host Mode working with a "close-to-stock" - kernel for the Desire. It is a lot of "try-and-error" and yesterday I build at least 20 different kernel :)

How ever, my goal is to get a kernel that supports the host mode as well as to get knowledge on what need to be changed to have the host mode.

So hopefully I will know if it would be possible to switch between host and slave-mode without rebooting/reflashing. The USB controller itself should be resettable.

How ever, does someone already tried that and can tell for sure that it woultn'd work (and why)? Or does someone already have a .config for a working close-to-stock kernel so I can spare some time?

Any other things I should be aware of?

Thanks in advance.
[Desire General] Sanix:
How can I get this modified kernel on my mobile? I tried to replace the kernel from defrost 6.1 with your kernel but the verification failed afterwards.

I also tried to install the kernel using fastboot but I get a "remote: not allow" error.

How do you guys replace the current kernel on your phone?

Thanks in advance for your help.
[Desire General] Sanix:
Can anyone provide the patch for the kernel? The uploaded version does not work for me. I can compile my own but don't know the differences to get the USB Host mode working.
[Desire General] fllash:
Would anyone be able to roll a 2.6.5.9 kernel for MIUI with host mode locked on? Most VorkKernels and DeFrost kernels work with MIUI, but I have never been able to get it to work properley.

Josh.
[Desire General] markrs:
I would be happy to use any rom or kernel that came with usb host! I kind of hoped that it would eventually be added to cyangenmod.
[Desire General] David Fisher:
what should I do then?

First, thanks a lot to your info!

I have followed your step. I have fastboot from RAM with your zImage. And I have done the the following:

insmod /system/lib/modules/usbcore.ko

insmod /system/lib/modules/ehci-hcd.ko

insmod /system/lib/modules/usb-storage.ko

These all succeeded. But when I monuted it :

mount -t vfat /dev/block/sda1 /mnt/sdcard/usb-storage

It failed because there is no such file or directory.

Am I right to do that ? And what should I do to access my usb storage device?

Thank so much again!

By the way, have you write something for guide?
[Desire General] David Fisher:
I have the same problem

Hi,lambrospower,

I had the same problem as you. I get monting failed. Have you solved it. If so, may I kown how did you achieved it ?

Thanks a lot!
[Desire General] David Fisher:
Hi,Mastaxlokks,

I want my Desire work with FTDI device. My ROM is for CM, and the kernel is 2.6.35.7. ehci-hcd can not be selected .

I am so glad to kown that you have succeeded. How did you applied the patch? Could you give me some guide for detail?

Thanks a lot!

David Fisher
[Desire General] TOMKA!:
I succeed to config my HTC-desire to USB-host, everything works fine.

I tried to connect an external wifi adapter, the phone crashes every time...

The driver seems to load OK.

any ideas?

does anyone know how to get a log file of the crash?

thanks
[Desire General] the-fallen:
Have a look to /data/system/dropbox on the phone.

It seems that it stores the old KMSG ("dmesg") there.

There should be one file (among many others) like that:

-rw------- system system 9446 2011-01-02 15:20 SYSTEM_LAST_KMSG@1293978031784.txt.gz

Get that file with adb after your phone crashed.

I hope that you'll find what you need there.

You said that you managed to get USB Host working?

Can you tell us more? What kernel did you use? What did you have changed?

Many thanks in advance.
[Desire General] janeksz:
Hi David,

I want to use FTDI device with HTC Desire as well. Have you succeded?

If yes, can you share how?

Jan
[Desire General] Mastaxlokks:
Hey guys,

sorry I didn't answer for a while, I guess the notification E-Mail must have been filtered out by my spam filter and I didn't check for a while... Here's what I did to get FTDI running:

1. Get the 2.6.35.7 Kernel source from

git clone git://github.com/teamdesire/cm-kernel.git

cd cm-kernel

2. Apply the Hostmode Patch:

http://sven.killig.de/android/N1/2.2/usb_host/android-kernel_msm-bca5320_Nexus-One_usb-host.patch

3. Activate Hostmode in the config. Either manually with

make cyanogen_bravo_defconfig

to get the standard config and then

make menuconfig

to customize

or you can take my .config file (see attachment)

4. compile:

make

5. Take a Kernelimage, (I took cm_default.zip from the third post of the seventh page of this thread, http://xdaforums.com/attachment.php?attachmentid=421496&d=1287359589) and unzip it.

6. Replace the kernel/zImage from the zip file with the zImage which you find in:

cm-kernel/arch/arm/boot

7. Copy new kernel modules into the folder to zip:

- cd to system/lib/modules

- create a folder: 2.6.35.7-cyanogenmod

- create subfolder: kernel

- copy all needed kernel modules which you find in your kernel source for example under "drivers/usb/" into the new folders, but keep the folder structure intact.

- Files you need for Hostmode:

drivers/usb/core/usbcore.ko

drivers/usb/host/ehci-hcd.ko

drivers/usb/serial/usbserial.ko

drivers/usb/serial/ftdi_sio.ko

I also copied all other modules which were included with the "cm_default.zip" into it's corresponding folders, though I'm not sure if they are needed.

8. Zip the folder

zip -r <YOUR_ZIPNAME.zip> kernel META-INF system

9. Copy onto your device's sdcard

10. Start in Recovery

11. Apply zip from sdcard

-> Select your ZIP file

12. Reboot

13. Now you need a terminal connection. Unfortunately that does not work any longer via USB, because it's now running only hostmode. There is a solution using "adbWireless" just install that from the marked and you can connect to your phone via WLAN using:

adb connect <PHONE'S IP>:5555

adb shell

14. In a shell enter the following:

su

cd /system/lib/modules/2.6.35.7-cyanogenmod/kernel/drivers

/system/bin/insmod usb/core/*

/system/bin/insmod usb/host/*

/system/bin/insmod usb/serial/usb*

/system/bin/insmod usb/serial/ftdi*

you should write a shell script for this, b/c it's annoying to do this by hand every time :D

15. now the modules should be loaded.

I also attached my kernel-image file, so you don't need to compile.

I am currently working on writing a wrapper program for the FTDI device, since you need SU rights to control a ftdi device and there's no way to enable that for a Java app. I am using libftdi for this which works good so far.

I hope I was able to help you.

-Tim
[Desire General] Mastaxlokks:
Oh, I just realized, if you do the

git clone git://github.com/teamdesire/cm-kernel.git

you probably won't get the 2.6.35.7 Kernel version anymore... either check out that version explicitly or just replace "2.6.35.7" by the version number you have anywhere it pops up...

Sven Killing's patch probably still works... not sure though ;)
[Desire General] janeksz:
serial terminal for Android

Thanks Tim,

I use Android 2.3.1 Oxygen-2.0-RC6 with Kernel 2.6.35.10-CM-HAVS-Oxygen on my HTC Desire.

Do you know of any serial port terminal for Android (Minicom, Putty, or similar)?

I am not able to find any. That makes it even more difficult.

Cheers

Jan
[Desire General] Mastaxlokks:
Hi Jan,

I'm not aware of any, but if there are none, it shouldn't be to hard to compile minicom for Android using the ndk.

Like I stated earlier, I'm using libftdi to communicate with my devices. It's easy to use and one could write a terminal like program that pipes the stdin and stdout to and from the device fairly easy...

Greetz,

Tim
[Desire General] techat:
Can all this be done on htc desire hd

i didnt found any thread regarding,doing this on desire hd,

I want usb host mode on desire hd

can anyone help,i wud really be thankfull.
[Desire General] ozracing:
usb switch

Hey just found this

h t t p : / / android.modaco.com/content/advent-vega-vega-modaco-com/327799/01-feb-r3-usb-mode-host-slave-switcher/

maybe this app developer would give you the source code? try it it's worth it :)

It would be a nice add to your source :)

P.S. sorry for h t t p : / / don't have high post count :)
[Desire General] Mr. Blobby:
me too, will this work for desire hd?

i want to do usb hosting but i don't know how, can someone please tell me where to start in terms of tinkering with the phone?

I already have a OTG cable and hub.
[Desire General] Mr. Blobby:
Can someone help me pleaaassee!!!

i dont know what to do next :(

i've got all the hardware stuff like: otg cable, power hub etc

but i dont know how to configure my phone :( where do i start? do i need to root it first?

someone please help!!
[Desire General] Mr. Blobby:
2. Go into Terminal emulator and write the following:

insmod /system/lib/modules/usbcore.ko

insmod /system/lib/modules/ehci-hcd.ko

when i try that, it says insmod cant open it. why is this?
[Desire General] Shar!ngaN:
@techat & Mr. Blobby: I've made a thread in the Desire HD section (Desire HD Q&A) with the question if there is someone who can provide the Desire HD of USB Host functionality.

http://xdaforums.com/showthread.php?t=945888

There is the thread. I hope that we will see this function on the Desire HD^^
[Desire General] totzkotz:
Would be nice to see such usb-host/client toggle in cm7 :)
[Desire General] dexter93:
Hey there Mastaxlokks! Ive been trying to use your instructions to modify a kernel, but could not understand how to apply sven killings patch. Could you please clarify that?

Thanks in advance
[Desire General] Mastaxlokks:
Mmmh.. I don't know the exact command anymore, since it's been quite a while since I last used it.

You have to use the 'patch' Programm on commandline should be something like this:

patch -p1 < path/to/patchfile

you will have to do this inside the cm-kernel folder.

The p1 says that the first directory of each file mentioned in the patch file should be cut off... don't know if that's the right one for this patch... but after looking at it quickly I think that's actually how it works... If not, try Google'ing about patch :D

Hope this helps.

-Tim
[Desire General] dexter93:
Well believe me i must have melted about five google's servers trying to find some info for a beginner developer... but i have found only irrelevant things and inaccurate info. Anyway i'll try your advice. thanks for replying

Q: will your kernel work on a sense rom? (edit: scratch that, stupid question)

EDIT: i finally managed to patch it and confgure the kernel but i cannot execute the make command
[Desire General] Mastaxlokks:
Can you maybe post the output of your commandline after you invoke make?
[Desire General] dexter93:
of course! Sorry but was on an other pc when i last posted heres the output:

make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2

EDIT: found a solution here: http://www.proxmark.org/forum/post/3244/#p3244

but when i try to "make" i get :

/home/dexter/devkitARM_r32-x86_64-linux//devkitARM/bin/arm-eabi-gcc: 1: Syntax error: "(" unexpected
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/home/dexter/devkitARM_r32-x86_64-linux//devkitARM/bin/arm-eabi-gcc: 1: Syntax error: "(" unexpected
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2

any clues?

Second EDIT: tried to reapply the devkitARM and now i get this:

make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2

but WHY? :confused::confused::confused:

:mad:
[Desire General] dexter93:
IDEA: would that be easier with the ndk? and if so how?
[Desire General] Mastaxlokks:
Seems like it's not finding the gcc... don't really know why... I haven't compiled the Kernel in a while, but since I need to do it anyways, I'll try to compile it again and see if it still works for me...