| | 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! :) |
|
| | Bitbreaker
Registered: Oct 2002 Posts: 500 |
The ROMs for C64 (and drives) need to be placed here:
~/.config/vice/C64/
~/.config/vice/DRIVES/ |
| | 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. |
| | 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. |
| | 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! |
|