Subject: /dev/mouse
To: None <jmack@Phys.UAlberta.Ca>
From: Arne Henrik Juul <arnej@phys.unit.no>
List: port-pmax
Date: 05/15/1995 23:25:51
 > Hi,
 > 	I'm trying to test the X stuff you built (good going!) for
 > PMAX, but have run into a snag. xdm-errors log says:
 > 
 > couldn't open /dev/mouse 
 > 
 > Fatal server error:
 > no screens found
 > error (pid 7748): Server for display :0 terminated unexpectedly: 1
 > 
 > This is on a DS2100 mono machine running native BSD code.

Note that for mono you probably need Xmfbpmax which I haven't built yet.

 > sysctl data are:
 > 
 > dene# sysctl -a | more
 > kern.ostype = NetBSD
 > kern.osrelease = 1.0A
 > kern.osrevision = 199306
 > kern.version = NetBSD 1.0A (MAY795) #0: Fri Jan  7 11:14:26 MST 1994
                                               ^^^^^^              ^^^^
I think your clock is (was) out of sync :-)

 >     jmack@dene:/giga/NetBSD/SUP-95/src/sys/arch/pmax/compile/MAY795
 > 
 > , although the following comes up too:
 > 
 > machdep.console_device = ??

When the machine boots you should see some diagnostics for the
frame buffer or suchlike.  I get "pm0 (color display)" on mine,
so maybe you would get "pm0 (monochrome display)" ?  Or maybe
mfb0.

 > in /dev, I have:
 > 
 > dene# ls -l pm0 *fb0 mouse
 > crw-rwxrwx  1 root  wheel   13,   0 May 15 13:38 cfb0
 > crw-rwxrwx  1 root  wheel   18,   0 May 15 13:38 mfb0
 > lrwxr-xr-x  1 root  wheel         8 May 15 14:30 mouse -> /dev/pm0
 > crw-rw-rw-  1 root  wheel    8,   0 May 15 13:32 pm0
 > crw-rwxrwx  1 root  wheel   14,   0 May 15 13:39 xcfb0

You can test if the device is there at all with 'cat /dev/pm0'.
If you get "Device not configured" it's not there at all.

If you have a somewhat -current kernel it won't have /dev/pm0
even if it finds pm0 during boot.  I used a temporary patch (appended).

(look in pub/NetBSD/arch/pmax/X11R5/ver-5.26/bin@pmaxnetbsd for
Xmfbpmax if you want to test it - I'm not able to test it at all,
but I can put it out there for you.)

  - Arne H. J.


--- conf.c.orig	Mon May 15 22:49:12 1995
+++ conf.c	Fri May 12 11:50:16 1995
@@ -116,6 +116,8 @@
 cdev_decl(rcons);
 #include "fb.h"
 cdev_decl(fb);
+#include "pm.h"
+cdev_decl(pm);
 
 struct cdevsw	cdevsw[] =
 {
@@ -127,7 +129,7 @@
         cdev_ptc_init(NPTY,ptc),        /* 5: pseudo-tty master */
 	cdev_log_init(1,log),		/* 6: /dev/klog */
 	cdev_fd_init(1,fd),		/* 7: file descriptor pseudo-dev */
-	cdev_notdef(),			/* 8: 2100/3100 frame buffer */
+	cdev_fb_init(NPM,pm),		/* 8: 2100/3100 frame buffer */
 	cdev_notdef(),			/* 9: old slot for SCSI disk */
 	cdev_tape_init(NTZ,tz),		/* 10: SCSI tape */
 	cdev_disk_init(NVND,vnd),	/* 11: vnode disk driver */