Page 1 of 2

Linux utility for manipulating disk images (VDK or DSK)?

Posted: Sun Dec 16, 2012 3:17 am
by JCCyC
For development, I've been using MESS's imgtool, and then Toolshed, but now I need to create/manipulate DragonDOS images and none of these utilities recognize them. What utilities are there available that run under Linux?

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Sun Dec 16, 2012 10:14 pm
by rolfmichelsen
I have this tool to cover exactly this case, but it's a Windows .NET binary. Might run under Mono, but that's not tested. If it turns out that the Dragon community is mostly non-Windows, I might consider a port to more portable C++. It's not that much code.

-- Rolf

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Sun Dec 23, 2012 9:39 am
by JCCyC
FINALLY got around to working on this again!

Yikes, Mono is no longer included in RHEL/CentOS. Have to install from sources: http://stackoverflow.com/questions/1318 ... n-centos-6

Gonna take a looooong time building. Will update when done to tell if it worked or not.

(But one way or the other, I thoroughly approve a port to C++.)
rolfmichelsen wrote:I have this tool to cover exactly this case, but it's a Windows .NET binary. Might run under Mono, but that's not tested. If it turns out that the Dragon community is mostly non-Windows, I might consider a port to more portable C++. It's not that much code.

-- Rolf

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Sun Dec 23, 2012 11:07 am
by JCCyC
DragonTools seems to work OK under Linux, with Mono 3.x. I now have another problem: The .BIN I assembled with LWTOOLS doesn't load under the Dragon (emulated in MESS). I get a ?FM ERROR.

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Sun Dec 23, 2012 12:40 pm
by rolfmichelsen
If you have a problematic file, post it here and somebody will probably figure it out pretty quickly.

— Rolf

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Sun Dec 23, 2012 1:23 pm
by JCCyC
rolfmichelsen wrote:If you have a problematic file, post it here and somebody will probably figure it out pretty quickly.

— Rolf
Here it is. I may be just using DragonDOS commands wrong. I tried:

CLEAR 500, &H6FFF
LOADM"CACHARS.BIN"

I also tried "LOAD" instead of "LOADM". The only thing I ever knew was DECB.

Wait, BIN didn't go. Here's a link: http://users.vialink.com.br/jcastro/cachars.bin

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Mon Dec 24, 2012 10:23 pm
by rolfmichelsen
Did you use the DragonDos program from the DragonTools distribution to create the disk image? The DragonDos program will always copy files from the host filesystem to a DragonDos filesystem as a data file. I'll add an option to manually add a machine code or BASIC program header to the file. Maybe there will be a new release sometime during the holidays.

-- Rolf

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Wed Dec 26, 2012 6:00 am
by JCCyC
rolfmichelsen wrote:Did you use the DragonDos program from the DragonTools distribution to create the disk image?
Yup.
rolfmichelsen wrote:The DragonDos program will always copy files from the host filesystem to a DragonDos filesystem as a data file. I'll add an option to manually add a machine code or BASIC program header to the file. Maybe there will be a new release sometime during the holidays.
I now see the BIN header for CoCo DECB and DragonDOS ML programs is different. Maybe I could do a conversion.

Does DragonDOS have a "file type" metadata like DECB has?

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Wed Dec 26, 2012 10:41 am
by rolfmichelsen
The DragonDos file header format is documented in the May 1987 issue of Dragon User, which is available from the archive. BASIC and machine code programs have a 9 byte header with file type and vrious metadata. Data files do not have a header.

-- Rolf

Re: Linux utility for manipulating disk images (VDK or DSK)?

Posted: Wed Dec 26, 2012 3:19 pm
by zephyr
JCCyC wrote:
The only thing I ever knew was DECB.
You can download a copy of the DragonDOS manual (An Introduction To DragonDOS By Alan Mayer) from: http://www.dragondata.co.uk/