Subject: 3MIN problems with old-style SCSI device autoconfiguration
To: None <port-pmax@NetBSD.ORG>
From: Keith Lewis <keithl@mukluk.cc.monash.edu.au>
List: port-pmax
Date: 11/14/1995 16:49:07
-----BEGIN PGP SIGNED MESSAGE-----

Hello pmax folks,

	This is my first post to a NetBSD group.  I hope I'm getting it
right.  

	The problem is I can't get a 3MIN to boot Netbsd.

	For a couple of months now I've been running NetBSD on a 5000-25,
mostly with success.  I've run NetBSD on a PC for years.  Its great stuff!!

	Recently I attached a rz26l to the 5000-25, mounted it as 
rz4a /newroot
rz4g /newroot/var
rz4h /newroot/usr
	and unpacked the pmax tar files onto it.  

	I also created a fstab file on it, which assumes the disk is SCSI id
0, i.e. rz0.

	Yesterday, Monday the 13th Nov, I ftp'd recent sources from
ftp.netbsd.rmit.edu.au and unpacked them into /newroot/usr/src.  I also
copied my existing kernel onto /newroot as kbsd.  I then tried to ftp
mips-dec-netbsd.binutils.tar.gz from gregorio, but it was too busy so I
unpacked an earlier copy I had on the 5000-25 onto /newroot.  

	At this point I got

netty# gzcat mips-dec-netbsd.binutils.tar.gz | ( cd /newroot ; tar xpf - )
tar: Could not link usr/bin/ar to usr/mips-dec-netbsd/bin/ar : File exists
tar: Could not link usr/bin/as to usr/mips-dec-netbsd/bin/as : File exists
tar: Could not link usr/bin/ld to usr/mips-dec-netbsd/bin/ld : File exists
tar: Could not link usr/bin/nm to usr/mips-dec-netbsd/bin/nm : File exists
tar: Could not link usr/bin/ranlib to usr/mips-dec-netbsd/bin/ranlib : File
exists
tar: Could not link usr/bin/strip to usr/mips-dec-netbsd/bin/strip : File
exists

	So I did:

netty# cd /newroot/usr/bin
netty# mv ar ar.dist
netty# ln -s ../../usr/mips-dec-netbsd/bin/ar ar

	and so on.


	Today I shutdown the 5000-25, moved the rz26l to rz0 and booted it.
Single user, using the kbsd kernel.

	I then did a make install in /usr/src/include, followed by a make
install in /usr/src/usr.sbin/config, but that failed because /usr/bin/strip
is now a bsh script.  For want of a better idea I did ln /bin/sh /bin/bsh.
The make install then worked.

	So I then went to /sys/arch/pmax/conf, copied NEWCONF to NETTY,
removing the swap on rz1b bit.  No other changes at all.

	Then 

	config NETTY
	cd ../compile/NETTY
	make depend
	make

	Wow !!!  No errors!  Great stuff!!!

	moved kernel to /

	rebooted

	But /usr and /var wouldn't mount.  Something about Operation not
supported on device.

	After much mucking around and many many reboots, I'm pretty sure
that the sequence of events which fixed it was - shutdown, boot the kbsd
kernel, change ufs into ffs in /etc/fstab, then build and install fsck,
mount and mount_ffs.

	Yay!!! it booted - all the way to multi-user !!!

	Then I shut down and moved the disk to a 3MIN.

The console said something like:

tcattach: 3MIN Turbochannel
tcattach: 3MIN Turbochannel

NetBSD 1.1_Alpha (NETTY) #0 tue Nov 14 11:32:47
        root@:/usr/sys/arch/pmax/compile/NETTY
real mem 50331648
avail mem 42692608
using 1228 buffers ...
mainbus0 (root)
UNTESTED autoconfiguration!!
tc0 at mainbus0
tcattach: 3MIN Turbochannel
asic0 at tc0 slot3 offset 0x0
le0 at asic0 offset 0xc0000 prior 4 add 08-00-2b...
3MIN: imask 0 enab slot 4 sc c042ce00 addr 0x800dd484
scc0 at asic0 offset 0x100000 pri 63MIN: imask 0, enab slot 6 sc ...
scc1 at asic0 offset 0x180000 pri 53MIN: imask 0, enab slot 5 sc ...
clock0 at asic0 off 0x200000...
asc0 at asic0 offset 0x30000 pri 3...
sfb0 at tc0 slot 0 off 0x0 (1280x1024x8) (console) switched to non-PROM
                                        console.
autoconfiguration done, spl back to 0x0
Beginning old-style SCSI device autoconfiguration

        (at this point the machine seemed dead.  No key sequence I could
find would have any results at all).

        Moved the disk back to the MAXINE and it booted fine.

	I noticed that the NEWCONF config file has some kernel debugging
options commented out.  Tomorrow I hope to build a kernel with more
debugging, so I would appreciate any pointers on the syntax of those
debugging options, (the one specifying the device seems to be a number...)
and on debugging NetBSD kernels in general.  

	Thanks in advance.

Keith

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAwUBMKgt1XEpE0nRVDfpAQFf1AP+LxWNUHawxU/S7IlOsYVQgvwqmrUz8/MI
o8lJ68FVkfN41ebqgyK8u7RdQBtBm5+R8Az+pVTjLtE9utEh96pds34P6YD8HXzK
SfVsiigBcslBJ665XCuNvWpXCFx6pCYvV8hYtR7rTWyZgjdyPm5cuLY4BnvA5qGC
DqihH9V54PA=
=FvqY
-----END PGP SIGNATURE-----