32MB RAM expansion
By replacing the Dreamcast's two 8MB SDRAM chips with larger SDRAM chips, modifying the pin arrangement, and modifying the BIOS, it is possible to install 32MB of system RAM in the Dreamcast.
Installation
It is necessary to replace the stock read-only boot ROM with a writeable flash ROM, as without patching the BIOS to address the modified memory arrangement, the system will not boot with RAM in a 32MB configuration.
The mod has only been tested so far using IS42S32800J-6TL
replacement chips. These are readily available online, e.g. at Mouser or DigiKey.
tsowell's blog contains instructions on completing the RAM upgrade.
BIOS Flasher
A DreamShell image with 32MB-patched BIOS images is available. This image contains a variety of nearly 50 BIOS images including the stock BIOS, japanese-cake BIOS, DreamBoot BIOS, and DreamShell BIOS, in a variety of flavors for each. This image also contains an updated bflash.klf module to support flashing MX29L3211 32 megabit chips to accommodate multi-BIOS mods.
- We are not responsible for damage to Dreamcast units due to the use of this disc. Know what you are doing before you use this disc! You may render your system unbootable!
- Download DreamShell 32MB BIOS Flasher Image
Incompatibility issues
Existing games and applications predating this RAM expansion modification will not be able to take advantage of the additional memory. Adoption of the mod is not yet widespread, so additional testing is needed. At this time, the major incompatibility issue is Sofdec video playback in commercial games. These games will fail to play FMV, often hanging or crashing as a result. More research is needed to determine if this issue can be fixed in patches. Games that don't use Sofdec video appear to work without problem, even including other types of video like the 4XM video used in Headhunter.
Applications
lxdream Dreamcast Emulator
A fork of lxdream-nitro by cepawiel exists which can be built to support 32MB expansion.
git clone -b big_ram https://gitlab.com/cepawiel/lxdream-nitro.git cd lxdream-nitro meson setup builddir -DMOD_32MB_RAM=true meson compile -C builddir ./builddir/lxdream-nitro -h
KallistiOS
A fork of KallistiOS exists which supports 32MB expansion, with an aim to be merged into the main repository soon. To build it, build both the toolchain and KallistiOS using the instructions here, but clone the git repository using this command instead:
git clone -b amx3-32mb https://github.com/darcagn/KallistiOS.git kos
If you already have an existing toolchain built, you must rebuild it to support 32MB expansion.
Applications built will function on 16MB or 32MB systems, but the programmer can support features with heavier memory use on 32MB systems. The following code block provides a primer on the use:
/* HW_MEM_16 and HW_MEM_32 macros define the memory sizes KallistiOS supports */
printf("KallistiOS supports systems with %d or %d kilobytes of memory installed.\n", HW_MEM_16, HW_MEM_32);
/* The hardware_memsize() function can be called to retrieve the running system's size */
printf("hardware_memsize() reports this system has %d kilobytes.\n", hardware_memsize());
printf("This is a %s console!\n", (hardware_memsize() == HW_MEM_32 ? "32MB" : "16MB" ));
/* The DBL_RAM boolean macro is provided as a fast way to determine if the extra RAM is available */
printf("Does the system have double RAM? %s\n", (DBL_RAM ? "Yes!" : "No..."));
/* mm_top() can be used to get the top address of memory */
printf("Top of memory is 0x%0x!\n", mm_top());
/* 0x8e000000 if 32MB, 0x8d000000 if 16MB */
NetBSD Support
NetBSD can be easily modified to support the 32MB expansion by modifying the sys/arch/dreamcast/conf/std.dreamcast
file and rebuilding.
Replace
options IOM_RAM_SIZE=0x01000000 # 16MB
with
options IOM_RAM_SIZE=0x02000000 # 32MB
and rebuild the kernel.
ScummVM
tsowell has written a fork of ScummVM with extra functionality which is able to play larger games on consoles with 32MB expansion. This version of ScummVM also offers an extensive array of other expansion hardware features, such as compatibility for loading/saving data with SD cards and hard drives, the ability to output MIDI over serial or the expansion slot for external synthesizers, and the ability to output various VGA modes for CRT monitors.
memtest
A memory testing utility supporting 16MB and 32MB Dreamcasts has been written by tsowell. File:Memtest.tar.gz
Game mods
A few game mods by yzb exist to increase performance:
- The King of Fighters '98
- King of Fighters XI (Atomiswave conversion)
- Knights of Valour The Seven Spirits (Atomiswave conversion)
- Super Street Fighter II X