Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Linux for C64
2023-08-27 21:15
Repose

Registered: Oct 2010
Posts: 222
Linux for C64

Yes, this is real. Requires REU.
https://github.com/onnokort/semu-c64
2023-08-28 00:00
Krill

Registered: Apr 2002
Posts: 2855
"The screenshots took VICE a couple hours in "warp mode" (activate it with Alt-W) to generate. So, as is, a real C64 should be able to boot Linux within a week or so."

I wonder how much a banked memory expansion rather than REU would shave off of the boot time. =)
2023-08-28 01:04
Mr. SID

Registered: Jan 2003
Posts: 424
FWIW, this takes a bit more than 2 hours to boot to the shell prompt on a U64 with 48MHz turbo enabled.
So I'm sure it won't be weeks on a real C64, probably just about 4 days...
2023-08-28 03:48
Repose

Registered: Oct 2010
Posts: 222
I'm sure this could be sped up dramatically, in fact it would be an excellent application of my mathlib. The REU access is unnecessarily slow, as it would require setting up a c64 and reu address then storing the command to transfer, all one byte at a time :( You could speed this up so many ways, such as transferring say 32 bytes to zero page then running an interpreter there, like some kind of first level cache.

I don't think this needs to be seen as unpractical and ridiculous. I'm keen to write the RISC emulator in assembly. I've been doing similar work already - I wrote the TI Emulator. TI Emul for the C64

static uint32_t op_mul(uint32_t insn, uint32_t a, uint32_t b)
{
    /* TODO: Test ifunc7 zeros */
    switch (decode_func3(insn)) {
    case 0b000: /* MUL */
        return a * b;

I'm sure this is using a lot of CPU time, with all the addressing and pointer arithmetic in C...
2023-08-28 17:08
chatGPZ

Registered: Dec 2001
Posts: 11151
Quote:
I don't think this needs to be seen as unpractical and ridiculous. I'm keen to write the RISC emulator in assembly.

You'll spend a year or two on making the thing twice as fast - go for it!
2023-08-30 18:39
Repose

Registered: Oct 2010
Posts: 222
Quote: Quote:
I don't think this needs to be seen as unpractical and ridiculous. I'm keen to write the RISC emulator in assembly.

You'll spend a year or two on making the thing twice as fast - go for it!


A Micro-VM might be the answer:
https://www.theregister.com/2023/08/29/freebsd_boots_in_25ms/
2023-08-30 21:15
mankeli

Registered: Oct 2010
Posts: 110
DO IT!!
2023-08-31 09:05
Krill

Registered: Apr 2002
Posts: 2855
Quoting Repose
A Micro-VM might be the answer
"Micro-VM" appears to be just a newfangled fancy term for the not so new concept of para-virtualisation.

But what would this mean on a C-64? Calling native functions for I/O? What else? Doesn't seem to promise much of a speed-up.
2023-08-31 15:49
wil

Registered: Jan 2019
Posts: 46
Incredible work with the Linux port via the RISC emulator approach on the C64. But when it comes to UNIX-like OSs for the C64, I prefer LUnix Next Generation:
https://lng.sourceforge.net/

It runs on a stock C64 and boots in less than 2 minutes. It is not a Linux, though.
2023-08-31 18:56
Repose

Registered: Oct 2010
Posts: 222
There is also ACE.
http://csbruce.com/cbm/ace/

WINGS for SuperCPU
http://www.symbos.de/mirrors/wings.webhop.org/index.html

C64OS (pay)
https://c64os.com/

The open-sourced GEOS
https://www.pagetable.com/?p=869

Wheels upgrade to GEOS
https://commodore.software/downloads/download/436-geos-upgrades..

A few other ones are here:
https://www.c64-wiki.com/wiki/Operating_System
2023-08-31 19:56
mankeli

Registered: Oct 2010
Posts: 110
I wonder who could code the fastest risc-v (with ima extensions) emulator for 6502/c64 ... Who could have the fastest linux boot wr on the c64..?
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
DeMOSic/HF^MS^BCC^LSD
MCM/ONSLAUGHT
Twilight/Excess/Arcade
iAN CooG/HVSC
Gordian
thesuperfrog
lodger-c64
Biz Kid/Camelot - Ox..
zscs
CA$H/TRiAD
Guests online: 83
Top Demos
1 Next Level  (9.7)
2 Mojo  (9.7)
3 13:37  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Aliens in Wonderland  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 No Bounds  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 It's More Fun to Com..  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Logo Graphicians
1 Sander  (9.9)
2 Facet  (9.5)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.089 sec.