33 | 34 | 35 |
36 |
37 |

Installing v7 on SIMH

38 | 39 |
40 |
From Computer History Wiki
41 |
42 |
Jump to: navigation, search
43 | 44 | 45 |

This is the procedure I'm using to install Research Unix v7 on SIMH's PDP-11 emulator. 46 |

I'm using the files from TUHS "/Archive/Distributions/Research/Keith_Bostic_v7/" directory. I've also uploaded the resulting tape to here. 47 |

If you are going to build the tape then you'll need the mkdisttap.pl script to output a v7.tap file. 48 |

NOTE: Comments at the end of a line of the form: 49 |

50 |
[## Comment]
 51 | 
52 |

are just to tell you what to do when there is ambiguity; please do not type them in literally! 53 |

54 |

Contents

 [hide
55 | 70 |
71 | 72 |

Tape Install

73 |

tapei.ini

74 |
cat > tapei.ini <<EOF
 75 | set cpu 11/45
 76 | set cpu idle
 77 | set rp0 rp06
 78 | att rp0 rp06-0.disk
 79 | att tm0 v7.tap
 80 | boot tm0
 81 | EOF
 82 | boot tm0
 83 | 
84 |

with the config in hand, then let's install. 85 |

86 |

installation

87 |
pdp11 tapei.ini 
 88 | 
 89 | PDP-11 simulator V3.8-1
 90 | Disabling XQ
 91 | RP: creating new file
 92 | Overwrite last track? [N]	[## Just hit enter]
 93 | Boot
 94 | :
 95 | 
96 |

I just hit enter to the "Overwrite last track" question, then the 97 | bootloader will appear. We are going to load the 3rd program on the 98 | tape, mkfs and format the 'a' partition. 99 |

100 |
Boot
101 | : tm(0,3)
102 | file sys size: 5000
103 | file system: hp(0,0)
104 | isize = 1600
105 | m/n = 3 500
106 | Exit called
107 | Boot
108 | :
109 | 
110 |

The block size comes out of pre-compiled disk sizes in the kernel. 111 | Unix back then wasn't as dynamic as what we like in these modern 112 | times... 113 |

114 |
Boot
115 | : tm(0,4)
116 | Tape? tm(0,5)
117 | Disk? hp(0,0)
118 | Last chance before scribbling on disk.	[## Just hit enter]
119 | End of tape
120 | Boot
121 | :
122 | 
123 |

Once the formatting is complete, then it'll drop back to the 124 | bootloader, and we are going to load the 4th program which is the 125 | restore program, and we'll restore the root partition. 126 |

Now we can boot up UNIX from the hard disk, and setup the OS. 127 | The console driver echoes everything in upper case letters, however all 128 | command are entered in lowercase. We'll set stty to lowercase and speed 129 | up carriage returns and linefeeds. 130 |

131 |
Boot
132 | : hp(0,0)hptmunix
133 | mem = 177344
134 | # STTY -LCASE NL0 CR0
135 | #
136 | 
137 |

Copy the kernel to unix and remove the extra versions. 138 |

139 |
# mv hptmunix unix
140 | # rm hp*ix
141 | # rm rp*ix
142 | # ls *ix
143 | unix
144 | #
145 | 
146 |

Create the RP06 devices in /dev. 147 |

148 |
# cd /dev
149 | # make rp06
150 | /etc/mknod rp0 b 6 0
151 | /etc/mknod swap b 6 1
152 | /etc/mknod rp3 b 6 7
153 | /etc/mknod rrp0 c 14 0
154 | /etc/mknod rrp3 c 14 7
155 | chmod go-w rp0 swap rp3 rrp0 rrp3
156 | #
157 | 
158 |

Create the TU10 devices in /dev. 159 |

160 |
# make tm
161 | /etc/mknod mt0 b 3 0
162 | /etc/mknod rmt0 c 12 0
163 | /etc/mknod nrmt0 c 12 128
164 | chmod go+w mt0 rmt0 nrmt0
165 | #
166 | 
167 |

Create an empty filesystem on the RP06 and check it. 168 |

169 |
# cd /
170 | # /etc/mkfs /dev/rp3 322278
171 | isize = 65496
172 | m/n = 3 500
173 | # icheck /dev/rp3
174 | /dev/rp3:
175 | files      2 (r=1,d=1,b=0,c=0)
176 | used       1 (i=0,ii=0,iii=0,d=1)
177 | free  314088
178 | missing    0
179 | # 
180 | 
181 |

Fastforward the tape and restore the /usr filesystem to the RP06. 182 |

183 |
# dd if=/dev/r#nrmt0 of=/dev/null bs=20b files=6
184 | 202+80 records in
185 | 202+75 records out
186 | # restor rf /dev/rmt0 /dev/rp3
187 | Last chance before scribbling on /dev/rp3.	[## Just hit enter]
188 | End of tape
189 | #
190 | 
191 |

Mount /usr, copy the bootblock to the RP06, sync and exit the sim. 192 |

193 |
# /etc/mount /dev/rp3 /usr
194 | # dd if=/usr/mdec/hpuboot of=/dev/rp0 count=1
195 | 0+1 records in
196 | 0+1 records out
197 | # sync
198 | # sync
199 | # sync
200 | # sync
201 | #		                   [## Type CTRL-E (^E) here]
202 | Simulation stopped, PC: 002306 (MOV (SP)+,177776)
203 | sim> q
204 | Goodbye
205 | 
206 |

Normal boot

207 |

Create a normal boot ini file for booting directly from the RP06. 208 | Note that SIMH will display Disabling XQ and wait for you to type boot 209 | to start the actual boot process on the RP06. 210 |

211 |

nboot.ini

212 |
echo
213 | echo After Disabling XQ is displayed type boot
214 | echo and at the : prompt type hp(0,0)unix
215 | echo
216 | set cpu 11/70
217 | set cpu 2M
218 | set cpu idle
219 | set rp0 rp06
220 | att rp0 rp06-0.disk
221 | boot rp0
222 | 
223 |

And let's boot up! 224 |

225 |
pdp11 nboot.ini 
226 | 
227 | PDP-11 simulator V3.8-1
228 | 
229 | After Disabling XQ is displayed type boot
230 | and at the : prompt type hp(0,0)unix
231 | 
232 | Disabling XQ
233 | boot	                           [## Type boot here to get the actual boot prompt]
234 | Boot
235 | : hp(0,0)unix
236 | mem = 2020544
237 | #		                   [## Type CTRL-D (^D) here to enter multi-user mode]
238 | 
239 | RESTRICTED RIGHTS: USE, DUPLICATION, OR DISCLOSURE
240 | IS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH
241 | WESTERN ELECTRIC COMPANY, INC.
242 | WED DEC 31 19:03:27 EST 1969
243 | 
244 | login: root
245 | Password:
246 | You have mail.
247 | #		                   [## Type CTRL-E (^E) here]
248 | 
249 | Simulation stopped, PC: 002306 (MOV (SP)+,177776)
250 | sim> q
251 | Goodbye
252 | 
253 |

The default root password is 'root'. 254 |

255 |

Additional Information

256 |

A longer tutorial describing the installation and configuration process in additional detail is available online here and as a printable PDF here. 257 | As of November, 4, 2017, version 1.6 of the tutorial covers the basic 258 | installation from tape to disk, booting from the disk, reconfiguring the 259 | system, rebuilding the kernel, logging in as root, and as dmr, sending 260 | and reading system mail, and enabling the V7 instance and SimH to allow 261 | multiple sessions from the host machine to the instance via Telnet. 262 |

If you wish to use the backspace key when your terminal sends ^? 263 | (DEL) and Ctrl-C as interrupt character during login and everywhere 264 | else, apply this patch to the kernel and rebuild the system. 265 |

266 |

See also

267 | 269 | 270 | 284 | 288 |
289 | 291 |
293 | 294 |
295 |
296 |