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 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 via email to