/[gxemul]/trunk/doc/dreamcast.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/doc/dreamcast.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44 - (show annotations)
Mon Oct 8 16:22:56 2007 UTC (16 years, 5 months ago) by dpavlin
File MIME type: text/html
File size: 7003 byte(s)
++ trunk/HISTORY	(local)
$Id: HISTORY,v 1.1632 2007/09/11 21:46:35 debug Exp $
20070616	Implementing the MIPS32/64 revision 2 "ror" instruction.
20070617	Adding a struct for each physpage which keeps track of which
		ranges within that page (base offset, length) that are
		continuously translatable. When running with native code
		generation enabled (-b), a range is added after each read-
		ahead loop.
		Experimenting with using the physical program counter sample
		data (implemented 20070608) together with the "translatable
		range" information, to figure out which physical address ranges
		would be worth translating to native code (if the number of
		samples falling within a range is above a certain threshold).
20070618	Adding automagic building of .index comment files for
		src/file/, src/promemul/, src src/useremul/ as well.
		Adding a "has been translated" bit to the ranges, so that only
		not-yet-translated ranges will be sampled.
20070619	Moving src/cpu.c and src/memory_rw.c into src/cpus/,
		src/device.c into src/devices/, and src/machine.c into
		src/machines/.
		Creating a skeleton cc/ld native backend module; beginning on
		the function which will detect cc command line, etc.
20070620	Continuing on the native code generation infrastructure.
20070621	Moving src/x11.c and src/console.c into a new src/console/
		subdir (for everything that is console or framebuffer related).
		Moving src/symbol*.c into a new src/symbol/, which should
		contain anything that is symbol handling related.
20070624	Making the program counter sampling threshold a "settings
		variable" (sampling_threshold), i.e. it can now be changed
		during runtime.
		Switching the RELEASE notes format from plain text to HTML.
		If the TMPDIR environment variable is set, it is used instead
		of "/tmp" for temporary files.
		Continuing on the cc/ld backend: simple .c code is generated,
		the compiler and linker are called, etc.
		Adding detection of host architecture to the configure script
		(again), and adding icache invalidation support (only
		implemented for Alpha hosts so far).
20070625	Simplifying the program counter sampling mechanism.
20070626	Removing the cc/ld native code generation stuff, program
		counter sampling, etc; it would not have worked well in the
		general case.
20070627	Removing everything related to native code generation.
20070629	Removing the (practically unusable) support for multiple
		emulations. (The single emulation allowed now still supports
		multiple simultaneous machines, as before.)
		Beginning on PCCTWO and M88K interrupts.
20070723	Adding a dummy skeleton for emulation of M32R processors.
20070901	Fixing a warning found by "gcc version 4.3.0 20070817
		(experimental)" on amd64.
20070905	Removing some more traces of the old "multiple emulations"
		code.
		Also looking in /usr/local/include and /usr/local/lib for
		X11 libs, when running configure.
20070909	Minor updates to the guest OS install instructions, in
		preparation for the NetBSD 4.0 release.
20070918	More testing of NetBSD 4.0 RC1.

