create a new sdcard.img

All aspects of programming on the Commander X16.
User avatar
edrive
Posts: 34
Joined: Mon Jan 18, 2021 8:03 pm
Location: Germany
Contact:

Re: create a new sdcard.img

Post by edrive »

@funkheld:

Just found this in the readme:

https://github.com/davidgiven/cpm65/blo ... /README.md
Commander X16 notes

To use, place the contents of the x16.zip file on the X16's SD card. Load and run the CPM program to start.

The CP/M filesystem is stored in a big file called CPMFS. It needs support for the Position command in order to seek within the file. x16emu currently doesn't support this in its host filesystem, so you'll need to use an actual SD card image. (I have a pull request outstanding to add support. An SD2IEC should work too, as these support the same commands. However a real Commodore disk drive will not work.
So you must use a SD card for the moment.
vy73
funkheld
Posts: 268
Joined: Mon Feb 26, 2024 11:11 am

Re: create a new sdcard.img

Post by funkheld »

How was the sdcard.img that comes with the emulator created?

Thanks.
greeting
Last edited by funkheld on Sun Apr 14, 2024 7:53 pm, edited 1 time in total.
User avatar
edrive
Posts: 34
Joined: Mon Jan 18, 2021 8:03 pm
Location: Germany
Contact:

Re: create a new sdcard.img

Post by edrive »

Keine Ahnung wie und womit die Ersteller des ursprünglichen Image das gemacht haben.
Dazu müsstest du die Autoren selbst fragen (oder es findet sich was in der Doku).
Prinzipiell sind aber folgende Szenarien denkbar:
Das Projekt wurde mit echter Hardware und echter SD-Karte gemacht.
Oder es wurde mit einem virtuellen Laufwerk gemacht.
In beiden Fällen gibt es Tools um dann daraus ein Image zu erstellen.
Typischerweise sind diese Tools vom Betriebssystem und/oder Dateisystem abhängig.
Unter Linux gibt es den bekannten "dd" Befehl.
Ob es Windows Bordmittel gibt weiss ich nicht. Aber Betriebssystem übergreifend, kostenlos und super einfach zu bedienen ist "balena etcher" (<- such das mit einer Suchmaschiene deiner Wahl).
vy 73
funkheld
Posts: 268
Joined: Mon Feb 26, 2024 11:11 am

Re: create a new sdcard.img

Post by funkheld »

Danke für deine Info.
Es ist nicht so wichtig , hat mich mal neugierig gemacht. Wollte nur mal reinschnuppern in dieses Programm.
Wie beschäftigts du dich mit dem X16?

Gruss
User avatar
edrive
Posts: 34
Joined: Mon Jan 18, 2021 8:03 pm
Location: Germany
Contact:

Re: create a new sdcard.img

Post by edrive »

Musste auch erst viel lernen und weiss bei weitem noch nicht alles.
...sofern man das überhaupt kann.
Bin quasi auch noch am Anfang.

Von mir ist das "Dot Matrix" Programm.
viewtopic.php?t=7052

(Im Browser "try it now" läuft das Programm relativ langsam, lokal im x16emu am besten und auf der echten Hardware so mitten drin)

Programmiere nur in Assembler auf einer Linux-Kiste.
mortarm
Posts: 232
Joined: Tue May 16, 2023 6:21 pm

Re: create a new sdcard.img

Post by mortarm »

ahenry3068 wrote: Sun Apr 14, 2024 4:30 pm ...at home I'm Cinnamon on Mint.
Mmmm, tasty! :)
User avatar
JimmyDansbo
Posts: 452
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

Re: create a new sdcard.img

Post by JimmyDansbo »

This is how I created an SDcard image on linux:
dd if=/dev/zero of=sdcard.img bs=1024k count=1 seek=33 # I have not manged to create image less than 34MB, then mkfs won't format as FAT32
sudo fdisk sdcard.img
# In fdisk #
o       ; for new partition table
n       ; for new partition
p       ; for primary partition
[enter] ; default partition 1
[enter] ; default first sector
[enter] ; default last sector
t       ; change partition type
b       ; change it to W95 FAT32
w       ; write changes and exit fdisk
# outside of fdisk #
sudo losetup /dev/loop0 sdcard.img
sudo partprobe /dev/loop0
sudo mkfs.fat -F 32 -n CX16 /dev/loop0p1
sudo losetup -d /dev/loop0
After this, the image is ready to be used with the emulator:
x16emu -sdcard sdcard.img
Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
Post Reply