Subject: Problems building a working current kernal...
To: NetBSD Macintosh68K port mailing list <port-mac68k@NetBSD.ORG>
From: Jason W. Fogt, WWC RCA <jwfogt@midway.uchicago.edu>
List: port-mac68k
Date: 11/23/1996 21:51:07
Hello, everyone.

I have been using NetBSD for quite some time now (since the 1.0 release),
and have had no problems compiling various programs and systems to work
with it (at least problems beyond the norm for UNIX compiling..)

I have as of recent upgraded my system to 1.2B (or whatever current will
get me nowadays).  Using sup sources from Thursday, I attempted to build a
kernal to match all of this (my binaries are current, my kernal is still
using 1.2 distrib sources).  This kernal builds without errors, but it
fails to recognize my swap.  Needless to say, this becomes rather fatat
rather quickly whenever I attempt to compile or do anything serious inside
of X.  Here are the specs on my system and the output from a diff command
af my config file and GENERIC.  Any help on why this is happening, or any
futher information that would be of assistance would be greatly
appreciated.

System:  A Mac IIci, with 20M ram (4x4M in Bank A, 4x1M in Bank B)
Video:  Set to 1 bit, using Built-in-video
Ethernet: Asante.  Very standard. Identified as MacCon Ethernet
Harddrive:  1.2 G internal

Output from booting with new kernal:

NetBSD 1.2B (IVCF2C) #2: Fri Nov 22 02:40:22 CST 1996
jwfogt@intervarsity.uchicago.edu:/misc/src/sys/arch/mac68k/compile/IVCF2C
Apple Macintosh IIci  (68030)
real mem = 20643840
avail mem = 16445440
using 204 buffers containing 835584 bytes of memory
mrg: 'Mac IIci/Q700 ROMs' ROM glue, tracing off, debug off, silent traps
mrg: I/O map kludge for ROMs that use hardware addresses directly.
adb: bus subsystem
^Hadb: extended keyboard at 2
adb: 100 dpi mouse at 3
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
asc0 at obio0 Apple sound chip.
intvid0 at obio0: Internal Video
intvid0: 640 x 480, monochrome
grf0 at intvid0
ite0 at grf0 (minimal console)
ncrscsi0 at obio0
scsibus0 at ncrscsi0
sd0 at scsibus0 targ 0 lun 0: <SSI,SSI 1000D 305, T370> SCSI2 0/direct fixed
sd0: 1001MB, 2570 cyl, 14 head, 57 sec, 512 bytes/sec
zsc0 at obio0 chip type 0
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
fpu0 at obio0 (mc68882)
nubus0 at mainbus0
nubus0: slot c: MediaVision NuBus Pro Spectrum, Hardware by Maynard D. Grimm, So (Vendor: MediaVision , Part:0001-0001)  not configured
ae0 at nubus0: address00:00:94:03:c2:c6, type MacCon Ethernet, 32k mem.
root on sd0a swap on sd0b
PRAM: 0x32963efd, macos_boottime:0x32963ef0.
savecore: no core dump
lpd[80]: restarted
init: kernel security level changed from 0 to 1


and finally, differences between my config file (IVCF2C) and GENERIC

1c1
< #     $NetBSD: GENERIC,v 1.47 1996/10/29 06:16:29 briggs Exp $
---
> #     $NetBSD: GENERIC,v 1.49 1996/11/19 00:38:05 scottr Exp $
7,8c7
< maxusers      60
<
---
> maxusers      16
23c22
< options               NFSSERVER       # Sun NFS-compatible filesystem
---
> #options      NFSSERVER       # Sun NFS-compatible filesystem
65,67c64
<
< # Jason specific options
< options               UCONSOLE
---
> options       DISABLE_EXT_CACHE # Don't use IIci external cache
97,98c94,95
< pseudo-device pty             64
< pseudo-device bpfilter        60
---
> pseudo-device pty             16
> pseudo-device bpfilter        12


Given this, why isn't swap working ?  I have it listed in /etc/fstab,
and my 1.2 dist kernal (custom built from a distfile that almost exactly
mirrors this one) works fine.  I have also tried compiling a kernal
without the cache card (i.e. with DISABLE_EXT_CACHE defined).  It shows
exactly the same behavior.

Any help anyone can give me on this would be greatly appreciated, as I am
nearing wits end on trying things.  I also liked the idea of having a working
vmstat and reboot, so upgrading to a post-1.2 kernal would be greatly 
appreciated.

Jason W. Fogt

P.S.  The high number of bpf's is due to the fact that CAP is used rather
heavily on this machine.



=============================================================================
Jason W. Fogt             |"What then shall we say in response to this -  If
jwfogt@midway.uchicago.edu| God is for us, who can be against us ?" - Rom. 8:31
=============================================================================