Subject: Re: Ultrix binary compatibility improvements
To: Jonathan Stone <jonathan@dsg.stanford.edu>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 11/11/1997 22:47:21
Let's dig up something really old now that I get the chance!

On Wed, 09 Apr 1997 20:28:22 -0700  Jonathan Stone wrote:

> I've slightly reworked the  Ultrix compatiblity code.
> 
> Several bug in handling Ultrix socket ioctls have been fixed.  Ultrix
> compatibility mode now works with the Ultrix /etc/ifconfig, well
> enough for the Ultrix ifconfig command to to bring interfaces up and
> down and add routes.
> 
> Ultrix binaries that use the IPmulticast patches (e.g., the LBL
> toolsuite) also work in  Ultrix compatibility mode.
> 
> The full X11R6.1 user-level suite now also works, including xdm (but
> of course the Xserver, unless you have an Xserver from Ultrix 4.1 or
> older).  I'd recommend installing the X116.3 snapshot anyway, but this
> may be to anyone who needs to coexist with an installed base of Ultrix
> machines.
> 
> An ECOFF-format netbsd kernel may even boot and go multi-user if
> dropped into an Ultrix root filesystem, but I haven't actually tried
> it myself.  I'd be very interested to hear from anyone who does :).

Well, not quite ;)

I can boot an ultrix filesystem into single user mode (I made /sbin a
symlink to /etc, so it could find init), but I can't mount any more
local filesystems:

	# mount /dev/rz0g /usr
	ufs_mount: /dev/rz0g on /usr: No such device

I can ifconfig le0 and mount NFS filesystems, but I couldn't quite get
the machine into multiuser.  Sorry :-)  I wont worry about send-pr'ing
this...

Simon.

-----------------------------------------------------------
ps:  For the perverse, here's a transcript of my first run:

KN03-AA V5.2b    (PC: 0x8012b7cc, SP: 0xffffde70)
>>init                        
>>boot 3/rz0/netbsd

Ultrixboot - V4.4  Thu Jan 13 02:04:01 EST 1994

Loading 3/rz0/netbsd ...

Sizes:
text = 1243200
data = 55296
bss  = 104532
Starting at 0x80030000

Using PROM serial output until serial drivers initialized
Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3_ALPHA (GENERIC) #4: Sat Nov  8 18:57:58 PST 1997
    jonathan@Reno.DSG.Stanford.EDU:/reno/compile/GENERIC
real mem = 41943040
avail mem = 34889728
using 1024 buffers containing 4194304 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000 CPU Rev. 3.0 with MIPS R3010 FPC Rev. 4.0
        L1 cache: 64kb Instruction, 64kb Data.
tc0 at mainbus0: 25 MHz clock
asic0 at tc0 slot 3 offset 0x0
le0 at asic0 offset 0xc0000 priority 4: address 08:00:2b:33:ee:92
le0: 32 receive buffers, 8 transmit buffers
scc0 at asic0 offset 0x100000 priority 6
scc1 at asic0 offset 0x180000 priority õ (In sccattach: cn_dev = 0x1102) (Unit = 1): console
clock0 at asic0 offset 0x200000 priority 0: mc146818 or compatible
asc0 at asic0 offset 0x300000 priority 3: target 7
Beginning old-style SCSI device autoconfiguration
rz0 at asc0 drive 0 slave 0 DEC RZ26     (C) DEC rev T386

rz0: 1001MB, 2570 cyl, 14 head, 57 sec, 512 bytes/sect x 2050860 sectors
boot device: rz0
root on rz0a dumps on rz0b
rz0: WARNING: no disk label
rz0: WARNING: using ULTRIX partition informationroot file system type: ffs
erase ^?, kill ^U, intr ^C
# mount /dev/rz0a /
COMPAT_ULTRIX: mount with MNT_UPDATE on /
# date 9711111031
pid 9 attempted to set the (obsolete) kernel timezone.Tue Nov 11 20:31:00 EST 1997
# mount /dev/rz0g /usr
ufs_mount: /dev/rz0g on /usr: No such device
# cd /dev
# rm *rz0*  
# ./MAKEDEV rz0
MAKEDEV: special file(s) for rz0: 
rz0a rrz0a rz0b rrz0b rz0c rrz0c rz0d rrz0d rz0e rrz0e rz0f rrz0f rz0g rrz0g rz0h rrz0h
# mount /dev/rz0g /usr
ufs_mount: /dev/rz0g on /usr: No such device
# ls -l /dev/rz0g
brw-------  1 root      21,   6 Nov 11 20:31 /dev/rz0g
# ifconfig le0 172.73.42.230 netmask 255.255.255.0
# mount  balrog:/dlenv0/root1.mips/usr /usr
# df
Filesystem   Total    kbytes   kbytes   %     
node         kbytes   used     free     used  Mounted on
/dev/rz0a      17791   17791    5647    76%   /
balrog       1770606 1770606  232870    88%   /usr
# halt
syncing disks... done
halted.

KN03-AA V5.2b    (PC: 0x80051f1c, SP: 0xffffdeb0)
>>boot 3/rz0/netbsd           

Ultrixboot - V4.4  Thu Jan 13 02:04:01 EST 1994

Loading 3/rz0/netbsd ...

Sizes:
text = 1243200
data = 55296
bss  = 104532
Starting at 0x80030000


KN03-AA V5.2b    (PC: 0x8013d754, SP: 0x8002ff98)
>>