1 <html><head><title>Gavare's eXperimental Emulator:&nbsp;&nbsp;&nbsp;Dreamcast emulation</title>
2 <meta name="robots" content="noarchive,nofollow,noindex"></head>
3 <body bgcolor="#f8f8f8" text="#000000" link="#4040f0" vlink="#404040" alink="#ff0000">
4 <table border=0 width=100% bgcolor="#d0d0d0"><tr>
5 <td width=100% align=center valign=center><table border=0 width=100%><tr>
6 <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">
7 <b>GXemul:</b></font>&nbsp;&nbsp;
8 <font color="#000000" size="6"><b>Dreamcast emulation</b>
9 </font></td></tr></table></td></tr></table><p>
10
11 <!--
12
13 $Id: dreamcast.html,v 1.16 2007/06/23 16:59:35 debug Exp $
14
15 Copyright (C) 2006-2007 Anders Gavare. All rights reserved.
16
17 Redistribution and use in source and binary forms, with or without
18 modification, are permitted provided that the following conditions are met:
19
20 1. Redistributions of source code must retain the above copyright
21 notice, this list of conditions and the following disclaimer.
22 2. Redistributions in binary form must reproduce the above copyright
23 notice, this list of conditions and the following disclaimer in the
24 documentation and/or other materials provided with the distribution.
25 3. The name of the author may not be used to endorse or promote products
26 derived from this software without specific prior written permission.
27
28 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
29 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
32 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 SUCH DAMAGE.
39
40 -->
41
42 <a href="./">Back to the index</a>
43
44 <p><br>
45 <h2>Dreamcast emulation</h2>
46
47 <p>
48 <ul>
49 <li><a href="#intro">Introduction</a>
50 <li><a href="#netbsd_generic_md">NetBSD/dreamcast GENERIC_MD</a>
51 <li><a href="#netbsd_live_cd">NetBSD/dreamcast Live CD</a>
52 <li><a href="#linux_live_cd">Linux/dreamcast Live CD</a>
53 </ul>
54
55
56
57
58
59
60 <p><br>
61 <a name="intro"></a>
62 <h3>Introduction:</h3>
63
64 This page contains information about the <a
65 href="http://en.wikipedia.org/wiki/Dreamcast">Dreamcast</a> emulation mode
66 in GXemul. It's not a very long page, but I thought it would be best to
67 gather everything Dreamcast-specific in one place.
68
69 <p>My main goal with Dreamcast emulation is to let <a
70 href="http://www.netbsd.org/ports/dreamcast/">NetBSD/dreamcast</a> run,
71 similar to how it runs on a real machine. I am also experimenting with
72 other programs, such as Linux and simple demo programs that use
73 <a href="http://gamedev.allusion.net/softprj/kos/">KOS</a>, and
74 <a href="http://mc.pp.se/dc/sw.html">Marcus Comstedt's tutorial programs</a>.
75 These sometimes work to a certain degree.
76
77 <p>Games (especially commercial games) are very unlikely to run.
78
79
80
81
82
83 <p><br>
84 <a name="netbsd_generic_md"></a>
85 <h3>NetBSD/dreamcast GENERIC_MD:</h3>
86
87 <p>It is possible to run <a
88 href="http://www.netbsd.org/ports/dreamcast/">NetBSD/dreamcast</a> in
89 GXemul. A NetBSD ramdisk kernel can reach userland, however, no network
90 interface is emulated yet, so root-on-nfs is not possible.
91
92 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
93 <a href="20061029-netbsd-dreamcast.png"><img src="20061029-netbsd-dreamcast_small.png"></a>
94 &nbsp;&nbsp;&nbsp;
95 <a href="20061104-netbsd-dreamcast-real.jpg"><img src="20061104-netbsd-dreamcast-real_small.png"></a>
96
97 <p>(The photo on the right shows NetBSD/dreamcast running both on a real
98 Dreamcast, and in the emulator.)
99
100 <p>Download the 3.1 kernel here:<pre>
101 <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/dreamcast/binary/kernel/netbsd-GENERIC_MD.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/dreamcast/binary/kernel/netbsd-GENERIC_MD.gz</a>
102 </pre>
103
104 <p>Start NetBSD/dreamcast using the following command line:<pre>
105 <b>gxemul -XEdreamcast netbsd-GENERIC_MD.gz</b>
106
107 </pre>
108
109
110
111
112
113
114
115
116
117 <p><br>
118 <a name="netbsd_live_cd"></a>
119 <h3>NetBSD/dreamcast Live CD:</h3>
120
121 <p>According to <a href="http://mail-index.netbsd.org/port-dreamcast/2005/04/25/0000.html">http://mail-index.netbsd.org/port-dreamcast/2005/04/25/0000.html</a>,
122 Rui Paulo has made available a NetBSD/dreamcast Live CD. It can run in
123 GXemul:
124
125 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
126 <a href="20070128-netbsd-dreamcast-livecd-1.png"><img src="20070128-netbsd-dreamcast-livecd-1_small.png"></a>
127 &nbsp;&nbsp;&nbsp;
128 <a href="20070128-netbsd-dreamcast-livecd-2.png"><img src="20070128-netbsd-dreamcast-livecd-2_small.png"></a>
129
130 <p>The image is available here:<pre>
131 <a href="http://netbsd.student.utwente.nl/rpaulo/">http://netbsd.student.utwente.nl/rpaulo/</a>
132 </pre>
133
134 <p><font color="#ff0000">NOTE (February 2007):</font>
135 The ISO image seems to have been removed from the server,
136 but you should be able to create one from scratch using
137 instructions available at various locations on the Internet.
138
139
140 <p>Only the ISO9660 filesystem image is needed:<pre>
141 <a href="http://netbsd.student.utwente.nl/rpaulo/livecd.raw.bz2">http://netbsd.student.utwente.nl/rpaulo/livecd.raw.bz2</a>
142 </pre>
143
144 Uncompress the CD image (using bunzip2), and type the following command
145 to attempt to boot directly from the image:<pre>
146 <b>gxemul -XEdreamcast -d co23965696:livecd.raw</b>
147 </pre>
148
149 (The <tt><b>c</b></tt> disk image option is necessary to treat the raw
150 file as a CDROM image, and the <tt><b>o</b></tt> part is needed because
151 the ISO9660 filesystem in the image is offset by 11702 sectors, i.e. 2048
152 bytes each.)
153
154 <p>At the <b><tt>root device:</tt></b> prompt, type
155 <b><tt>gdrom0</tt></b>. For <b><tt>dump device</tt></b>,
156 <b><tt>file system</tt></b>, and <b><tt>init path</tt></b>, just press
157 Enter.
158
159
160
161
162
163
164
165 <p><br>
166 <a name="linux_live_cd"></a>
167 <h3>Linux/dreamcast Live CD:</h3>
168
169 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
170 <a href="20070308-linux-dreamcast-1.png"><img src="20070308-linux-dreamcast-1_small.png"></a>
171 &nbsp;&nbsp;&nbsp;
172 <a href="20070308-linux-dreamcast-2.png"><img src="20070308-linux-dreamcast-2_small.png"></a>
173
174 <p>A Linux/dreamcast Live CD ISO image can be found here:<pre>
175 <a href="http://ftp.riken.go.jp/pub/misc/Japan/m17n.org/super-h/CD-R/lc2000.iso">http://ftp.riken.go.jp/pub/misc/Japan/m17n.org/super-h/CD-R/lc2000.iso</a>
176 </pre>
177
178 Once you have downloaded the ISO image, type the following command to
179 boot directly from the image:<pre>
180 <b>gxemul -XEdreamcast -d o23965696:lc2000.iso</b>
181 </pre>
182
183 <p>(It seems that this specific iso image was built using instructions
184 from <a href="http://www.anytux.org/doc.php?doc_id=1">http://www.anytux.org/doc.php?doc_id=1</a>.)
185
186
187
188
189
190
191
192
193 <p><br>
194
195
196
197 </body>
198 </html>
199

  ViewVC Help
Powered by ViewVC 1.1.26