From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 4 Mar 2014 11:26:31 -0500 To: 9fans@9fans.net Message-ID: <2ffa27d7c79801528556705f4cf55346@mikro.quanstro.net> In-Reply-To: References: <199A32F6-9C38-45B8-B191-CAE2B1972408@orthanc.ca> <20140228162449.BB1BFB827@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Raspberry Pi: won't recognize the USB mouse Topicbox-Message-UUID: c3bb72dc-ead8-11e9-9d60-3106f5b1d025 On Tue Mar 4 10:56:33 EST 2014, vu3rdd@gmail.com wrote: > On Tue, Mar 4, 2014 at 7:57 PM, erik quanstrom 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" message that the descriptor length is short. But when > >> I rebooted, I didn't see that message. > > > > i think one of the issues behind this was debugged yesterday. > > usbshortdesc (/n/sources/patch/usbshortdesc) has been submitted. > > richard may have improvements, but this should eliminate this > > issue. > > Sorry if this question is dumb: How can I build a 9pi image with this > patch and test? Can someone create a 9pi image for me to test? not dumb. but you don't really need to create a whole new image. i'm typing this on the fly, so i hope there are no errors. :-) 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 kernel cd /sys/src/cmd/bcm; mk i believe you can give it a quick test by doing a hot reboot. fshalt -r ./9pi if you'd like to install the new kernel on the flash, then dossrv mount /srv/dos /n/9fat /dev/sdM0/dos cd /n/9fat cp 9pi 9pi-dist cp /sys/src/9/bcm/9pi 9pi-usbfix cp 9pi-usbfix 9pi and reboot. if this doesn't work out, you can rescue yourself by using anything that understands fat and replacing 9pi with the contents of 9pi-dist. - erik