Re: [9fans] usbd problem

2008-02-13 Thread geoff
Or just run diskparts(8) again. --- Begin Message --- I'm not having a good day. I said: > Also, after restarting partfs you need to reload the > partition information: > > disk/prep -p /dev/sdXX/data >/dev/sdXX/ctl Of course it should be: disk/fdisk -p /dev/sdXX/data >/dev/sdXX/ctl

Re: [9fans] usbd problem

2008-02-13 Thread Sape Mullender
>> > ohci. oddly, my uhci ich9r machine doesn't recognize >> > either of my extensive collection of two usb devices. >> >> You may be running the usbd with faulty dump.c. If your >> devices show up in /dev/usb0/1/status with just one >> line and 0x00 for Class/Subclass/Proto, then you're >>

Re: [9fans] usbd problem

2008-02-13 Thread erik quanstrom
> > ohci. oddly, my uhci ich9r machine doesn't recognize > > either of my extensive collection of two usb devices. > > You may be running the usbd with faulty dump.c. If your > devices show up in /dev/usb0/1/status with just one > line and 0x00 for Class/Subclass/Proto, then you're > almost

Re: [9fans] usbd problem

2008-02-13 Thread Sape Mullender
>> Are you killing the old usbd before starting a new one? > > yes. > >> And is this uhci or ohci? > > ohci. oddly, my uhci ich9r machine doesn't recognize > either of my extensive collection of two usb devices. You may be running the usbd with faulty dump.c. If your devices show up in /dev/u

Re: [9fans] usbd problem

2008-02-13 Thread Richard Miller
> We added booting via the BIOS to 9load specifically for USB Oh yes, I had forgotten that. None of my machines seem to be willing to boot from any of my usb flash drives. However I have just successfully resurrected my experiment with using a kfs on usb disk as root - see /contrib/miller/usb/bo

Re: [9fans] usbd problem

2008-02-13 Thread erik quanstrom
> Sorry, I have no ohci hardware so I don't think I can > help. Did the uhci machine recognise your devices > before the recent update to add ohci support? just got the machine monday. i don't think i have any older kernels with usb compiled in, but i'll see what i can find. i'd like to rule out

Re: [9fans] usbd problem

2008-02-13 Thread Richard Miller
> ohci. oddly, my uhci ich9r machine doesn't recognize > either of my extensive collection of two usb devices. Sorry, I have no ohci hardware so I don't think I can help. Did the uhci machine recognise your devices before the recent update to add ohci support?

Re: [9fans] usbd problem

2008-02-13 Thread erik quanstrom
> Are you killing the old usbd before starting a new one? yes. > And is this uhci or ohci? ohci. oddly, my uhci ich9r machine doesn't recognize either of my extensive collection of two usb devices. - erik

Re: [9fans] usbd problem

2008-02-13 Thread Richard Miller
> i've got things pretty wedged now -- usbd won't start Are you killing the old usbd before starting a new one? And is this uhci or ohci?

Re: [9fans] usbd problem

2008-02-13 Thread Richard Miller
I'm not having a good day. I said: > Also, after restarting partfs you need to reload the > partition information: > > disk/prep -p /dev/sdXX/data >/dev/sdXX/ctl Of course it should be: disk/fdisk -p /dev/sdXX/data >/dev/sdXX/ctl disk/prep -p /dev/sdXX/plan9 >/dev/sdXX/ctl

Re: [9fans] usbd problem

2008-02-13 Thread Richard Miller
>> Where is 9fat, fs and nvram created by disk/prep? > > Did you forget the 'w' command? Also, after restarting partfs you need to reload the partition information: disk/prep -p /dev/sdXX/data >/dev/sdXX/ctl

Re: [9fans] usbd problem

