Subject: Various sun3 -current remarks
To: None <mouse@Collatz.McRCIM.McGill.EDU>
From: Gordon W. Ross <gwr@mc.com>
List: port-sun3
Date: 11/10/1995 11:59:02
> Date: Fri, 10 Nov 1995 10:32:35 -0500
> From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>

> As of a day or so ago, my Sun-3/150 finished a full build of the world.
> That means "make build" in /usr/src, build a kernel, build the
> bootblocks, install everything.
> 
> In particular, the new SCSI driver ran flawlessly for two or three days
> solid.

Good to hear.  Keith Moore had problems with it when using three disks,
so now I'm not sure I want to switch to it right now.  Working on it...

> > I also have some kind of libkvm mismatch because vmstat will not run,
> > and ps reports funny results in places.
> 
> In my experience:
> 
> - ps invariably reports only the command name, and that in parentheses;
>    "ps ax" output might look like
> 
> 	  PID TT  STAT      TIME COMMAND
> 	    0 ??  DLs    0:01.31 (swapper)
> 	    1 ??  Is     0:00.49 (init)
> 	    2 ??  DL     0:12.92 (pagedaemon)
> 	   60 co  Ss     0:05.08 (sh)
> 	   73 co  R+     0:00.09 (ps)
> 
> - dmesg works immediately after boot, but at other times it says
> 	dmesg: kvm_read: kvm_read: Bad address
>    I don't know when the change occurs.
> 
> This is despite doing at least two "make build"s; ps, dmesg, libkvm,
> kernel, etc, are all up-to-date with respect to one another....
> 
> 					der Mouse
> 
> 			    mouse@collatz.mcrcim.mcgill.edu

Those are all because kvm_mkdb is broken, and it is broken because
I forgot to add a define to machine/param.h (patch below).
Thank-you SO MUCH for reminding me about this problem _NOW_.

Apply this patch and then rebuild src/usr.sbin/kvm_mkdb
(It's the only thing affected by this change.)

diff -c ../sun3.orig/include/param.h ./include/param.h
*** ../sun3.orig/include/param.h	Fri Oct 13 22:26:19 1995
--- ./include/param.h	Fri Nov 10 11:42:15 1995
***************
*** 70,75 ****
--- 70,76 ----
  
  #define	KERNBASE	0x0E000000	/* start of kernel virtual */
  #define	BTOPKERNBASE	((u_long)KERNBASE >> PGSHIFT)
+ #define	KERNTEXTOFF	0x0E004000	/* start of kernel text */
  
  #define	DEV_BSIZE	512
  #define	DEV_BSHIFT	9		/* log2(DEV_BSIZE) */