Reply
Thread Tools
Posts: 209 | Thanked: 8 times | Joined on Nov 2005 @ Fishers, Indiana
#31
Originally Posted by hostman View Post
Alas, just the one time. Did this work for anyone? Peripheral mode seems to be not working as well ... but it works with the old kernel re-loaded...

-Robert
I tried it but it didn't seem to recognize a USB keyboard plugged in (which has been verified to consume a very low amount of power). No messages about failures, it just didn't do anything. Incidentally, has anyone compile a version with SDHC support? I can't do much playing with it without that.

Larry
 
Posts: 25 | Thanked: 0 times | Joined on Jan 2007 @ Houston
#32
Is anybody getting any success with using an external keyboard or usb external storage device?
__________________
--
pcman
Nokia N800

http://www.laroseweb.com
http://linuxgadgets.blogspot.com/
 
MoridinBG's Avatar
Posts: 70 | Thanked: 1 time | Joined on Sep 2007
#33
After lots of reading here and there I finally made it to compile working kernel with the needed patches. Flashes OK to the device. After that Peripheral mode stops working, as noted here. dmesg on the desktop is completely silent when I attach the tablet to the PC. This makes mi think it should work. Then I got a modified cable from a friend. Hi made it as part of an attempt to enable OTG on HTC Universal (which fell from the 8th floor unfortunately before we could see if it works).
He claims the miniUSB cable is moded properly.
After I "echo host > /sys/devices/platform/musb_hdrc/mode" dmesg in xterm is silent. Connecting a device does nothing. So far I has tried a LG USB Key, which I think needs external power, as it has blue LED on it. Also tried some cheap chinese self powered MP3 Player. And it starts, but I think that's just because it is connected to something. dmesg again doesn't say even a word!.
I also tried "echo otg > /sys/devices/platform/musb_hdrc/mode" while dmesg remains completely silent. "echo peripheral > /sys/devices/platform/musb_hdrc/mode" finaly made it say something, "musb_platform_set_mode 616: Cannot be peripheral with mini-A cable otg_stat: 00000184".

Then I tried normal USB-miniUSB cable, which I use to connect mu photo to the PC. None mode setting produces even a single line in dmesg.

Am I wrong somewhere? I just applied the patches at muru.com, patched the .config, which enables various USB settings and compiled. It produced an error, complaining that tusb6010_test.c could not be compiled, so I disabled the TUSB6010 Loopback test support.

I will trie with the most simple flash key I can find, but most people, who has tried at least get lots of errors in dmesg.

P.S. I has also increased the debug level of the USB driver with
# echo 8 > /proc/sysrq-trigger
# echo D3 > /proc/driver/musb_hdrc
 
Posts: 90 | Thanked: 10 times | Joined on Aug 2007
#34
Hey,Keep trying.Good work!Sorry cant help much though.
__________________
machinegrid.com
 
MoridinBG's Avatar
Posts: 70 | Thanked: 1 time | Joined on Sep 2007
#35
OK, so I dissassembled the miniUSB cable and after some measurments can confirm it is mini-A type cable.
It is suggested to load g_file_storage, but it is compiled directly into the kernel.
I just tried with a USB keyboard. Logitech Corded. Nobody. Nothing in dmesg, no LEDs on the keyboard. AC pluged into the tablet, also unpluged. Just nobody.

I revised the kernel settings. It's all OK. As far as I can see everything that should be included IS included.
So I tweaked logging level for the USB subsystem (increased it in kernel .config) and I am recompiling at the moment.

So I think I have correctly configured and compiled kernel, but nobody responds on the USB. Should I inject power for devices like simple USB stick and keyboard?

Does anybody has any clues? I will also post on maemo-developers.



EDIT: Damn it! I recompiled with increased verbose level. Again nothing. Nobody. Silence.

According to this topic there should be at least something. Could it be that the tablet can't power even a simple flash key?
I will now try to cook cable with option to inject power.

EDIT2: That's it. I did everythong I could think of. I measured the power lines on the USB, coming from the tablet. 0.00V. So I found an old USB-B to USB-A (The big ones) cable. Cut the B end (the square one), pluged the A end into the PC and got 5.02V btween black and red. Then I took the cable coming from the tablet, cut blag and red and connected the ones coming from the PC to the ones going to the peripheral.

So after all here is what I got:
- Nokia N800 flashed with kernel with latest patches (patches-tusb-n800-2007-07-03.tar.gz)
- mini-A cabel plugged into the tablet
- Replaced power lines coming from the tablet with those coming from the PC, providing 5V@0.5A
- USB Keyboard/USB Flash connected on the end of this cascade

- NOTHING in dmesg; Neither in /sys/bus/usb/devices


I also noticed that "cat /sys/devices/platform/musb_hdrc/mode" returns b_idle.


Guys, I am desperate!

Last edited by MoridinBG; 2007-10-08 at 16:56.
 
linuxrebel's Avatar
Posts: 182 | Thanked: 46 times | Joined on Jan 2007 @ Silly-Con Valley
#36
OK... using the above info .. on the latest 0S2008 .. I can do this.

1. Enabled R&D mode (not tested outside this mode)

2. echo host > /sys/devices/platform/musb_hdrc/mode

3. Using female to female gender bender I conncected a USB keyboard to the n800.

4. It gives error message about unsupported device and then. POOF I have a keyboard.

5. Disconnected keyboard inserted USB key Drive.
It complained about unsupoorted device. Opened the File manager and POOF showed me the files.

6. Just for fun I plan on try a USB DVD reader and USB HDD (both with independent power) and see what I get.... wii!
 

