hn.today

Linux/4004

dmitry.gr5 points0 comments
Screenshot of Linux/4004

Linux/4004 is an engineering project to run a genuine Linux kernel and Debian root filesystem on a physical Intel 4004, the 4-bit processor introduced in 1971 and widely regarded as the first commercial microprocessor. The project aims to push Linux onto an even more primitive machine than earlier experiments using 8-bit processors. Because the 4004 cannot run Linux instructions directly, it emulates a MIPS processor in software; the Linux system runs on that emulated machine. The account explains the 4004’s unusual design and constraints, including its tiny instruction set, 4-bit data operations, shallow hardware stack, lack of interrupts, and strict clock requirements.

Making the demonstration work required a custom board and extensive optimization. The system adds external memory and storage, including SPI-connected PSRAM and an SD card, while ROM banking provides room for the emulator and supporting code. The 4004 handles instruction emulation and Linux execution; specialized “hypercalls” and hardware interfaces help bridge the emulated system to the board’s resources. The build also incorporates a display, serial connection, and indicator lights, with detailed discussion of debugging, performance tuning, memory translation, and hardware trade-offs. The result is deliberately slow, but it is not a simulation on a modern host: a real 1970s 4004 is the board’s only CPU, and it boots a real Linux kernel with a Debian filesystem.

Read on dmitry.gr0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.