Subject: Problem Netbooting 4/110, problem compiling Sun4 kernel
To: None <port-sparc@NetBSD.ORG>
From: Rob Windsor <windsor@punk.hedgehog.com>
List: port-sparc
Date: 06/30/1996 01:56:01
Heyyo,
I've set everything up to netboot a recently acquired 4/110, but I am
having problems netbooting it.
Here's what the prom tells me:
>b
Diagnostic Auto-boot in progress...ie(0,0,0)
Using IP Address 206.86.41.25 = CE562919
Booting from tftp server at 206.86.41.100 = CE562964
Downloaded 29296 bytes from tftp server.
Illegal instruction "0x00006FC0" was encountered at PC 0x00004004.
>
tcpdump displays nothing past the tftp fetch of the boot blocks.
I've tinkered with trying to compile another boot block that defined
RELOC to be RELOC_SUN4 (0x240000).
Also..
Compiling a kernel for it on my IPX, it bails at..
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -mno-fpu -I. -I../../../../arch -I../../../.. -DSUN4 -DTIMEZONE="0x1e0" -DDST="1" -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DLKM -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_SUNOS -DCOMPAT_SVR4 -DFFS -DQUOTA -DNFSSERVER -DNFSCLIENT -DNULLFS -DMFS -DFDESC -DCD9660 -DUNION -DFIFO -DINET -D_KERNEL -c ../../../../arch/sparc/sparc/autoconf.c
../../../../arch/sparc/sparc/autoconf.c: In function `mainbus_attach':
../../../../arch/sparc/sparc/autoconf.c:1179: `ca' undeclared (first use this function)
../../../../arch/sparc/sparc/autoconf.c:1179: (Each undeclared identifier is reported only once
../../../../arch/sparc/sparc/autoconf.c:1179: for each function it appears in.)
*** Error code 1
Looking at autoconf.c, CPU_ISSUN4M is getting defined. I traced it to
sys/arch/sparc/include/param.h, but that looks "ok" as well.
Here's the kernel conf file:
# BEAST -- Rob's 4/110
machine sparc
options SUN4 # sun4/100, sun4/200, sun4/300
options TIMEZONE=480, DST=1
maxusers 32
options SWAPPAGER # swap and anonymous memory; required
options VNODEPAGER # mapped files; required
options DEVPAGER # mapped devices; required
options KTRACE # system call tracing
options SYSVMSG # System V message queues
options SYSVSEM # System V semaphores
options SYSVSHM # System V shared memory
options LKM # loadable kernel modules
options COMPAT_43 # 4.3BSD system interfaces
options COMPAT_10 # NetBSD 1.0 binary compatibility
options COMPAT_11 # NetBSD 1.1 binary compatibility
options COMPAT_SUNOS # SunOS 4.x binary compatibility
options COMPAT_SVR4 # SunOS 5.x binary compatibility
options FFS # Berkeley Fast Filesystem
options QUOTA # FFS quotas
options NFSSERVER # Sun NFS-compatible filesystem server
options NFSCLIENT # Sun NFS-compatible filesystem client
options NULLFS # NULL layered filesystem
options MFS # memory-based filesystem
options FDESC # user file descriptor filesystem
options CD9660 # ISO 9660 + Rock Ridge file system
options UNION # union file system
options FIFO # POSIX fifo support (in all filesystems)
options INET # IP stack
options RASTERCONSOLE # fast rasterop console
config netbsd swap generic
mainbus0 at root
cpu0 at mainbus0
obio0 at mainbus0 # sun4 and sun4m
vmes0 at mainbus0 # sun4
vmel0 at mainbus0 # sun4
oclock0 at obio0 addr 0x03000000 # sun4/100
memreg0 at obio0 addr 0x04000000 # sun4/100
eeprom0 at obio0 addr 0x02000000 # sun4/100
zs0 at obio0 addr 0x01000000 level 12 flags 0x103 # sun4/100
zs1 at obio0 addr 0x00000000 level 12 flags 0x103 # sun4/100
ie0 at obio0 addr 0x06000000 level 6 # sun4/100 on-board
sw0 at obio0 addr 0x0a000000 level 3
bwtwo0 at obio0 addr 0x0b300000 level 4 # sun4/100 in P4 slot
cgfour0 at obio0 addr 0x0b300000 level 4 # sun4/100 P4
cgsix0 at obio0 addr 0x0b000000 level 4 # sun4/100 P4
cgeight0 at obio0 addr 0x0b300000 level 4 # sun4/100 P4
scsibus* at sw?
sd* at scsibus? target ? lun ? # SCSI disks
st* at scsibus? target ? lun ? # SCSI tapes
cd* at scsibus? target ? lun ? # SCSI CD-ROMs
ch* at scsibus? target ? lun ? # SCSI changer devices
pseudo-device loop # loopback interface; required
pseudo-device pty 32 # pseudo-ttys (for network, etc.)
pseudo-device sl 2 # SLIP interfaces
pseudo-device kbd # Sun keyboard
pseudo-device ppp 2 # PPP interfaces
pseudo-device tun 4 # Network "tunnel" device
pseudo-device bpfilter 16 # Berkeley Packet Filter
pseudo-device vnd 4 # disk-like interface to files
pseudo-device ccd 4 # concatenated and striped disks
-- Rob
----------------------------------------
Internet: windsor@pobox.com Life: Rob@Sunnyvale.California.USA.Earth
"Da Web": http://pobox.com/~windsor/
"Ain't much distance 'tween a pat on the back and a kick in the pants."
-- David Lee Roth (1990), `The Dogtown Shuffle'