The Following 4 Users Say Thank You to linuxrebel For This Useful Post:
linuxrebel's Avatar
Posts: 182 | Thanked: 46 times | Joined on Jan 2007 @ Silly-Con Valley
#37
Did the USB DVD/CD r/w thing. No dice on it. However since both a USB key drive and a USB drive are usb-mass storage devices I'm holding out hope there.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#38
I did the echo, on original 2008OS, not in R&Dmode.

Connected USB hard drive, and it automounted 27GB EXT3 partition

Awesome

[16120.085937] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[16120.085937] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[16120.210937] usb 1-1: new high speed USB device using musb_hdrc and address 12
[16120.343750] usb 1-1: default language 0x0409
[16120.343750] usb 1-1: new device strings: Mfr=56, Product=78, SerialNumber=100
[16120.343750] usb 1-1: Product: USB2.0 Storage Device
[16120.343750] usb 1-1: Manufacturer: Cypress Semiconductor
[16120.343750] usb 1-1: SerialNumber: DEF10BEEF1C7
[16120.343750] usb 1-1: device v04b4 p6830 is not supported
[16120.343750] usb 1-1: uevent
[16120.343750] usb 1-1: usb_probe_device
[16120.343750] usb 1-1: configuration #1 chosen from 1 choice
[16120.343750] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[16120.343750] usb 1-1:1.0: uevent
[16120.343750] usb-storage 1-1:1.0: usb_probe_interface
[16120.343750] usb-storage 1-1:1.0: usb_probe_interface - got id
[16120.421875] scsi0 : SCSI emulation for USB Mass Storage devices
[16120.429687] drivers/usb/core/inode.c: creating file '012'
[16120.429687] hub 1-0:1.0: 200mA power budget left
[16120.429687] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[16120.429687] hub 1-0:1.0: port 1 enable change, status 00000503
[16120.453125] usb-storage: device found at 12
[16120.453125] usb-storage: waiting for device to settle before scanning
[16125.453125] scsi 0:0:0:0: Direct-Access TOSHIBA MK3021GAS 0000 PQ
: 0 ANSI: 0
[16125.460937] SCSI device sda: 58605120 512-byte hdwr sectors (30006 MB)
[16125.476562] sda: Write Protect is off
[16125.476562] sda: Mode Sense: 27 00 00 00
[16125.476562] sda: assuming drive cache: write through
[16125.484375] SCSI device sda: 58605120 512-byte hdwr sectors (30006 MB)
[16125.484375] sda: Write Protect is off
[16125.484375] sda: Mode Sense: 27 00 00 00
[16125.484375] sda: assuming drive cache: write through
[16125.484375] sda: sda1 sda2 < sda5 >
[16125.968750] sd 0:0:0:0: Attached scsi disk sda
[16126.007812] usb-storage: device scan complete

_______________________________________





My lite-dvd burner is detected perfectly, but no driver support is present for CD

[16481.390625] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[16481.390625] hub 1-0:1.0: state 8 ports 1 chg 0000 evt 0000
[16481.390625] usb usb1: usb auto-resume
[16481.390625] usb usb1: finish resume
[16481.390625] hub 1-0:1.0: hub_resume
[16481.414062] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[16481.570312] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x
101
[16481.695312] usb 1-1: new high speed USB device using musb_hdrc and address 15
[16481.859375] usb 1-1: default language 0x0409
[16482.031250] usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
[16482.031250] usb 1-1: Product: ATAPI-6 Bridge Controller
[16482.031250] usb 1-1: Manufacturer: Prolific Technology Inc.
[16482.031250] usb 1-1: SerialNumber: 300000000D05
[16482.031250] usb 1-1: device v2116 p0320 is not supported
[16482.031250] usb 1-1: uevent
[16482.031250] usb 1-1: usb_probe_device
[16482.031250] usb 1-1: configuration #1 chosen from 1 choice
[16482.031250] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[16482.031250] usb 1-1:1.0: uevent
[16482.031250] usb-storage 1-1:1.0: usb_probe_interface
[16482.031250] usb-storage 1-1:1.0: usb_probe_interface - got id
[16482.031250] scsi3 : SCSI emulation for USB Mass Storage devices
[16482.039062] drivers/usb/core/inode.c: creating file '015'
[16482.039062] hub 1-0:1.0: 198mA power budget left
[16482.039062] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[16482.039062] hub 1-0:1.0: port 1 enable change, status 00000503
[16482.039062] usb-storage: device found at 15
[16482.039062] usb-storage: waiting for device to settle before scanning
[16487.125000] scsi 3:0:0:0: CD-ROM LITE-ON DVDRW LDW-851S GS0P PQ : 0 ANSI: 0
[16487.164062] usb-storage: device scan complete
 

The Following User Says Thank You to penguinbait For This Useful Post:
Posts: 5,335 | Thanked: 8,187 times | Joined on Mar 2007 @ Pennsylvania, USA
#39
Originally Posted by linuxrebel View Post
1. Enabled R&D mode (not tested outside this mode)
It seems R&D mode is not necessary. I'm typing this using a PS/2 keyboard connected to my N800 via a PS/2-to-USB converter (and a KVM, which may be feeding the keyboard some power). I've not used R&D mode, just becomeroot.

EDIT: Penguinbait beat me to it.

Last edited by sjgadsby; 2007-11-28 at 03:35. Reason: Penguinbait is just too good.
 
Posts: 143 | Thanked: 13 times | Joined on Aug 2007
#40
did I understand this correct when I say that its possible to just connect a usb harddrive when having the OS2008?
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:08.