A 386 PC for Your RP2350
FRANK 386 是为 Raspberry Pi Pico 2(或 RP2350 微控制器)量身打造的高性能 i386 PC 模拟器,基于 Tiny386 的移植,能在当代小型硬件上完整运行传统软件。它支持完整的 i386 以及部分 i486/i586 CPU 模拟,可选 x87 FPU,并在使用 PSRAM 时将内存扩展至最多 8MB 。输出方式可选 VGA 或 HDMI,音频支持全面,包括 Sound Blaster 16 、 AdLib 和 PC Speaker 。
该模拟器面向复古计算爱好者,能够启动 DOS 、 Linux,甚至 Windows 95 。用户可通过 SD 卡管理软件,支持软盘、硬盘与 CD-ROM 镜像。系统内置运行时磁盘管理器,可在无需重启的情况下热插拔镜像;设置菜单则允许实时调整模拟器配置,例如内存大小、音频设备以及鼠标模拟模式。
FRANK 386 的固件开发针对多款基于 RP2350 的开发板进行了适配,包括 Murmulator 、 Olimex PICO-PC 和 Waveshare RP2350-PiZero,并提供灵活的 GPIO 布局,便于连接常见外设如 PS/2 或 USB 键盘、鼠标以及 NES 手柄等。构建流程记录详尽,基于 Raspberry Pi Pico SDK,提供简便脚本,可按需设定 CPU 频率和板卡兼容性来编译固件。
该项目整合了多项开源基础(如用于外设模拟的 QEMU 、提供基本 I/O 的 SeaBIOS 以及用于存储访问的 FatFs),将各类技术要素融合成一个易于使用的整体。官方构建说明和磁盘镜像管理工具等详尽资源可供参考,帮助用户搭建并调试自己的复古计算站。
FRANK 386 is a robust i386 PC emulator specifically designed for the Raspberry Pi Pico 2, or the RP2350 microcontroller. This project, which is a port of the original Tiny386, provides a complete environment for running legacy software on modern hardware. It supports essential PC features such as full i386 and partial i486/i586 CPU emulation, optional x87 FPU, and up to 8MB of memory when utilizing PSRAM. The platform is highly versatile, offering output through VGA or HDMI and providing extensive audio support, including Sound Blaster 16, AdLib, and PC Speaker capabilities.
The emulator is designed to be highly functional for retro-computing enthusiasts, allowing for the booting of operating systems like DOS, Linux, and even Windows 95. Users can manage their software through an SD card, which supports floppy, hard disk, and CD-ROM images. To improve the user experience, the system includes a runtime disk manager for hot-swapping images without needing a reboot and a settings menu for adjusting emulator configurations on the fly. These tools allow for quick changes to memory size, audio devices, and even mouse emulation modes.
Development of the FRANK 386 firmware is tailored for several specific RP2350-based boards, including the Murmulator, Olimex PICO-PC, and Waveshare RP2350-PiZero. The project provides flexible GPIO layouts for these different hardware variants, ensuring that common peripherals such as PS/2 or USB keyboards, mice, and NES gamepads can be connected and used easily. The build process is documented thoroughly, utilizing the Raspberry Pi Pico SDK and providing simple scripts to compile the firmware with custom options for CPU speed and board compatibility.
Ultimately, FRANK 386 represents a collaborative effort to bring classic computing experiences to contemporary, compact microcontrollers. By drawing on a wide variety of open-source foundations—such as QEMU for peripheral emulation, SeaBIOS for basic input/output services, and the FatFs module for storage access—the project successfully synthesizes various technical elements into a cohesive, user-friendly package. Detailed resources, including official build instructions and a repository of disk image management tools, are available to help users set up and troubleshoot their own dedicated retro-computing stations.
49 comments • Comments Link
RP2350 微控制器能够模拟带有 VGA 和 SoundBlaster 的 386 PC 等传统系统,这凸显了现代灵活 I/O 与 PIO (Programmable I/O) 在低成本硬件上的强大能力。尽管 RP2350 不具备无线功能或深度睡眠优化,其支持者认为,与 STM32 或 ESP32 等芯片上那种复杂且僵化的引脚多路复用相比,PIO 模块和灵活的引脚配置能大幅简化电路板设计。
在现代硬件上模拟传统架构面临一个关键障碍:CPU 性能已不再像 Dennard 时代那样呈指数级增长,因此对相对现代的硬件做全系统模拟变得越来越费力。 RP2350 提供安全引导和加密引导等安全特性,这在 Capture The Flag (CTF) 等场景中非常有价值,因为防止对闪存的未授权访问至关重要。
关于在 386 硬件上运行 Windows 95 的可行性存在争议:虽然在极少内存条件下技术上可行,但历史经验表明,这种使用体验常因严重的性能瓶颈和频繁的磁盘交换而大打折扣。关于 Slackware 安装的历史轶事则强调了早期计算的物理性:成堆的软盘以及从零开始手工构建系统的缓慢过程,反映了那一时期的操作复杂性。
现代虚拟化在宿主架构兼容的前提下,为运行传统 x86 软件提供了无需全系统模拟的高效替代方案。通过 RP2350 实现硬件级的传统接口支持仍受限于缺乏对 ISA 总线或 RS232 端口的原生模拟,尽管在时间约束可控的情况下,该芯片的 GPIO 功能理论上允许定制硬件接口。基于软件的 MMU 模拟则使得即使在缺乏专用内存管理单元的 MCU 上也能运行复杂操作系统,从而为运行各种历史操作系统打开了可能性。
这场讨论既流露出对 386 PC 时代的怀旧,也体现出对 RP2350 等现代微控制器技术实力的赞赏。围绕 RP2350 是被视为硬件设计的革命性工具,还是相对于更成熟竞争对手被高估或仅属利基组件,存在明显分歧;但无论立场如何,参与者都对弥合传统计算环境与当今廉价高性能硅片之间的差距抱有共同兴趣。 • The RP2350 microcontroller is capable of emulating legacy systems like a 386 PC with VGA and SoundBlaster, a feat that highlights the power of modern flexible I/O and PIO (Programmable I/O) features in low-cost hardware.
• While the RP2350 lacks wireless and deep sleep optimization, its proponents argue that the PIO blocks and flexible pin configuration drastically simplify board design compared to the complex, rigid pin multiplexing found on STM32 or ESP32 chips.
• Emulating legacy architectures on modern hardware faces a significant hurdle: CPU performance is no longer scaling at the exponential rates seen in the Dennard era, making full-system emulation of relatively modern hardware increasingly demanding.
• The RP2350 includes security features like secure and encrypted boot, which are valuable for specific use cases like Capture The Flag (CTF) challenges where preventing unauthorized flash memory access is a priority.
• There is a debate regarding the viability of running Windows 95 on 386 hardware; while technically possible on minimal RAM, the experience was historically marred by severe performance bottlenecks and constant disk swapping.
• Historical anecdotes about Slackware installation emphasize the physical nature of early computing, involving stacks of floppy disks and the slow, manual process of building a system from scratch.
• Modern virtualization provides an effective alternative for running legacy x86 software without requiring full-system emulation, provided the host architecture remains compatible.
• Potential for hardware-level legacy support via the RP2350 remains limited by the lack of ISA bus or RS232 port emulation, though the chip's GPIO capabilities theoretically allow for custom hardware interfaces if timing constraints are managed.
• Software-based MMU emulation allows for complex OS execution even on MCUs that lack a dedicated memory management unit, opening the door for running various historical operating systems.
The discussion reflects a blend of nostalgia for the era of 386 PCs and genuine technical appreciation for the capabilities of modern microcontrollers like the RP2350. There is a clear divide between those who view the RP2350 as a revolutionary tool for hardware design and those who see it as an overrated or niche component compared to more established players. Despite these differing views, participants share a common interest in the challenge of bridging the gap between legacy computing environments and today's affordable, high-performance silicon.