[Resolved] OnePlus One + NetHunter - no power on otg AND LKM support issue - General Questions and Answers

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.

Related

[USB Host] on the Desire HD

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

Minicom and USB to serial adapter

Im looking to test and potentially develop support for usb to serial adapters and for console connectivity with an app similar to or with Minicom. I'm a network administrator and would be able to use my Asus Transformer or other Android tablets with USB connectors to console into the equipment I manage.
Does anyone else have interest in a project like this?
Does anyone else know of a similar project?
Thanks
Sent from my Transformer TF101 using XDA Premium App
I think its a great idea.
Sent from my Transformer TF101 using Tapatalk
^x2
Sent from my SCH-I500 using Tapatalk
I've been searching around and have found that there are Bluetooth serial apadpters with software that should allow for connectivity. Reading reviews I get mixed results.
https://market.android.com/details?id=com.magicandroidapps.bluetoothterm&feature=search_result
http://www.magicandroidapps.com/wiki//index.php?title=Bluetooth_Serial_Adapters
Sent from my Transformer TF101 using XDA Premium App
that would be pretty cool, i am also a network manager and will proably buy also a transformer (just waiting for the new archos to see if they are anything good).
I think the rs323 cable approach would be better as there would be no power drain from the Bluetooth (i know its minumal but...).
I am new to android development (i am going to do my university final thesis based on a android software) but i would like to help
PS - if you connect a usb-rs232 adapter to the transformer and do "dmesg | tail" on a shell does it appear.
Also see if the last answer on this post helps htxxp://stackoverflow.com/questions/4621580/using-serial-port-rs-232-in-android
This is something I would pay a couple of english pounds for from the market.
My USB->Serial port adapter is based around the Prolific PL2303 chip which I think is pretty common, so may be a good place to start.
That would be amazing.
I am a network administrator and would love to see this on my device. Although I have an Acer A500 and not the Asus Transformer.
I plugged in my usb to serial adapter and ran dmesg. Here was the output :
Code:
usb 1-1: pl2303 converter now attached to ttyUSB0
Any idea of what app I could use to connect to that to test it out?
ipigi said:
I plugged in my usb to serial adapter and ran dmesg. Here was the output :
Code:
usb 1-1: pl2303 converter now attached to ttyUSB0
Any idea of what app I could use to connect to that to test it out?
Click to expand...
Click to collapse
If we had full GNU utilities on Android, you could use screen against /dev/ttyUSB0 and that should connect to the serial device.
Unfortunately, I don't know of any direct serial communication applications on Android.
I'm also an IT administration and could use a working rs232 solution for my tablet.
Asus Transformer 3.1 pwnd
www.MiiWiiChat.com
www.SnapSiteAdmins.com
Keyspan usb-serial adapters have drivers available in the kernel. Seems to me easiest thing to do would be to build the required kernel modules, install debian to a parition on the SD card, setup a chroot environment and install minicom/screen/serial terminal of choice. Alternatively instead of debian chroot, you could build a serial terminal client for use in the android linux environment.
Hi guys, I am a Acer Iconia A500 user but found this topic yesterday while trying to find a way to use my usb/rs232 adapter for my linux boxes at work. It seems like the only thing you need is kernel modules for the adapter you have (either prolific or ftdi) and busybox 1.19. I wrote a quick how-to for my Acer (http://forum.xda-developers.com/showpost.php?p=16703609&postcount=23) which I am also copying below. As long as you can find the kernel modules it should apply to Transformer as well:
Thanks to celsoffraga and also thor2002ro for the kernel modules, I can confirm that A500 can run a usb/serial (rs232) perfectly fine on the stock 3.1 kernel/rom.
Ingredients: Rooted, A500, kernel modules for your adapter, a terminal emulator, and busybox 1.19 which has a tool called microcom in it.
Install busybox 1.19 through this application (the other busybox installer app on the market installs a slightly different version of 1.19 that does not have microcom):
https://market.android.com/details?i...ybox.installer
Download usb2serial package for your kernel from the first post of (you can check your kernel version from Settings - About Tablet):
http://forum.xda-developers.com/show....php?t=1058713
Extract that usb2serial zip to somewhere in the tablet (I used /mnt/sdcard/modules/). There should be two files, one for Prolific chipset serial converter, pl2303.ko which is the most common one, the other one for the Fidi chipset, ftdi_sio.ko, which is what I had.
Now open your favorite terminal emulator (Both terminal emulator and connectbot works) and load the module you need, or you can load both:
Code:
insmod /mnt/sdcard/modules/ftdi_sio.ko
Now plug your usb/serial converter to the USB port, and type "dmesg" in terminal. You should see something like "FTDI USB Serial Device converter now attached to ttyUSB0" , which means everything is detected fine and attached to the correct device point in linux.
Now comes the serial terminal emulator, which is called "microcom".
In terminal, just type microcom and it should return a short help text. Our device name (TTY) is /dev/ttyUSB0 . So if I want to connect to a rs232 port with 9600 baud rate, the command should be:
Code:
microcom -s 9600 /dev/ttyUSB0
Tadaaa!​
If it means I no longer have to undock and lug my massive work laptop down to the datacentre every time, I'm all for it.
fincan - awesome, can't wait to get my dock to test that out. Thank you.
Very interested in ur app, keep me posted...
Thanks
Sent from my Transformer TF101 using Tapatalk
Tr
fincan said:
Hi guys, I am a Acer Iconia A500 user but found this topic yesterday while trying to find a way to use my usb/rs232 adapter for my linux boxes at work. It seems like the only thing you need is kernel modules for the adapter you have (either prolific or ftdi) and busybox 1.19. I wrote a quick how-to for my Acer (http://forum.xda-developers.com/showpost.php?p=16703609&postcount=23) which I am also copying below. As long as you can find the kernel modules it should apply to Transformer as well:
Thanks to celsoffraga and also thor2002ro for the kernel modules, I can confirm that A500 can run a usb/serial (rs232) perfectly fine on the stock 3.1 kernel/rom.
Ingredients: Rooted, A500, kernel modules for your adapter, a terminal emulator, and busybox 1.19 which has a tool called microcom in it.
Install busybox 1.19 through this application (the other busybox installer app on the market installs a slightly different version of 1.19 that does not have microcom):
https://market.android.com/details?i...ybox.installer
Download usb2serial package for your kernel from the first post of (you can check your kernel version from Settings - About Tablet):
http://forum.xda-developers.com/show....php?t=1058713
Extract that usb2serial zip to somewhere in the tablet (I used /mnt/sdcard/modules/). There should be two files, one for Prolific chipset serial converter, pl2303.ko which is the most common one, the other one for the Fidi chipset, ftdi_sio.ko, which is what I had.
Now open your favorite terminal emulator (Both terminal emulator and connectbot works) and load the module you need, or you can load both:
Code:
insmod /mnt/sdcard/modules/ftdi_sio.ko
Now plug your usb/serial converter to the USB port, and type "dmesg" in terminal. You should see something like "FTDI USB Serial Device converter now attached to ttyUSB0" , which means everything is detected fine and attached to the correct device point in linux.
Now comes the serial terminal emulator, which is called "microcom".
In terminal, just type microcom and it should return a short help text. Our device name (TTY) is /dev/ttyUSB0 . So if I want to connect to a rs232 port with 9600 baud rate, the command should be:
Code:
microcom -s 9600 /dev/ttyUSB0
Tadaaa!​
Click to expand...
Click to collapse
Tried on my Trasformer with Revolution 3.5 nd it work great. Now I can control my PLC application from tablet.
Thanks a lot.
fincan said:
Hi guys, I am a Acer Iconia A500 user but found this topic yesterday while trying to find a way to use my usb/rs232 adapter for my linux boxes at work. It seems like the only thing you need is kernel modules for the adapter you have (either prolific or ftdi) and busybox 1.19. I wrote a quick how-to for my Acer (http://forum.xda-developers.com/showpost.php?p=16703609&postcount=23) which I am also copying below. As long as you can find the kernel modules it should apply to Transformer as well:
Click to expand...
Click to collapse
Thanks for the tip and the links. I'm now able to connect my old Garmin GPS device to my Asus Transformer and use "pygarmin" Python scripts on SL4A : no need to carry a PC for my next vacations!
I was able to connect to a Oracle / SUN /T5220 server serial management port with the BlueTooth adaptor.
Ebay HC-06-D, Bluetooth to RS232 serial communication converter module, slave mode
DIYGSM Wholesale
I converted it from a DB9 serial to RJ45
DB9 PIN 2 TXD to RJ45 PIN 3 RXD
DB9 PIN 2 RXD to RJ45 PIN 6 TXD
Ground and black wire for the USB to PIN 5 of the RJ45.
USB connector supplies the DC to run the module.
Don't for get to pair the module with your Transformor password 1234.
Running ASUS Transformer TF101 B1 32GB Tablet Honeycomb ver. 3.2.1
Terminal Application SENA BTerm found on the Google market.
Hi
kerenoc01 said:
Thanks for the tip and the links. I'm now able to connect my old Garmin GPS device to my Asus Transformer and use "pygarmin" Python scripts on SL4A : no need to carry a PC for my next vacations!
Click to expand...
Click to collapse
Unfortunately, my video on demand provider (in France) uses an application that checks if the tablet is rooted. I had to unroot to be able to download and watch films and catchup TV.
Is there any hope to control a FTDI interface from user space (libusb, libftdi)?
Or could I install the .ko driver so that is survive the unroot process (using the Universal script)?
Regards
ICS update?
Has anyone got this to work in ICS? If so what kernel module are you using? Tried the one from the A500 link but I get an "Invalid Argument" while running insmod

[SOLVED] Infuse wont connect to Ubuntu....

UPDATE-SOLVED: So I used the terminal command dmesg to see what errors were coming up relating to the usb port. It turns out I was getting the popular "unable to enumerate usb device on port..." error. From a google search on this I was able to find other people with my same problem, albeit with other types of devices not working on the usb ports. So someone tried a simple fix and worked. Ill quote it here just for the sake of keeping you on this page...
Some hardware just don’t work with ehci_hcd on Karmic Koala. My memory stick from transcend refused to work no matter what I did. After plugging the device nothing happened, doing dmesg showed me the following error:
Apr 18 10:59:04 dpac-laptop kernel: [73668.388060] usb 1-2: new high speed USB device using ehci_hcd and address 5
Apr 18 10:59:04 dpac-laptop kernel: [73668.473034] hub 1-0:1.0: unable to enumerate USB device on port 2
After searching a lot, I came to a conclusion that my device doesn’t work with USB 2.0. So I disabled the ehci_hcd to make it work.
Since Karmic doesn’t use ehci_hcd as a module, modprobe -r ehci_hcd no longer works. The module is compiled into kernel. To disable it execute the following commands in terminal:
1: cd /sys/bus/pci/drivers/ehci_hcd
2: ls
You will see a file with 0000:00:xx.x format. Execute the following command:
1: sudo sh -c 'echo -n "0000:00:xx.x" > unbind'
#Replace the xx.x with the numbers displayed on your file. It should disable the ehci_hcd.
I plugged in my memory stick, and it worked.
Please note that you’ll have to do all this each time you restart.
UPDATE
You can now use the following script to disable ehci_hcd. It is far more simpler since it just needs you copy pasting the commands instead of a manual action. Here it goes:
1: cd /sys/bus/pci/drivers/ehci_hcd/
2: sudo sh -c 'find ./ -name "0000:00:*" -print| sed "s/\.\///">unbind'
Cheers!
Ok so I just finished installing a fresh copy of Ubuntu 11.04 on my g/f's old Sony Vaio from 2003/04. I tried plugging in the Infuse to see if the computer will recognize it. So when I select 'Mass storage' from the connection menu, the connect screen with the green android robot will pop up for a split second, then disappear. So there is no way for me to mount the phone to the computer. The option doesnt even appear in the notification bar. Sometimes the robot screen wont even appear at all. I check the cable, and it works 100% fine on my win 7 64 bit pc. It just doesnt seem to want to do anything on the Ubuntu pc. The phone will charge, but thats about it. Im running the clean Gingerbread update on the Infuse. Nothing modded, and as i said, the Ubuntu is clean install as well. Ive tried this with usb debugging on and off. Ive also tried restarting both phone and pc and nothing changes.
Any help would be so greatly appreciated. Thanks a million.
weird. try other USB devices. you could have motherboard driver issues.
I'd check the Ubuntu forums and see if others with that hardware have any issues with USB devices. you may need to find some alternative drivers that aren't in the stock Ubuntu build or find a different computer.
Dani897 said:
weird. try other USB devices. you could have motherboard driver issues.
I'd check the Ubuntu forums and see if others with that hardware have any issues with USB devices. you may need to find some alternative drivers that aren't in the stock Ubuntu build or find a different computer.
Click to expand...
Click to collapse
I have tried some flash drives. They seem to work just fine. When I plug the phone in under the mass storage option, I open up a terminal and type usb-devices, and i see the three ports listed, but it shows that nothing is being detected on any of them.
Linux driver should be perfect, before connects to PC the mass storage mode should be selected.
dubuntu said:
Linux driver should be perfect, before connects to PC the mass storage mode should be selected.
Click to expand...
Click to collapse
I made sure it was selected. I also just got finished setting up the Android SDK on the Ubuntu laptop. ADB does not recognize that the device is plugged in at all. It can see my flash drives, but nothing comes up for my phone. Even with usb debugging on it did not see it. Im at a loss. Im beginning to think that this may have something to do with the Gingerbread update. Can someone with the update try to connect to Ubuntu and let me know if they have success? Ide hate to have to revert my device to Froyo or an unofficial rom to develop. =/
well I see you fixed it. did you get adb going?
Dani897 said:
well I see you fixed it. did you get adb going?
Click to expand...
Click to collapse
Yes! How?
Sent from my SAMSUNG-SGH-I997 using Tapatalk
are you asking how he fixed it?(he updated the op if that's what you are interested in) or how to get adb going.? adb works on Ubuntu as long as the device connects but you need to setup some device information first.
I forget the location but you need to create a file called 70rules.android (if my memory serves me right) with the vendor I.d and some other information. let me know and ill find a link on it.
Yes! I was able to finally get adb going after I had fixed the USB detection. Once I had applied the changes above my computer would immediately recognize the phone in both normal and debug mode and I could transfer files to and from it freely. Also, typing in ./adb devices finally showed my device as being connected with the proper vendor id as well.
The file I believe yyour referring to is named 70-android.rules and its only part of a whole process on getting the sdk setup on the laptop. There are a lot of hits for setting g it up on Google. There is also a whole guide for this here on xda which I had followed.
Sent from my Samsung Silly Phone

[Q] Can I develop/put my own drivers onto Android. (To get USB peripherials working)

So I have many many things I want to do with (Specifically) USB devices on my TF101. It's my baby and I use it for almost everything now, but there's still a few problems I haven't been able to shake or get other answers too.
I have a USB-MIDI cable that doesn't work (isn't detected, I think driver issue/isn't supported) Could I make a driver to do this so I can connect my keyboard to my tf and record some jams?
More Important
I have a USB - 3.5 mm converter/cable, usb in, headphone port out. It's by logitech and works fine on computer to plug any 3.5mm headphones into, not at all on android though. My headphone port is broken so this would be an amazing thing to get working properly.
Any help or guidance would be greatly appreciated, even workarounds to get these things working.
Well actually when you are rooted, you can anything!
If nothing helps, you can write your own kernel module since you can compile yourself a custom kernel.
Therefore: yes, we can
conizius said:
Well actually when you are rooted, you can anything!
Click to expand...
Click to collapse
Alright then step 1 is complete I suppose! xD I am rooted and running the tastymehICS kernel.
Gratz good luck for everything else - access to the whole system is open now!
In my opinion guvours kernel is a bit better (got less - not to say no - SoD).
Sent from my HTC Vision using XDA
I've tried both and guevor's seemed a bit more unstable for long periods of usage --just my preference, but that's beside the point xD"
So does anyone know how I could go about creating + adding drivers to the system?
You need download kernel source from asus site and prepare build environment according google andriod development site. Then you can build your kernel a start to add new features and write new kernel modules
Sent from my HTC Desire S using xda premium
I have windows drivers, all I'd need to do is port them, not necessarily write a whole new kernel X3
you don't need write whole kernel, source code for current stock kernel are on asus web site. And you don't have sources for guevor or other kernel. Is not possible to port windows driver to andriod without source code.
Try find if linux driver for you device exist. If yes, it is easy to add it to asus kerenel for transformer. And later is possible to combine your device driver (module) with some other custom kernel.
(I have working USB dvb-t stick on my transformer)
Thanks, I misread what I thought you read when I posted (if that makes any sense x.x")
Ok, it's plug and play on my linux machine too, where could I find the driver to import? So how would I make a module + combine with the guevor/tastymehics kernel?
ok, if your device is plug and play in linux, install any terminal emulation application into transformer (if you not have now) and use "lsusb" then plug your device into usb and use lsusb command again.
You should see something like BUS 001 Device 001: ID 1a4b:0003.
Then use google and try find what module is needed for device 1a4b:0003
then you need environment for building kernel and use some comamnd to build yout kernel module.
1) make menuconfig - choice module needed for your device
2) make ARCH=arm CROSS_COMPILE=mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- modules
this comple kernel modules for your device. Or you can ask for help from one of developer of custom kernel what you use to comile module what you need from his suource. Kernel and kernel modules musbe compiled from same version.
then copy modules to transformer and use insmod command to load it into kernel. Then you can plug in your device and it should work. (use dmesg to check if device driver is loaded)
Please post "dmesg" output after you plug your device in.(e.g last 10 lines) and output from lsusb.
Take a look in the thread http://forum.xda-developers.com/showthread.php?t=1513490
There is a lot of possibilities to play with usb drivers.
crossik1 said:
Please post "dmesg" output after you plug your device in.(e.g last 10 lines) and output from lsusb.
Click to expand...
Click to collapse
Dmesg (relevant lines):
usb 1-1.2: new full speed USB device number 28 using tegra-ehci
usb 1-1.2: new usb device found, idvendor=046d, idproduct=0a17
usb 1-1.2: new usb device strings: mfr=1, product=2, Serialnumber=0
usb 1-1.2: Product: Logitech g330 Headset
usb 1-1.2: Manufacturer: Logitech
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 <-- These were here already
Bus 001 Device 026: ID 05e3: 0610<-- These were here already
Bus 001 Device 028: ID 046d:0a17 <--- this is the new entry after plugging in
These are the log results asked for. I'm looking into the module now, thanks
At this point I have 4 options to fix my headphone port (that I know of)
1. Open it and try to sauter the port back together (best but, dangerous :/)
2. Get this driver stuff to work so I can use my adapter (great)
3. Bluetooth headphones (meh sound quality from my experience, but good if they work, also expensive)
4. HDMI-Out to Rca to 3.5mm to headphones. (UGH CABLES, but all I would need is the hdmi-rca cable.)

USB GPS On Tablet

Hi,
I’ve been working on trying to connect my USB GPS dongle (Chipset: Ublox 6) to my tablet through USB OTG Cable. Since my tablet isn’t popular (Can’t find on the forum’s list), I had to do it myself.
(My knowledge about Linux isn’t that good (I’m a high school student who is on summer vacation), please forgive me if I made a mistake )
1.Ublox said the driver for Linux is cdc-acm, so I downloaded from a website and tried to install the kernel module (cdc-acm.ko) through insmod, but a vermagic error came up, said that the module’s version is 3.0.8 and mine is 3.0.8+, I tried using insmod –f , still no good luck.
2.Then I tried to modify the module’s vermagic with a HexEditor, install it again, but I got a “Segmentation falut” error.
3.Then I tried to use “busybox modprobe cdc-acm”, but it says “cannot parse modules.dep”, so I tried to create the folder “/lib/modules/3.0.8+” manually (I know this could be silly), then “busybox depmod”, finally run “busybox modprobe cdc-acm” again, but still the same error.
4.Then I remember that when I plug in the device, dmesg said
“usb 1-1: new full speed USB device using….”
“usb 1-1: New USB device found, idVendor=1546, idProduct=01a6”
Then nothing happened.
5.At last, I found out that I have “usb_modeswitch.d” in /etc
And my device profile isn’t listed there, but how could I know my device’s profile?
I know the vendor, the product, but how about the “MessageContent”?
By the way, what’s the difference between “DefaultVendor” and “TargetVendor”, “DefaultProduct” and “TargetProduct”
I know the post may be too long,
But to sum up, Is it possibly going to work if I create my Device Profile and everything will work out?
I still doesn’t have “cdc-acm.ko” install yet. (Though I already put it in /system/lib/modules)
By the way, I don’t have the folder /dev/ttyusb0 /dev/usb/tty0
I only have /dev/bus/usb/001 with nothing in it.
Sorry again for my bad Linux knowledge.
Thanks A Lot!!!
Golden Chang

Categories

Resources