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
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GXemul: PlayStation 2 emulation</title>
<meta name="robots" content="noarchive,nofollow,noindex">
</head>
<body style="font-family : sans-serif;">
<!-- 10 lines header. -->
<h1>GXemul: PlayStation 2 emulation</h1>
<p>
<a href="./">Back to the index.</a>
<!--
Copyright (C) 2006-2019 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>The PlayStation 2 emulation is <font color="red">not working yet</font>. The focus is
not on making an emulator for running games, as there are other emulators
for that, but rather on making it possible to run NetBSD/playstation2. This page
contains <i>preliminary instructions</i> for how to experiment with NetBSD.</p>
<p><br>
<a name="netbsdplaystation2"></a>
<h3>NetBSD/playstation2:</h3>
<p><font color="red">NOTE: This doesn't work, and the <a href="http://www.netbsd.org/ports/playstation2/">playstation2 port of NetBSD</a> is not active at the time of writing this.</font>
<p>It was removed from NetBSD's tree in 2009, although a <a href="https://blog.netbsd.org/tnf/entry/the_playstation2_port_is_back">blog post from 2014</a> indicates
that it could possibly be brought back to life.
<p>
<a href="20100205-netbsd-playstation2.png"><img src="20100205-netbsd-playstation2-small.png"></a>
<a href="20190616-netbsd-playstation2-userland.png"><img src="20190616-netbsd-playstation2-userland-small.png"></a>
<p>To attempt to run the latest snapshot (from 2002):
<p>
<ol>
<li>Create an empty harddisk image, which will be the root disk
that the guest OS installs itself onto:<pre>
<b>dd if=/dev/zero of=nbsd_playstation2.img bs=1024 count=1 seek=3900000</b>
</pre>
<li>Download <a href="ftp://ftp.netbsd.org/pub/NetBSD/arch/playstation2/snapshot/20020327/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/arch/playstation2/snapshot/20020327/binary/kernel/netbsd-GENERIC.gz</a> and run<pre>
<b>gxemul -X -E playstation2 -d nbsd_playstation2.img netbsd-GENERIC.gz</b>
</pre>
</ol>
<p>Then it hangs, waiting for keyboard input from a keyboard which doesn't exist,
in order to select the root device.
<p><font color="red">As a horrible hack, which probably doesn't really work,</font>
one could imagine setting <tt>root_device</tt> and
<tt>rootdev</tt> manually. For example:
<ul>
<li>Run with <tt>-p wdattach</tt> and get the second argument to that
function (register a1).
<li>Run again with <tt>-p setroot</tt>, and type something like:<pre>
<setroot>
ffffffff8002ad98: 27bdff20 addiu sp,sp,-224
BREAKPOINT: pc = 0xffffffff8002ad98
(The instruction has not yet executed.)
GXemul> <b>put w root_device, 0xffffffffc0016800</b> <-- the a1 value from wdattach
GXemul> <b>put w rootdev, 0x100</b> <-- ???
GXemul> <b>pc=ra</b> <-- to return from setroot without
GXemul> <b>co</b> keyboard interaction
</pre>
</ul>
<p>But there are timeouts and lost interrupts, so even if a correct disk image
was used, and the correct <tt>rootdev</tt> value was used, it is unlikely that
it would work yet.
<p><br>
</body>
</html>
|