[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109225":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":12,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":15,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":8,"pushedAt":20,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":13,"starSnapshotCount":13,"syncStatus":11,"lastSyncTime":24,"discoverSource":25},109225,"Pi-DOS","rtomasa\u002FPi-DOS","rtomasa",null,"Python",76,2,1,0,6,36.03,false,"main",true,[],"2026-11-14 11:25:12","2026-11-14 18:40:44","# Pi-DOS\n\nTurn a Raspberry Pi into a dedicated DOS computer.\n\nPi-DOS boots straight to a DOS-compatible command prompt, ready for games,\napplications, programming tools and demoscene productions. It combines the\nDOSBox-X emulation engine with a small Linux system built specifically for the\nRaspberry Pi. You work in DOS from startup to shutdown.\n\n**Current system version: 1.1.**\n\n**Development status:** basic boot and input have been confirmed on Pi 3, Pi 4\nand Pi 5. The shared image targets more boards, but those still need hardware\ntesting. Peripheral and application compatibility varies; see\n[what has been verified](docs\u002Fpi-dos-user-guide\u002Fpi-dos-user-guide.md#appendix-e-compatibility-and-verification-notes).\n\n## Connect real hardware\n\nUse a physical CRT monitor, insert a floppy disk or install a DOS program from\nan actual CD. Pi-DOS connects these peripherals to the emulated DOS computer:\n\n| Hardware | What you can do |\n| --- | --- |\n| **VGA CRT through an HDMI-to-VGA DAC** | Connect the Pi's HDMI output to a real VGA CRT using a suitable active digital-to-analogue adapter. CRT mode follows DOS display modes and refresh rates, including VGA text near 70 Hz. The monitor and DAC must accept the selected timings. |\n| **GPIO VGA666 adapter** | Enable VGA666 in PIDOSCFG's System tab, Accept and cleanly reboot. Uses model-specific KMS graphics support, including Pi 5 RP1. See [setup and hardware limits](docs\u002Fvga666.md). |\n| **External USB floppy drive** | Access physical disks as A:, copy files, write to supported writable media and format supported disks. Capacity and format support depend on the drive. |\n| **External USB CD\u002FDVD drive** | Access data CDs as D:, run DOS installers and change physical discs without manual mounting. The optical integration targets CDs, including when using DVD-drive hardware. |\n| **CD audio** | Play audio tracks from physical CDs in compatible USB optical drives and from supported disc images. Audio is extracted digitally into the Pi-DOS mixer and sent to the selected HDMI, analogue or USB audio output. Physical-disc and image audio have separate volume controls. |\n\nThe CRT appearance comes from the monitor itself. You can also use an LCD with\na fixed output resolution, aspect controls and optional smoothing. USB sticks,\nexternal disks, mice, gamepads and external MIDI interfaces are supported too.\n\nUSB floppy copying and formatting have been confirmed with specific drives.\nPhysical optical-drive, mixed-mode and CD-audio compatibility still need\nvalidation with individual drives and discs; see the\n[media guide](docs\u002Fpi-dos-user-guide\u002Fpi-dos-user-guide.md#chapter-8-using-disks-and-removable-media).\n\n## The idea\n\nPi-DOS is for people who want to sit down at a DOS machine: type commands,\ninstall software, tune the hardware settings and run a program. The prompt is\nthe starting point, and your files and configuration stay on the card.\n\nLinux handles the Raspberry Pi hardware behind the scenes. There is no desktop,\nlogin screen or Linux shell in the image. Configuration happens through a DOS\nsetup utility and ordinary text files. The aim is a focused, self-contained\ncomputer that remains useful offline.\n\nCompatibility comes from emulating a PC. Pi-DOS supplies its own DOS-compatible\nenvironment through DOSBox-X; it does not require an MS-DOS installation.\nCPU speed, memory, video and sound can be adjusted to suit different eras of\nsoftware. Those settings describe the emulated computer, and performance depends\non the Pi and the program.\n\n## What you can do\n\n- **Run DOS software.** Use familiar commands, COM and EXE programs, BAT scripts,\n  real- and protected-mode applications, and DOS extenders. Windows 3.x can also\n  run with your own installation media and the bundled driver package. An optional native\n  Windows configuration applet manages display modes, installs supported sound\n  drivers and provides live volume controls.\n- **Choose the PC hardware.** Select CPU profiles from 286 through Pentium,\n  configure DOS memory, and choose video adapters from CGA and Hercules through\n  VGA and SVGA\u002FVESA. An ARM64 dynamic recompiler speeds up x86 execution.\n- **Use a CRT or LCD.** CRT mode follows DOS resolutions and refresh rates for\n  suitable displays and adapters. LCD mode uses a fixed resolution with 4:3 or\n  original-pixel aspect, optional smoothing and an optional CPU\u002Ftemperature\n  overlay. CRT mode is intended for a physical CRT; it does not add scanline effects.\n- **Set up classic sound and music.** PC speaker, AdLib, Sound Blaster and Gravis\n  UltraSound are available. MIDI options include SoundFont synthesis, Munt-based\n  MT-32\u002FCM-32L emulation and external USB MIDI. SC-55 and Roland GM SoundFonts\n  and MT-32\u002FCM-32L ROMs are included; some patches must be supplied separately.\n  Audio can use HDMI, a supported Pi's analogue jack or a USB DAC.\n- **Keep and move your files.** C: is persistent FAT32 storage, accessible from\n  another computer. Pi-DOS also manages USB data volumes, floppy and optical\n  drives. Mount disk\u002FCD images or run from a ZIP with saves kept in a separate\n  folder beside the archive. Supported CD images can also provide CD audio.\n- **Configure everything from DOS.** `PIDOSCFG` covers CPU, memory, video, sound,\n  mixer, input, networking and system settings, including XMS\u002FEMS switches.\n  USB controllers, screenshots and\n  shortcuts for switching multi-disc image sets are supported. `EDIT` opens the\n  editor; `DZ` opens Doszip Commander. `DEMOS` and `BENCH` launch the included\n  demoscene and benchmark menus.\n- **Connect older software.** Optional networking provides IPX-over-UDP\n  multiplayer and an emulated NE2000 adapter with NAT or direct wired LAN\n  access. mTCP tools are included. Networking starts disabled; Windows for\n  Workgroups file sharing requires additional software and compatible peers.\n\nThese features are implemented to different levels of hardware validation.\nThe [user guide](docs\u002Fpi-dos-user-guide\u002Fpi-dos-user-guide.md) covers their setup\nand limitations.\n\n## System requirements\n\nYou need a Raspberry Pi with a **64-bit Arm processor**, a suitable power supply,\na system card, an HDMI display or suitable adapter, and a wired USB keyboard.\nA USB mouse is useful for applications that support one.\n\n| Board family | Targets of the shared ARM64 image |\n| --- | --- |\n| Pi 2 \u002F Pi 3 | Pi 2B revision 1.2; Pi 3B, 3B+ and 3A+ |\n| Zero | Zero 2 W |\n| Pi 4 | Pi 4B and Pi 400 |\n| Pi 5 | Pi 5, Pi 500 and Pi 500+ |\n| Compute Modules | CM0, CM3\u002F3+, CM4\u002F4S and CM5\u002FLite, with suitable carrier and boot hardware |\n\nPi 1, the original Zero\u002FZero W and Pi 2B revision 1.1 cannot run this image.\nZero 2 W and Compute Modules need suitable USB host adapters or carrier hardware.\nThe board list describes build targets; confirmed basic boot\u002Finput currently\ncovers Pi 3, Pi 4 with corrected firmware, and Pi 5.\n\nChoose a card larger than the generated image, with enough extra space for your\nsoftware and disk images. The `PI-DOS` data partition is designed to expand into\nremaining card space on first boot. There is no separately established minimum\nphysical RAM figure; the default **16 MiB of emulated DOS memory** is separate\nfrom the Pi's own RAM.\n\nFor a VGA CRT, use a suitable HDMI-to-VGA DAC and a monitor that accepts the\nconfigured timings. External USB floppy and CD\u002FDVD drives are optional; their\npower needs may require a powered USB hub.\n\nWired Ethernet is optional, for networking and automatic time synchronization.\nWi-Fi and Bluetooth are not configured. Display output uses HDMI or optional VGA666; DSI and\ncomposite displays are outside its current scope. CRT operation requires a\nmonitor and adapter that accept the selected timings.\n\n## Build the SD-card image\n\n### 1. Prepare a Linux build host\n\nBuild as an ordinary user, from the repository root. You need **Python 3.12 or\nnewer**, a C\u002FC++ compiler, GNU Make, Bash and the usual Buildroot host tools.\n`bsdtar` is also required to extract the bundled benchmark assets.\n\nOn Debian\u002FUbuntu, the host packages include:\n\n```sh\nsudo apt-get update\nsudo apt-get install build-essential bash bc bison bzip2 ca-certificates \\\n  cpio file flex git libarchive-tools libncurses-dev libssl-dev patch perl \\\n  pkg-config python3 python3-venv rsync unzip wget xz-utils\npython3 --version\n```\n\nCheck that the reported Python version is at least 3.12; older distributions may\nneed a newer Python installation available as `python3`. Buildroot checks its\nremaining host dependencies when the build starts. Internet access is needed\nfor the initial source, toolchain, benchmark and demo downloads.\n\n### 2. Verify the MIDI assets\n\nThe SC-55 and Roland GM SoundFonts and all four MT-32\u002FCM-32L ROMs are included\nin Git under `assets\u002Fmidi\u002F`. No separate MIDI asset import is needed for a\nfresh clone. Verify all six files against their pinned sizes and hashes with:\n\n```sh\npython3 tools\u002Fdos\u002Fmidi-assets.py\n```\n\nThese inputs are required even if you intend to disable MIDI at runtime.\nSee [the MIDI asset guide](assets\u002Fmidi\u002FREADME.md) for the file layout and\noptional reimport instructions.\n\n### 3. Configure and build\n\nFrom the repository root:\n\n```sh\nmake image-config\nJOBS=4 make image\n```\n\n`image-config` selects the shared Raspberry Pi ARM64 configuration. The build\nfetches the pinned cross-toolchain and sources, builds the kernel and runtime,\npackages the DOS tools and assets, and checks the resulting image. You do not\nneed to install an ARM cross-compiler or a DOS compiler separately.\n\nThe SD-card image is written to:\n\n```text\noutput\u002Fbuildroot-arm64\u002Fimages\u002Fpi-dos-arm64-sdcard.img\n```\n\nThe main build log is `output\u002Flogs\u002Fbuildroot-arm64.log`; the image check report is\n`output\u002Fbuildroot-arm64\u002Fimages\u002Fpi-dos-image-validation.json`.\n\nTo resume a build after fixing a dependency or download problem, rerun\n`JOBS=4 make image`. Use a lower value, such as `JOBS=2`, if the host is short on\nmemory. Reapplying `make image-config` resets the configuration to the tracked\ndefaults, so it is not needed for an ordinary incremental build.\n\nFor boot troubleshooting, build the diagnostic variant:\n\n```sh\nJOBS=4 make image-diagnostic\n```\n\nIt produces `pi-dos-arm64-diagnostic-sdcard.img` in the same image directory,\nwith boot, runtime, network and video logs enabled under `C:\\SYSTEM`.\nSee the [image build guide](docs\u002Fbuildroot-pi5.md) for configuration details,\ncomponent builds and diagnostics.\n\n### 4. Write the card and boot\n\n1. Back up the destination card. Use an image-writing utility to write the\n   generated `.img` file to the **whole card**. Writing it replaces existing data;\n   running `make image` itself does not touch a physical card.\n2. Safely eject the card, insert it into the Pi, and connect the display and USB\n   keyboard. Use HDMI0 on dual-HDMI boards when relying on default HDMI audio.\n3. Apply power and allow the first-boot storage preparation to finish.\n4. In the welcome screen, select your keyboard, country, timezone and CRT\u002FLCD\n   profile. Press **F2** to save and reboot, then complete the keyboard and clock\n   review to reach the DOS prompt.\n\nFresh images default to a Spanish keyboard, Spain, `Europe\u002FMadrid` and CRT\noutput. Choose LCD for a flat panel and select a compatible resolution. If you\nskip setup, the saved defaults remain active. You can reopen it later with\n`PIDOSCFG \u002FFIRSTBOOT`.\n\n## Everyday use\n\nAfter a clean `POWEROFF`, move the card to another computer and copy programs\ninto the FAT32 partition labelled `PI-DOS`. Its root becomes `C:\\`:\n\n| DOS path | Purpose |\n| --- | --- |\n| `C:\\GAMES` | Games |\n| `C:\\PROGRAMS` | Applications and tools |\n| `C:\\DEMOS` | Demoscene pack |\n| `C:\\DOCS` | Manuals and your documents |\n| `C:\\SYSTEM` | Pi-DOS configuration and system files |\n| `C:\\TEMP` | Temporary files |\n\nKeep the partition's `PI-DOS` label: the system uses it to find your files.\nZ: contains the built-in utilities. USB floppy drives use A:, optical drives\nuse D:, and supported USB data volumes receive free letters starting at E:.\n`IMGMOUNT` handles disk\u002FCD images; `ZIPMOUNT` handles ZIP archives.\n\nFor CD audio, choose a physical audio output in PIDOSCFG's System page.\nUse the Mixer page's separate CD-image and USB-CD levels to adjust playback;\nan optical drive's analogue audio cable is unnecessary.\n\nType `PIDOSCFG` to change hardware and system settings, save, then use `REBOOT`\nto apply them. Advanced settings live in `C:\\SYSTEM\\PIDOS.CFG`. Put your own\nstartup commands in `C:\\AUTOEXEC.BAT`; supported DOS directives and compatible\ndrivers can use `C:\\CONFIG.SYS`. Use `POWEROFF` for a clean shutdown before\nremoving power or the card.\n\n## How the pieces fit together\n\n| Building block | Its job |\n| --- | --- |\n| **Buildroot** | Builds and packages the small Linux system, libraries, firmware and bootable image. Board-specific recipes live in `br2-external\u002F`. |\n| **Linux kernel and initramfs** | Supply the Pi's hardware drivers and an in-memory system filesystem. The kernel contains the initramfs; there is no separate Linux root partition. |\n| **Pi-DOS supervisor** | The C program in `src\u002Finit\u002F` starts as PID 1, discovers storage and devices, reads configuration, launches the DOS runtime and synchronizes storage during reboot\u002Fshutdown. |\n| **DOSBox-X-derived runtime** | Emulates the x86 CPU, PC hardware, BIOS and DOS services. Pi-DOS maintains its integration changes as a patch series in `patches\u002Fdosbox-x\u002F`. |\n| **SDL2 and hardware libraries** | Connect the runtime to Linux input, direct DRM\u002FKMS video with OpenGL ES presentation, and ALSA audio. X11, Wayland and an audio server are unnecessary. |\n| **Persistent DOS storage** | A separate FAT32 partition holds C:, configuration and user files, apart from the system loaded into memory. |\n\nAt boot, the Pi firmware loads the kernel from the `BOOT` partition. The kernel\nstarts the supervisor, which mounts the `PI-DOS` data partition and launches the\nemulator with the saved settings. DOS programs see emulated PC devices; Linux\nand SDL2 translate their display, sound and input into real Pi hardware access.\nThe supervisor remains in charge of the runtime and clean shutdown.\n\n## Documentation and development\n\n- [User guide](docs\u002Fpi-dos-user-guide\u002Fpi-dos-user-guide.md) — installation,\n  commands, configuration, storage and troubleshooting.\n- [Image build guide](docs\u002Fbuildroot-pi5.md) — image layout, diagnostics and\n  hardware integration; the filename predates the shared ARM64 image.\n- [Local release procedure](docs\u002Freleases.md) — build a fresh compressed SD\n  image, PDF guide and Windows driver ZIP, and update one GitHub release.\n- [Setup utility](src\u002Fdoscfg\u002FREADME.md) — settings, CPU profiles and rebuilding\n  `PIDOSCFG` with Open Watcom.\n- [Networking](docs\u002Fnetworking.txt), [CONFIG.SYS](docs\u002Fconfig-sys.md) and\n  [Windows 3.1](docs\u002Fwindows31.md) — detailed setup and compatibility notes.\n- [Technical reference](docs\u002Ftechnical-reference.md) — deeper architecture,\n  implementation details and recorded validation.\n\nFor runtime development on Linux, `make phase0` builds a native SDL2\u002FDOSBox-X\nbaseline without creating an SD image. Its host dependencies and checks are\ncovered in the [baseline findings](docs\u002Fphase0.md). `make help` lists the available\nbuild targets.\n\n## Licensing\n\nA project-wide license for original Pi-DOS code has not yet been selected.\nUpstream components and bundled software retain their own licenses and notices.\nGenerated images are development artifacts; public distribution still requires\ncompletion of the component and asset license review. See\n[source provenance and licensing](LICENSES\u002FREADME.md).\n","Pi-DOS 是一个将树莓派改造为专用 DOS 计算机的轻量级系统。它基于 Linux 构建，集成 DOSBox-X 模拟引擎，启动后直接进入 DOS 兼容命令行环境，支持运行 DOS 游戏、编程工具、演示程序及传统应用；原生支持 VGA CRT 显示（通过 HDMI-VGA DAC 或 GPIO VGA666）、USB 软驱\u002F光驱、CD 音频、USB 存储与外设。系统无桌面环境，配置与文件持久化存储在 SD 卡中，适用于复古计算体验、教育演示、DOS 软件测试及硬件怀旧场景。","2026-11-24 04:36:14","CREATED_QUERY"]