Subject: scsi driver for sun3
To: Gordon W. Ross <gwr@jericho.mc.com>
From: Harry Schreurs <hls@oce.nl>
List: port-sun3
Date: 05/11/1994 02:58:32
> > From: payam@landau.EECS.Berkeley.EDU
> > Date: Sun, 08 May 94 23:19:42 -0700
> > 
> > Adam told me to let you know about my problems  compiling the currect
> > sun3/conf.c because I sd.h, st.h, etc... [ do not exist ]
> 
> Those headers should be generated by config.new and are not because
> the relevant lines are commented in: arch/sun3/conf/files.sun3.newconf
> All you need to do is uncomment the SCSI stuff (lines 31 - 51) and redo
> config.new FOO.  I'll take care of it this evening.

I confirm that this works.

> Thanks for the note.  (Glad to hear we have more guinea pigs :-)

I would like to report a partial succes. I recently joined this
mailing list. Until yesterday I had several problems getting a working
kernel and when I finally got one, I was confronted with the dreaded:

	Watchdog Reset!

At first I couldn't explain this behaviour, but then I realized that
I had no FP coprocessor installed. I removed the line with:

	options FPCOPROC

from the file 'std.sun3' and no more 'Watchdog Reset'.

I forgot to mention that I also had to change 'prom.c', because typedef
timeout_t has disappeared. I have appended to diffs to this message.

My configuration:

	SUN 3/50
	PROM version 2.6
	4 Mb Memory
	No FPU installed
	GNU assembler version 2.2 (sun3-sunos4.1)
	gcc version 2.5.8 (sun3-sunos4.1)
	BOOTP available on the network.

This is close what I get:

	Model:  Sun 3/50
	real mem  = 4xxxxxx ( I don't exactly recall exact text lines anymore )
	avail mem = 3xxxxxx
	using 153 buffers containing xxxxx bytes of memory
	mainbus0 (root)
	obio0 at mainbus0
	le0 at obio0 addr 0x120000 level 3: ether address 08:00:20:xx:xx:xx
	clock0 at obio0 addr 0x60000 level 5
	obmem0 at mainbus0
	obctl0 at mainbus0
	idprom0 at obctl0 addr 0x0 size 0x20
	prom0 at mainbus0
	context_allocate: for pmap e084f14
	context_allocate: pmap e084f14 associated with context e0807e8 num 0
	root on tempest:/export/hilton/root
	swap on tempest:/export/hilton/swap
	...
	panic: rminit

Does anybody know what's wrong?
Is the source tree on sun-lamp stable enough?


Regards,

Harry Schreurs

######################################################################
# H.L Schreurs					Email: hls@oce.nl    #
# Business Unit Printing Systems		Phone: +31 77 593775 #
# Oce Nederland B.V.				Fax: +31 77 595434   #
# The Netherlands					             #
######################################################################

	*** /src/sys/arch/sun3/dev/prom.c.org	Thu May  5 13:13:16 1994
	--- /src/sys/arch/sun3/dev/prom.c	Tue May 10 16:07:14 1994
	**********
	*** 15,20 ****
	--- 15,22 ----
  	#include <dev/cons.h>
  	#include "../sun3/interreg.h"
 	 
	+ typedef void (*timeout_t) __P((void *));
	+ 
  	/*
   	* cleanup:
   	* get autoconfiguration right, right style
	***************
	*** 79,85 ****
	--- 81,89 ----
  		tp = prom_sc->sc_tty = ttymalloc();
      	else
  		tp = prom_sc->sc_tty;
	+ /*
      	tp->t_addr = (caddr_t) tp;
	+ */
      	tp->t_oproc = promstart;
      	tp->t_param = promparam;
      	tp->t_dev = dev;

      ###########################################################
      #  This note does not necessarily represent the position  #
      #     of Oce-Nederland B.V. Therefore no liability or     #
      #      responsibility for whatever will be accepted.      #
      ###########################################################

------------------------------------------------------------------------------