cpmtools - cpmls can't see DOWNLOAD.COM from disk a

123 views
Skip to first unread message

Dominique Meurisse (MCHobby)

unread,
Nov 29, 2022, 6:21:43 PM11/29/22
to RC2014-Z80
Hi eveyone,
I did install cpmtools on my linux machine.
Added the disk rc2014x disk definition at the end of /etc/cpmtools/diskdefs file (see end of the message).

I do plug my RC2014 PRO 128 Mb CFCard on my computer.
Here is the content of my dmesg debug messages

[342095.205901] usb-storage 2-4:1.0: USB Mass Storage device detected
[342095.206293] scsi host6: usb-storage 2-4:1.0
[342096.236043] scsi 6:0:0:0: Direct-Access     Generic- Compact Flash    1.00 PQ: 0 ANSI: 0 CCS
[342097.202480] scsi 6:0:0:1: Direct-Access     Generic- SM/xD-Picture    1.00 PQ: 0 ANSI: 0 CCS
[342097.209237] scsi 6:0:0:2: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
[342097.215934] scsi 6:0:0:3: Direct-Access     Generic- MS/MS-Pro        1.00 PQ: 0 ANSI: 0 CCS
[342097.216284] sd 6:0:0:0: Attached scsi generic sg2 type 0
[342097.216529] sd 6:0:0:1: Attached scsi generic sg3 type 0
[342097.216760] sd 6:0:0:2: Attached scsi generic sg4 type 0
[342097.216926] sd 6:0:0:3: Attached scsi generic sg5 type 0
[342098.446623] sd 6:0:0:0: [sdb] 2001888 512-byte logical blocks: (1.02 GB/977 MiB)
[342098.447731] sd 6:0:0:2: [sdd] Attached SCSI removable disk
[342098.448010] sd 6:0:0:0: [sdb] Write Protect is off
[342098.448016] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[342098.448395] sd 6:0:0:3: [sde] Attached SCSI removable disk
[342098.449442] sd 6:0:0:0: [sdb] No Caching mode page found
[342098.449449] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[342098.452491] sd 6:0:0:1: [sdc] Attached SCSI removable disk
[342098.460321] sd 6:0:0:0: [sdb] Attached SCSI removable disk

Accordinly to the debug messages, my CFCard is attached to the device /dev/sdb

So why the cpmls command here below have empty result for drive a (and any of b,c,d,e)?

sudo cpmls -f rc2014a /dev/sdb

The drive A do contains the file "download.com" !

----------- additionnal Notes ----------------------------------------------
Here is the content added to /etc/cpmtools/diskdefs

diskdef rc2014boot
  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 1
  os 2.2
end

diskdef rc2014noboot

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  os 2.2
end

diskdef rc2014a

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 1
  os 2.2
end

diskdef rc2014b

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 512t
  os 2.2
end

diskdef rc2014c

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 1024t
  os 2.2
end

diskdef rc2014d

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 1536t
  os 2.2
end

diskdef rc2014e

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 2048t
  os 2.2
end

diskdef rc2014f

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 2560t
  os 2.2
end

diskdef rc2014g

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 3072t
  os 2.2
end

diskdef rc2014h

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 3584t
  os 2.2
end

diskdef rc2014i

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 4096t
  os 2.2
end

diskdef rc2014j

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 4608t
  os 2.2
end

diskdef rc2014k

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 5120t
  os 2.2
end

diskdef rc2014l

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 5632t
  os 2.2
end

diskdef rc2014m

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 6144t
  os 2.2
end

diskdef rc2014n

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 6656t
  os 2.2
end

diskdef rc2014o

  seclen 512
  tracks 512
  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 7168t
  os 2.2
end

diskdef rc2014p
  seclen 512
  tracks 128

  sectrk 32
  blocksize 4096
  maxdir 512
  boottrk 0
  # Offset of next partition
  offset 7680t
  os 2.2
end





Dominique Meurisse (MCHobby)

unread,
Nov 30, 2022, 7:11:45 PM11/30/22
to RC2014-Z80
I will respond to my own request:

The CPM demo disks image at "Obsolescence Guarantee" available at:
I can be read the `.img` file with CPMTools and the diskdef as showed in the previous post.

List files from disk A

```
$ sudo cpmls -f rc2014a multicomp-cpm-demo-disk-image.img
0:
bgii134.zip
download.com
files.bak
files.txt
test.jnk

1:
-tiny#c.254
-tiny#c.265
bdscio.h
...
```
This work with the downloaded image file... but also when the image is written to a SDCard (or USBFlash disk).

So, in my case, this will be extactly the same with `$ sudo cpmls -f rc2014a /dev/sdb`  and list the files for all the users.

Copying a file to the local machine

In the following example, we will copy the file `files.txt` from Drive A, User 0 to the Linux machine.

This file will be named `files.txt` locally. The -t flag is used to TRANSLATE TEXT to UNIX filesystem.

$ cpmcp -f rc2014a -t multicomp-cpm-demo-disk-image.img 0:files.txt files.txt

Remark about my initial message
Either the diskdef is not compatible with the official RC2014 CFCard...
Either CPMTools cannot be used with a CFCard device (under Linux).


Voila!
Reply all
Reply to author
Forward
0 new messages