You can run Linux on a Commodore 64 if you really want to

The Commodore 64
(Image credit: Wikimedia commons)

Programming hobbyists love a challenge. Getting Linux to run on, well, anything is a challenge many find irresistible. The latest example involves getting it to run on the legendary Commodore 64. Getting it to run on a Mac is one thing, but doing the same on a 40 year old computer with 64KB of memory is quite another.

Developer Onno Kortmann (via Slashdot) used Semu, a light RISCV32 emulator, and cross-compiled it with llvm-mos, allowing the code to run on the C64's MOS Technologies 6502 processor. It needs to be pointed out that this was done via an emulator and not on real hardware, though it's only a matter of time before that happens.

Using the VICE Commodore emulator, Kortmann enabled "warp mode" which showed the first boot messages within a few minutes, though that will take much longer on a real machine. The screenshot below took a few hours with Warp mode, which means a real C64 will take a week or more to fully boot Linux.

The original Commodore 64 came with just 64KB of memory and running a lightweight OS is simply not possible without the use of a RAM Expansion Unit. Kortmann doesn't specify which REU he used, but C64 REUs were available with up to 512KB, or a whopping 0.5MB of memory. The C64's MOS Technology processor running at around 1MHz isn't what you'd call a speed demon either.

Kortmann believes there's a lot of room for improvement, saying a 10x speedup could be possible. Still, given the limitations of the C64 hardware, even with a 10x speedup, don't expect to go running much in the way of software once you do finish the boot sequence. This is the kind of thing that serves little purpose beyond proving it can be done. That doesn't make it any less cool, though.

Screenshot of Linux running on a Commodore 64

(Image credit: Onno Kortmann)

Should you wish to, the code and instructions can be found on Kortmann's Github page. I'm not sure any but the most masochistic or bored programmers would take up the challenge, but to those that do: Respect! 

Is Linux on a C64 practical? Not in the slightest. But it sure is an impressive feat and one that fans of one of the greatest computers of all time will appreciate.

Best gaming PCBest gaming laptop


Best gaming PC: The top pre-built machines.
Best gaming laptop: Great devices for mobile gaming.

Chris Szewczyk
Hardware Writer

Chris' gaming experiences go back to the mid-nineties when he conned his parents into buying an 'educational PC' that was conveniently overpowered to play Doom and Tie Fighter. He developed a love of extreme overclocking that destroyed his savings despite the cheaper hardware on offer via his job at a PC store. To afford more LN2 he began moonlighting as a reviewer for VR-Zone before jumping the fence to work for MSI Australia. Since then, he's gone back to journalism, enthusiastically reviewing the latest and greatest components for PC & Tech Authority, PC Powerplay and currently Australian Personal Computer magazine and PC Gamer. Chris still puts far too many hours into Borderlands 3, always striving to become a more efficient killer.

Read more
LinuxPDF, linux running in a PDF document
Here's Linux running inside a PDF, running inside a browser, running on a Windows PC
Orange Pi 5 Plus single board computer
'Is this a practical way to play your Steam games? Nope, not even a little bit.' But getting Steam running on Armbian and a single board computer really is a thing
Various creations in Minecraft, including computers and calculators.
This Minecraft creation blots out the sun for the villagers below, they surely praise it as God, but we know it really to be a functioning 32-bit computer with 2 kB of RAM
gotg llama
Blasting AI into the past: Modders get Llama AI working on an old Windows 98 PC
A screenshot from a YouTube video of Doom running on an Apple Lightning to HDMI adapter, with a monitor showing an imp on screen.
Doom on a dongle: Turns out the Apple Lightning to HDMI adapter has more than enough grunt to blast imps with aplomb
Windows 11 Task Manager showing 11 GB RAM use with a sad face drawn on top
A debloating wizard has managed to get Windows 11 running on just 184 MB of RAM, and it looks like it can actually run apps
Latest in Hardware
A Gigabyte RTX 5070 Ti Eagle OC Ice on a desk and installed in a gaming PC.
Gigabyte GeForce RTX 5070 Ti Eagle OC Ice SFF review
A late afternoon view shows two young women walking past a wall-sized anime mural along Chuo-dori (Central Avenue) in the Akihabara district (known as Electric Town for its maze of electronics stores, but currently considered an almost sacred destination by members of Japan's otaku culture, drawn to Akihabara's video game centers, maid cafes, anime shops, and manga comics), located in Chiyoda Ward in central Tokyo, Japan.
OpenAI's GPT-4o model gets image generation update for all of your anime-style selfie needs
A Nacon Rig Streamstar M2 microphone on white gravel, shot in 3/4 profile
Nacon Rig M2 Streamstar review
1X Technologies humanoid robot, the Neo Gamma, standing alongside Nvidia CEO Jensen Huang. Huang is wearing an ERL-made studded leather jacket.
Humanoid robot Neo Gamma gifts Nvidia CEO a studded leather jacket and may even be able to one day wash up a cup without dropping it
Razer Blade 16 (2025) gaming laptop
Nvidia RTX 5090 mobile tested: The needle hasn't moved on performance but this is the first time I'd consider ditching my desktop for a gaming laptop
A woman wearing a VR headset with dramatic, colourful lighting across the background
'World’s smallest LEDs' could lead to accurately lit screens with 127,000 pixels per inch and much more immersive VR
Latest in News
A screenshot from SaGa Frontier 2, showing one of the protagonists wandering through a quaint fantasy village
One of Square Enix' most underrated PlayStation-era JRPGs just shadow dropped on Steam
The titular character from Princess Mononoke is depicted riding the wolf goddess Moro and carrying a spear.
Studio Ghibli AI image trend floods social media, cheered on by OpenAI and denounced by critics as an insult to Hayao Miyazaki
Marvel Rivals tier list - Wolverine
Marvel Rivals director says a future patch will reduce the shooter's insatiable hunger for RAM: 'It's a very big problem'
Hogwarts Legacy potions professor holding a potion
An unannounced Hogwarts Legacy expansion and 'definitive edition' have reportedly been cancelled
Story of Seasons - A cahacter in a purple tuxedo stands outside in a town square talking to the player
Story of Seasons is doing another Harvest Moon remake and it might be the best the series has ever looked
Assassin's Creed Shadows change seasons - An upper-body shot of Yasuke looking cheerfully up into the distance.
Assassin's Creed Shadows puts up the 'second highest day-one sales revenue in Assassin's Creed franchise history'