File: machine_mvme88k.html

package info (click to toggle)
gxemul 0.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,152 kB
  • sloc: ansic: 111,065; sh: 972; exp: 354; makefile: 118
file content (290 lines) | stat: -rw-r--r-- 11,367 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>GXemul: MVME88K emulation</title>
  <meta name="robots" content="noarchive,nofollow,noindex">
</head>
<body style="font-family : sans-serif;">

<!-- 10 lines header.  -->

<h1>GXemul: MVME88K emulation</h1>
<p>

<a href="./">Back to the index.</a>

<!--

Copyright (C) 2006-2021  Anders Gavare.  All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
   derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

-->


<p>This emulation mode attempts to emulate a Motorola MVME187 machine.
Note that these were based on
<a href="https://en.wikipedia.org/wiki/Motorola_88000">Motorola 88000</a>
processors, not 68000.




<p><br>
<a name="openbsdmvme88kinstall"></a>
<h3>OpenBSD/mvme88k:</h3>

<p>It is possible to run <a href="http://www.openbsd.org/mvme88k.html">OpenBSD/mvme88k</a>
on an emulated Motorola MVME187 machine in the emulator.

<p>To install OpenBSD/mvme88k onto an emulated harddisk image, follow these
instructions:

<p>
<ol>
  <li>Create an empty harddisk image, which will be the root disk
	that OpenBSD installs itself onto:<pre>
	<b>dd if=/dev/zero of=obsd_mvme88k.img bs=1024 count=1 seek=1900000</b>

</pre>
  <li>Download the entire mvme88k directory from the ftp server:<pre>
	<b>wget -np -l 0 -r <a href="https://ftp.nluug.nl/OpenBSD/4.5/mvme88k/">https://ftp.nluug.nl/OpenBSD/4.5/mvme88k/</a></b>

</pre>

  <li>You now need to make an ISO image of the entire directory you downloaded.
	(I recommend using <tt>mkisofs</tt> for that purpose. If you don't
	already have <tt>mkisofs</tt> installed on your system, you need
	to install it in order to do this.)<pre>
	<b>mkisofs -o openbsd_mvme88k_4.5.iso -U ftp.nluug.nl/OpenBSD/</b>

</pre>
  <li>Copy away the kernel, we'll need it later. But remove the rest of the
	downloaded tree.<pre>
	<b>cp ftp.nluug.nl/OpenBSD/4.5/mvme88k/bsd .
	rm -rf ftp.nluug.nl</b>
</pre>

  <li>Start the emulator using this command line:<pre>
	<b>gxemul -e mvme187 -d obsd_mvme88k.img -d b:openbsd_mvme88k_4.5.iso -j 4.5/mvme88k/bsd.rd</b>