2008-02-13 Thread arisawa
Oh yes, I misread the situation: term% disk/prep /dev/sdXX/plan9 empty0 2 (2 sectors, 1.00 KB) 9fat 2 3 (29998 sectors, 14.64 MB) fs 3 256913(226913 sectors, 110.79 MB) nvram 256913 256914(1 sectors, 512 B

Re: [9fans] usbd problem

2008-02-13 Thread Richard Miller
> Where is 9fat, fs and nvram created by disk/prep? Did you forget the 'w' command?

Re: [9fans] usbd problem

2008-02-12 Thread arisawa
Hello, Thank you for working for usb support. In trying usb/disk I have a question: term% usb/disk term% disk/partfs /n/disk/0/data term% disk/mbr /dev/sdXX/data term% disk/fdisk -baw /dev/sdXX/data term% disk/prep /dev/sdXX/plan9 empty0 2 (2 sectors, 1.00 KB) 9fat

Re: [9fans] usbd problem

2008-02-12 Thread erik quanstrom
thanks for the update. i have switched to a slightly more agreeable key but i have a new way to fail. the key works the first time. but the second time i connect the same key, i get ; usbfat: setupreq: write err: No response usb/disk: describedevice: error writing usb de

Re: [9fans] usbd problem

2008-02-12 Thread geoff
We added booting via the BIOS to 9load specifically for USB (though it may have other uses), so that we wouldn't have to add to 9load and maintain 8,000 lines, and growing, of complex USB code (though that's likely due to the inherent complexity of USB rather than being the fault of those who have

Re: [9fans] usbd problem

2008-02-12 Thread Richard Miller
> geoff pointed out that usb/disk pulls in a lot of stuff and might need > some work to run in the kernel. Usb root can be done by putting usb/disk and usb/usbd into /boot and hacking /sys/src/9/boot/local.c a bit. I tried it once and it worked albeit slowly. However, getting 9load to use usb di

Re: [9fans] usbd problem

2008-02-12 Thread erik quanstrom
> Do you mean why doesn't the ctl file accept partition commands? > You can always use fs(3) for that. But usb root is not very > practical anyway, at least with uhci, because of a stubborn > bug in the driver which makes transfers very very slow. Now > there's ohci support I would be interested

Re: [9fans] usbd problem

2008-02-12 Thread Richard Miller
> Actually, partfs(8) provides devsd-compatible partitions Cool - I hadn't noticed when that appeared.

Re: [9fans] usbd problem

2008-02-12 Thread geoff
Actually, partfs(8) provides devsd-compatible partitions and is probably a better choice for this than fs(3). It wasn't cited in usbdisk(4)'s SEE ALSO, but it is now.

Re: [9fans] usbd problem

2008-02-12 Thread Richard Miller
> one final question, is there an advantage to usb/disk creating a fs > that's incompatable with devsd? it would seem to make booting > from usb root difficult. Do you mean why doesn't the ctl file accept partition commands? You can always use fs(3) for that. But usb root is not very practical a

Re: [9fans] usbd problem

2008-02-12 Thread Fco. J. Ballesteros
Warning!, the dump.c I sent Sape has a bug. search for "len = b[0]-1", in pdesc(), replace that with "len = b[0]". sorry for the mistake. > From: [EMAIL PROTECTED] > To: 9fans@cse.psu.edu > Reply-To: 9fans@cse.psu.edu > Date: Tue Feb 12 15:36:36 CET 2

Re: [9fans] usbd problem

2008-02-12 Thread Sape Mullender
>> Nemo found a bug in usb/lib/dump.c that may well account for >> this. I incorporated his change (and fixed a bug in his code :-). >> I'll ask Geoff to push it out today. >> >> Sape > > excellent. i'll give it a shot. > > - erik Give it a shot now: /sys/src/cmd/usb/lib/dump.c #

Re: [9fans] usbd problem

2008-02-12 Thread erik quanstrom
> Nemo found a bug in usb/lib/dump.c that may well account for > this. I incorporated his change (and fixed a bug in his code :-). > I'll ask Geoff to push it out today. > > Sape excellent. i'll give it a shot. - erik

Re: [9fans] usbd problem

2008-02-12 Thread Sape Mullender
> usbd is exiting when i have a camera which is off > attached: > > ; usb/usbd -v > ; echo $status > usbd 1827: usbd: setup0: usb0/1: transaction error > > - erik Nemo found a bug in usb/lib/dump.c that may well account for this. I incorporated his change (and fixed a bug in his code :-). I'll

Re: [9fans] usbd problem

2008-02-12 Thread erik quanstrom
> Looking at /sys/src/cmd/usb/usbd/usbd.c, I wonder whether > your problem has something to do with these lines? > > //unconscionable kludge (testing camera) > if(d->class == 10) setup0(d, RH2D|Rinterface, SET_INTERFACE, 10, 0, 0); thanks for the suggestion, but the camera was a red herring. it

Re: [9fans] usbd problem

2008-02-12 Thread Richard Miller
Looking at /sys/src/cmd/usb/usbd/usbd.c, I wonder whether your problem has something to do with these lines? //unconscionable kludge (testing camera) if(d->class == 10) setup0(d, RH2D|Rinterface, SET_INTERFACE, 10, 0, 0);

Re: [9fans] usbd problem

2008-02-12 Thread Richard Miller
> ; usb/usbd -v Try 'usb/usbd -d1' for more information.

[9fans] usbd problem

2008-02-11 Thread erik quanstrom
usbd is exiting when i have a camera which is off attached: ; usb/usbd -v ; echo $status usbd 1827: usbd: setup0: usb0/1: transaction error - erik