CPCWiki forum

General Category => Applications (CPC and CPC-related) => Topic started by: arnoldemu on 21:07, 20 August 10

Title: cpcxfs
Post by: arnoldemu on 21:07, 20 August 10
cpcxfs has been updated.

There have been 2 fixes:
1. attrib command didn't mark dsk as updated. Using this command from the command-line didn't update dsk.
2. using path+filename with spaces in it, even with quoting it, didn't work from command-line. Now it does.

http://www.cpctech.org.uk/download/cpcxfs.zip
Title: Re: cpcxfs
Post by: MiguelSky on 14:14, 21 August 10
Great !!! Thanks, Kev ;)
Title: Re: cpcxfs
Post by: AMSDOS on 11:16, 22 August 10
My favourite DOS<->CPC related utility had Bugs in it!  ???  After all these years and I didn't even know, some Beta tester I would have been if I went down that path!  :laugh:  Blame it on the makers of Windows because they extended the filenames!  ::)
Title: Re: cpcxfs
Post by: Gryzor on 08:07, 23 August 10
For the sake of those who don't know about it:

CPCFS is a program to copy files form a DOS filesystem to a
disk-image appropriate for CPCEmu, an emulator for the
CPC464/664/6128 homecomputer series by Amstrad.

CPCXfs is an update to CPCfs v0.85
by Kevin Thacker.

This version includes bugfixes and
improvements over the original.

Btw, you might want to update the links in the documentation :)
Title: Re: cpcxfs
Post by: arnoldemu on 09:31, 23 August 10
Quote from: CP/M User on 11:16, 22 August 10
My favourite DOS<->CPC related utility had Bugs in it!  ???  After all these years and I didn't even know, some Beta tester I would have been if I went down that path!  :laugh:  Blame it on the makers of Windows because they extended the filenames!  ::)
it was written for unix and dos 8.3 filenames really.
+ it's support for other cpm based formats (other than ibm, system and data were limited).
So I extended it (a long time ago).

Then Markus told me of some bugs when invocated from the command-line. I promised to fix them but forgot.
And finally after I fell over them I fixed them  :laugh:
Title: Re: cpcxfs
Post by: AMSDOS on 09:44, 23 August 10
arnoldemu wrote:

it was written for unix and dos 8.3 filenames really.
+ it's support for other cpm based formats (other than ibm, system and data were limited).
So I extended it (a long time ago).

Then Markus told me of some bugs when invocated from the command-line. I promised to fix them but forgot.
And finally after I fell over them I fixed them
  :laugh:

In other words it's a fix to fix the problem that Microsoft created when they decided to scrap the 8.3 filename policy and do whatever! You should send them the Bill for the time spent in correcting that flaw - they've got Billions, I'm sure Bill will happily throw you a couple of Million!  ;)  Microsoft need to be held accountable for the actions they have taken and more people should be encouraged to let MS know that it's not okay to just change thing around!
Title: Re: cpcxfs
Post by: andycadley on 10:42, 23 August 10
Quote from: CP/M User on 09:44, 23 August 10
In other words it's a fix to fix the problem that Microsoft created when they decided to scrap the 8.3 filename policy and do whatever!

Spaces were actually valid even in old 8.3 DOS filenames, they were just a lot rarer when people had to type commands in and it's quite common for DOS apps to fall over with them.
Title: Re: cpcxfs
Post by: AMSDOS on 11:04, 23 August 10
Spoiler: ShowHide
Not criticising the spaces in filenames cause I've been putting spaces in my program filenames since I first began computing, it's these extensions people have introduced since that which has caused heartache, even a CPC Emulator written for DOS cannot cope at running at Real time - something wrong there, perhaps it's the programmer, though the way machines are equipped to run at the speeds they do, the old programs just cannot quite stand up to sheer speeds!  ???
Title: Re: cpcxfs
Post by: TCMSLP on 18:41, 04 November 12


Argh.  Can anyone help me here?  I'm trying to run this under Linux.

Under wineconsole it prints the first line of text then hangs.  Under dosbox it simply returns "This program cannot be run in DOS mode".

I also can't run 'ManageDsk.exe' due to missing C++ dlls (mfc42) - winetricks can no longer locate the download for this.  Installing the current VC++ etc libs don't seem to fix this.  I also have trouble building iDSK.

How can I create a .dsk under Linux?

