Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-09 Thread Ramakrishnan Muthukrishnan
On Sat, Mar 8, 2014 at 8:29 PM, erik quanstrom quans...@quanstro.net wrote: Thanks, I downloaded the 9pi file (~2MB, MD5 - 4e4e18980d8ac91b0e8ed5aa820dc429) from contrib/bakul directory. I could boot the R-Pi with this kernel and get the kb and mouse working fine! Thanks a lot to everyone!

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-09 Thread erik quanstrom
Thank you Erik. Today I got hold of an HDMI to DVI cable and hooked it to the Pi and my DVI monitor sitting somewhere near my router. After booting up, just doing a 'ip/ipconfig' and 'ndb/dns -r' got me into the network. :) I plan to use this setup as my main computing setup for as long as

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-08 Thread Ramakrishnan Muthukrishnan
On Tue, Mar 4, 2014 at 11:48 PM, Bakul Shah ba...@bitblocks.com wrote: On Tue, 04 Mar 2014 11:26:31 EST erik quanstrom quans...@quanstro.net wrote: first, apply the patch to the source, then build all of usb 9fs sources cd /sys/src/cmd/usb/lib cp

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-08 Thread erik quanstrom
Thanks, I downloaded the 9pi file (~2MB, MD5 - 4e4e18980d8ac91b0e8ed5aa820dc429) from contrib/bakul directory. I could boot the R-Pi with this kernel and get the kb and mouse working fine! Thanks a lot to everyone! One of the mice I had (a very cheap, small mouse) didn't work though.

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-05 Thread Richard Miller
Sorry, my suggested correction is still wrong. b[0] is the length of the whole descriptor not the length of the string. So I suggest this (I tested it on exactly one device) - static char* mkstr(uchar *b, int n) { Rune r; char *us; char *s; char *e; if(n

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-05 Thread Richard Miller
Apologies for last message, it was meant to be directed to quans...@quanstro.net as part of a conversation. Please ignore.

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-04 Thread Ramakrishnan Muthukrishnan
On Fri, Feb 28, 2014 at 9:54 PM, Bakul Shah ba...@bitblocks.com wrote: On Fri, 28 Feb 2014 09:45:42 EST Anthony Sorace a...@9srv.net wrote: Based on my own experience with USB weirdness with the Pi, I still suspec power issues. How are you powering the Pi itself? Using a 1 amp supply yielded

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-04 Thread erik quanstrom
Okay, I tried a powered hub. Now, it boots with both keyboard and mouse (previously it used to hang when I connect both keyboard and mouse). But still the keyboard and mouse are not recognized. Once I saw a warning message that the descriptor length is short. But when I rebooted, I didn't see

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-04 Thread Ramakrishnan Muthukrishnan
On Tue, Mar 4, 2014 at 7:57 PM, erik quanstrom quans...@quanstro.net wrote: Okay, I tried a powered hub. Now, it boots with both keyboard and mouse (previously it used to hang when I connect both keyboard and mouse). But still the keyboard and mouse are not recognized. Once I saw a warning

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-04 Thread erik quanstrom
On Tue Mar 4 10:56:33 EST 2014, vu3...@gmail.com wrote: On Tue, Mar 4, 2014 at 7:57 PM, erik quanstrom quans...@quanstro.net wrote: Okay, I tried a powered hub. Now, it boots with both keyboard and mouse (previously it used to hang when I connect both keyboard and mouse). But still the

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-04 Thread Bakul Shah
On Tue, 04 Mar 2014 11:26:31 EST erik quanstrom quans...@quanstro.net wrote: first, apply the patch to the source, then build all of usb 9fs sources cd /sys/src/cmd/usb/lib cp /n/sources/patch/usbshortdesc/dev.c dev.c cd .. mk install then, build a new

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-04 Thread erik quanstrom
IIRC Ramakrishnan doesn't have a working 9pi system. I put 9pi with this patch in contrib/bakul on sources. It was cross-built on a 386 VM with a pull done this morning + the above patch. I had to rebuild the host 5c due to rune related errors so I am not 100% certain this will work (I

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-03 Thread Richard Miller
after looking over the spec, i didn't see this question addressed. do you? it's a byte, so in theory there could be 255 configurations. Section 9.6 on device descriptors - this applies to every device, not just hubs. (Although the iMac keyboard does in fact contain a hub.) Yes of course

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-03 Thread Richard Miller
old iMac usb keyboard c. 2001 Apple 'Pro' keyboard, c. 2004 these two work for me using the modifications here: http://9fans.net/archive/2014/02/202 setting the langid is critical for some keyboards. Looking at the patch in that 9fans.net posting, I am puzzled.

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-03 Thread erik quanstrom
/n/sources/plan9/sys/src/cmd/usb/lib/dev.c:228,233 - dev.c:233,245 memset(buf, 0, Ddevlen); if((nr=usbcmd(d, type, Rgetdesc, Ddev8|0, 0, buf, nr)) 0) return -1; + if(nr == 17){ + print(%s: langid %.4ux\n, argv0, buf[3]8|buf[2]); +

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread Richard Miller
PFU HHKB2Lite old iMac usb keyboard c. 2001 Apple 'Pro' keyboard, c. 2004 these two work for me using the modifications here: http://9fans.net/archive/2014/02/202 setting the langid is critical for some keyboards. I've just tried Erik's usbd with a 2003 iMac keyboard: usbotg: ep6.0

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread erik quanstrom
I've just tried Erik's usbd with a 2003 iMac keyboard: usbotg: ep6.0 error intr 0402 usbotg: ep6.0 error intr 0402 usbotg: ep6.0 error intr 0402 usbotg: ep6.0 error intr 0402 usbotg: ep6.0 error intr 0402 usbotg: ep6.0 error intr 0402 usbotg: ep6.0 error intr

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread Richard Miller
also, according to the linux kernel, we should not be looking for configurations on anything that's not a hub. Personally I wouldn't look to the linux kernel as guidance for correct behaviour. Especially when there's a published specification available. Every usb device has at least one

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread Winston Kodogo
I'm not sure if this is helpful at this, or indeed any, stage in the conversation, but for me one of the great joys of using Richard's port has been that it just works on real hardware without having to mess about, or having to worry about esoterica about USB and chums. At least they're esoterica

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread erik quanstrom
Personally I wouldn't look to the linux kernel as guidance for correct behaviour. Especially when there's a published specification available. after looking over the spec, i didn't see this question addressed. do you? it's a byte, so in theory there could be 255 configurations. lacking

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-01 Thread Richard Miller
Keyboards that didn't work: ... IBM Type M with two different generic PS/2 to USB adapter (also from Fry's) I'm still using my faithful 21-year-old Model M, with a blue cube PS/2 adapter. Works perfectly.

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-01 Thread erik quanstrom
Keyboards that didn't work: PFU HHKB2Lite old iMac usb keyboard c. 2001 Apple 'Pro' keyboard, c. 2004 these two work for me using the modifications here: http://9fans.net/archive/2014/02/202 setting the langid is critical for some keyboards. - erik

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-01 Thread Michael Hansen
Keyboards that didn't work: ... IBM Type M with two different generic PS/2 to USB adapter (also from Fry's) I'm still using my faithful 21-year-old Model M, with a blue cube PS/2 adapter. Works perfectly. I admit both of my PS/2 converters were suspiciously inexpensive, and I've had problems

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-01 Thread erik quanstrom
work surface in the house, as terminals for a couple of Supermicro X7SPA-H based cpu servers. I expect the one in the kitchen to require a series of replacement keyboards.) http://www.ruggedtech.com/EKFT-108%20key%20washable%20full%20travel%20keyboard.html (just one of many you can find.) -

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread erik quanstrom
On Thu Feb 27 23:32:49 EST 2014, hcaulfiel...@gmail.com wrote: This probably won't help, but what happened when I installed Plan 9 onto my Raspberry Pi, is the mouse worked but not the keyboard. So I ended up going to store and buying the cheapest keyboard that I could find. I plugged in the

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Ramakrishnan Muthukrishnan
Okay, I tried another keyboard/mouse (Logitech Classic New Touch keyboard) and a Logitech mouse (Logitech RX300) and they didn't work. When I connect keyboard alone, the booting proceeded and I got the acme screen. But the keyboard didn't work. When I connect keyboard and mouse, booting is stuck

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Richard Miller
When I connect keyboard and mouse, booting is stuck at the same place as yesterday: etherusb smsc: b827ebf340cd. Try adding 'kbargs=-d' to your cmdline.txt and see if anything is revealed.

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Ramakrishnan Muthukrishnan
On Fri, Feb 28, 2014 at 4:58 PM, Richard Miller 9f...@hamnavoe.com wrote: When I connect keyboard and mouse, booting is stuck at the same place as yesterday: etherusb smsc: b827ebf340cd. Try adding 'kbargs=-d' to your cmdline.txt and see if anything is revealed. I added the above expression

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Bakul Shah
When mouse+keyboard is connected, it shows this: ... #u/usb/ep1.0: dwcotg: port 0x0 irq 9 #l0: usb: 100Mbps port 0x0 irq -1: 0..00 496M memory: 101M kernel data, 395M user, 1877M swap usb/hub... usb/ether... etherusb smsc: ... usb/kb... and it hangs. When I connect only

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Anthony Sorace
On Feb 27, 2014, at 12:31, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: Always use a powered hub with the Pi – it can't supply bugger all for power out its USB ports. Thank you Lyndon, Steve and Erik. I will try a powered hub tomorrow and also get another keyboard/mouse. Based on my

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Ramakrishnan Muthukrishnan
On Fri, Feb 28, 2014 at 8:05 PM, Bakul Shah ba...@bitblocks.com wrote: When mouse+keyboard is connected, it shows this: ... #u/usb/ep1.0: dwcotg: port 0x0 irq 9 #l0: usb: 100Mbps port 0x0 irq -1: 0..00 496M memory: 101M kernel data, 395M user, 1877M swap usb/hub... usb/ether...

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Ramakrishnan Muthukrishnan
On Fri, Feb 28, 2014 at 8:15 PM, Anthony Sorace a...@9srv.net wrote: On Feb 27, 2014, at 12:31, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: Always use a powered hub with the Pi – it can't supply bugger all for power out its USB ports. Thank you Lyndon, Steve and Erik. I will try a

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Bakul Shah
On Fri, 28 Feb 2014 09:45:42 EST Anthony Sorace a...@9srv.net wrote: Based on my own experience with USB weirdness with the Pi, I still suspec power issues. How are you powering the Pi itself? Using a 1 amp supply yielded problems, regardless of the sort of hub I had, which all went away when

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-28 Thread Michael Hansen
Mouses that work for me: Kensington Mouse-in-a-Box Optical 72123 (NOT the newer 72123CAA version) Kensington Expert Mouse K64325 (actually a trackball, and rather expensive) HP M-UY 101, 361781-007 (very hard to find) I tried several USB keyboards, with and without a powered USB hub, for 9Pi

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Ramakrishnan Muthukrishnan
On Wed, Feb 26, 2014 at 10:49 PM, Richard Miller 9f...@hamnavoe.com wrote: But my USB mouse won't get recognized by Plan9. I tried two different USB mouse and both of them didn't talk to plan9. Is there a way I can see any logs in the kernel (like the /var/log/kern.log in the linux kernel) to

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Ramakrishnan Muthukrishnan
On Thu, Feb 27, 2014 at 9:57 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: On Wed, Feb 26, 2014 at 10:49 PM, Richard Miller 9f...@hamnavoe.com wrote: But my USB mouse won't get recognized by Plan9. I tried two different USB mouse and both of them didn't talk to plan9. Is there a way I

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Ramakrishnan Muthukrishnan
On Thu, Feb 27, 2014 at 10:05 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: On Thu, Feb 27, 2014 at 9:57 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: On Wed, Feb 26, 2014 at 10:49 PM, Richard Miller 9f...@hamnavoe.com wrote: But my USB mouse won't get recognized by Plan9. I

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread erik quanstrom
I tried a USB hub (not a powered one though) and it hangs after printing the following lines: i'd recommend using a powered hub. - erik

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Steve Simon
FWIW I have a Dell keyboard (kb1421), and an IBM/Lenovo mouse (m-u0013-o) and they work fine on my Pi. You are connecting them directly to the PI aren't you? - if you want to use a USB hub it must be a powered one it seems - the Pi can supply very little current on its USB interface. -Steve

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Lyndon Nerenberg
On Feb 27, 2014, at 9:05 AM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: I tried a USB hub (not a powered one though) and it hangs after printing the following lines: Always use a powered hub with the Pi – it can't supply bugger all for power out its USB ports. signature.asc

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Ramakrishnan Muthukrishnan
On Thu, Feb 27, 2014 at 10:38 PM, Lyndon Nerenberg lyn...@orthanc.ca wrote: On Feb 27, 2014, at 9:05 AM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: I tried a USB hub (not a powered one though) and it hangs after printing the following lines: Always use a powered hub with the Pi –

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Bakul Shah
On Thu, 27 Feb 2014 23:01:39 +0530 Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: On Thu, Feb 27, 2014 at 10:38 PM, Lyndon Nerenberg lyn...@orthanc.ca wrot= e: On Feb 27, 2014, at 9:05 AM, Ramakrishnan Muthukrishnan vu3...@gmail.com= wrote: I tried a USB hub (not a powered one

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-27 Thread Grant Mather
This probably won't help, but what happened when I installed Plan 9 onto my Raspberry Pi, is the mouse worked but not the keyboard. So I ended up going to store and buying the cheapest keyboard that I could find. I plugged in the keyboard and it worked. It wasn't a power issue because Linux worked

[9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-26 Thread Ramakrishnan Muthukrishnan
Hello Plan9 hackers, I booted up the new raspberry pi I got last week with an SD Card with the 9pi image from the Labs website. I realised that my monitor doesn't have an HDMI input and only DVI, VGA and DisplayPort, so instead, I connected the little board to my 32 TV and the glenda appeared

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-26 Thread Richard Miller
But my USB mouse won't get recognized by Plan9. I tried two different USB mouse and both of them didn't talk to plan9. Is there a way I can see any logs in the kernel (like the /var/log/kern.log in the linux kernel) to see what exactly happened? Assuming your keyboard is recognised so you can

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-02-26 Thread Ramakrishnan Muthukrishnan
On Wed, Feb 26, 2014 at 9:57 PM, Ramakrishnan Muthukrishnan vu3...@gmail.com wrote: Hello Plan9 hackers, I booted up the new raspberry pi I got last week with an SD Card with the 9pi image from the Labs website. I realised that my monitor doesn't have an HDMI input and only DVI, VGA and