Author Topic: cpcxfs  (Read 6895 times)

0 Members and 1 Guest are viewing this topic.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
cpcxfs
« on: 23: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
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline MiguelSky

  • 464 Plus
  • *****
  • Posts: 345
  • Country: es
    • CPCGamesCD
  • Liked: 155
  • Likes Given: 311
Re: cpcxfs
« Reply #1 on: 16:14, 21 August 10 »
Great !!! Thanks, Kev ;)

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.623
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 890
  • Likes Given: 1545
Re: cpcxfs
« Reply #2 on: 13: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!  ::)
* Using some of the hardly used Amstrad compilers :D
* I use Firmware in my Assembly code :P
* Have interpreted some BASIC 1.1 programs for BASIC 1.0. :)

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 14.941
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2916
  • Likes Given: 5078
Re: cpcxfs
« Reply #3 on: 10: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 :)

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: cpcxfs
« Reply #4 on: 11:31, 23 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:
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.623
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 890
  • Likes Given: 1545
Re: cpcxfs
« Reply #5 on: 11: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!
* Using some of the hardly used Amstrad compilers :D
* I use Firmware in my Assembly code :P
* Have interpreted some BASIC 1.1 programs for BASIC 1.0. :)

Offline andycadley

  • Supporter
  • 6128 Plus
  • *
  • Posts: 833
  • Liked: 389
  • Likes Given: 67
Re: cpcxfs
« Reply #6 on: 12:42, 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.

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.623
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 890
  • Likes Given: 1545
Re: cpcxfs
« Reply #7 on: 13:04, 23 August 10 »
Spoiler: show
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!  ???
« Last Edit: 00:52, 11 December 14 by AMSDOS »
* Using some of the hardly used Amstrad compilers :D
* I use Firmware in my Assembly code :P
* Have interpreted some BASIC 1.1 programs for BASIC 1.0. :)

Offline TCMSLP

  • CPC664
  • ***
  • Posts: 70
  • Country: fi
    • Bitstrean
  • Liked: 17
  • Likes Given: 10
Re: cpcxfs
« Reply #8 on: 19: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

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: cpcxfs
« Reply #9 on: 10:57, 05 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

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.
« Last Edit: 10:59, 05 November 12 by arnoldemu »
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline TCMSLP

  • CPC664
  • ***
  • Posts: 70
  • Country: fi
    • Bitstrean
  • Liked: 17
  • Likes Given: 10
Re: cpcxfs
« Reply #10 on: 12: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

Offline Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 160
  • Country: de
  • Liked: 78
  • Likes Given: 61
Re: cpcxfs
« Reply #11 on: 15: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 :-)
Schneider CPC 664 • X-MEM • X-MASS • CTM 644 • DMP 2160 — Schneider CPC 6128 • M4 Board • Z-MEM • OSSC

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: cpcxfs
« Reply #12 on: 17:51, 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.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 238
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 112
  • Likes Given: 255
Re: cpcxfs
« Reply #13 on: 23:45, 29 December 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 .
It looks similar to what I've been doing on cpcitor/cpc-dev-tool-chain · GitHub 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.

Cheers!  :)
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline Poliander

  • Supporter
  • CPC6128
  • *
  • Posts: 160
  • Country: de
  • Liked: 78
  • Likes Given: 61
Re: cpcxfs
« Reply #14 on: 00:07, 30 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.
Schneider CPC 664 • X-MEM • X-MASS • CTM 644 • DMP 2160 — Schneider CPC 6128 • M4 Board • Z-MEM • OSSC

Offline genesis8

  • CPC6128
  • ****
  • Posts: 177
  • Country: fr
    • Genesis8 Amstrad Page
  • Liked: 50
  • Likes Given: 19
Re: cpcxfs
« Reply #15 on: 11: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

____________
Amstrad news site at Genesis8 Amstrad Page

Offline Sid_

  • CPC464
  • **
  • Posts: 5
  • Country: fr
  • Liked: 0
  • Likes Given: 1
Re: cpcxfs
« Reply #16 on: 12: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 ?


Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 238
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 112
  • Likes Given: 255
Re: cpcxfs
« Reply #17 on: 20:20, 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:

Code: [Select]
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:

Code: [Select]
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!
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline genesis8

  • CPC6128
  • ****
  • Posts: 177
  • Country: fr
    • Genesis8 Amstrad Page
  • Liked: 50
  • Likes Given: 19
Re: cpcxfs
« Reply #18 on: 20:09, 27 February 19 »
Thanks !


I was able to compile it on my raspberry by adding the library.
____________
Amstrad news site at Genesis8 Amstrad Page