ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/README
Revision: 1.41
Committed: 2005-06-30T21:27:26Z (19 years, 4 months ago) by cebix
Branch: MAIN
Changes since 1.40: +1 -1 lines
Log Message:
modernized spec file and makefile

File Contents

# User Rev Content
1 cebix 1.1
2 cebix 1.17 Basilisk II
3 cebix 1.14 A 68k Macintosh emulator
4 cebix 1.1
5 cebix 1.41 Copyright (C) 1997-2005 Christian Bauer et al.
6 cebix 1.1
7    
8     License
9     -------
10    
11     Basilisk II is available under the terms of the GNU General Public License.
12 cebix 1.3 See the file "COPYING" that is included in the distribution for details.
13 cebix 1.1
14    
15     Overview
16     --------
17    
18 cebix 1.14 Basilisk II is an Open Source 68k Macintosh emulator. That is, it enables
19     you to run 68k MacOS software on you computer, even if you are using a
20     different operating system. However, you still need a copy of MacOS and
21     a Macintosh ROM image to use Basilisk II.
22 cebix 1.1
23     Basilisk II has currently been ported to the following systems:
24     - BeOS R4 (PowerPC and x86)
25 cebix 1.23 - Unix (tested under Linux, Solaris 2.x, FreeBSD 3.x, NetBSD 1.4.x and
26 cebix 1.12 IRIX 6.5)
27 cebix 1.1 - AmigaOS 3.x
28     - Windows NT 4.0 (mostly works under Windows 95/98, too)
29 nigel 1.34 - Mac OS X 10.1, 10.2
30 cebix 1.1
31     Some features of Basilisk II:
32     - Emulates either a Mac Classic (which runs MacOS 0.x thru 7.5)
33     or a Mac II series machine (which runs MacOS 7.x, 8.0 and 8.1),
34     depending on the ROM being used
35     - Color video display
36     - CD quality sound output
37     - Floppy disk driver (only 1.44MB disks supported)
38     - Driver for HFS partitions and hardfiles
39     - CD-ROM driver with basic audio functions
40 cebix 1.7 - Easy file exchange with the host OS via a "Host Directory Tree" icon
41     on the Mac desktop
42 cebix 1.1 - Ethernet driver
43     - Serial drivers
44     - SCSI Manager (old-style) emulation
45     - Emulates extended ADB keyboard and 3-button mouse
46 cebix 1.12 - Uses UAE 68k emulation or (under AmigaOS and NetBSD/m68k) real 68k
47     processor
48 cebix 1.1
49     The emulator is not yet complete. See the file "TODO" for a list of
50     unimplemented stuff.
51    
52    
53 cebix 1.3 Requirements and Installation
54     -----------------------------
55 cebix 1.1
56 cebix 1.3 Please consult the file "INSTALL" for a list of system requirements and
57     installation instructions.
58 cebix 1.1
59    
60     Configuration
61     -------------
62    
63     Basilisk II is configured via the preferences editor that appears on startup.
64     If you have a version without preferences editor (e.g. because of missing GTK+
65     under Unix), you have to edit the preferences file manually.
66    
67     The settings are stored in a text file:
68    
69     BeOS:
70     /boot/home/config/settings/BasiliskII_prefs
71    
72 nigel 1.25 Unix, Mac OS X:
73 cebix 1.1 ~/.basilisk_ii_prefs
74    
75     AmigaOS:
76     ENV:BasiliskII_prefs
77    
78     Windows:
79     BasiliskII_prefs (in the same directory as the executable)
80    
81     If no preferences file is present, Basilisk II will create one with the
82     default settings upon startup.
83    
84    
85     Preferences File Format
86     -----------------------
87    
88     The preferences file is a text file editable with any text editor.
89     Each line in this file has the format "keyword value" and describes
90     one preferences item. For each keyword, the meaning of the "value"
91     string may vary across platforms. The following keywords exist:
92    
93     disk <volume description>
94    
95     This item describes one MacOS volume to be mounted by Basilisk II.
96     There can be multiple "disk" lines in the preferences file. Basilisk II
97     can handle hardfiles (byte-per-byte images of HFS volumes in a file on
98 cebix 1.23 the host system), HFS partitions on hard disks etc., and MacOS-partitioned
99     disks (it can only access the first partition, though). The "volume
100     description" is either the pathname of a hardfile or a platform-dependant
101     description of an HFS partition or drive. If the volume description is
102     prefixed by an asterisk ("*"), the volume is write protected for MacOS.
103    
104     Basilisk II can also handle some types of Mac "disk image" files directly,
105     as long as they are uncompressed and unencoded.
106 cebix 1.1
107     BeOS:
108     To specify an HFS partition, simply specify its path (e.g.
109 cebix 1.23 "/dev/disk/scsi/0/1/0/0_3"). If you don't specify any volumes, Basilisk II
110 cebix 1.1 will search for and use all available HFS partitions.
111    
112     Unix:
113 cebix 1.23 To specify an HFS partition, simply specify its path (e.g. "/dev/sda5").
114     If you want to access a MacOS-partitioned hard disk or removable volume
115     (Jaz, Zip etc.) and your operating system doesn't understand MacOS
116     partition tables, you can specify the block device name (e.g. "/dev/sda")
117     to access the first HFS partition on the device. Under Linux, if you
118     don't specify any volumes, Basilisk II will search /etc/fstab for
119     unmounted HFS partitions and use these.
120 cebix 1.1
121     AmigaOS:
122     Partitions/drives are specified in the following format:
123     /dev/<device name>/<unit>/<open flags>/<start block>/<size>/<block size>
124     "start block" and "size" are given in blocks, "block size" is given in
125     bytes.
126    
127     Windows:
128     To define a logical volume (Windows NT only), specify its path (e.g. "c:\").
129     To define a physical volume (NT and 9x), additionally give the "physical"
130     keyword (E.g. "physical c:\"). For safety reasons, volumes are mounted as
131     read-only. This is due to the bugs in PC Exchange. If you don't specify
132     any volume, the files *.hfv and *.dsk are searched from the current
133     directory. Note that in this case, Basilisk II tries to boot from the first
134     volume file found, which is random and may not be what you want.
135    
136     floppy <floppy drive description>
137    
138     This item describes one floppy drive to be used by Basilisk II. There
139     can be multiple "floppy" lines in the preferences file. If no "floppy"
140     line is given, Basilisk II will try to automatically detect and use
141     installed floppy drives. The format of the "floppy drive description"
142     is the same as that of "disk" lines.
143    
144     cdrom <CD-ROM drive description>
145    
146     This item describes one CD-ROM drive to be used by Basilisk II. There
147     can be multiple "cdrom" lines in the preferences file. If no "cdrom"
148     line is given, Basilisk II will try to automatically detect and use
149     installed CD-ROM drives. The format of the "CD-ROM drive description"
150     is the same as that of "disk" lines.
151    
152 cebix 1.7 extfs <direcory path>
153    
154     This item specifies the root directory for the "Host Directory Tree"
155     file system (the "Unix/BeOS/Amiga/..." icon on the Finder desktop).
156     All objects contained in that directory are accessible by Mac applications.
157 cebix 1.23
158 cebix 1.7 This feature is only available when File System Manager V1.2 or later
159     is installed on the Mac side. FSM 1.2 is built-in beginning with MacOS 7.6
160     and can be installed as a system extension (downloadable from Apple, look
161     for the FSM SDK in the developer section) for earlier MacOS versions.
162    
163 cebix 1.1 scsi0 <SCSI target> ... scsi6 <SCSI target>
164    
165     These items describe the SCSI target to be used for a given Mac SCSI
166     ID by Basilisk II. Basilisk II emulates the old SCSI Manager and allows
167     to assign a different SCSI target (they don't even have to be on the
168     same SCSI bus) for each SCSI ID (0..6) as seen by the MacOS. "scsi0"
169     describes the target for ID 0, "scsi1" the target for ID 1 etc.
170     The format of the "SCSI target" is platform specific.
171    
172     BeOS:
173     The "SCSI target" has the format "<bus>/<unit>" (e.g. "0/2").
174     Due to a bug in BeOS, using SCSI with Basilisk II may cause the
175     SCSI bus to hang. Use with caution.
176    
177     Linux:
178     The "SCSI target" has to be the name of a device that complies to
179     the Generic SCSI driver API. On a standard Linux installation, these
180     devices are "/dev/sg0", "/dev/sg1" etc. Note that you must have
181     appropriate access rights to these devices and that Generic SCSI
182     support has to be compiled into the kernel.
183    
184     FreeBSD:
185     The "SCSI target" has the format "<id>/<lun>" (e.g. "2/0").
186    
187     AmigaOS:
188     The "SCSI target" has the format "<device name>/<unit>" (e.g.
189     "scsi.device/2").
190    
191     Windows:
192 cebix 1.5 The "SCSI target" has the format <"Vendor"> <"Model"> (e.g.
193     scsi0 "HP" "CD-Writer+ 7100"). Note the use of quotes.
194 cebix 1.1
195     screen <video mode>
196    
197 cebix 1.23 This item describes the type of video display to be used by default for
198     Basilisk II. If you are using a Mac Classic ROM, the display is always
199     1-bit 512x342 and this item is ignored. The format of the "video mode" is
200     platform specific.
201 cebix 1.1
202     BeOS:
203     The "video mode" is one of the following:
204     win/<width>/<height>
205     8-bit color display in a window of the given size. This is the
206     default.
207     scr/<mode>
208     Full-screen display in BWindowScreen. <mode> is the bit number of
209     the video mode to use (see headers/be/interface/GraphicsDefs.h).
210     E.g. 0 = 640x480x8, 1 = 800x600x8 etc., 10 = 640x480x24,
211     11 = 800x600x24 etc., 18 = 640x480x15, 19 = 800x600x15 etc.
212     15 bit modes are preferable to 16 bit modes (which may show false
213     colors on PowerPC machines).
214     When you run in full-screen mode and switch to another Workspace,
215     Basilisk II is put in "suspend" mode (i.e. MacOS will be frozen).
216    
217     Unix:
218     The "video mode" is one of the following:
219     win/<width>/<height>
220 cebix 1.23 Color display in an X11 window of the given size. There are several
221     resolutions and color depths available. The set of color depths
222     depends on the capabilities of the X11 server, the operating system,
223     and Basilisk II compile-time options, but 1 bit and the default depth
224     of the X11 screen should always be available.
225 cebix 1.4 dga/<width>/<height>
226 cebix 1.7 [if Basilisk II was configured with --enable-xf86-dga]
227     Full-screen display using the XFree86 DGA extension. The color depth
228 cebix 1.1 (8/15/24 bit) depends on the depth of the underlying X11 screen.
229 cebix 1.4 "width" and "height" specify the maximum width/height to use.
230 cebix 1.7 Saying "dga/0/0" means "complete screen".
231     dga/<frame buffer name>
232     [if Basilisk II was configured with --enable-fbdev-dga]
233     Full-screen display using the frame buffer device /dev/fb. The color
234     depth (8/15/24 bit) depends on the depth of the underlying X11 screen.
235     The "frame buffer name" is looked up in the "fbdevices" file (whose
236     path can be specified with the "fbdevicefile" prefs item) to determine
237     certain characteristics of the device (doing a "ls -l /dev/fb" should
238     tell you what your frame buffer name is).
239 cebix 1.1
240     AmigaOS:
241     The "video mode" is one of the following:
242     win/<width>/<height>
243     Black-and-white display in a window of the given size on the
244     Workbench screen. This is the default and will also be used when
245     one of the other options (PIP/screen) fails to open.
246     pip/<width>/<height>
247     15-bit truecolor display in a Picasso96 PIP. This requires
248     Picasso96 as well as a PIP-capable graphics card (e.g. Picasso IV).
249     scr/<hexadecimal mode ID>
250 cebix 1.11 8/15/24-bit fullscreen display on a Picasso96/CyberGraphX screen with
251     the given mode ID. This requires Picasso96 or CyberGraphX. For 15 and
252     24 bit, the frame buffer format must be QuickDraw-compatible
253     (big-endian, xRGB 1:5:5:5 or xRGB 8:8:8:8). The screen size will be
254     the default size for that mode ID.
255 cebix 1.1
256     Windows:
257     The "video mode" is one of the following:
258     win/<width>/<height>/<bits per pixel>
259     A refreshed screen mode that uses Windows GDI calls to write to the
260     screen. You may have other windows on top of Basilisk II.
261     dx/<width>/<height>/<bits per pixel>
262     A refreshed DirectX mode (minimum version 5.0). There are ways to
263     install DirectX 5 on NT 4. Some new display adapters work fine even
264     with DirectX 3.
265     fb/<width>/<height>/<bits per pixel>
266     A non-refreshed video mode that works only on NT. It accesses the
267     linear frame buffer directly (best performance of all three modes).
268     Use the hotkey Control-Shift-F12 to switch between Windows and Mac
269     displays. Fast task switch (Alt-Tab) and Explorer start menu
270     (Control-Esc) are disabled, Control-Alt-Del is enabled.
271     <width> and <height> can be either zeroes (uses current screen values),
272     or something else. "win" mode can use almost anything, for other modes
273     there must be a corresponding DirectX mode.
274     <bits> is ignored for mode "win" (uses current screen values).
275     If the mode is "win" and the dimensions are different than the desktop
276     dimensions, windowed mode is used. The window can be moved around by
277     dragging with the right mouse button. This mode remembers window positions
278     separately for different dimensions.
279     The supported values are 8,15,16,24,32. It is possible that some of them
280     do not work for you. In particular, it may be that only one of the
281     two modes, 15 and 16, is suitable for your card. You need to find out
282     the best solution by experimenting.
283     Basilisk II checks what display mode you are currently running and uses
284     that mode. The screen is always full screen. When you switch to another
285     application via Alt-Tab, Basilisk II is put in "snooze" mode (i.e. MacOS
286     is frozen).
287    
288 nigel 1.25 Mac OS X:
289     The "video mode" is one of the following:
290     win/<width>/<height>
291     win/<width>/<height>/<bits per pixel>
292 nigel 1.34 A refreshed (and buffered) Quartz window.
293 nigel 1.25 full/<width>/<height>
294     full/<width>/<height>/<bits per pixel>
295     A CGDirectDisplay full screen mode. <bits> can currently be 8, 16 or 32.
296     If not specified, the default is 32. There is currently no way to switch
297     between the Mac OS X and Basilisk II display, but Apple-Option-Escape
298     instantly and safely terminates the Basilisk II program.
299    
300 cebix 1.1 seriala <serial port description>
301    
302     This item describes the serial port to be used as Port A (Modem Port)
303     by Basilisk II. If no "seriala" line is given, Basilisk II will try to
304     automatically detect and use installed serial ports. The "serial port
305     description" is a platform-dependant description of a serial port.
306    
307     BeOS:
308     Either specify the name of a serial port (e.g. "serial1") or one of
309     "parallel1", "parallel2" or "parallel3". See below for more information
310     about parallel ports.
311    
312     Unix:
313     Specify the device name of a serial port (e.g. "/dev/ttyS0") or a
314     parallel "lp" port (e.g. "/dev/lp1"; this only works under Linux and
315     FreeBSD). See below for more information about parallel ports.
316    
317     AmigaOS:
318     You have to specify the name of the serial device and the device unit
319     as "<device name>/<unit>" (e.g. "serial.device/0"). If the given device
320     is not compatible to serial.device, Basilisk II will crash. If the
321     device name starts with an asterisk (e.g. "*parallel.device/0"), the
322     device is treated as a parallel.device compatible device. See below for
323     more information about parallel ports.
324    
325     Windows:
326     Specify "COM1" or "COM2" for com port 1 or 2, respectively.
327    
328     Parallel ports: If you select a parallel port it will look like a serial
329     port to MacOS but Basilisk II will only allow data output and ignore baud
330     rate settings etc. You should be able to get some printers to work with
331     this method (provided that you have the right printer driver, like
332     "Power Print" (see www.gdt.com)).
333    
334     serialb <serial port description>
335    
336     This item describes the serial port to be used as Port B (Printer Port)
337     by Basilisk II. If no "serialb" line is given, Basilisk II will try to
338     automatically detect and use installed serial ports. The format of the
339     "serial port description" is the same as that of the "seriala" option.
340    
341     ether <ethernet card description>
342    
343     This item describes the Ethernet card to be used for Ethernet networking
344     by Basilisk II. If no "ether" line is given, Ethernet networking is disabled
345     (although the Ethernet driver of Basilisk II will behave like a "dummy"
346     Ethernet card in this case). If you are using a Mac Classic ROM, Ethernet
347     is not available and this setting is ignored. The "ethernet card description"
348     is a platform-dependant description of an ethernet card.
349    
350 cebix 1.23 General note: To use TCP/IP from MacOS, you should assign a different IP
351     address to the MacOS (entered into the MacOS TCP/IP (or MacTCP) control
352     panel). Otherwise there will be confusion about which operating system will
353     handle incoming packets.
354    
355 cebix 1.1 BeOS:
356     It doesn't matter what you give as "ethernet card description", Basilisk II
357     will always use the first Ethernet card it finds as long an an "ether"
358 cebix 1.18 line exists (e.g. say "ether yes"). Using Ethernet requires the "sheep_net"
359     Net Server add-on to be installed. The first time you start Basilisk II
360     with Ethernet enabled you will be asked whether it's OK to make the
361     necessary changes to your BeOS network configuration to enable sheep_net.
362 cebix 1.1
363     Linux:
364     The "ethernet card description" is the name of an Ethernet interface.
365 gbeauche 1.39 There are four approaches to networking with Basilisk II:
366 cebix 1.8
367 cebix 1.23 1. Direct access to an Ethernet card via the "sheep_net" kernel module.
368     The "ethernet card description" must be the name of a real Ethernet
369     card, e.g. "eth0".
370    
371     The sheep_net module is included in the Basilisk II source
372     distribution in the directory "src/Unix/Linux/NetDriver". You have
373     to compile and install the module yourself:
374    
375     $ su
376     [enter root password]
377     # make
378     # make dev
379     [this will create a /dev/sheep_net device node; you should give
380     appropriate access rights to the user(s) running Basilisk II]
381     # insmod sheep_net.o
382    
383     If you copy the sheep_net.o module to a place where it can be found
384     by the kernel module loader ("/lib/modules/<version>/kernel/drivers/net"
385     for 2.4 kernels) and add the line
386    
387     alias char-major-10-198 sheep_net
388    
389     to "/etc/modules.conf", the kernel should be able to load the module
390     automatically when Basilisk II is started.
391    
392     The sheep_net module will allow you to run all networking protocols
393     under MacOS (TCP/IP, AppleTalk, IPX etc.) but there is no connection
394     between Linux networking and MacOS networking. MacOS will only be
395     able to talk to other machines on the Ethernet, but not to other
396     networks that your Linux box routes (e.g. a second Ethernet or a PPP
397     connection to the Internet).
398 cebix 1.8
399 cebix 1.1 2. Putting Basilisk II on a virtual Ethernet via the "ethertap" device.
400     In this case, the "ethernet card description" must be the name
401     of an ethertap interface, e.g. "tap0". It also requires that you
402 cebix 1.23 configure your kernel to enable routing and ethertap support:
403 cebix 1.1 under "Networking options", enable "Kernel/User netlink socket" and
404     "Netlink device emulation", under "Network device support", activate
405 cebix 1.15 "Ethertap network tap". You also have to modify drivers/net/ethertap.c
406 cebix 1.8 a bit before compiling the new kernel:
407    
408     - insert "#define CONFIG_ETHERTAP_MC 1" near the top (after the
409     #include lines)
410     - comment out the line "dev->flags|=IFF_NOARP;" in ethertap_probe()
411    
412     Next, see /usr/src/linux/Documentation/networking/ethertap.txt for
413     information on how to set up /dev/tap* device nodes and activate the
414     ethertap interface. Under MacOS, select an IP address that is on the
415     virtual network and set the default gateway to the IP address of the
416     ethertap interface. This approach will let you access all networks
417     that your Linux box has access to (especially, if your Linux box has
418     a dial-up Internet connection and is configured for IP masquerading,
419     you can access the Internet from MacOS). The drawback is that you
420     can only use network protocols that Linux can route, so you have to
421     install and configure netatalk if you want to use AppleTalk. Here is
422     an example /etc/atalk/atalkd.conf for a LAN:
423    
424     eth0 -seed -phase 2 -net 1 -addr 1.47 -zone "Ethernet"
425     tap0 -seed -phase 2 -net 2 -addr 2.47 -zone "Basilisknet"
426    
427     (the "47" is an arbitrary node number). This will set up a zone
428     "Ethernet" (net 1) for the Ethernet and a zone "Basilisknet" (net 2)
429     for the internal network connection of the ethertap interface.
430     MacOS should automatically recognize the nets and zones upon startup.
431     If you are in an existing AppleTalk network, you should contact
432     your network administrator about the nets and zones you can use
433     (instead of the ones given in the example above).
434 cebix 1.1
435 gbeauche 1.38 3. Access the network through a "tuntap" interface.
436     The "ethernet card description" must be set to "tun".
437    
438     TUN/TAP provides packet reception and transmission for user
439     space programs. It can be viewed as a simple Point-to-Point
440     or Ethernet device, which instead of receiving packets from a
441     physical media, receives them from user space program and
442     instead of sending packets via physical media writes them to
443     the user space program.
444    
445 gbeauche 1.40 Prerequesties:
446     - Make sure the "tun" kernel module is loaded
447     # modprobe tun
448     - Make sure IP Fordwarding is enabled on your system
449     # echo 1 >/proc/sys/net/ipv4/ip_forward
450    
451 gbeauche 1.38 A virtual network configuration script is required and the
452     default is /usr/local/BasiliskII/tunconfig unless you specify
453     a different file with the "etherconfig" item.
454    
455     This script requires you that "sudo" is properly configured
456     so that "/sbin/ifconfig" and "/sbin/iptables" can be executed
457     as root. Otherwise, you can still write a helper script which
458     invokes your favorite program to enhance a user priviledges.
459     e.g. in a KDE environment, kdesu can be used as follows:
460    
461     #!/bin/sh
462     exec /usr/bin/kdesu -c /path/to/tunconfig $1 $2
463    
464 gbeauche 1.39 4. Access the network through the user mode network stack.
465     (the code and this documentation come from QEMU)
466    
467     By setting the "ethernet card description" to "slirp",
468     Basilisk II uses a completely user mode network stack (you
469     don't need root priviledges to use the virtual network). The
470     virtual network configuration is the following:
471    
472     Basilisk II <------> Firewall/DHCP server <-----> Internet
473     (10.0.2.x) | (10.0.2.2)
474     |
475     ----> DNS server (10.0.2.3)
476     |
477     ----> SMB server (10.0.2.4)
478    
479     Basilisk II behaves as if it was behind a firewall which
480     blocks all incoming connections. You can use a DHCP client to
481     automatically configure the network in Basilisk II.
482    
483     In order to check that the user mode network is working, you
484     can ping the address 10.0.2.2 and verify that you got an
485     address in the range 10.0.2.x from the Basilisk II virtual
486     DHCP server.
487    
488     Note that ping is not supported reliably to the internet as
489     it would require root priviledges. It means you can only ping
490     the local router (10.0.2.2).
491    
492     When using the built-in TFTP server, the router is also the
493     TFTP server.
494    
495 cebix 1.19 FreeBSD:
496     The "ethertap" method described above also works under FreeBSD, but since
497     no-one has found the time to write a section for this manual, you're on
498     your own here...
499    
500 cebix 1.1 AmigaOS:
501     You have to specify the name of the SANA-II Ethernet device and the device
502     unit as "<device name>/<unit>" (e.g. "ariadne.device/0"). If the given
503     device is not a SANA-II device, Basilisk II will crash. If the device is
504     not an Ethernet device, Basilisk II will display a warning message and
505     disable Ethernet networking.
506    
507 cebix 1.22 See the next item for an alternative way to do networking with Basilisk II.
508    
509     udptunnel <"true" or "false">
510    
511     Setting this to "true" enables a special network mode in which all network
512     packets sent by MacOS are tunnelled over UDP using the host operating
513 cebix 1.23 system's native TCP/IP stack. This can only be used to connect computers
514     running Basilisk II (and not, for example, for connecting to the Internet
515     or an AppleShare server running on a real Mac), but it is probably the
516     easiest way to set up a network between two instances of Basilisk II
517     because the UDP tunnelling doesn't require any special kernel modules or
518     network add-ons. It relies on IP broadcasting, however, so its range is
519     limited. It should be fine though for doing a little file sharing or
520     playing Spectre.
521 cebix 1.22
522     udpport <IP port number>
523    
524 cebix 1.23 This item specifies the IP port number to use for the "UDP Tunnel" mode.
525     The default is 6066.
526 cebix 1.22
527 cebix 1.1 rom <ROM file path>
528    
529     This item specifies the file name of the Mac ROM file to be used by
530     Basilisk II. If no "rom" line is given, the ROM file has to be named
531     "ROM" and put in the same directory as the Basilisk II executable.
532    
533     bootdrive <drive number>
534    
535     Specify MacOS drive number of boot volume. "0" (the default) means
536     "boot from first bootable volume".
537    
538     bootdriver <driver number>
539    
540     Specify MacOS driver number of boot volume. "0" (the default) means
541     "boot from first bootable volume". Use "-62" to boot from CD-ROM.
542    
543     ramsize <bytes>
544    
545     Allocate "bytes" bytes of RAM for MacOS system and application memory.
546     The value given will be rounded down to the nearest multiple of 1MB.
547     If you are using a Mac Classic ROM, the maximum available value is 4MB
548     and higher values will be ignored. The default is 8MB.
549    
550     frameskip <frames to skip>
551    
552     For refreshed graphics modes (usually window modes), this specifies
553     how many frames to skip after drawing one frame. Higher values make
554     the video display more responsive but require more processing power.
555 cebix 1.12 The default is "8". Under Unix/X11, a value of "0" selects a "dynamic"
556     update mode that cuts the display into rectangles and updates each
557     rectangle individually, depending on display changes.
558 cebix 1.1
559     modelid <MacOS model ID>
560    
561 cebix 1.23 Specifies the Macintosh model ID that Basilisk II should report to MacOS.
562     The default is "5" which corresponds to a Mac IIci. If you want to run
563     MacOS 8, you have to set this to "14" (Quadra 900). Other values are not
564     officially supported and may result in crashes. MacOS versions earlier
565     than 7.5 may only run with the Model ID set to "5". If you are using a Mac
566     Classic ROM, the model is always "Mac Classic" and this setting is
567     ignored.
568 cebix 1.1
569     nosound <"true" or "false">
570    
571     Set this to "true" to disable all sound output. This is useful if the
572     sound takes too much CPU time on your machine or to get rid of warning
573     messages if Basilisk II can't use your audio hardware.
574    
575     nocdrom <"true" or "false">
576    
577     Set this to "true" to disable Basilisk's built-in CD-ROM driver.
578     The only reason to do this is if you want to use a third-party CD-ROM
579     driver that uses the SCSI Manager. The default is "false".
580    
581     nogui <"true" or "false">
582    
583     Set this to "true" to disable the GUI preferences editor and GUI
584     error alerts. All errors will then be reported to stdout. The default
585     is "false".
586    
587 nigel 1.35 keyboardtype <keyboard-id>
588    
589     Specifies the keyboard type that BasiliskII should report to the MacOS.
590     The default is "5" which is a "Apple Extended Keyboard II (ISO)",
591     but many other numbers are understood by most versions of the MacOS
592     (e.g. 11 is a "Macintosh Plus Keyboard with keypad",
593     13 is a "Apple PowerBook Keyboard (ISO)" )
594    
595 cebix 1.1 For additional information, consult the source.
596    
597    
598     System-specific configuration
599     -----------------------------
600    
601     Unix:
602    
603     keycodes <"true" or "false">
604 cebix 1.7 keycodefile <keycodes file path>
605 cebix 1.1
606     By default, the X11 event handler in Basilisk II uses KeySyms to
607     translate keyboard event to Mac keycodes. While this method is very
608     compatible and ought to work with all X servers, it only works well
609     if your keyboard has a US layout. If you set "keycodes" to "true",
610     Basilisk II will use raw keycodes instead of KeySyms. The keycode
611     depends only on the physical location of a key on the keyboard and
612     not on the selected keymap. Unfortunately it depends on the X server
613     being used and possibly also on the type of keyboard attached. So
614     Basilisk II needs a table to translate X keycodes to Mac keycodes.
615 cebix 1.7 This table is read by default from /usr/local/share/BasiliskII/keycodes
616 cebix 1.1 unless you specify a different file with the "keycodefile" item.
617 cebix 1.7 A sample keycode file is included with Basilisk II.
618    
619     fbdevicefile <fbdevices file path>
620    
621     This option specifies the file that contains frame buffer device
622     specifications for the fbdev-DGA video mode (when Basilisk II was
623     configured with --enable-fbdev-dga). The default location of the file
624     is /usr/local/share/BasiliskII/fbdevices. A sample file is included
625     with Basilisk II.
626 cebix 1.12
627     mousewheelmode <mode>
628    
629     If you have a mouse with a wheel, this option specifies whether moving
630     the wheel will be reported to the MacOS as "Page up/down" (mode 0) or
631     "Cursor up/down" (mode 1) keys.
632    
633     mousewheellines <number of lines>
634    
635     If "mousewheelmode" is set to mode 1 (Cursor up/down), this option sets
636     the number of key events sent to MacOS for each wheel movement (the
637     number of lines to scroll).
638 cebix 1.1
639 gbeauche 1.26 ignoresegv <"true" or "false">
640    
641     Set this to "true" to ignore illegal memory accesses. The default
642     is "false". This feature is only implemented on the following
643 gbeauche 1.30 platforms: Linux/x86, Linux/ppc, Darwin/ppc.
644 cebix 1.31
645     dsp <device name>
646     mixer <device name>
647    
648     Under Linux and FreeBSD, this specifies the devices to be used for sound
649     output and volume control, respectively. The defaults are "/dev/dsp" and
650     "/dev/mixer".
651 gbeauche 1.26
652 cebix 1.1 AmigaOS:
653    
654     sound <sound output description>
655    
656     This item specifies what method to use for sound output. The only choice
657     is currently AHI, but you can specify the AHI mode ID to be used. The
658     "sound output description" looks like this:
659    
660     ahi/<hexadecimal mode ID>
661    
662 cebix 1.20 scsimemtype <type>
663    
664     This item controls the type of memory to use for SCSI buffers. Possible
665     values are:
666     0 Chip memory
667     1 24-bit DMA capable memory
668     2 Any memory
669    
670     Be warned that many SCSI host adapters will not work with the "Any memory"
671     setting. Basilisk II has no way of knowing which memory type is supported
672     by the host adapter and setting an unsupported type will result in data
673     corruption.
674    
675 cebix 1.1 Windows:
676    
677     noscsi <"true" or "false">
678    
679     Completely disables SCSI Manager support when set to "true".
680     Note that currently all SCSI operations are executed synchronously,
681     even if Mac application has requested asynchronous operation. What this
682     means is that the control is not returned to the application until the
683     command is completely finished. Normally this is not an issue, but when a
684     CDR/CDRW is closed or erased the burner program typically wants to wait in
685 cebix 1.23 some progress dialog the result may be that the application reports a
686 cebix 1.1 time-out error, but the operation completes all right anyway.
687    
688     nofloppyboot <"true" or "false">
689    
690     Set this to "true" to disable booting from a floppy.
691    
692     replacescsi <"Vendor1"> <"Model1"> <"Vendor2"> <"Model2">
693    
694     This command tricks the Mac to believe that you have a SCSI device Model2
695     from vendor Vendor2, although your real hardware is Model1 from Vendor1.
696     This is very useful since many devices have almost identical ATAPI and SCSI
697     versions of their hardware, and MacOS applications usually support the SCSI
698     version only. The example below is typical:
699 cebix 1.23
700 cebix 1.1 replacescsi "HP" "CD-Writer+ 7100" "PHILIPS" "CDD3600"
701 cebix 1.23
702 cebix 1.1 Note the use of quotes.
703    
704 cebix 1.5 rightmouse <0/1>
705 cebix 1.1
706 cebix 1.5 Defines what the right mouse button is used for. The default values of 0
707     means that it is used to move windowed mode BasiliskII screen.
708     Value 1 sends a combination Control and mouse click to the MacOS.
709     This may be useful under OS versions 8 and above.
710 cebix 1.1
711 cebix 1.5 keyboardfile <path>
712    
713     Defines the path of the customized keyboard code file.
714    
715     pollmedia <"true" or "false">
716    
717     If true (default), tries to automatically detect new media.
718     Applies to all "floppy", "cd" or "disk" removable media except
719     1.44 MB floppies. May cause modest slow down. If unchecked,
720     use Ctrl-Shift-F11 to manually mount new media.
721     If you have auto-insert notification (AIN) enabled, you may turn this
722     option off. Note that some CD related software require AIN,
723     and some other need it to be turned off. Consult the documentation
724     of your CD software to learn which one is optimal for you.
725    
726 cebix 1.23 framesleepticks <milliseconds>
727 cebix 1.5
728     The amount of time between video frames.
729    
730     showfps <true/false>
731    
732     If true, the real frame rate is displayed.
733    
734     stickymenu <true/false>
735    
736 cebix 1.23 If true, the main menu bar is kept open even after the mouse button is
737     released, under all OS versions (OS 8 has this feature already). There
738     are extensions to do the same thing, but it's faster to handle this in
739     native code. Default is "true".
740 cebix 1.1
741     ntdx5hack <"true" or "false">
742    
743 cebix 1.23 You may need this on NT if your display adapter driver has a bug in
744     DirectX palette support. Black and white are reversed. It fixes the
745     palette issue by using GDI palette instead of D3D palette. Default is
746     false.
747 cebix 1.1
748    
749 gbeauche 1.32 JIT-specific configuration
750     --------------------------
751    
752     A Just-In-Time (JIT) translation engine is available for x86. This is
753     aimed at translating 68040 instructions to native equivalent code
754     sequences, thus providing faster emulation speeds.
755    
756     jit <"true" or "false">
757    
758     Set this to "true" to enable the JIT compiler. Default value is
759     "true" if the JIT compiler was compiled in. Besides, this is
760     effective only if Basilisk II is configured to emulate a 68040.
761    
762     jitfpu <"true" or "false">
763    
764     Set this to "true" to enable translation of floating-point (FPU)
765     instructions. Default is "true".
766    
767     jitcachesize <size>
768    
769     Allocate "size" kilobytes of RAM for the translation cache. The
770     value given will be rounded down to the nearest multiple of a page
771     size. Minimal value is "2048" (2MB). Default value is "8192" (8MB).
772    
773     jitlazyflush <"true" or "false">
774    
775     Set this to "true" to enable lazy invalidation of the translation
776     cache. This is always recommended as it usually makes the system
777     more responsive and faster, especially while running MacOS
778     8.X. Default value is "true".
779    
780     jitdebug <"true" or "false">
781    
782     Set this to "true" to enable the JIT debugger. This requires a
783     build of Basilisk II with the cxmon debugger. Default is "false".
784    
785    
786 cebix 1.1 Usage
787     -----
788    
789     Quitting:
790     The right way to quit Basilisk II is to select the "Shut Down" menu item
791     from the Finder's "Special" menu. You should not kill it from the shell
792     unless it hangs. Under Unix, pressing "Esc" while holding the Ctrl key will
793     also quit Basilisk II (in case you are using it in DGA mode and it crashed).
794     Under Windows, try Alt-F4 (or Control-Alt-Del to log off and back on again
795     if it crashes really badly).
796    
797     Suspending:
798     The Unix version of Basilisk II can be suspended while running in DGA mode
799     by pressing "Tab" while holding the Ctrl key. Pressing "Space" in the
800     "suspended" window will resume the emulation. Under BeOS, switching to
801     a different Workspace when BasiliskII is in full-screen mode will also
802     suspend the emulation.
803    
804     Keyboard:
805     On PC-style keyboards, "Alt" is the Mac "Command" key, while the "Windows"
806     key is the Mac "Option" key.
807    
808 cebix 1.21 Mouse:
809 cebix 1.23 Under Unix, pressing Ctrl-F5 while the Basilisk II window is active will
810     grab the mouse. This is needed for compatibility with some MacOS programs,
811     especially games such as flight simulators. Press Ctrl-F5 again to return
812     to normal mouse operation.
813 cebix 1.21
814 cebix 1.1 Floppy:
815     Basilisk II can only handle 1.44MB MFM floppies. Depending on your platform,
816 cebix 1.21 floppy disk changes might not be detected automatically. Under Unix, press
817 cebix 1.1 Ctrl-F1 to mount a floppy. Under BeOS, select the appropriate "Mount" menu
818     item or press Ctrl-F1 to mount a floppy. Under Windows, press Ctrl-Shift-F11.
819    
820     HFS partitions:
821     Having HFS partitions mounted for read-write access under Basilisk II while
822     they are also mounted on the host OS will most likely result in volume
823 cebix 1.23 corruption and data loss. Unmount your HFS volumes before starting
824 cebix 1.1 Basilisk II.
825    
826     ZIP drives:
827     Iomega ZIP disks can be mounted either with the "disk" prefs item or (on
828     platforms that support the SCSI Manager emulation of Basilisk II) by
829     installing the IomegaWare on the Mac side. Do not use both ways
830     simultaneously!
831    
832     Hardfiles:
833     In addition to plain images of HFS volumes, Basilisk II can also handle
834     some types of Mac "disk image" files, as long as they are uncompressed
835     and unencoded.
836    
837     Mac Classic emulation:
838     Sound output and Ethernet are not supported if you are using a Mac Classic
839     ROM. Also, the video display is fixed to 512x342 in monochrome. The AmigaOS
840     and BeOS/PPC versions of Basilisk II cannot do Mac Classic emulation.
841    
842 cebix 1.23 Video resolution switching:
843     Run-time switching of video resolutions requires the Display Manager. This
844     is included in MacOS versions 7.6 and above, and available as a system
845     extension for earlier MacOS versions as a free download from ftp.apple.com
846     (look for "Display Software 2.x"). Click on "Options..." in the "Monitors"
847     control panel to select the resolution.
848    
849 cebix 1.1 Sound output:
850     Sound output under Basilisk II requires Sound Manager 3.0 or later. This
851 cebix 1.23 is included in MacOS versions 7.5 and above, and available as a system
852     extension for earlier MacOS versions as a free download from ftp.apple.com.
853     Sample rate, bit resolution and mono/stereo can be selected in the Sound
854     control panel (section "Sound Out").
855 cebix 1.1
856     Ethernet:
857     Basilisk II supports all Ethernet protocols. Running a protocol under
858     Basilisk II that already runs within the host operating system on the same
859     network card (e.g. running MacTCP under Basilisk II on a BeOS machine) may
860     or may not work (generally, it should work, but some specific things like
861 cebix 1.23 "ping" may not). If you have problems with FTP, try setting the FTP client
862 cebix 1.1 to passive mode.
863    
864     LocalTalk:
865     LocalTalk is not supported by Basilisk II. There is no way of getting
866     LocalTalk to work with the serial drivers of Basilisk II. Any attempt to
867     activate LocalTalk will either result in a crash or revert to Ethernet.
868    
869     Serial:
870     You can use the serial ports in Basilisk II to connect to the Internet
871 cebix 1.23 with a modem and the "MacPPP" or "Open Transport/PPP" software.
872 cebix 1.1
873    
874     Technical Documentation
875     -----------------------
876    
877     Please see the included file "TECH" for a technical overview of the emulator.
878    
879    
880     Acknowledgements
881     ----------------
882    
883 cebix 1.13 Contributions by (in alphabetical order):
884     - Orlando Bassotto <future@powercube.mediabit.net>: FreeBSD support
885 cebix 1.23 - Gwenolé Beauchesne <gb@dial.oleane.com>: SPARC assembly optimizations,
886 gbeauche 1.32 lots of work on the Unix video code, fixes and improvements to the
887     JIT compiler
888 cebix 1.13 - Marc Chabanas <Marc.Chabanas@france.sun.com>: Solaris sound support
889 cebix 1.1 - Marc Hellwig <Marc.Hellwig@uni-mainz.de>: audio output, BeOS video code
890     and networking
891     - Bill Huey <billh@mag.ucsd.edu>: 15/16 bit DGA and 15/16/32 bit X11
892     window support
893 cebix 1.13 - Brian J. Johnson <bjohnson@sgi.com>: IRIX support
894     - Jürgen Lachmann <juergen_lachmann@t-online.de>: AmigaOS CyberGraphX support
895     - Samuel Lander <blair_sp@hotmail.com>: tile-based window refresh code
896 cebix 1.1 - David Lawrence <davidl@jlab.org>: incremental window refresh code
897 gbeauche 1.33 - Bernie Meyer <bmeyer@csse.monash.edu.au>: original UAE-JIT code
898 nigel 1.25 - Nigel Pearson <nigel@ind.tansu.com.au>: Mac OS X port
899 cebix 1.13 - Lauri Pesonen <lpesonen@nic.fi>: Windows NT port
900     - Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>: UAE 68k emulation
901 gbeauche 1.36 - Michael Z. Sliczniak <msliczniak@comcast.net>: Mach memory fault recovery
902 cebix 1.6 - and others...
903 cebix 1.1
904     Special thanks to:
905     - Bernd Schmidt for letting me use his UAE 68k emulation
906     - Daniel Bobbert who printed dozens of pages from the THINK Reference for
907     me years ago
908     - All ShapeShifter and SheepShaver users and beta testers
909     - Apple Computer Inc., who made writing a Macintosh emulator a child's play
910    
911    
912     Bug reports
913     -----------
914    
915     You found a bug? Well, use the source, fix it and send the fix to
916     <Christian.Bauer@uni-mainz.de>
917     for inclusion in the next release of Basilisk II.
918    
919 cebix 1.23 If you don't have a fix, you should post a bug report using the Source Forge
920     bug tracker, supplying as much information as possible (operating system and
921     versions of Basilisk II and MacOS being used, relevant hardware information,
922     the exact steps to reproduce the bug, etc.):
923     http://sourceforge.net/tracker/?group_id=2123&atid=102123
924    
925 cebix 1.24 I also strongly suggest reading this before posting a bug report:
926     http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
927    
928 cebix 1.1
929     Author
930     ------
931    
932 cebix 1.24 You can contact me at <Christian.Bauer@uni-mainz.de>, but please don't do
933     so unless absolutely necessary. I'm maintaining Basilisk II in my spare
934     time and am not able to provide technical support for everyone. If you have
935     questions, consider posting them to one of the support forums mentioned
936     below.
937    
938     You are encouraged to contact me personally when
939     - you have bug fixes or small enhancements for the code
940     - you want to port Basilisk II to another platform
941     - you want to discuss technical issues
942     - you intend to make major changes to the source; you might be working on
943     something that I have already done, or I may have different ideas about
944     the Right Way to do it
945    
946     There is no point in sending me questions about
947     - ROM files and how/where to get them
948     - versions of Basilisk II that run on operating systems other than Unix,
949     BeOS and AmigaOS. If you are using any other operating system, there's
950     no point in asking me how to to X or why Y doesn't work because I won't
951     know either. Instead, you should look in the "Acknowledgements" section
952     of this manual to find the person responsible. For example, if your
953     question is specific to the Windows operating system, ask Lauri Pesonen.
954     I don't have Windows and can't answer your questions and I'm too lazy to
955     forward mail to Lauri myself. In any case, it would probably be better
956     to post your questions to a public forum as it will get a much wider
957     audience there.
958 cebix 1.1
959    
960     Support
961     -------
962    
963     The official Basilisk II home page is at
964     http://www.uni-mainz.de/~bauec002/B2Main.html
965    
966 cebix 1.23 The Basilisk II project page on SourceForge is at
967     http://sourceforge.net/projects/basilisk/
968    
969     If you have problems, you may want to visit the Basilisk II forums:
970     http://sourceforge.net/forum/?group_id=2123
971    
972     There is also a mailing list for Basilisk II users:
973     http://lists.sourceforge.net/lists/listinfo/basilisk-user
974    
975     And another mailing list for Basilisk II developers:
976     http://lists.sourceforge.net/lists/listinfo/basilisk-devel
977 cebix 1.24
978     Some general advice about asking technical support questions can be found at
979     http://www.tuxedo.org/~esr/faqs/smart-questions.html
980    
981     Keeping this in mind will greatly increase your chances of getting a useful
982     answer.
983 cebix 1.1
984    
985     History
986     -------
987    
988 cebix 1.2 Please consult the file "ChangeLog" for the release history.
989 cebix 1.1
990    
991     Christian Bauer
992     <Christian.Bauer@uni-mainz.de>