Subject: Re: Getting lk401 kb/mouse working on Alpha 3000/400
To: None <M.Drochner@fz-juelich.de>
From: George Michaelson <ggm@dstc.edu.au>
List: port-alpha
Date: 07/27/1999 11:06:14
  ggm@dstc.edu.au said:
  > I have an alpha 3000/400 which is reporting it cannot initialize the
  > keyboard/mouse and switches to serial console. 
  
  If it is the error message in dec_3000_500.c (around line 131),
  then it means that there is a problem with the keyboard _or_
  the display side.
  Looking at the code, I have reason to believe that the keyboard
  side can never have worked due to an inconsistency in error handling.
  Can you try the appended patch?

It applied cleanly.

It didn't make any difference. the kb works fine at >>>> bootprom level.
the screen self-tests at powerontime, and displays bootprom output fine.

When I boot, I get:

 consinit: Unable to init console on keyboard and TURBOchannel slot 0x1.
 Using serial console.

I have these in my kernel config:

 zsc*    at      ioasic? offset ?
 sfb*    at      tc? slot ? offset ?

 # Zilog serial TTY support
 zstty*  at      zsc? channel 1                  # serial ports on B channels

 options         NEW_SCC_DRIVER

 # mouse and kbd 
 zskbd0  at      zsc? channel 0                  # keyboard port on A channels
 zsms0   at      zsc? channel 0                  # mouse port on A channels
 
 # Workstation Console attachments 
 wsdisplay*      at      sfb?    
 wskbd*          at      zskbd?  
 wsmouse*        at      zsms?   

When the kernel boots I get (in the dmesg buffer)

 NetBSD 1.4H (SMELLO2) #3: Mon Jul 26 17:53:40 PDT 1999
    ggm@smello:/data/src/sys/arch/alpha/compile/SMELLO2
 DEC 3000 - M400, 133MHz
 8192 byte page size, 1 processor.
 total memory = 128 MB
 (2048 KB reserved for PROM, 126 MB used by NetBSD)
 avail memory = 114 MB
 using 819 buffers containing 6552 KB of memory
 mainbus0 (root)
 cpu0 at mainbus0: ID 0 (primary), 21064-1 (pass 3)
 cpu0: VAX FP support, IEEE FP support
 tcasic0 at mainbus0
 tc0 at tcasic0: 25 MHz clock
 ioasic0 at tc0 slot 7 offset 0x0: fast mode
 le0 at ioasic0 offset 0xc0000: address 08:00:2b:39:c2:35
 le0: 32 receive buffers, 8 transmit buffers
 zsc0 at ioasic0 offset 0x100000
 zsms0 at zsc0 channel 0
 wsmouse0 at zsms0
 zstty0 at zsc0 channel 1
 zsc1 at ioasic0 offset 0x180000
 zskbd0 at zsc1 channel 0
 wskbd0 at zskbd0
 zstty1 at zsc1 channel 1 (console)
 mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
 AMD79c30 at ioasic0 offset 0x240000 not configured
 tcds0 at tc0 slot 6 offset 0x0: TurboChannel Dual SCSI (baseboard)
 asc0 at tcds0 chip 0: NCR53C94, 25MHz, SCSI ID 7
 scsibus0 at asc0: 8 targets, 8 luns per target
 	:
 	:
 	:
  	:
 
cheers
	-George
--
George Michaelson         |  DSTC Pty Ltd
Email: ggm@dstc.edu.au    |  University of Qld 4072
Phone: +61 7 3365 4310    |  Australia
  Fax: +61 7 3365 4311    |  http://www.dstc.edu.au