Subject: 1.4.2 snapshot on B&W G3, USB keyboard stuff
To: None <port-macppc@netbsd.org>
From: Steven Kasow <kasow@panix.com>
List: port-macppc
Date: 03/13/2000 11:20:49
Hi folks, 

	These USB things are probably old hat to most people, but I 
thought I'd write up my recent experiences in case they are of any use
in debugging or whatever. I did a quick search of the pr database, and
didn't see anything about the USB stuff in there. Did I miss something?
Or should I file a pr about this stuff?

	I tried out the 1.4.2 snapshot on my system here, and it 
seems cool so far- the USB weirdness seems to have changed slightly, but
can still be worked around. FYI I have a 400 MHz B&W G3 with 128 MB RAM, 
USB keyboard, 1 Adaptec 2940U2B scsi card with 1 drive attached, 
and 2 IDE drives which I use for NetBSD, and a Quadra 650 running 
NetBSD/mac68k. 

	If I netboot, so that boot device = root device, I get the 
left-shift bug. E.g., I get a root prompt, and the first key I hit
repeats forever, unless I do left-shift before I type. This is nothing
new.

	If I tell OpenFirmware to read a kernel off of my SCSI disk[*], I
get 'boot device = <unknown>', since NetBSD doesn't understand my SCSI
board (yet?) and the kernel prompts me for a root device. In this
case, I type a bit, and nothing shows up. If I'm patient, and wait a
minute, I eventually get 'usb_start_next: empty' showing up, with a
few of the characters I typed, and I can backspace over them, give the
kernel 'wd1a', and then I'm fine. No left-shift weirdness at login.

	I tried the 20000205 snapshot the other week, and had no luck
with it. If I used my 1.4.1 workaround with it (holding a key down for
most of boot, starting basically when the pci messages go by), I get
'SPLUSBCHECK failed' '0x0!=0x30000122 ../../../../dev/usbdi.c:776 and :892
Then I get some 'ohci_intr: ignored' 'interrupt while polling' with 
every key I hit at that prompt. If I just type 'wd1a<RET>' I get 
repeating returns at the root prompt. If I type 'wd1a<RET><left-shift>' 
I can manage to avoid the repeating returns, but I still can't type
anything at the login: prompt. 

	cheers,

		Steven


[*] the openfirmware command, in case anyone's interested, is a mouthful:

boot /pci@80000000/pci-bridge@d/ADPT,2940U2B@4/disk:5,netbsd-142

5 means that my 'Macintosh HD' partition is the 5th on the disk, and 
netbsd-142 is sitting in 'Macintosh HD'.