Subject: sparc, -Wall + more, ...
To: None <netbsd-help@netbsd.org>
From: Marshall Midden <m4@unet.umn.edu>
List: netbsd-help
Date: 12/15/1994 09:52:12
I just recompiled the sparc "current", and have a few things to report.
I am willing to port "send-pr" to this system that is allowed to send e-mail.

Should I be porting sparc problems this way?  Examples:
==============================================================================
I now have netbsd running on an Britelite RDI IPC.
"sup" on 1994-12-12 around 4am.

Problem #1) boot displayed the following:
    bwtwo0 at sbus0 slot 3 offset 0x0: RDI,xx, 640 x 480 (console)
Then in a different font (and repeatable, unfortunately):
    dc58 property reg length 120 > 64  panic: getprop synching disk ... done
I changed line 506 of /sys/arch/sparc/sparc/autoconf.c, routine romprom, to:
    union { char regbuf[128]; int ireg[3]; ; } u;
			^^^ was 64.
Kernel now boots, and works fine.
------------------------------------------------------------------------------
Complaint #1) The message below about excess ignored, probably should have a
bigger buffer, and display the contents -- so everyone would know that the "ia"
device is an atm card ... .  (Will I ever get to doing something with it?)

Dec 12 12:16:37 rdi /netbsd: Copyright (c) 1982, 1986, 1989, 1991, 1993
Dec 12 12:16:37 rdi /netbsd: 	The Regents of the University of California.  All rights reserved.
Dec 12 12:16:37 rdi /netbsd: 
Dec 12 12:16:37 rdi /netbsd: NetBSD 1.0A (unet) #2: Mon Dec 12 11:32:20 CST 1994
Dec 12 12:16:37 rdi /netbsd:     m4@rdi.unet.umn.edu:/usr/src/sys/arch/sparc/compile/unet
Dec 12 12:16:37 rdi /netbsd: real mem = 36044800
Dec 12 12:16:37 rdi /netbsd: avail mem = 32706560
Dec 12 12:16:37 rdi /netbsd: using 440 buffers containing 1802240 bytes of memory
Dec 12 12:16:37 rdi /netbsd: mainbus0 (root)
Dec 12 12:16:37 rdi /netbsd: cpu0 at mainbus0: SUNW,Sun 4/40 (MB86900/1A or L64801 @ 25 MHz, WTL3170/2 FPU)
Dec 12 12:16:37 rdi /netbsd: cpu0: 65536 byte write-through, 16 bytes/line, sw flush cache enabled
Dec 12 12:16:37 rdi /netbsd: memreg0 at mainbus0 ioaddr 0xf4000000
Dec 12 12:16:37 rdi /netbsd: clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
Dec 12 12:16:38 rdi /netbsd: timer0 at mainbus0 ioaddr 0xf3000000
Dec 12 12:16:38 rdi /netbsd: zs0 at mainbus0 ioaddr 0xf1000000 pri 12, softpri 6
Dec 12 12:16:38 rdi /netbsd: zs1 at mainbus0 ioaddr 0xf0000000 pri 12, softpri 6
Dec 12 12:16:38 rdi /netbsd: audio0 at mainbus0 ioaddr 0xf7201000 pri 13, softpri 4
Dec 12 12:16:38 rdi /netbsd: auxreg0 at mainbus0 ioaddr 0xf7400003
Dec 12 12:16:38 rdi /netbsd: sbus0 at mainbus0 ioaddr 0xf8000000: clock = 25 MHz
Dec 12 12:16:38 rdi /netbsd: dma0 at sbus0 slot 0 offset 0x400000: rev 1
Dec 12 12:16:38 rdi /netbsd: esp0 at sbus0 slot 0 offset 0x800000 pri 3: ESP100 25Mhz, target 7
Dec 12 12:16:38 rdi /netbsd: scsibus0 at esp0
Dec 12 12:16:38 rdi /netbsd: esp0 targ 1 lun 0: <CDC     94191-15        0136> SCSI1 direct fixed
Dec 12 12:16:38 rdi /netbsd: sd1 at scsibus0: 632MB, 1632 cyl, 15 head, 52 sec, 512 bytes/sec
Dec 12 12:16:38 rdi /netbsd: esp0 targ 3 lun 0: <SEAGATE ST3283N         9303> SCSI2 direct fixed
Dec 12 12:16:38 rdi /netbsd: sd0 at scsibus0: 237MB, 1691 cyl, 5 head, 57 sec, 512 bytes/sec
Dec 12 12:16:38 rdi /netbsd: le0 at sbus0 slot 0 offset 0xc00000 pri 5: hardware address 08:00:20:0e:87:23
Dec 12 12:16:38 rdi /netbsd: bwtwo0 at sbus0 slot 3 offset 0x0: RDI,xx, 640 x 480 (console)
Dec 12 12:16:39 rdi /netbsd: warning: ia "reg" property length 120 > 12, excess ignored
Dec 12 12:16:39 rdi /netbsd: ia at sbus0 slot 1 offset 0x0 not configured
Dec 12 12:16:39 rdi /netbsd: fd at mainbus0 ioaddr 0xf7200000 not configured
Dec 12 12:16:39 rdi /netbsd: Found boot device sd1
------------------------------------------------------------------------------
Problem #2:
	With sd0 being a SCSI2, and sd1 being a SCSI1, I am having problems
	when I access sd0 (booted off sd1).  (any of: fsck, mount, df...)
	"esp" timeout.  Can't keep message on screen long enough.  Can't sync
	disks or anything.  Can not do the dump.  Long register dump to screen
	(and being there is only about 21 lines, by 53 chars... .
------------------------------------------------------------------------------
Problem #3:
	Must have "SUN4", even if you only want "SUN4C".  Missing #ifdef's
	around vme stuff in autoconf.c.
------------------------------------------------------------------------------
Problem #4: usr.sbin/netgroup_mkdb is missing routines.
	_ng_parse, _ng_makekey, _ng_sl_init, _ng_sl_free, _sl_find, _sl_add.
	{commented out in Makefile}
------------------------------------------------------------------------------
Question #1: I hear rumors about other device drivers being written -- floppy
and tape are of course typically wanted...  Is there an archive for the
mailing lists -- maybe FAQ for newcomers?
------------------------------------------------------------------------------
Question #2: Is it easy to change the raster font?  (Wishing for a smaller one
for this device.)
------------------------------------------------------------------------------
Problem #5: (long)
	Compiling with Warnings enabled:
    CFLAGS += -O4 -funroll-loops -fomit-frame-pointer -finline-functions
    CFLAGS += -W -Wall -Wshadow -Wpointer-arith -Wcast-qual -Winline
    CFLAGS += -Waggregate-return -mfpu -fshort-enums -fcaller-saves

Anyone want the lines to be fixed?  How would you like the changes sent in?
I can create a CVS directory (cvs import netbsd netbsd netbsd)
get the source into another tree (cvs checkout netbsd), make the changes, etc,
then "cvs diff -c netbsd".
------------------------------------------------------------------------------