Subject: Re: diskimage install & Ultrix
To: Jonathan Stone <jonathan@dsg.stanford.edu>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 11/20/1997 13:52:45
On Wed, 19 Nov 1997 15:44:42 -0800  Jonathan Stone wrote:

> 
> >All the install instructions with _ALPHA basically are
> >
> >disklabel -W the/drive
> >gunzip -c the_image| dd of=/the/drive bs=10240
> >
> >What do I do under ULTRIX as the equivelant of the disklabel -W command
> >(which is basically just unlocking the boot sectors)?
> 
> hi Bill,
> 
> Ultrix doesn't write-protect the chpt info.
> 
> I think that just dd'ing the diskimage onto the raw device works.  At
> least, it did back when I first bootstrapped a native bootblock....
> 
> If you do have time to try the NOTES method of 
>        a) putting ecoff NetBSD kerenl into ultrix root
>        b) dd'ing the diskimage into ultrix swap,
> 
> it would be very nice to hear confirmation that it works.

Success!  I'll document this as well.

Simon,
--

	<<< put diskimage somewhere, say /usr >>
# cp -p <path-to-`netbsd.ecoff'> /netbsd
# halt

KN03-AA V5.2b    (PC: 0x80051f1c, SP: 0xffffdeb0)
>> cnfg 3
 3: KN03-AA  DEC      V5.2b    TCF0  ( 40 MB)
                                     (enet: 08-00-2b-33-ee-92)
                                     (SCSI = 7)
            ---------------------------------------------------
            DEV   PID                VID        REV    SCSI DEV
            ===== ================== ========== ====== ========
            rz0   ST12400N SUN2.1G   SEAGATE    8346   DIR
            rz2   RZ26     (C) DEC   DEC        T386   DIR

        dcache( 64 KB), icache( 64 KB)
        mem( 0):  a0000000:a07fffff  (  8 MB)
        mem( 1):  a0800000:a0ffffff  (  8 MB)
        mem( 2):  a1000000:a17fffff  (  8 MB)
        mem( 3):  a1800000:a1ffffff  (  8 MB)
        mem( 4):  a2000000:a27fffff  (  8 MB)

>> boot 3/rz2/vmunix

# mount /dev/rz2g /usr
# dd if=/usr/diskimage of=/dev/rrz2b bs=32k
# halt

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

boot device: rz2
root device (default rz2a): 
	<<< enter `rz2b' >>>
dump device (default rz2b): 
	<<< enter `none' >>>
file system (default generic): 
	<<< enter `ffs' >>>
root on rz2b
rz2: WARNING: no disk label
rz2: WARNING: using ULTRIX partition information
WARNING: clock gained 6 days -- CHECK AND RESET THE DATE!
Enter pathname of shell or RETURN for sh: 
	<<< press RETURN >>>
Don't login as root, use the su command.
# mount -u /dev/rz2b /
# TERM=vt100
# export TERM
# sysinst -r ""

	<<< yippee!!>>>

# halt

KN03-AA V5.2b    (PC: 0x80051f1c, SP: 0xffffdeb0)
# umount /mnt
# cd /
# sysinst -r """
# halt

KN03-AA V5.2b    (PC: 0x80051f1c, SP: 0xffffdeb0)
>>boot 3/rz0/netbsd           
Boot: 3/rz0/netbsd
Size: 1243328+55296+104932
Starting at 0x80030000

[ preserving 93788 bytes of netbsd symbol table ]
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) #0: Wed Nov 12 20:57:23 PST 1997
    jonathan@Reno.DSG.Stanford.EDU:/reno/compile/GENERIC
real mem = 41943040
avail mem = 34799616
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 SEAGATE ST12400N SUN2.1G rev 8346
rz0: 2048MB, 2621 cyl, 19 head, 84 sec, 512 bytes/sect x 4194685 sectors
rz2 at asc0 drive 2 slave 0 DEC RZ26     (C) DEC rev T386
rz2: 1001MB, 2570 cyl, 14 head, 57 sec, 512 bytes/sect x 2050860 sectors
boot device: rz0
root on rz0a dumps on rz0b
root file system type: ffs
Enter pathname of shell or RETURN for sh: 
Don't login as root, use the su command.
# mount -u /
# mount -a
# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/rz0a       32419    19579    11219    64%    /
/dev/rz0d      397219   129704   247654    34%    /usr
kernfs              1        1        0   100%    /kern
#