</pre>
	and proceed like you would do if you were installing OpenBSD
	on a real MVME187. There is a problem with finding the filesystem on
	the CDROM, since there is no disklabel [and/or because the emulator
	perhaps does not simulate CDROM TOCs well enough], but it's possible
	to mount
	the filesystem using manual intervention. Here is an example (from 4.4) of what
	an install can look like: (user input in <font color="#0000ff"><i>blue italic</i></font>)<pre>
	CPU0 is associated to 2 MC88200 CMMUs
	Copyright (c) 1982, 1986, 1989, 1991, 1993
		The Regents of the University of California.  All rights reserved.
	Copyright (c) 1995-2008 OpenBSD. All rights reserved.  http://www.OpenBSD.org

	OpenBSD 4.4 (RAMDISK) #19: Sun Aug 10 21:03:44 GMT 2008
	    root@arzon.gentiane.org:/usr/src/sys/arch/mvme88k/compile/RAMDISK
	real mem = 67108864 (64MB)
	avail mem = 56791040 (54MB)
	mainbus0 at root: Motorola MVME187, 33MHz
	cpu0: M88100 rev 0x3, 2 CMMU
	cpu0: M88200 (16K) rev 0x9, full Icache, M88200 (16K) rev 0x9, full Dcache
	pcctwo0 at mainbus0 addr 0xfff00000: rev 0
	nvram0 at pcctwo0 offset 0xc0000: MK48T08
	cl0 at pcctwo0 offset 0x45000 ipl 3: console
	osiop0 at pcctwo0 offset 0x47000 ipl 2: NCR53C710 rev 2, 66MHz
	scsibus0 at osiop0: 8 targets, initiator 7
	osiop0: target 0 ignored sync request
	osiop0: target 0 now using 8 bit asynch xfers
	sd0 at scsibus0 targ 0 lun 0: <GXemul, obsd_mvme88k.im, 0> SCSI2 0/direct fixed
	sd0: 1855MB, 1855 cyl, 16 head, 128 sec, 512 bytes/sec, 3800003 sec total
	osiop0: target 1 ignored sync request
	osiop0: target 1 now using 8 bit asynch xfers
	cd0 at scsibus0 targ 1 lun 0: <GXemul, openbsd_mvme88k, 0> SCSI2 5/cdrom removable
	vme0 at pcctwo0 offset 0x40000
	vme0: using BUG parameters
	vme0: vme to cpu irq level 1:1
	vmes0 at vme0
	rd0: fixed, 4096 blocks
	boot device: <unknown>
	root on rd0a swap on rd0b dump on rd0b
	WARNING: clock gained 138 days -- CHECK AND RESET THE DATE!
	erase ^?, werase ^W, kill ^U, intr ^C, status ^T
	(I)nstall, (U)pgrade or (S)hell? <font color="#0000ff"><i>i</i></font>

	Welcome to the OpenBSD/mvme88k 4.4 install program.

	This program will help you install OpenBSD. At any prompt except password
	prompts you can escape to a shell by typing '!'. Default answers are shown
	in []'s and are selected by pressing RETURN.  At any time you can exit this
	program by pressing Control-C, but exiting during an install can leave your
	system in an inconsistent state.

	Terminal type? [vt100] <font color="#0000ff"><i>xterm</i></font>

	IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this
	program can cause SIGNIFICANT data loss.

	It is often helpful to have the installation notes handy. For complex disk
	configurations, relevant disk hardware manuals and a calculator are useful.

	Proceed with install? [no] <font color="#0000ff"><i>yes</i></font>
	Cool! Let's get to it.

	You will now initialize the disk(s) that OpenBSD will use. To enable all
	available security features you should configure the disk(s) to allow the
	creation of separate filesystems for /, /tmp, /var, /usr, and /home.

	Available disks are: sd0.
	Which one is the root disk? (or 'done') [sd0] <font color="#0000ff"><i>sd0</i></font>
	osiop0: target 0 ignored sync request
	osiop0: target 0 now using 8 bit asynch xfers
	Initial label editor (enter '?' for help at any prompt)
	> <font color="#0000ff"><i>a a</i></font>
	offset: [0] <font color="#0000ff"><i>63</i></font>
	size: [3799940] <font color="#0000ff"><i>3500000</i></font>
	FS type: [4.2BSD] 
	mount point: [none] <font color="#0000ff"><i>/</i></font>
	> <font color="#0000ff"><i>a b</i></font>
	offset: [3500063] 
	size: [299940] 
	FS type: [swap] 
	> <font color="#0000ff"><i>w</i></font>
	> <font color="#0000ff"><i>q</i></font>
	No label changes.
	No more disks to initialize.

	OpenBSD filesystems:
	sd0a /

	The next step *DESTROYS* all existing data on these partitions!
	Are you really sure that you're ready to proceed? [no] <font color="#0000ff"><i>yes</i></font>
	/dev/rsd0a: 1709.0MB in 3500000 sectors of 512 bytes
	9 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
	/dev/sd0a on /mnt type ffs (rw, asynchronous, local, ctime=Thu Jan  1 16:29:57 2009)

	System hostname? (short form, e.g. 'foo') <font color="#0000ff"><i>test</i></font>
	Configure the network? [yes] <font color="#0000ff"><i>no</i></font>
	Password for root account? (will not echo) 
	Password for root account? (again) 

	Let's install the sets!
	Location of sets? (cd disk ftp http nfs or 'done') [cd] <font color="#0000ff"><i>disk</i></font>
	Is the disk partition already mounted? [no] <font color="#0000ff"><i>!mount -t cd9660 /dev/cd0c /mnt2</i></font>
	osiop0: target 1 ignored sync request
	osiop0: target 1 now using 8 bit asynch xfers
	Is the disk partition already mounted? [no] <font color="#0000ff"><i>yes</i></font>
	Pathname to the sets? (or 'done') [4.4/mvme88k] <font color="#0000ff"><i>/mnt2/4.4/mvme88k</i></font>

	Select sets by entering a set name, a file name pattern or 'all'. De-select
	sets by prepending a '-' to the set name, file name pattern or 'all'. Selected
	sets are labelled '[X]'.

	        [X] bsd
	        [X] bsd.rd
	        [ ] bsd.mp
	        [X] base44.tgz
	        [X] etc44.tgz
	        [X] misc44.tgz
	        [X] comp44.tgz
	        [X] man44.tgz
	        [X] game44.tgz
	        [ ] xbase44.tgz
	        [ ] xetc44.tgz
	        [ ] xshare44.tgz
	        [ ] xfont44.tgz
	        [ ] xserv44.tgz
	Set name? (or 'done') [bsd.mp] <font color="#0000ff"><i>done</i></font>
	Ready to install sets? [yes] <font color="#0000ff"><i>yes</i></font>
	Getting bsd ...
	100% |**************************************************|  2329 KB    01:21    
	Getting bsd.rd ...
	100% |**************************************************|  3150 KB    01:48    
	Getting base44.tgz ...
	100% |**************************************************| 87686 KB    11:56    
	Getting etc44.tgz ...
	100% |**************************************************|   629 KB    00:14    
	Getting misc44.tgz ...
	100% |**************************************************|  2866 KB    00:37    
	Getting comp44.tgz ...
	100% |**************************************************| 38869 KB    06:19    
	Getting man44.tgz ...
	100% |**************************************************|  6967 KB    01:50    
	Getting game44.tgz ...
	100% |**************************************************|  7037 KB    01:16    
	Location of sets? (cd disk ftp http nfs or 'done') [done] <font color="#0000ff"><i>done</i></font>
	Start sshd(8) by default? [yes] <font color="#0000ff"><i>yes</i></font>
	Start ntpd(8) by default? [no] <font color="#0000ff"><i>no</i></font>
	Saving configuration files...done.
	Generating initial host.random file...done.
	What timezone are you in? ('?' for list) [Canada/Mountain] <font color="#0000ff"><i>Europe/Stockholm</i></font>
	Setting local timezone to 'Europe/Stockholm'...done.
	Making all device nodes...done.
	Installing boot block...
	boot: /mnt/boot
	proto: /mnt/usr/mdec/bootxx
	device: /dev/rsd0a
	cdevice: /dev/rsd0c
	modifying vid.
	/mnt/usr/mdec/bootxx: entry point 0x9f0000
	proto bootblock size 5120
	room for 64 filesystem blocks at 0x9f1198
	Will load 2 blocks of size 16384 each.
	0: 17696
	1: 17728

	CONGRATULATIONS! Your OpenBSD install has been successfully completed!
	To boot the new system, enter halt at the command prompt. Once the
	system has halted, reset the machine and boot from the disk.
	# <font color="#0000ff"><i>umount /mnt</i></font>
	# <font color="#0000ff"><i>halt</i></font>

</pre>
</ol>

<p>
Once the install has finished, the following command should let you 
boot from the harddisk image:
<pre>
	<b>gxemul -e mvme187 -d obsd_mvme88k.img bsd</b>
</pre>

<p>When asked about root disk, enter <tt><b>sd0</b></tt>.

<p>No NIC has been implemented yet for mvme187, so there is no network connectivity
from within the guest OS.







<p><br>



</body>
</html>