:(


Steve / TCM
Title: Re: cpcxfs
Post by: arnoldemu on 09:57, 05 November 12
Quote from: TCMSLP on 18:41, 04 November 12

Argh.  Can anyone help me here?  I'm trying to run this under Linux.

Under wineconsole it prints the first line of text then hangs.  Under dosbox it simply returns "This program cannot be run in DOS mode".

I also can't run 'ManageDsk.exe' due to missing C++ dlls (mfc42) - winetricks can no longer locate the download for this.  Installing the current VC++ etc libs don't seem to fix this.  I also have trouble building iDSK.

How can I create a .dsk under Linux?

:(


Steve / TCM
Compile it.

There is a makefile in the source. :)

http://www.cpctech.org.uk/download/cpcxfs.zip (http://www.cpctech.org.uk/download/cpcxfs.zip)

from the command-line:

creates a new disk, data format.

cpcxfs -nd test.dsk


cpcxfs test.dsk -b -f -p test.bin

puts a file called "test.bin" into test.dsk. -f for force.
-b to force binary.
-p for "put"


needs readline lib.
I can't remember what else.

btw, 2cdt and the others can all be compiled for linux.
All my tools can be compiled and run natively under linux, in fact I rarely use wine.
In my my more recent tools I support cmake.
Title: Re: cpcxfs
Post by: TCMSLP on 11:02, 05 November 12



Thanks for the response.


I did try compiling it and I can't remember the error I received.  I'll take another look tonight.


I eventually did what I needed using iDsk under wineconsole - I'd prefer a proper native solution though :)




Steve
Title: Re: cpcxfs
Post by: Poliander on 13:58, 19 October 14
Sorry for digging out this old thread, but just stumbled upon this tool and found it's almost exactly what I was looking for. I would suggest adding a feature that allows prepending an AMSDOS header to a binary, this would make this tool perfect - or, if I may ask the question, how do other developers integrate this step into their toolchain? I did this manually but would like to have this integrated into the build process:
CPCDiskXP -File main.bin -AddAmsdosHeader 100 -AddToNewDsk image.dsk

By the way, I had to apt-get install libncurses5-dev, then it compiled without a warning/error on Debian GNU/Linux. Great thing :-)
Title: Re: cpcxfs
Post by: arnoldemu on 15:51, 19 October 14
Quote from: Poliander on 13:58, 19 October 14
Sorry for digging out this old thread, but just stumbled upon this tool and found it's almost exactly what I was looking for. I would suggest adding a feature that allows prepending an AMSDOS header to a binary, this would make this tool perfect - or, if I may ask the question, how do other developers integrate this step into their toolchain? I did this manually but would like to have this integrated into the build process:
CPCDiskXP -File main.bin -AddAmsdosHeader 100 -AddToNewDsk image.dsk

By the way, I had to apt-get install libncurses5-dev, then it compiled without a warning/error on Debian GNU/Linux. Great thing :-)
I use my own tools, all of which you can download from my webpage. I use addhead to add/remove headers.
Title: Re: cpcxfs
Post by: cpcitor on 22:45, 29 December 14
Quote from: Poliander on 13:58, 19 October 14
Sorry for digging out this old thread, but just stumbled upon this tool and found it's almost exactly what I was looking for. I would suggest adding a feature that allows prepending an AMSDOS header to a binary, this would make this tool perfect - or, if I may ask the question, how do other developers integrate this step into their toolchain? I did this manually but would like to have this integrated into the build process:
CPCDiskXP -File main.bin -AddAmsdosHeader 100 -AddToNewDsk image.dsk

By the way, I had to apt-get install libncurses5-dev, then it compiled without a warning/error on Debian GNU/Linux. Great thing :-)

Hello Poliander,

On which version of Debian did you compile cpcxfs ? On Ubuntu 14.04 64-bits it compiles with 204 warnings and appears to work.

By the way, I've seen your project on poliander/skeleton-sdcc-cpc · GitHub (https://github.com/poliander/skeleton-sdcc-cpc) .
It looks similar to what I've been doing on cpcitor/cpc-dev-tool-chain · GitHub (https://github.com/cpcitor/cpc-dev-tool-chain) except that the latter automatically fetches and compiled external tools. It's been announced and discussed on cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC. (http://www.cpcwiki.eu/forum/programming/cpc-dev-tool-chain-a-portable-toolchain-for-casm-development-targetting-cpc/)

Cheers!  :)
Title: Re: cpcxfs
Post by: Poliander on 23:07, 29 December 14
I compiled it on a Debian 7.7 system. The goal was to create a small/clean/generic project template without bells and whistles.
Title: Re: cpcxfs
Post by: genesis8 on 10:12, 21 February 19
I tried compiling, I had to clean before as *.o are included in the zip, but got the following error due to a missing file :



unix.c:18:21: fatal error: termcap.h: Aucun fichier ou dossier de ce type


                     ^
compilation terminated.
<commande interne> : la recette pour la cible « unix.o » a échouée
make: *** [unix.o] Erreur 1

Title: Re: cpcxfs
Post by: Sid_ on 11:39, 21 February 19
Hi genesis8
under my linux box (debian 9) no issue :
make -f makefile.lnx


I've got some warnings but the compilation succeed.
Do you want I store the binary somewhere ?

Title: Re: cpcxfs
Post by: cpcitor on 19:20, 21 February 19
Quote from: genesis8 on 10:12, 21 February 19
unix.c:18:21: fatal error: termcap.h: Aucun fichier ou dossier de ce type

To know what package provides termcap.h, you can use this command:

apt-file find termcap.h


It reveals that (among others) package
libncurses5-dev provides it.

So, the answer is to install that package. One solution is:

sudo apt-get install libncurses5-dev


which is what Poliander wrote on http://www.cpcwiki.eu/forum/applications/cpcxfs/msg170822/?topicseen#msg87720 .

It should work then.

Cheers!
Title: Re: cpcxfs
Post by: genesis8 on 19:09, 27 February 19
Thanks !


I was able to compile it on my raspberry by adding the library.
Powered by SMFPacks Menu Editor Mod