1 |
31 |
wfjm |
# $Id: README_211bsd_rpset.txt 680 2015-05-14 13:29:46Z mueller $
|
2 |
|
|
|
3 |
|
|
Notes on oskit: 2.11BSD system on a TM11 tape distribution kit
|
4 |
|
|
|
5 |
|
|
Table of content:
|
6 |
|
|
|
7 |
|
|
1. General remarks
|
8 |
|
|
2. Installation
|
9 |
|
|
3. Usage
|
10 |
|
|
4. Install 211bsd from tape on a RP06 disk
|
11 |
|
|
|
12 |
|
|
1. General remarks ---------------------------------------------------
|
13 |
|
|
|
14 |
|
|
See notes on
|
15 |
|
|
|
16 |
|
|
1. I/O emulation setup
|
17 |
|
|
2. FPGA Board setup
|
18 |
|
|
3. Rlink and Backend Server setup
|
19 |
|
|
4. Legal terms
|
20 |
|
|
|
21 |
|
|
in $RETROBASE/doc/w11a_os_guide.txt
|
22 |
|
|
|
23 |
|
|
2. Installation ------------------------------------------------------
|
24 |
|
|
|
25 |
|
|
- A tape set is available from
|
26 |
|
|
http://www.retro11.de/data/oc_w11/oskits/211bsd_tmset.tgz
|
27 |
|
|
Download, unpack and copy the tape images (*.tap), e.g.
|
28 |
|
|
|
29 |
|
|
cd $RETROBASE/tools/oskit/211bsd_tm/
|
30 |
|
|
wget http://www.retro11.de/data/oc_w11/oskits/211bsd_tmset.tgz
|
31 |
|
|
tar -xzf 211bsd_tmset.tgz
|
32 |
|
|
|
33 |
|
|
3. Usage -------------------------------------------------------------
|
34 |
|
|
|
35 |
|
|
- This is a tape distribution kit and tailoed to be installed on RP06 disks.
|
36 |
|
|
So first step is to create a disk image which will hold the system
|
37 |
|
|
|
38 |
|
|
create_disk --typ=rp06 --bad 211bsd_rp06.dsk
|
39 |
|
|
|
40 |
|
|
- Start backend server and boot system (see section 3 in w11a_os_guide.txt)
|
41 |
|
|
boot script: 211bsd_tm_boot.tcl
|
42 |
|
|
example: ti_w11 @211bsd_tm_boot.tcl
|
43 |
|
|
where is the proper option set for the board.
|
44 |
|
|
|
45 |
|
|
- Hit in the xterm window to connnect to backend server.
|
46 |
|
|
The boot dialog in the console xterm window will look like
|
47 |
|
|
(required input is in {..}, with {} denoting a carriage return:
|
48 |
|
|
|
49 |
|
|
70Boot from tm(0,0,0) at 0172522
|
50 |
|
|
:
|
51 |
|
|
|
52 |
|
|
This prompt of the 'mtboot' monitor, from which the different steps of
|
53 |
|
|
the installation procedure can be started.
|
54 |
|
|
|
55 |
|
|
4. Install 211bsd from tape on a RP06 disk ---------------------------
|
56 |
|
|
|
57 |
|
|
The tape distribution contains 8 files
|
58 |
|
|
|
59 |
|
|
file #records length Contents
|
60 |
|
|
|
61 |
|
|
1 38 1024 standalone disklabel
|
62 |
|
|
2 34 1024 standalone mkfs
|
63 |
|
|
3 36 1024 standalone restor
|
64 |
|
|
4 33 1024 standalone icheck
|
65 |
|
|
5 501 10240 dump of root file system
|
66 |
|
|
6 3516 10240 tar of adm bin crash ...
|
67 |
|
|
7 903 10240 tar of sys include
|
68 |
|
|
8 4168 10240 tar of remaining directories
|
69 |
|
|
|
70 |
|
|
The installation will
|
71 |
|
|
- partition the disk with disklabel
|
72 |
|
|
- create the root file system with mkfs
|
73 |
|
|
- re-store the root file system with restor
|
74 |
|
|
- than boot 211bsd from disk into single user mode
|
75 |
|
|
- write the boot block
|
76 |
|
|
- create the /usr file system
|
77 |
|
|
- load the /usr file with tar from tape (three steps)
|
78 |
|
|
|
79 |
|
|
4.1 Install 211bsd, tape phase ---------------------------------------
|
80 |
|
|
|
81 |
|
|
The following shows the full dialogue, the input is after a '##' separator
|
82 |
|
|
|
83 |
|
|
70Boot from tm(0,0,0) at 0172522
|
84 |
|
|
: ## tm(0,1)
|
85 |
|
|
Boot: bootdev=0401 bootcsr=0172522
|
86 |
|
|
disklabel
|
87 |
|
|
Disk? ## xp(0,0)
|
88 |
|
|
'xp(0,0)' is unlabeled or the label is corrupt.
|
89 |
|
|
Proceed? [y/n] ## y
|
90 |
|
|
d(isplay) D(efault) m(odify) w(rite) q(uit)? ## m
|
91 |
|
|
modify
|
92 |
|
|
d(isplay) g(eometry) m(isc) p(artitions) q(uit)? ## p
|
93 |
|
|
modify partitions
|
94 |
|
|
d(isplay) n(umber) s(elect) q(uit)? ## n
|
95 |
|
|
Number of partitions (8 max) [1]? ## 3
|
96 |
|
|
modify partitions
|
97 |
|
|
d(isplay) n(umber) s(elect) q(uit)? ## s
|
98 |
|
|
a b c d e f g h q(uit)? ## a
|
99 |
|
|
sizes and offsets may be given as sectors, cylinders
|
100 |
|
|
or cylinders plus sectors: 6200, 32c, 19c10s respectively
|
101 |
|
|
modify partition 'a'
|
102 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## t
|
103 |
|
|
'a' fstype [2.11BSD]: ## 2.11BSD
|
104 |
|
|
modify partition 'a'
|
105 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## o
|
106 |
|
|
'a' offset [0]: ##
|
107 |
|
|
modify partition 'a'
|
108 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## s
|
109 |
|
|
'a' size [340670]: ## 50c
|
110 |
|
|
modify partition 'a'
|
111 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## q
|
112 |
|
|
modify partitions
|
113 |
|
|
d(isplay) n(umber) s(elect) q(uit)? ## s
|
114 |
|
|
a b c d e f g h q(uit)? ## b
|
115 |
|
|
sizes and offsets may be given as sectors, cylinders
|
116 |
|
|
or cylinders plus sectors: 6200, 32c, 19c10s respectively
|
117 |
|
|
modify partition 'b'
|
118 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## t
|
119 |
|
|
'b' fstype [unused]: ## swap
|
120 |
|
|
modify partition 'b'
|
121 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## o
|
122 |
|
|
'b' offset [0]: ## 50c
|
123 |
|
|
modify partition 'b'
|
124 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## s
|
125 |
|
|
'b' size [0]: ## 15c
|
126 |
|
|
modify partition 'b'
|
127 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## q
|
128 |
|
|
modify partitions
|
129 |
|
|
d(isplay) n(umber) s(elect) q(uit)? ## s
|
130 |
|
|
a b c d e f g h q(uit)? ## c
|
131 |
|
|
sizes and offsets may be given as sectors, cylinders
|
132 |
|
|
or cylinders plus sectors: 6200, 32c, 19c10s respectively
|
133 |
|
|
modify partition 'c'
|
134 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## t
|
135 |
|
|
'c' fstype [unused]: ## 2.11BSD
|
136 |
|
|
modify partition 'c'
|
137 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## o
|
138 |
|
|
'c' offset [0]: ## 65c
|
139 |
|
|
modify partition 'c'
|
140 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## s
|
141 |
|
|
'c' size [0]: ## 749c
|
142 |
|
|
modify partition 'c'
|
143 |
|
|
d(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? ## q
|
144 |
|
|
modify partitions
|
145 |
|
|
d(isplay) n(umber) s(elect) q(uit)? ## d
|
146 |
|
|
|
147 |
|
|
type: SMD
|
148 |
|
|
disk: SMD
|
149 |
|
|
label: DEFAULT
|
150 |
|
|
flags:
|
151 |
|
|
bytes/sector: 512
|
152 |
|
|
sectors/track: 22
|
153 |
|
|
tracks/cylinder: 19
|
154 |
|
|
sectors/cylinder: 418
|
155 |
|
|
cylinders: 815
|
156 |
|
|
rpm: 3600
|
157 |
|
|
drivedata: 1 0 0 0 0
|
158 |
|
|
|
159 |
|
|
3 partitions:
|
160 |
|
|
# size offset fstype [fsize bsize]
|
161 |
|
|
a: 20900 0 2.11BSD 1024 1024 # (Cyl. 0 - 49)
|
162 |
|
|
b: 6270 20900 swap # (Cyl. 50 - 64)
|
163 |
|
|
c: 313082 27170 2.11BSD 1024 1024 # (Cyl. 65 - 813)
|
164 |
|
|
|
165 |
|
|
modify partitions
|
166 |
|
|
d(isplay) n(umber) s(elect) q(uit)? ## q
|
167 |
|
|
modify
|
168 |
|
|
d(isplay) g(eometry) m(isc) p(artitions) q(uit)? ## q
|
169 |
|
|
d(isplay) D(efault) m(odify) w(rite) q(uit)? ## w
|
170 |
|
|
d(isplay) D(efault) m(odify) w(rite) q(uit)? ## q
|
171 |
|
|
|
172 |
|
|
70Boot from tm(0,0,1) at 0172522
|
173 |
|
|
: ## tm(0,2)
|
174 |
|
|
Boot: bootdev=0402 bootcsr=0172522
|
175 |
|
|
Mkfs
|
176 |
|
|
file system: ## xp(0,0)
|
177 |
|
|
file sys size [10450]: ##
|
178 |
|
|
bytes per inode [4096]: ##
|
179 |
|
|
interleaving factor (m; 2 default): ##
|
180 |
|
|
interleaving modulus (n; 209 default): ##
|
181 |
|
|
isize = 2608
|
182 |
|
|
m/n = 2 209
|
183 |
|
|
Exit called
|
184 |
|
|
|
185 |
|
|
70Boot from tm(0,0,2) at 0172522
|
186 |
|
|
: ## tm(0,3)
|
187 |
|
|
Boot: bootdev=0403 bootcsr=0172522
|
188 |
|
|
Restor
|
189 |
|
|
Tape? ## tm(0,5)
|
190 |
|
|
Disk? ## xp(0,0)
|
191 |
|
|
Last chance before scribbling on disk. ##
|
192 |
|
|
End of tape
|
193 |
|
|
|
194 |
|
|
70Boot from tm(0,0,3) at 0172522
|
195 |
|
|
: ## xp(0,0)unix
|
196 |
|
|
|
197 |
|
|
4.2 Install 211bsd, disk phase ---------------------------------------
|
198 |
|
|
|
199 |
|
|
The last command boots 211bsd form the just setup disk, which has now
|
200 |
|
|
a root file system, but not yet a hardward boot block.
|
201 |
|
|
'#' is now the shell prompt
|
202 |
|
|
'!!' indicates comments
|
203 |
|
|
indented lines show output
|
204 |
|
|
|
205 |
|
|
Boot: bootdev=05000 bootcsr=0176700
|
206 |
|
|
|
207 |
|
|
2.11 BSD UNIX #9: Wed Dec 10 06:24:37 PST 2008
|
208 |
|
|
root@curly.2bsd.com:/usr/src/sys/RETRONFPNW
|
209 |
|
|
|
210 |
|
|
attaching lo0
|
211 |
|
|
|
212 |
|
|
phys mem = 3932160
|
213 |
|
|
avail mem = 3461952
|
214 |
|
|
user mem = 307200
|
215 |
|
|
|
216 |
|
|
June 8 21:21:24 init: configure system
|
217 |
|
|
|
218 |
|
|
dz ? csr 160100 vector 310 skipped: No CSR.
|
219 |
|
|
lp 0 csr 177514 vector 200 attached
|
220 |
|
|
rk 0 csr 177400 vector 220 attached
|
221 |
|
|
rl 0 csr 174400 vector 160 attached
|
222 |
|
|
tm 0 csr 172520 vector 224 attached
|
223 |
|
|
xp 0 csr 176700 vector 254 attached
|
224 |
|
|
cn 1 csr 176500 vector 300 attached
|
225 |
|
|
|
226 |
|
|
erase, kill ^U, intr ^C
|
227 |
|
|
|
228 |
|
|
!! make system bootable
|
229 |
|
|
# dd if=/mdec/hpuboot of=/dev/rxp0a count=1
|
230 |
|
|
1+0 records in
|
231 |
|
|
1+0 records out
|
232 |
|
|
|
233 |
|
|
!! create file system on partition c
|
234 |
|
|
# mkfs -s 156541 -i 4096 -m 2 -n 209 /dev/rxp0c
|
235 |
|
|
isize = 39120
|
236 |
|
|
m/n = 2 209
|
237 |
|
|
|
238 |
|
|
!! now load the /usr files
|
239 |
|
|
|
240 |
|
|
# mount /dev/xp0c /usr
|
241 |
|
|
|
242 |
|
|
# cd /usr
|
243 |
|
|
# mt rew
|
244 |
|
|
# mt fsf 6
|
245 |
|
|
# tar xpbf 20 /dev/rmt12
|
246 |
|
|
# sync
|
247 |
|
|
|
248 |
|
|
!! now load the /usr/src files
|
249 |
|
|
# mkdir /usr/src
|
250 |
|
|
# cd /usr/src
|
251 |
|
|
# mt -f /dev/rmt12 fsf
|
252 |
|
|
# tar xpbf 20 /dev/rmt12
|
253 |
|
|
# sync
|
254 |
|
|
# mt -f /dev/rmt12 fsf
|
255 |
|
|
# tar xpbf 20 /dev/rmt12
|
256 |
|
|
# cd /
|
257 |
|
|
# chmod 755 / /usr /usr/src /usr/src/sys
|
258 |
|
|
# sync
|
259 |
|
|
# df
|
260 |
|
|
Filesystem 1K-blocks Used Avail Capacity Mounted on
|
261 |
|
|
root 10285 4503 5782 44% /
|
262 |
|
|
/dev/xp0c 154094 87043 67051 56% /usr
|
263 |
|
|
|
264 |
|
|
4.3 test boot created sysyem -----------------------------------------
|
265 |
|
|
|
266 |
|
|
# halt
|
267 |
|
|
|
268 |
|
|
on ti_w11 prompt
|
269 |
|
|
cpu0 boot rpa0
|
270 |
|
|
|
271 |
|
|
70Boot from xp(0,0,0) at 0176700
|
272 |
|
|
: ##
|
273 |
|
|
|
274 |
|
|
from now on like for README_211bsd_rpset.txt
|