pwshub.com

Hacker miraculously gets an Intel 4004 to run Linux, takes about five days to boot

Serving tech enthusiasts for over 25 years.
TechSpot means tech analysis and advice you can trust.

WTF?! A well-known hacker has done the impossible. He got a stripped-down version of Linux to run on a 4-bit Intel chip from the early 1970s. Sure, it takes nearly five days for the kernel to boot, but hey, mission accomplished.

Dmitry Grinberg is reasonably well-known in the hacking community. He designed the firmware for this year's uber-cool DefCon 32 attendee badges that featured a Game Boy Advance emulator. He also managed to get Doom to run on the badge powered by Raspberry Pi's new RP 2350. DefCon infamously banned Grinberg and physically tossed him, mid-talk, from the venue because of his association with the badge's hardware designer, Entropic Engineering, which DefCon organizers were beefing with.

The hacking pro's latest project was the self-imposed challenge of getting Linux to run on an Intel 4004 from 1971. It was Intel's first commercial chip and predates Linux by two decades. It is truly an impossible task without thinking outside the box.

My latest project: booting full Linux on an intel 4004 from 1971 for fun, art, and no profit: https://t.co/t3gVrscNcb#4004in2024

– Dmitry Grinberg (@dmitrygr) September 20, 2024

The Intel 4004 was a 740 kHz 4-bit processor with only 2,600 transistors and 16 registers. Intel specifically designed the 4004 to power the Busicom 141-PF, a calculator manufactured in Japan, so its list of operations was essentially adding and subtracting. It had no logic functions. It also had about four kilobytes of RAM. So, there is no way to run Linux on the 4004 in a very literal sense. This is where Grinberg's out-of-the-box thinking and software/hardware hacking came into play.

First, he created a very basic MIPS R3000 emulator on the 4004. Former TechSpot fellow Nick Evenson notes in his PC Gamer piece that the MIPS R3000 processor hails from 1988, right about when Linus Torvalds was writing the original version of Linux.

"That particular chip is from the same era as the original version of Linux so it was a natural choice for the emulation task, though it was far from easy to achieve," said Evanson.

"Far from easy," indeed, since we are talking about emulating a 32-bit processor on a 4-bit chip. However, that didn't stop Grinberg.

Using several vintage components and even more hardware emulation and software sorcery, Grinberg fashioned a custom circuit board with a rudimentary display to show that a barebones Debian distro could boot up to a command prompt. However, it won't break any speed records.

"Grinberg designed a custom circuit board with no vias (paths from one side of the circuit board to the other) and only right-angle traces for a retro aesthetic," notes Ars Technica. "It's meant to be wall-mountable as an art piece, slowly executing Linux commands over the course of days or weeks."

Even when overclocked to a whopping 790 kHz, the machine took nine days to boot. After further tweaking, Grinberg got the boot time down to 4.76 days. He considerably sped up his video of the boot process to smash that time into something more watchable (above).

Source: techspot.com

Related stories
1 week ago - MEMORY PROBLEMS — Emails, documents, and other untrusted content can plant malicious memories. Getty...
1 month ago - Jesse Kipf was sentenced to more than six years in prison after prosecutors said he hacked into a government system to create his own death certificate.
1 month ago - Just about 49 dog years — Now he owes child support, plus about $80,000 to repair state death...
1 month ago - The US Attorney's Office for the Eastern District of Kentucky prosecuted Somerset resident Jesse Kipf for cybercrimes targeting private and governmental networks. It began when he manipulated death records in Hawaii's death registry...
2 weeks ago - GuidePoint Security recently acted as a "negotiator" between an unnamed company and the group behind the Hazard ransomware. The malware infected the victim's systems, encrypting "important" files and demanding payment to unlock them. The...
Other stories
39 minutes ago - Your older iPhone may still get iOS 18, so be sure you're ready for it if it does.
39 minutes ago - The SECURE 2.0 Act is making some notable changes to workplace retirement plans next year.
39 minutes ago - There's no folding iPhone yet, but here are the Android foldable phones worth considering over normal phones.
39 minutes ago - Many credit card debt relief programs are just after your money. Here's how to spot the companies trying to scam you.
1 hour ago - GitHub removal comes months after a Nintendo lawsuit took down the Yuzu emulator.