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 > CSDb Discussions > Running VICE under Linux
2023-11-19 18:57
Control

Registered: Apr 2002
Posts: 4
Running VICE under Linux

Hey,

When installing vice via apt, after running x64sc I get: "C64MEM: Error - Couldn't load kernal ROM `kernal-901227-03.bin'".

Normally the ROM files are distributed along the builds for other platforms, so I guess I could just copy the files from one of these builds.

My question is, where does VICE expect these ROM files to reside on Linux?

Thanks for your help in advance! :)
2023-11-19 20:55
Bitbreaker

Registered: Oct 2002
Posts: 500
The ROMs for C64 (and drives) need to be placed here:
~/.config/vice/C64/
~/.config/vice/DRIVES/
2023-11-19 21:07
Bansai

Registered: Feb 2023
Posts: 34
Bitbreaker already answered you, but on Linux as a general solution, you can run an executable through the strace command and it will generate output such as the following:

access("/pub/vice/lib64/vice/C64/kernal", R_OK) = 0
open("/pub/vice/lib64/vice/C64/kernal", O_RDONLY) = 4
write(1, "Loading system file `/pub/vice/l"..., 54Loading system file `/pub/vice/lib64/vice/C64/kernal'.) = 54
write(1, "\n", 1
)                       = 1
lseek(4, 0, SEEK_CUR)                   = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc2ba96e000
fstat(4, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
lseek(4, 8192, SEEK_SET)                = 8192
lseek(4, 0, SEEK_SET)                   = 0
read(4, "\205V \17\274\245a\311\210\220\3 \324\272 \314\274\245\7\30i\201\360\3638\351\1H\242\5\265i"..., 8192) = 8192
close(4)                                = 0
munmap(0x7fc2ba96e000, 4096)            = 0

I've used this in the past with decent success to see where a program is looking for files, etc.
2023-11-19 22:02
Compyx

Registered: Jan 2005
Posts: 631
@Control:

Debian and derived distros do not ship with the ROMs due to perceived copyright issues, so indeed copying from one of our (matching) releases is the way to go.

What Bitbreaker suggests might work, though it's probably best to copy the ROMs system-wide, in order for `-default` etc to work. The VICE system files directory depends on what install prefix the distro used, but it'll probably be /usr/share/vice/.

Also, the directory to "override" ROM files has changed, per XDG specification current VICE looks for ROM files in ~/.local/share/vice.
2023-11-19 22:10
Control

Registered: Apr 2002
Posts: 4
Thank you for the responses, Bitbreaker, Bansai and Compyx, I got it working.

Using strace to find out the expected path(s) is such an ingenious solution, I didn't think of it.

Thanks again for the informative answers, I really appreciate it!
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
CA$H/TRiAD
Malmix/Fatzone
Yogibear/Protovision
Black/Angels
Oswald/Resource
Mike
Adder/Triad
Dymo/G★P
Guests online: 155
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 S!R  (9.7)
5 Faayd  (9.7)

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