Subject: still cannot produce a working miniroot
To: None <port-pmax@NetBSD.ORG>
From: Scott J. Kolodzieski <>
List: port-pmax
Date: 08/29/1995 09:47:26

I have managed to produce a miniroot on an DEC rz23, but when I boot, I 
get a filesystem full of the basic executable that behave according to the 
phase of the moon. Fopr example "ls" may work 2 time, then bus error, it may 
or may not work with the "-l" switch, mount sometime works, as do all the 
other executables? It seems as if I am doing something really wrong in making 
this miniroot. 

I got some suggestions, but non seem to work. Let me describe the process 
that I go through, and see if anyone can point out my incompetence!

I got the ultrix version of disklabel and attach the rz23 to a working
500/240 running ultrix 4.3, coppied rzboot and bootrz to /usr/mdec,
labeled the disk via the command:

disklabel -R -B -b /usr/mdec/rzboot -s /usr/mdec/bootrz /dev/rz5c Proto

where Proto is a file in the current directory that looks like, 

----------------------------------- Proto -------------------------------------
type: SCSI
disk: RZ23
bytes/sector: 512
sectors/track: 1
tracks/cylinder: 1
sectors/cylinder: 1
cylinders: 204864
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

3 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    32768       16    4.2BSD     1024  8192    16   # (Cyl.    0 - 65535)
  b:    32768    32768      swap                        # (Cyl. 65572 - 131107)
  c:   204864        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 204863)

Then copied the miniroot using dd:

	dd seek=16 if=miniroot of=/dev/rz5c 

removed the disk from the ultrix machine, put it on an empty 5000/240, 

	boot 3/rz5/netbsd

and the system comes up, but I get the bizzarerandom errors I described while
running the executables off of the disk. 

Any hints?