<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://gunkies.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xh</id>
		<title>Computer History Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://gunkies.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xh"/>
		<link rel="alternate" type="text/html" href="https://gunkies.org/wiki/Special:Contributions/Xh"/>
		<updated>2026-04-18T23:46:55Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.1</generator>

	<entry>
		<id>https://gunkies.org/w/index.php?title=Installing_v7_on_SIMH&amp;diff=20643</id>
		<title>Installing v7 on SIMH</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=Installing_v7_on_SIMH&amp;diff=20643"/>
				<updated>2019-01-30T05:56:52Z</updated>
		
		<summary type="html">&lt;p&gt;Xh: Add note about backspace patch (too large to embed, though)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the procedure I'm using to install [[Unix Seventh Edition|Research Unix v7]] on [[SIMH]]'s [[PDP-11]] emulator.&lt;br /&gt;
&lt;br /&gt;
I'm using the files from [[TUHS]] &amp;quot;/Archive/Distributions/Research/Keith_Bostic_v7/&amp;quot; directory.  I've also uploaded the resulting tape to [https://sourceforge.net/projects/bsd42/files/Install%20tapes/Research%20Unix/Unix-v7-Keith-Bostic.tap.bz2/download here].&lt;br /&gt;
&lt;br /&gt;
If you are going to build the tape then you'll need the [[Mkdisttap.pl#Research Unix v7|mkdisttap.pl]] script to output a v7.tap file.&lt;br /&gt;
&lt;br /&gt;
NOTE: Comments at the end of a line of the form:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[## Comment]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
are just to tell you what to do when there is ambiguity; please do not type them in literally!&lt;br /&gt;
&lt;br /&gt;
== Tape Install ==&lt;br /&gt;
&lt;br /&gt;
=== tapei.ini ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt; tapei.ini &amp;lt;&amp;lt;EOF&lt;br /&gt;
set cpu 11/45&lt;br /&gt;
set cpu idle&lt;br /&gt;
set rp0 rp06&lt;br /&gt;
att rp0 rp06-0.disk&lt;br /&gt;
att tm0 v7.tap&lt;br /&gt;
boot tm0&lt;br /&gt;
EOF&lt;br /&gt;
boot tm0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with the config in hand, then let's install.&lt;br /&gt;
&lt;br /&gt;
=== installation ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pdp11 tapei.ini &lt;br /&gt;
&lt;br /&gt;
PDP-11 simulator V3.8-1&lt;br /&gt;
Disabling XQ&lt;br /&gt;
RP: creating new file&lt;br /&gt;
Overwrite last track? [N]	[## Just hit enter]&lt;br /&gt;
Boot&lt;br /&gt;
:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
I just hit enter to the &amp;quot;Overwrite last track&amp;quot; question, then the bootloader will appear.  We are going to load the 3rd program on the tape, mkfs and format the 'a' partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Boot&lt;br /&gt;
: tm(0,3)&lt;br /&gt;
file sys size: 5000&lt;br /&gt;
file system: hp(0,0)&lt;br /&gt;
isize = 1600&lt;br /&gt;
m/n = 3 500&lt;br /&gt;
Exit called&lt;br /&gt;
Boot&lt;br /&gt;
:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The block size comes out of pre-compiled disk sizes in the kernel.  Unix back then wasn't as dynamic as what we like in these modern times...  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Boot&lt;br /&gt;
: tm(0,4)&lt;br /&gt;
Tape? tm(0,5)&lt;br /&gt;
Disk? hp(0,0)&lt;br /&gt;
Last chance before scribbling on disk.	[## Just hit enter]&lt;br /&gt;
End of tape&lt;br /&gt;
Boot&lt;br /&gt;
:&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once the formatting is complete, then it'll drop back to the bootloader, and we are going to load the 4th program which is the restore program, and we'll restore the root partition.&lt;br /&gt;
&lt;br /&gt;
Now we can boot up UNIX from the hard disk, and setup the OS.  The console driver echoes everything in upper case letters, however all command are entered in lowercase. We'll set stty to lowercase and speed up carriage returns and linefeeds.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Boot&lt;br /&gt;
: hp(0,0)hptmunix&lt;br /&gt;
mem = 177344&lt;br /&gt;
# STTY -LCASE NL0 CR0&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the kernel to unix and remove the extra versions.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# mv hptmunix unix&lt;br /&gt;
# rm hp*ix&lt;br /&gt;
# rm rp*ix&lt;br /&gt;
# ls *ix&lt;br /&gt;
unix&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the RP06 devices in /dev.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /dev&lt;br /&gt;
# make rp06&lt;br /&gt;
/etc/mknod rp0 b 6 0&lt;br /&gt;
/etc/mknod swap b 6 1&lt;br /&gt;
/etc/mknod rp3 b 6 7&lt;br /&gt;
/etc/mknod rrp0 c 14 0&lt;br /&gt;
/etc/mknod rrp3 c 14 7&lt;br /&gt;
chmod go-w rp0 swap rp3 rrp0 rrp3&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the TU10 devices in /dev.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# make tm&lt;br /&gt;
/etc/mknod mt0 b 3 0&lt;br /&gt;
/etc/mknod rmt0 c 12 0&lt;br /&gt;
/etc/mknod nrmt0 c 12 128&lt;br /&gt;
chmod go+w mt0 rmt0 nrmt0&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an empty filesystem on the RP06 and check it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /&lt;br /&gt;
# /etc/mkfs /dev/rp3 322278&lt;br /&gt;
isize = 65496&lt;br /&gt;
m/n = 3 500&lt;br /&gt;
# icheck /dev/rp3&lt;br /&gt;
/dev/rp3:&lt;br /&gt;
files      2 (r=1,d=1,b=0,c=0)&lt;br /&gt;
used       1 (i=0,ii=0,iii=0,d=1)&lt;br /&gt;
free  314088&lt;br /&gt;
missing    0&lt;br /&gt;
# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fastforward the tape and restore the /usr filesystem to the RP06.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# dd if=/dev/r#nrmt0 of=/dev/null bs=20b files=6&lt;br /&gt;
202+80 records in&lt;br /&gt;
202+75 records out&lt;br /&gt;
# restor rf /dev/rmt0 /dev/rp3&lt;br /&gt;
Last chance before scribbling on /dev/rp3.	[## Just hit enter]&lt;br /&gt;
End of tape&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mount /usr, copy the bootblock to the RP06, sync and exit the sim.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# /etc/mount /dev/rp3 /usr&lt;br /&gt;
# dd if=/usr/mdec/hpuboot of=/dev/rp0 count=1&lt;br /&gt;
0+1 records in&lt;br /&gt;
0+1 records out&lt;br /&gt;
# sync&lt;br /&gt;
# sync&lt;br /&gt;
# sync&lt;br /&gt;
# sync&lt;br /&gt;
#		                   [## Type CTRL-E (^E) here]&lt;br /&gt;
Simulation stopped, PC: 002306 (MOV (SP)+,177776)&lt;br /&gt;
sim&amp;gt; q&lt;br /&gt;
Goodbye&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Normal boot ==&lt;br /&gt;
Create a normal boot ini file for booting directly from the RP06. Note that SIMH will display Disabling XQ and wait for you to type boot to start the actual boot process on the RP06.&lt;br /&gt;
&lt;br /&gt;
=== nboot.ini ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo&lt;br /&gt;
echo After Disabling XQ is displayed type boot&lt;br /&gt;
echo and at the : prompt type hp(0,0)unix&lt;br /&gt;
echo&lt;br /&gt;
set cpu 11/70&lt;br /&gt;
set cpu 2M&lt;br /&gt;
set cpu idle&lt;br /&gt;
set rp0 rp06&lt;br /&gt;
att rp0 rp06-0.disk&lt;br /&gt;
boot rp0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And let's boot up!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pdp11 nboot.ini &lt;br /&gt;
&lt;br /&gt;
PDP-11 simulator V3.8-1&lt;br /&gt;
&lt;br /&gt;
After Disabling XQ is displayed type boot&lt;br /&gt;
and at the : prompt type hp(0,0)unix&lt;br /&gt;
&lt;br /&gt;
Disabling XQ&lt;br /&gt;
boot	                           [## Type boot here to get the actual boot prompt]&lt;br /&gt;
Boot&lt;br /&gt;
: hp(0,0)unix&lt;br /&gt;
mem = 2020544&lt;br /&gt;
#		                   [## Type CTRL-D (^D) here to enter multi-user mode]&lt;br /&gt;
&lt;br /&gt;
RESTRICTED RIGHTS: USE, DUPLICATION, OR DISCLOSURE&lt;br /&gt;
IS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH&lt;br /&gt;
WESTERN ELECTRIC COMPANY, INC.&lt;br /&gt;
WED DEC 31 19:03:27 EST 1969&lt;br /&gt;
&lt;br /&gt;
login: root&lt;br /&gt;
Password:&lt;br /&gt;
You have mail.&lt;br /&gt;
#		                   [## Type CTRL-E (^E) here]&lt;br /&gt;
&lt;br /&gt;
Simulation stopped, PC: 002306 (MOV (SP)+,177776)&lt;br /&gt;
sim&amp;gt; q&lt;br /&gt;
Goodbye&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The default root password is 'root'.&lt;br /&gt;
&lt;br /&gt;
== Additional Information ==&lt;br /&gt;
&lt;br /&gt;
A longer tutorial describing the installation and configuration process in additional detail is available online [https://decuser.blogspot.com/2015/12/installing-and-using-research-unix.html here] and as a printable PDF [https://drive.google.com/file/d/0B1_Jn6Hlzym-Zmx1TjR3TENDQTA/view?usp=sharing here]. As of October, 26, 2017, version 1.6 of the tutorial covers the basic installation from tape to disk, booting from the disk, reconfiguring the system, rebuilding the kernel, logging in as root, and as dmr, sending and reading system mail, and enabling the V7 instance and SimH to allow multiple sessions from the host machine to the instance via Telnet.&lt;br /&gt;
&lt;br /&gt;
If you wish to use the backspace key when your terminal sends ^? (DEL) and Ctrl-C as interrupt character during login and everywhere else, apply [https://vpsland.superglobalmegacorp.com/backspace.diff this patch] to the kernel and rebuild the system.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Setting Up Unix - Seventh Edition]]&lt;br /&gt;
* [[Installing Unix Seventh Edition]]&lt;br /&gt;
&lt;br /&gt;
[[Category: SIMH Tutorials]]&lt;/div&gt;</summary>
		<author><name>Xh</name></author>	</entry>

	</feed>