I'm playing with kernel builds on my NST - and haven't yet popped the back to try and put a uart on; I'm trying to enable TLS but it's
not fully booting NookManager if I do and I'm wondering if there is a way to get some debug out of it;
During boot I see the Loading.. for NookManager come up and then very little - but I assume that's uboot that loads that?
My host also, briefly sees the device change from being TI to being SimpleTouch, and to showing a pair of usb-storage devices;
I'm assuming this means it's got to userspace?
What's the boot process - i.e. where must it have got to if it's presenting usb-scsi-devices, and has anyone got any debug/logging
hacked in at that point.
Dave
P.S. USB as seen by the host; I've once had one of the SCSI devices respond to a mount by saying no media present, but it's a VERY short window!
[47897.082374] usb 1-1.4: unable to get BOS descriptor
[47897.083713] usb 1-1.4: New USB device found, idVendor=0451, idProduct=d00e
[47897.083718] usb 1-1.4: New USB device strings: Mfr=33, Product=37, SerialNumber=0
[47897.083722] usb 1-1.4: Product: OMAP3630
[47897.083726] usb 1-1.4: Manufacturer: Texas Instruments
[47900.321399] usb 1-1.4: USB disconnect, device number 70
[47930.231996] usb 1-1.4: new high-speed USB device number 71 using ehci-pci
[47930.260415] hub 1-1:1.0: unable to enumerate USB device on port 4
[47930.484271] usb 1-1.4: new high-speed USB device number 72 using ehci-pci
[47930.583055] usb 1-1.4: New USB device found, idVendor=2080, idProduct=0003
[47930.583062] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[47930.583066] usb 1-1.4: Product: NOOK SimpleTouch
[47930.583070] usb 1-1.4: Manufacturer: B&N
[47930.583073] usb 1-1.4: SerialNumber: 11223344556677
[47930.589989] scsi38 : usb-storage 1-1.4:1.0
[47931.703186] scsi 38:0:0:0: Direct-Access B&N NOOK SimpleTouch 0100 PQ: 0 ANSI: 2
[47931.711480] scsi 38:0:0:1: Direct-Access B&N NOOK SimpleTouch 0100 PQ: 0 ANSI: 2
[47931.711942] sd 38:0:0:0: Attached scsi generic sg4 type 0
[47931.712277] sd 38:0:0:1: Attached scsi generic sg5 type 0
[47931.727659] sd 38:0:0:0: [sdd] Attached SCSI removable disk
[47934.364242] usb 1-1.4: USB disconnect, device number 72
[47934.371347] sd 38:0:0:1: [sde] Attached SCSI removable disk
[47934.635652] usb 1-1.4: new high-speed USB device number 73 using ehci-pci
[47934.728849] usb 1-1.4: unable to get BOS descriptor
You had me confused there for a second thinking that log was out of the Nook and not the host.
(The missing BOS descriptor is expected. The Nook is not USB 3 updated.)
The two USB Mass Storage points shows that the kernel is booting.
The fact that nothing is there shows that things are not going far enough to let vold (the volume daemon) mount /media and /sdcard.
I like using the UART to debug even when some deep thinking might have solved the problem.
My setup with a new connector: http://forum.xda-developers.com/showthread.php?p=35371364
Renate NST said:
You had me confused there for a second thinking that log was out of the Nook and not the host.
(The missing BOS descriptor is expected. The Nook is not USB 3 updated.)
The two USB Mass Storage points shows that the kernel is booting.
The fact that nothing is there shows that things are not going far enough to let vold (the volume daemon) mount /media and /sdcard.
I like using the UART to debug even when some deep thinking might have solved the problem.
My setup with a new connector: http://forum.xda-developers.com/showthread.php?p=35371364
Click to expand...
Click to collapse
Thanks for the reply!
Ah ok; I'd assumed that the presense of mass storage points had assumed something in user space must have set them up.
OK, in that case I guess it's UART time - are there any tricks to getting the case open without doing too much damage?
Thanks again for the reply?
Dave
I find that the easiest way to pop the power switch is to use a small knife blade
(like the small blade on a penknife).
Slip it under the top seam, don't push it straight up, pull it a bit in the upward direction.
The screw underneath is a Torx T-5. Mine had a sticker on top a long time ago.
Slide the two case halves about 1/4" apart.
Don't forget to pull the SD card first!
Renate NST said:
I find that the easiest way to pop the power switch is to use a small knife blade
(like the small blade on a penknife).
Slip it under the top seam, don't push it straight up, pull it a bit in the upward direction.
The screw underneath is a Torx T-5. Mine had a sticker on top a long time ago.
Slide the two case halves about 1/4" apart.
Don't forget to pull the SD card first!
Click to expand...
Click to collapse
Right that's erm kind of done the trick (my soldering is awful I suspect the pad is somewhat screwed up, because it requires a bit of pressure to work - it took me two goes; I made the mistake of using ribbon cable the first time and it just wouldn't have it; a thin bit of solid core did the trick).
I also found the ifixit teardown Nook+Simple+Touch+with+GlowLight+Teardown/9301/1 which is a nice pictorial walk though of how to get it open.
As for the bug I was chasing; hmm - it's an Attempted to kill init! - why I guess will take a bit more chasing down.
(It's a pity that the android kernel USB gadget stuff doesn't have a debug channel - a usb serial console, or even a firewire-like DMA would be doable I'd have thought).
Thanks again,
Dave (1 more post and I'll be able to include URLs/post to dev)
Related
As there is a USB host-mod port in A500, Is there any way to get a USB to serial converter working with it?
From time to time, I need to access to some Cisco devices' serial consoles. I used to use the laptop (which has neither a serial port) with a USB to serial converter for this. If the converter can also works in A500, it would be very nice that I don't need to bring the heavy laptop.
jackycxh said:
As there is a USB host-mod port in A500, Is there any way to get a USB to serial converter working with it?
From time to time, I need to access to some Cisco devices' serial consoles. I used to use the laptop (which has neither a serial port) with a USB to serial converter for this. If the converter can also works in A500, it would be very nice that I don't need to bring the heavy laptop.
Click to expand...
Click to collapse
I also need this, and I think the original acer 3.0 rom already support pl2303(usb to serial ), because I test my gps in the terminal emulator and it can get the data. But m-dj's roms don't support.
are the stock rom support it ?
sanaell said:
are the stock rom support it ?
Click to expand...
Click to collapse
Yes! I have tested my usb gps(pl2303) and it got the data. I think it just recognize this device but maybe you need some app to deal with it. I search the web and find some information. they said linux supports pl2303 and so android might support also and really stock rom support this chip pl2303 but m-dj's mod rom not.
Not sure if mine is pl2303. I will check it out.
but it does not recognized when I plug it in A500.
I got below information from dmesg.
<6>[ 387.721955] usb 1-1: new full speed USB device using tegra-ehci and addres
s 2
<6>[ 389.787681] usb 1-1: New USB device found, idVendor=0403, idProduct=6001
<6>[ 389.788352] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumbe
r=3
<6>[ 389.788998] usb 1-1: Product: usb serial converter
<6>[ 389.789346] usb 1-1: Manufacturer: ftdi
<6>[ 389.790054] usb 1-1: SerialNumber: ftEFW35C
jackycxh said:
Not sure if mine is pl2303. I will check it out.
but it does not recognized when I plug it in A500.
I got below information from dmesg.
<6>[ 387.721955] usb 1-1: new full speed USB device using tegra-ehci and addres
s 2
<6>[ 389.787681] usb 1-1: New USB device found, idVendor=0403, idProduct=6001
<6>[ 389.788352] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumbe
r=3
<6>[ 389.788998] usb 1-1: Product: usb serial converter
<6>[ 389.789346] usb 1-1: Manufacturer: ftdi
<6>[ 389.790054] usb 1-1: SerialNumber: ftEFW35C
Click to expand...
Click to collapse
I think your device is not used pl2303. Because the manufacturer is not prolific.
Hmm, I tried when I was on 3.0.1 and could not get it to work. Just got the 3.1 update yesterday and plugged in my prolific today and yep /dev/ttyUSB0 shows up. Now I don't have to rely on bt for gps.
GonzoCSU said:
Hmm, I tried when I was on 3.0.1 and could not get it to work. Just got the 3.1 update yesterday and plugged in my prolific today and yep /dev/ttyUSB0 shows up. Now I don't have to rely on bt for gps.
Click to expand...
Click to collapse
You mean you can use use usb gps? How? With or without any addtional apk?
It should be pretty easy to write your own app to read /dev/ttyUSB0 or modify an app like BlueGPS4Droid (which receives serial NMEA over Bluetooth and feeds a mock location listener). I am not sure if the standard Java libraries for serial connections are supported under Android or not. I will be looking more into this in the next few days and I will post back here when I figure out more.
GonzoCSU said:
It should be pretty easy to write your own app to read /dev/ttyUSB0 or modify an app like BlueGPS4Droid (which receives serial NMEA over Bluetooth and feeds a mock location listener). I am not sure if the standard Java libraries for serial connections are supported under Android or not. I will be looking more into this in the next few days and I will post back here when I figure out more.
Click to expand...
Click to collapse
It is nice! And I think it will be successful. And I use the terminla emulator and gps can get data and even it fixed the location (led of my gps flash and meant it got the postion). However I need the tab support my gps because I am not using the stock rom, I am using galaxy 1.05
And I see the kernal resource on the web and see it really support and the code is here
https://github.com/roggin/iconia-a500-kernel/tree/iconia_kernel_11.2.9/drivers/usb/serial.
Not only the pl2303 also other usb2serial. And can anyone make this to my galay rom and let it supported?
Hi Folks
I've been playing around with a 101 Gen9 and in particular the Full Size USB Slot on the back.
On the Archos WebSite in the FAQ they state:
What can I plug in the USB port on the back of the tablet?
The USB host port on the back of your G9 tablet is reserved for only the ARCHOS G9 3G Stick. You will not be able to plug any other USB devices in this port.
Click to expand...
Click to collapse
I have been doing some of my own testing on this port and found that not to be the case
Every device I plugged into it has worked in one way or another (very much another in some cases)
1. The tablet has been rooted using letma's method.
2. You need to turn on the "3G Stick" in the Wireless Settings
3. The tablet Was Plugged In
On point 3. I have no idea how the battery was doing. especially with some of the more power hungry usb devices.
Here's a list of what I've tested
Not Working:
Keyboard (USB 1.1)
Working:
Kingston Data Traveller II+ (USB 2.0) - Picked up as external storage
HTC Hero Mass Storage
HTC Debug Bridge (Required Root for adb)
HTC Sensation Mass Storage
HTC Sensation Debug Bridge (Required Root for adb)
4 Port HUB (USB 2.0)
A Couple of observations.
After turning the 3G Stick on I restarted the device
I had to plug the USB devices while the tablet was starting for it to be picked up.
The Keyboard worked when plugged into the 4 Port USB Hub. I think the keyboard will function on its own with the right kernel modules
No Device showed up as The "External Storage" in the "Files" program when plugged into the Hub, even though I mounted the device (/dev/block/sd*) from terminal emulator to the /mnt/ext_storage folder.I suspect it is looking for a specific USB device number as the external storage device.
I suppose it would be good if some other people to test what USB devices they have to hand to see what works, maybe we could build a list of functioning devices. I'm going to investigate getting the Keyboard going on it's own, which is what sparked this off and also test some external hard drives with various file systems.
I hope someone finds this helpful
Trev
For me the usb stick and hard drive is working on the stock archos firmware without reboot!
Hi all.
I heard that zte blade has the capability of USB HOST. Also heard it can't power the usb slave device attached to it. Instead of purchasing a usb power hub, i manually tried making a cable which has the similar function but draws power from PC usb port (don't know how far it works. I haven't been successful).
The description of the cable i made is in the picture attached below.
PLEASE SEE THE PICTURE ATTACHED.
For a device with native usb host (such as galaxy note) i guess the device USB-CABLE coupled with USB-FEMALE-TO-FEMALE-BRIDGE is enough to attach slave devices. But for the devices which cannot give power supply in USB HOST mode i assumed and tried the cable which was described in the picture.
Blade was my handset. My friend had galaxy note. I tried connecting blade as a slave to galaxy note with a NATIVE USB-OTG CABLE. But it said the slave device is high powered and needs seperate power supply. In such case i think the cable i prepared might work (if it works) replacing usb powered hub.
Ok, coming to our zte blade device. I prepared a usb female to female bridge and connected it to usb plug of usb cable. Then i connected only the data + and data - of USB PERIPHERAL DEVICE to zte blade. The VCC +5V (red) and GND (black) are supplied from a PC usb port.
And im sure i connected data+ to data+ only. And similarly (data- to data- only) , (vcc to vcc only) , (GND to GND only).
And i tested it with a usb keyboard and a memory card reader. I tested on cm7.1.0 because i heard this build has kernel supporting usb host (? Is it not?). Im unsuccessful with both tests. When i connected memory card reader the led light in the card reader turned on but i cant see any drive/folder/notification on m phone. And with usb keyboard there is not even NUM LOCK led on. Am i missing the kernel support or something. If so pls tell me what kernel should i use.
And is it the thing i prepared wont work at all.??
Please give me suggestions... Thanks.
WARNING :
This is not a (how-to-make-something) post. If you are experimenting with some cables, make sure that you connect the connections correctly. Changing polarity can brick your device. Im not responsible for anything.
As the title states, I have installed 4.0.4 Tegraowners ICS ROM v170 and see that i have a 3g signal bar, however no connection. I am not sure how to check and see if my 3g dongle is even being seen correctly other than the green lights on the device it self.
**edit**
O.K. a little more information:
Qualcomm 3g device
dmesg log shows device seen, connected, and drivers loaded: See below
Code:
[ 3982.060685] usb 1-1.2: new full speed USB device number 8 using tegra-ehci
[ 3982.092684] usb 1-1.2: New USB device found, idVendor=1199, idProduct=0301
[ 3982.092791] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[ 3982.092968] usb 1-1.2: Product: Sierra Wireless Device
[ 3982.093067] usb 1-1.2: Manufacturer: Sierra Wireless, Incorporated
[ 3982.093246] usb 1-1.2: SerialNumber: 4Vx«Íïÿÿÿÿ
[ 3982.096237] sierra 1-1.2:1.0: Sierra USB modem converter detected
[ 3982.097713] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB0
[ 3982.098625] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB1
[ 3982.101019] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB2
[ 3982.102181] usb 1-1.2: Sierra USB modem converter now attached to ttyUSB3
[ 3983.590674] usb 1-1.1: new high speed USB device number 9 using tegra-ehci
[ 3983.622387] usb 1-1.1: New USB device found, idVendor=198f, idProduct=0220
[ 3983.622694] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3983.623193] usb 1-1.1: Product: Mobile WiMax SS
[ 3983.623471] usb 1-1.1: Manufacturer: Beceem Communications Inc.
Now I have tried adding sprint APN in via the GUI but nothing stays. I guess i need to figure out how to add it to the APN file and upload it that way to my device.
O.K. maybe i am missing something.
Do I need to add an app, or turn something else on to have the ROM use the 3g dongle for connectivity? I am on an A500 so I do not think i need to make this change "a501 3g modem(comment ro.carrier=wifi-only in /system/build.prop)" as stated i have the 3g bars with an x through them even when the dongle is plugged in. Anyone familiar with this willing to try and help me figure this out.
I am not a noob to android just a noob to modding my tablet.
Still any help would be appreciated, even if its to tell me i need some kind of app to enable the modem.:silly:
For support on tegraowners Rom, you need to go to their site.
Thank you for the reply ....
The same post has been on the tegraowners support forum for about a week. Almost 100 views, and only my 1 reply to my self with the extra information. Was hoping someone over here could help me out.
Alas, the TO ROM is kinda persona non-grata around here, due to the lack of GPL compliance. We're really not generally meant to discuss it all that much as it usually devolves into a slanging match.
TO is the best place to go to get support.
FloatingFatMan said:
Alas, the TO ROM is kinda persona non-grata around here, due to the lack of GPL compliance. We're really not generally meant to discuss it all that much as it usually devolves into a slanging match.
TO is the best place to go to get support.
Click to expand...
Click to collapse
Gotcha, and thanks for the info. I will keep trying over there, unless someone can point to another a500 rom supports the 3g dongle.
If u have an android phone get foxfi app from market and use ur phone as modem. I who needs a Dingle.
Hi all. I've tried using USB joysticks and gamepads with my G5+, but without success. They are detected (i.e. by looking at logcat/dmesg), and they power off (lights go on), but I can't actually use them in any way. I've tested by using a Joystick test app, and a couple of games. In all cases there is no joystick detected.
I tried this with stock unrooted before, and again now under Lineage 14.1. Has anyone had any luck with this? Could another kernel enable joysticks? Other USB peripherals work fine, e.g. keyboard/mice/USB sticks.
Also, has anyone tried bluetooth joysticks/gamepads? If I'm out of luck with USB joysticks, might consider just getting a bluetooth one if I know they work.
Here's an example of the output from dmesg:
[ 126.407593,3] usb 1-1: new low-speed USB device number 3 using xhci-hcd
[ 126.557281,3] usb 1-1: New USB device found, idVendor=046d, idProduct=c20a
[ 126.557328,3] usb 1-1: New USB device strings: Mfr=4, Product=32, SerialNumber=0
[ 126.557347,3] usb 1-1: Product: WingMan RumblePad
[ 126.557364,3] usb 1-1: Manufacturer: Logitech Inc.
[ 126.558716,3] usb 1-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 126.558778,3] usb 1-1: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 126.868193,2] QSEECOM: qseecom_load_app: App (cppf) does'nt exist, loading apps for first time
[ 126.871609,2] QSEECOM: qseecom_load_app: App with id 19 (cppf) now loaded
Well I've used all sorts of peripherials on stock, including a universal gamepad. It works flawlessly and gets detected, though I do have to add a keylayout file for it to work with games in its native mode. When switching to xbox input mode it's supported natively on Android.
Mine uses a 2.4GHz usb dongle which uses very little power, maybe it's a power draw related thing?
I had considered of it was a power drain issue as well. I tried hooking up the same gamepad to an old Samsung galaxy s3, and it worked fine. Not sure that that tells us much.
In any case I decided to purchase a cheap Bluetooth gamepad to test, and I can use it with my laptop if it doesn't work with my g5+. So when it arrives, hopefully I can get it working.