Hi all
I'll keep this as short as I can. I have:-
- HTC Desire S Rooted and Running 2.3.7 [ CM7 ]
- Xoom WiFi [ non-3G ] Running EOS Build 80
- Working and certified USB OTG Cable
I can and do WiFi Tether with no issues, but want to get USB Cable Tethering going also.
So ... this is what I have done:-
- from http://forum.xda-developers.com/showthread.php?t=1488059 I have loaded the Tiamat 3.0.5 Overclocked GPU kernel - it installed from Recovery Mode no problems
- from http://forum.xda-developers.com/showthread.php?t=1513490 I have downloaded and installed the DOWNLOAD DEVELOPMENT OVERLAY REVISION 2 and the Tiamat 3.0.5 Kernel Driver Module Pack rev 4 - both installed from Recovery Mode no problems
- I then ran Terminal and ran " lsmod " and the usb_wwan is there
- I checked the file permissions on all files and all are fine
So far ... so good.
Then I do as follows:-
- I reboot
- went in to Terminal and typed as follows:
su [ hit Enter ]
cd /system/lib/modules [ hit Enter ]
modprobe usb_wwan [ hit Enter ]
- after doing all that, I was back at the " command prompt " - I didn't get any messages good or bad either way, it just took me back to the " command prompt " <- I assuming thats normal ?
- I kept the Terminal Screen open
- plugged the phone with the OTG USB Cable to the Xoom
- Enabled DATA and USB Tethering on the phone
- went to the Xoom and opened the Browser
- no connection - waited a minute of so - no connection - waited another 5 minutes - no connection
- then to add insult to frustration, when I disable the phones USB Tethering and unplug the OTG cable, the Xoom " freezes " and then re-boots ?!?!?!?
[ I also tried the insmod command instead of modprobe - no go ]
PLEASE, please can someone tell me what I am doing wrong and give me a gentle nudge in the right direction ?
Ben
.......... bump ........ really hoping someone here has got USB Cable Tethering between their Android Phone and the Xoom working / or knows what I am doing wrong above ........ bump ............
......... no-one ? ........ at all ? ........ really ? .........
Related
For FROYO SENSE ROMS only
Hi
I ported Sven Killig's (sonic74 ) usb host patch to the Desire HD.
My Kernel is based on Buzz OC/UV 1.22Ghz CFS+BFQ+SmartAss+TUN+EXT4+.31 ACE 1.3.6
and following patches:
http://forum.xda-developers.com/showthread.php?t=694427
http://forum.xda-developers.com/showthread.php?t=751535
and I am using Android Revolution HD 3.1. So all glory goes to this peaple and to Andrew de Quincey.
Using this Kernel will disable all usb client functions, so this kernel is not very usefull.
So I use following comands to boot this kernel for testing and playing:
Code:
adb reboot bootloader
fastboot boot boot.img
With this methode the phone will boot with the old kernel after a reboot.
After booting my kernel you can use insmod to load the different driver modules.
You will need at least usbcore.ko and ehci-hcd.ko.
I have tested usb keyboard and usb storage (2GB FAT32). Use Sven Killig instructions to use the different modules.
http://sven.killig.de/android/N1/2.2/usb_host/
Needed Hardware:
* A micro USB B male to USB A female adapter/cable
http://www.amazon.de/gp/product/B00...&pf_rd_t=101&pf_rd_p=463375193&pf_rd_i=301128
* A self powered Hub that provides its power to the upstream port.
For trying my kernel you will need the boot.img from the boot.rar and the modules from the modules.rar.
For integrating the patch into your own kernel you will need the usbhostpatch.txt and the .confg from the config.rar
PS: Wifi is not working but should not be hard to fix.
Cool!
I've been wanting this for a long time.
I actually ordered a USB OTG yesterday. =)
I think I'll try to add this to the CM7 kernel instead since I use CM7.
How did you integrate the patch into the kernel?
Do you think you could make a video of the procedure from beginning to finish? =)
Or maybe give instructions to me so I can make a video?
If you want to add the usb host function to a CM7 kernel you should try to use following patch:
https://github.com/sonic74/kernel_msm/commit/0e3dbcdd1f0a55a007266f0ad8598c7b4164c8bd
Apply this by hand, because the kernel versions are different.
About which steps you want to have a video?
I thought it would be nice for people to be able to see this done from the beginning to the end. That is first the hardware bit, and then the software modification. But I think the most tricky part would be the software side.
Just an idea. Thank you!
=)
My purpose was to show that usb host mode is possible with the Desire HD, now other devs can try to make this features more useful.
For example Apache14 made a kernel for the Advent Vega Tablet, where you can choose at start up if you want to boot the host or the slave mode. It would be perfect if we could have samething like this for the DHD.
Someone could try to add this to a CM7 Rom, but this will require C programming and linux knowledge.
....
Yes that would be awsome. I wish I could help more.
I'm still learning the fundamentals and it takes time to learn this stuff.
Great idea man! I'll stop spamming this thread now.
has anyone tried how well that works with ubuntu?
This question is a little stupid but what does this all mean?
What can we except if this works well?
Yours truly.
If everything works, you could plug a USB Massstorage in your DHD or you could connect a USB Gamepad or a Keyboard.. or even a USB Wifi Stick which is able to hack WEP
Very nice work indeed
Good choise to boot the .img instead of flashing through fastboot (unless that's the only way at the mom.), when all other usb functions are disabled, hence no charging with your kernel
I take it's only working with 1.72 based roms?
I'm coming from a Nokia N900 where some devs actually also did this and they ran into all sorts of issues to make it work and the main thing was to enable it so other usb functions also worked at the same time. I changed device before it came to be a beta I think, but did use it (alpha) and found it very usefull. Could flash kernel(s) OTG through terminal so no need of a pc.
One question though is there a way to do it through CWM with a .zip file, I don't know if the CWM has a function to boot from a .zip? It would be nice to be able to do it without the need of a pc
Awesome! Been waiting for this particular feature
when all other usb functions are disabled, hence no charging with your kernel
I take it's only working with 1.72 based roms?
Click to expand...
Click to collapse
Charging also works in the host mode. But there is a delay before the charging begins.
I use Android Revolution HD 3.1 that is based on 1.84.
One question though is there a way to do it through CWM with a .zip file, I don't know if the CWM has a function to boot from a .zip? It would be nice to be able to do it without the need of a pc
Click to expand...
Click to collapse
I don't know if CWM has this feature, but being able to do it without the need of a pc would be very helpful.
An other problem is the need of an self-powered usb hub.
bergfex said:
An other problem is the need of an self-powered usb hub.
Click to expand...
Click to collapse
So the DHD won't have enough power to make a flash stick work without any external power supply? I know the N900 gave some 3.5v - 5v when in hostmode, just enough to light up a flash stick.
Nice to know it will be able to charge
Will try it out on a old nandroid backup (1.72 base), currently on GB build and will report back
Will try it out on a old nandroid backup (1.72 base), currently on GB build and will report back
Click to expand...
Click to collapse
Same feedback would be nice.
I know the N900 gave some 3.5v - 5v when in hostmode, just enough to light up a flash stick.
Click to expand...
Click to collapse
At the moment anybody has this on an qualcomm powered device, but this would be very nice.
Dousan said:
One question though is there a way to do it through CWM with a .zip file, I don't know if the CWM has a function to boot from a .zip? It would be nice to be able to do it without the need of a pc
Click to expand...
Click to collapse
flash yes, boot no.
I'm getting some errors while doing insmod:
First i put the 'drivers' folder, from your RAR attachment, in /system/lib/modules, then booted the .img with fastboot and then through connectbot as local i did this:
First the:
insmod drivers/usb/core/usb-core.ko wich didn't give any error just jumped to a new line #
and then:
echi-hcd.ko code line wich got me this error: can't read file or doesn't exist - even though i cd'ed to the directory?
Then tried even though i got the error with echi-hcd.ko.
Code:
insmod drivers/usb/storage/usb-storage.ko
error:
insmod: can't insert 'drivers/usb/storage/usb-storage.ko': file exists?
E: tried it again and now i can't even get past the first code:
insmod drivers/usb/core/usb-core.ko - the same error as echi-hcd.ko - can't read file bla bla...?
Must be doing something wrong here...
I'm not sure that it gives any voltage to my flash stick, as it doesn't light up or it is possible without an external power? On my N900 i could use a flash stick and such aslong as it didn't need more than the 3.5v...
e2: tried a third time and still can't read the echi.hcd.ko file?
Maybe a bad extract or something, i'm really noob, just like to fiddle around with my phone. So any help would be great
kendong2 said:
flash yes, boot no.
Click to expand...
Click to collapse
Cheers mate, just hoped it would be doable, but didn't think so... A flashable .zip would be great to have once i get it to work lol
Hi Bergfex
I was hoping to try out the code @ CodeAurora instead (https://www.codeaurora.org/gitweb/q...3f9b1ca5a3279455371fd79;hb=android-msm-2.6.32).
From what I can see it utilized the OTG driver, so it 'should' be switchable at runtime.
I tried a quick merge with the files, but there is some initialization issues that I could not sort out (or rather not willing without anything to test with).
Perhaps someone can give it a second look.
Cheers
leppie
I try to make a little tutorial:
(this is not the easiest correctest and shortest way, but exactly what I am doing during writing this tutorial.
1) download boot.rar and modules.rar (to your pc)
2) unpack this rar-files
3) connect the DHD to the PC as mass-storage
4) copy the modules directory to the root-directory of your sd-card
5) create a directore "usb-storage" in the root-directory your sd-card
6) download the Radio flash.zip from
http://forum.xda-developers.com/showthread.php?t=896597
7) unpack the Radio_flash.zip
8) copy the boot.img from the boot.rar to the Radio Flash directory
9) disconnect the DHD
10) Settings->Applications->Development->enable USB Debugging
11) connect the DHD to the PC select charging only
12) go into the Radio Flash folder and start "Start Here"
13) type "adb reboot bootloader"
-> DHD boots into bootloader (should be S-OFF )
14) type "fastboot boot boot.img"
-> DHD boots
15) Settings->Info->Software info-> kernel info should show
2.6.32.31_BUZZ_1.3.6_OCUV
[email protected] # 13
Thu Mar 10 22:43::02 EET 2011
16) disconnect the DHD
17) start "Terminal Emulator"
18) "cd sdcard"
19) "cd modules"
20) "cd drivers"
21) "cd usb"
22) "cd core"
23) "insmod usbcore.ko"
24) "cd .."
25) "cd host"
26) ("ls") optional
27) "insmod ehci-hcd.ko"
28) "cd .."
29) "cd storage"
30) "insmod usb-storage.ko"
31) "cd .."
32) "cd .."
33) "cd hid"
34) "insmod usbhid.ko"
35) "insmod hid-apple.ko" (I just have a apple keyboard for testing (it is not mine))
36) supply your USB hub with power
37) connect the USB hub via the adapter cable to your DHD
38) connect a USB keyboard to the first port of the USB hub (my last port is not working)
39) wait
40) use your keyboard
41) conncet a USB massstorage to the second port of the USB Hub. In my case a 2GB with FAT32
42) wait
43) "mount -t vfat /dev/block/sda1 /mnt/sdcard/usb-storage"
44) use ES File Explorer to browse your USB Storage
45) reboot your DHD and unplug the USB hub
46) you should have your old kernel
Can this be used for Inspire 4g as well?
TIA
A simple test I do not want to do myself, but I would like that any one INTENDING to go S-OFF could do for me.
I want to test a feature that I have now in S-OFF, and I want to know if the feature is present in S-ON. I do not want to test it myself, because I have only one HTC, and do not want to downgrade back to S-ON. But any one who is at the moment in S-ON, and wish to switch to S-OFF can do it for me, and can do it safely.
The feature I have found:
- run this line in linux host (or equivalent script in Windows, or just manually run adb shell):
while true ; do adb shell "uptime ; id " ; sleep 0.5 ; done
or run this command manualy, once every few seconds:
do adb shell "uptime ; id "
- in the mobile phone, activate USB debug
- see that ADB will output a few things (what is says does not matter, what matters to me is that it will give uptime and id, proving that debug mode is working)
- switch USB debug off
- run adb, see that it says device error
- unplug USB
- remove battery
- plug USB
- put battery
- orange LED lights
- orange LED stays on for 5 or 10s
- orange LED goes off
- wait 3s
- run adb: at this very moment, adb can log in the phone and run the command without error
- 2s later, whether I ran adb or not, orange led comes in again.
Basicaly, after a compleet power failure, pluging bat then USB, even what USB debug was off ... led will get orange for 10s, then off 5s, then on again for good. And in the middle of the period where led is off, i can start using adb. You can wait for the second solid light state; you will always have adb.
This happens to me on HTC Sensation after getting S-OFF using Revolutionary, and installing ClockWorkMod.
What I would like, is that one person who wish to crack into S-OFF would be:
- check if the feature is absent or present in S-ON mode
- crack to S-OFF
- check if feature is present in S-OFF after crack.
I want to know if having adb depends on S-OFF, or not. Any one who have S-ON could do the test, but for many reasons, I would like the *before-after* comparison to be done *on the same phone*.
Thanks.
i also found that when you run ddms in windows ,the adb connecttion will lost and show repeattly ......dont know if this only happend to me or not . is anyone else facing this problem?
S-ON
When USB debug is off:
Code:
error: device not found
When USB debug is on:
Code:
up time: 01:13:55, idle time: 02:16:17, sleep time: 00:00:00
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)
1. Battery out (usb debug off)
2. USB in
3. Battery in
4. LED on
5. LED off
6. adb shell error: device not found
7. LED on
S-OFF
When USB debug is off:
Code:
error: device not found
When USB debug is on:
Code:
up time: 00:05:22, idle time: 00:04:51, sleep time: 00:00:00
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)
1. Battery out (usb debug off)
2. USB in
3. Battery in
4. LED on
5. LED off
6. adb shell
7. output:
23:37:21 up 0 min, load average: 0.22, 0.04, 0.01
uid=0(root) gid=0(root)
(LED still off)
When I type adb devices it states that the phone is in recovery mode.
I tried unplugging and replugging the USB and I still had adb access.
Unfortunately, it did not work when I had S-ON
Quick reply: after putting battery in, and pluging USB cable, LED comes on, off, on ... I do *NOT* press the power button: the system does not start, no boot. I am saying that I can get ADB shell in a NOT BOOTED phone, even when USB debug was tuned OFF. After putting bat + USB, adb shell is available as soon as the led lights for the second time, about 20s after USB plug.
Not starting, not booting, not pressiong power.
I found that I had access to many things.
My point is that ... if this feature is available on S-ON phones, then *MAYBE* it could be an entry point to mount or remount /system and have fun in ... or maybe even other partitions ... maybe it's known feature. But just in case nobody ever seen this ...
Does not work on HTC G1. Works on Desire S. Both are S-OFF.
It starts working at mid time when orange LED is off (to save a few seconds); but it is safer to wait for LED to light again, or try adb repetidely until it is solid again.
But if LayZeeDK understood me correctly ... it seems to be a S-Off specific feature.
Thanks for trying.
This is nothing new. If I understand correctly, when the phone is off and charging it is actually powered on, in recovery mode, with nothing on screen. This is why you can get adb, at least sometimes...
Sent from my HTC Sensation 4G using XDA App
It's just offline charging. You are in recovery with the screen off.. already posted something about this in general faq..
Sent from my HTC Sensation 4G using XDA Premium App
Thank you
I just bought my Sensation 3d ago, and am having fun with a friend who use HTC since years. He was not aware of this, so we just did not know.
So, the feature is not due to S-OFF, but to ClockWork.
Thanks for feedback. Can close the thread if you want.
since I registered because i have a question about this i don't have 10 posts.
But i followed this guide: "[NAND][BETA] Replace Windows Mobile with Android 2.3.7 CyanogenMod7.1 [1s March 2012]"
And call me stupid but i'm stuck.
I did the fastboot part first with the .bat and later with command using
"fastboot flash boot boot.img"
"Fastboot reboot"
I then thought...Wow this really works until my phone hangs at;
- android_usb gadget: high speed config #1: android.
and it won't go any further untill I remove the usb cable, then it does something until it hangs again at;
- msm72k_udc: usb_ept_queue_xfer() called while offline
When I place the usb back into the phone it hangs at the first one again.
This is without SD
At last i rebooted the phone again WITH SD and it hangs at
-adb_open
then when i stick the usb in it goes on until
- android_usb gadget: high speed config #1: android.
when i pull it out again it says
-msm_hsusb_phy_reset: succes
Can someone help me with this please?
Never mind I already got it working
It can happen suddenly one day when everything was working perfectly the day before. You tried to uninstall and reinstall the windows driver but didn't work. Then, maybe the problem is in the device itself. The error shown can be:
- SAMSUNG Mobile MTP Device: Failed
- MTP USB Device: Failed
The problem was easily fixed on a Galaxy S4 device.
1) Call *#0808#
2) Set: USB ->AP; USB Settings ->MTP ->OK ->Reboot the phone
3) Set: USB ->AP; USB Settings ->MTP + ADB ->OK ->Reboot the phone
Should work now.
Hello everybody! Noobing the shoozle out of my:
OnePlus One, model A0001 / 64GB currently with: Android 6.0.1 / Cyanogen OS version: 13.1.2-ZNH2KAS3P0-bacon / CyanogenMod API level: Elderberry(5) (just FYI, not sure if helpful)
Kernel version: 3.4.112-cyanogenmod-g8fbc62e
Unlocked, rooted with BaconRootToolkit/ TWRP ROM, downloaded latest ver -3.0.2-0 via official App, from Play Store
Kali images from: build.nethunter.com/nightly, as offensive-security's kali-nethunter wiki on github says (no external links for noobs, sorry )
apt-get updated, upgraded and dist-upgraded via KALI terminal
The first issue is with the OTG, not powering the USB WiFi adapter properly... with the regular USB-OTG adapter, lsusb WORKS, and returns proper info about 3 different adapters (Alfa Awus036h, TP-link WN725N and WN722N), BUT does not power them. No indicator lights get lit whatsoever 0mA status from lsusb -v
I bought a powered USB-OTG hub, that appears to not charge my phone, when plugged in two different chargers AND a powerbank. Still lsusb -v returns: 100mA current for the hub.
I tried plugging an A4Tech receiver for kbd+mouse, both work fine, with the tplink WN725N plugged in the second USB socket. lsusb shows the hub, the receiver and the WN725N data... Both regular and hub OTG's work fine with mouse+kbd, read and write data to USB Memsticks. Regular OTG transfers files to a computer and charges the phone.
I noticed that when in Android, the WiFi is turned off, ifconfig omits wlan0 and p2p0, that is the phone's main WiFi adapter.
So I thought that manually loading (insmod) the rtl drivers would start the OTG wlan.... Thus coming to the second issue:
The kernel is without LKM support - no modprobe, lsmod returns:
Code:
libkmod: ERROR: ../libkmod/libkmod-module.c: 1655 kmod_module_new_from_loaded: could not open /proc/modules: no such file or directory
Error: could not get list of modules: No such file or directory
When "apt-get install linux-headers-$(uname -r)" is typed, returns:
Code:
E: Unable to locate package 'linux-headers-3.4.112-cyanogenmod-g8fbc62e'
E: Couldn't find any package by glob 'linux-headers-3.4.112-cyanogenmod-g8fbc62e'
E: Couldn't find any package by regex 'linux-headers-3.4.112-cyanogenmod-g8fbc62e'
"apt-cache search linux-headers" returns some options for version linux-headers-4.9.0-kali1-all-armhf (the only armHF, others are armmp)
I cannot find a way to recompile my kernel and enable Loadable Kernel Modules support. Would you say this would be necessary for the external WiFi to work?
Do you know if there is any way out of this mess, as I am really tired fighting a "Our preferred device"-release issues??? Overall I'd love it if I could run external antenna
I am kind of new around.... In forums - in general, so I kindly ask for understanding. If any screenshots/pics/additional info is required - I'll make sure I update this thread. Not sure if I could've posted this thread in XDA assist, so I did it here.
EDIT: everything went fine when I tried third, different USB - WiFi adapter. Works properly. Still no LKMs.