9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Raspberry Pi: won't recognize the USB mouse
Date: Tue,  4 Mar 2014 11:26:31 -0500	[thread overview]
Message-ID: <2ffa27d7c79801528556705f4cf55346@mikro.quanstro.net> (raw)
In-Reply-To: <CAA6Yd9U6JQPZJQ_zycN1DvzfRX=qFSqPNnjTwQcgWD9rnhTjVw@mail.gmail.com>

On Tue Mar  4 10:56:33 EST 2014, vu3rdd@gmail.com wrote:
> On Tue, Mar 4, 2014 at 7:57 PM, erik quanstrom <quanstro@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" 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



  reply	other threads:[~2014-03-04 16:26 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-26 16:27 Ramakrishnan Muthukrishnan
2014-02-26 17:19 ` Richard Miller
2014-02-27 16:27   ` Ramakrishnan Muthukrishnan
2014-02-27 16:35     ` Ramakrishnan Muthukrishnan
2014-02-27 17:05       ` Ramakrishnan Muthukrishnan
2014-02-27 17:08         ` Lyndon Nerenberg
2014-02-27 17:31           ` Ramakrishnan Muthukrishnan
2014-02-27 18:03             ` Bakul Shah
2014-02-28 11:10             ` Ramakrishnan Muthukrishnan
2014-02-28 11:28               ` Richard Miller
2014-02-28 14:12                 ` Ramakrishnan Muthukrishnan
2014-02-28 14:35                   ` Bakul Shah
2014-02-28 15:12                     ` Ramakrishnan Muthukrishnan
2014-02-28 14:45             ` Anthony Sorace
2014-02-28 15:15               ` Ramakrishnan Muthukrishnan
2014-02-28 16:24               ` Bakul Shah
2014-03-04 14:12                 ` Ramakrishnan Muthukrishnan
2014-03-04 14:27                   ` erik quanstrom
2014-03-04 15:54                     ` Ramakrishnan Muthukrishnan
2014-03-04 16:26                       ` erik quanstrom [this message]
2014-03-04 18:18                         ` Bakul Shah
2014-03-04 18:26                           ` erik quanstrom
2014-03-08 14:56                           ` Ramakrishnan Muthukrishnan
2014-03-08 14:59                             ` erik quanstrom
2014-03-09 13:25                               ` Ramakrishnan Muthukrishnan
2014-03-09 13:46                                 ` erik quanstrom
2014-03-05 10:57                     ` Richard Miller
2014-03-05 10:59                     ` Richard Miller
2014-02-27 17:10         ` erik quanstrom
2014-02-27 17:15       ` Steve Simon
2014-02-26 17:22 ` Ramakrishnan Muthukrishnan
2014-02-28  4:31   ` Grant Mather
2014-02-28  9:05     ` erik quanstrom
2014-03-01  5:43 Michael Hansen
2014-03-01 12:09 ` Richard Miller
2014-03-01 12:12 ` erik quanstrom
2014-03-02 10:46   ` Richard Miller
2014-03-02 14:57     ` erik quanstrom
2014-03-02 19:54       ` Richard Miller
2014-03-02 23:22         ` Winston Kodogo
2014-03-03  1:29         ` erik quanstrom
2014-03-03 11:05           ` Richard Miller
2014-03-03 11:24   ` Richard Miller
2014-03-03 13:39     ` erik quanstrom
2014-03-02  1:12 Michael Hansen
2014-03-02  1:39 ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ffa27d7c79801528556705f4cf55346@mikro.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).