CPCWiki forum

General Category => Applications => Topic started by: SOS on 01:18, 23 March 18

Title: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface_2+3,HXC/Gotek
Post by: SOS on 01:18, 23 March 18
I'm finished, attached is my latest version.


Key Features:
- Detect (nearly) all Fat16+Fat32-Partitions on your CF-Card, DOM, etc. (1st Partition please). Prefered is Fat32 (should be faster with Save-Commands)
  You can format the media with e.g. Windows and fill it with data.
- Partial longnames.
- the usual RSX like |MD, |RD, |REN,....
- |DIR + |CD accepts wildcards
- Compatibility should be high (i hope so  ;) ) - but i'm playing around with a lower-rom-patch to increase compatibility.
- Burn to ROM7 is allowed (max. compatibility), with (or without) AMSDOS as ROM8 or 9,10,....
- ROM7 without Floppy-ROM is allowed too, compatible with Duke's lower-ROM-Patch

The ROM must be placed below (if used) AMSDOS, M4DOS, PARADOS
Not compatible with ACMEDOS at the same time.

YANCC-User should be update to the latest version.


History:
Added 23.03.18: CubeIOS180318b - first release - The ROM had fled  :-[ but i found it (please reload the file, sorry)
Added 15.04.18: CubeIOS140418b - Bugfixing + flexible ROM configuration allowed, changed handling of |A (see textfile)
Added 30.08.18: FormatBAS - the upcoming next release(s) will no longer include "Format.bas"
Added 01.10.18: CubeMDOS230918b - Renamed ROM, Support of Symbiface 3, HXC+Gotek (see Readme) + Small Bugfixes

Title: Re: CubeIOS / FAT16+FAT32-IDE-OS - ROM for the Amstrad CPC's with XMASS
Post by: Ast on 14:20, 23 March 18

Well done SOS !
Happy to see other os will be ready for our beloved x-Mass !
Title: Re: CubeIOS / FAT16+FAT32-IDE-OS - ROM for the Amstrad CPC's with XMASS
Post by: Kris on 19:39, 25 March 18
I just give it a trial but formatting a 128Mb DOM give wrong size results...If I choose FAT16 format then I own 400Mb ??
Title: Re: CubeIOS / FAT16+FAT32-IDE-OS - ROM for the Amstrad CPC's with XMASS
Post by: SOS on 21:01, 25 March 18
I just give it a trial but formatting a 128Mb DOM give wrong size results...If I choose FAT16 format then I own 400Mb ??
At the moment i have no check against the real-media-size.

You can't choose a format with higher capacity as your media can fit!
So you must choose a correct format, eg.
128MB-DOM = 1st ACMEDOS-Format (128MB),
256MB-DOM = 1st ACMEDOS-Format (128MB),
512MB-DOM (or higher) = You can use all formats (128MB,400MB,450MB)

Title: Re: CubeIOS / FAT16+FAT32-IDE-OS - ROM for the Amstrad CPC's with XMASS
Post by: Fessor on 22:23, 10 April 18
Cool. Works great for Winapes IDE-Device.

Created empty Image via
dd if=/dev/zero of=cpcide.img count=128 bs=1M, set to W95 FAT16 (LBA) with fdisk and initialised with mkfs.vfat cpcide.img

Mounted it in Winape and could Save Files to it.

Created Entry in /etc/fstab to mount it parallel in Linux. Copying Files from Disk-Images to the IDE-Image via ManageDSK works like a charm.

Must now look, how to get it transferred to the XMASS-DOM. Are there Adapters for USB available to Mount the DOM on a PC?



Title: Re: CubeIOS / FAT16+FAT32-IDE-OS - ROM for the Amstrad CPC's with XMASS
Post by: SOS on 22:43, 10 April 18
Must now look, how to get it transferred to the XMASS-DOM. Are there Adapters for USB available to Mount the DOM on a PC?
http://www.cpcwiki.eu/forum/news-events/x-mass-a-mass-storage-expansion-for-all-cpc/msg140765/#msg140765 (http://www.cpcwiki.eu/forum/news-events/x-mass-a-mass-storage-expansion-for-all-cpc/msg140765/#msg140765)
but i will recommend:
http://www.cpcwiki.eu/forum/hardware-related/cf-card-adapter-for-x-mas/ (http://www.cpcwiki.eu/forum/hardware-related/cf-card-adapter-for-x-mas/)
buuuut, not all CF-Cards accepted from the XMASS...
Title: Re: CubeIOS / FAT16+FAT32-IDE-OS - ROM for the Amstrad CPC's with XMASS
Post by: SOS on 12:46, 15 April 18
New update, see 1st post.
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface3,HXC/Gotek
Post by: SOS on 07:40, 01 October 18
New Version released (Symbiface 3-Support, HXC/Gotek & Small Bugfix).
My big thanks (again) to Audronic & 00WReX for beta-testing  :D
(bohh, they have good,strong nerves  ;) )
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: GUNHED on 17:13, 01 October 18
Congrats to your update. Let me ask you few questions.

- Is your DOS compatible to X-DDOS and / or to R-DOS?

- What's the difference to support SF2 and SF3? There is no SF3 docs out there? Can you tell a bit?
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 17:47, 01 October 18
- Is your DOS compatible to X-DDOS and / or to R-DOS?
- What's the difference to support SF2 and SF3? There is no SF3 docs out there? Can you tell a bit?

X-DDOS / R-DOS: Never tested   (Edit: No, both did not run, i Need only 0-1 leading DOS-ROM, like e.g. AMSDOS on 7 or 8, Parados on 7, or no DOS-ROM)

SF3 has an USB-Interface.
I have an Prototyp-Card from TMTLOGIC.
He has documented the programming Interface.

The core functions which he provides are boring easy, so my actual ReadLBA-Sector looks:

Code: [Select]

        ld bc,#FD41
ld a,1
out (c),a ; reset pointers1
; -----------
ld bc,#fd43
out (c),h
out (c),l
out (c),d
out (c),e
;LBA number Sector write (max 32)
ld a,1
out (c),a
ld bc,#FD41
ld a,51 ; read sector from usb stick
out (c),a ; reset pointers1
SYMBIFACE3_ReadSector1
    ; wait processing 0 = oke 1 = busy 2 = error
in a,(c)
cp 0
jr z,SYMBIFACE3_ReadSector1_Exit
cp 1
jr z,SYMBIFACE3_ReadSector1
; error-state, so exit
jr SYM3_READ_ERROR
SYMBIFACE3_ReadSector1_Exit

call GetAMSDOSWorkingBufferInIX ; OUT: HL=Buffer, All Register preserved
ld bc,#fd43
ld de,512
SYMBIFACE3_ReadSector2
in a,(c)
ld (ix),a
inc ix
dec de
ld  a, d
or  e
jr nz,SYMBIFACE3_ReadSector2
in a,(c)
cp #1a
jr nz,SYM3_READ_ERROR

Because of the stable CubeROM for XMASS, I "only" added an autodetect & differs in the core-functions (like):
AutodetectSymbiface3
If Symbiface3Found then begin
  ReadLBASectorFromSymbiface
  exit
end
ReadLBASectorFromXMASS

Hmmm, maybe i will Play in the next days with the RTC.... (when it's functional in my prototyp-Card  ::) )
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: GUNHED on 13:26, 02 October 18
That's pretty neat actually. So adding USB seems more easy (and fun) than IDE.

About R-DOS... It should be at ROM position 1, because it "just" adds commands for RAM drive C and "should" be compatible with CubeDOS.
Well, I already downloaded the new update, but have some issues here with my hardware setup (only temporary I hope).

If you have any information about how to read / write the SF3 RTC it would be nice to post it here.  :)
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: HAL 6128 on 16:25, 02 October 18
Max. 32Bit LBA addressing possibilities means 3 TB or 28Bit 128GB? (...not an important question for a CPC) :P
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 17:07, 02 October 18
Max. 32Bit LBA addressing possibilities means 3 TB or 28Bit 128GB? (...not an important question for a CPC) :P
32 Bit = 4294967295 Sectors can be assigned, size 2199023255040 Bytes = 2,19 TB 
(never tested on my CPC, whether the whole range can be correctly assigned  ;) )
=> I'm using 32 Bit for Symbiface 3, HXC/Gotek and IDE 24 Bit :o (=16777215 Sec's = 8,5 GB  >:(  ).

I think, i must set this to my todo-List, should be 28 Bit (=137 GB) or more :-[

Edit: I'm blind (can't read my own source code), IDE are supported up to 28 Bit (=137 GB) (cross checked with WinApe) all ok  :) 
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: netmercer on 02:07, 13 November 18
Hi SOS,
I attempted to use CubeMDOS 23.09.18b in order to manage Toto's XMASS.

First: I can't enter ParaDOS menu any longer with RSX |DRIVE.
I know the RSX |DRIVE is taken by CubeMDOS, but perhaps there is another way to enter the menu of ParaDOS.

Second: Some subfolders shows as name "eEUERO~1" (with YANCC) in place of their real name.
(with pure CubeMDOS on the commandoline the first letter is instead of "e" a  (&HE5) Symbol)
This happens both on XMASS and on HXC Gotek with RSX |HB.

My configuration on CPC6128:
ROM8: LAUNCH 14.04.18b
ROM7: AMSDOS
ROM6: ParaDOS 1.1
ROM5: CubeMDOS 23.09.18b
ROM4: YANCC 14.04.18b

Perhaps I'm doing something wrong.

By the way, I'm using YANCC for more than an year and I really won't miss it. Thanks  :-*

Best regards
netmercer
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 09:33, 13 November 18
Moin netmercer   :)
First: I can't enter ParaDOS menu any longer with RSX |DRIVE.
I know the RSX |DRIVE is taken by CubeMDOS, but perhaps there is another way to enter the menu of ParaDOS.


Yes |DRIVE is caught by CubeMDOS, but when execute, i'm doing a decision "ParaDOS found?", so if yes, I execute the ParaDOS-RSX.
Works here   ???
Could you reproduce that in WinApe?
Same effect with Parados 1.2?
You can attach the big-floppy-drives? (so Parados is loaded correctly)
Please, could you send me the "?peek(&b0c7)"  and b0c8 & b0c9 values

[Strange Things happens with the Quote, so plain:]
Second: Some subfolders shows as name "eEUERO~1" (with YANCC) in place of their real name.
(with pure CubeMDOS on the commandoline the first letter is instead of "e" a  (&HE5) Symbol)
This happens both on XMASS and on HXC Gotek with RSX |HB.
[Quote-end]


Which media do you use (e.g. SD-Card 16GB FAT32 & DOM 512MB FAT16 both with partions at max size)?
You will see the strange names on both medias and the Gotek has HXC Firmware(!?)
In YANCC you dont see the longnames in the penultimate line? (I think YANCC is ok, and CubeMDOS reported strange Things)
With |DIR you will see "aUERO~1" (instead of the correct Name "EUERO~1")?
Do you deleted the subfolders before, when yes: How do you deleted them (Windows, CubeMDOS, …)?
The directory-content is correct, when displayed in MSDOS?
Do you have a chance to do a screenshot of the sector-content of the Directory on your WindowsPC or could you upload an Image of your media on an internet-hoster (prefered)? (i can assist you (PM))
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: netmercer on 02:05, 14 November 18
Servus SOS  ;D ,
thank you for your quick reply.

With Parados 1.2 the |DRIVE RSX works.  :doh:
I'm still using ParaDOS 1.1, because I patched it for my needs. I will see what to do...

Strange subfolder name:
In XMASS I'm using a 512MB CF card formated in FAT16 by ACMEDOS (no partition, 123 MB) and in Gotek there is a 8GB FAT32 USB stick.
Under Windows, Symbos or ACMEDOS the subfolder names are right and all works as expected. I think YANCC is ok, too.
In the past I deleted and created different files and subfolders on the CF card by ACMEDOS. For the USB stick I did this only with Windows.
The affected subfolder could be opened with its right name under CubeMDOS and the included files are usable.
Because of the beginning letter "&HE5" of the "wrong" name it might seem, that this folder was deleted, but it was not.
I will try to make a image of the directory sectors for you.

Best regards
netmercer
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: netmercer on 01:48, 20 November 18
Servus SOS,

in WinApe with CubeMDOS a image of my X-MASS drive shows the same behavior as a real CPC6128.
Enclosed you will find a screenshot of WinApe with strange subfolder name:  :o

Best regards
netmercer
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: RockRiver on 10:29, 20 November 18
Symbiface II (IDE) support???
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 14:00, 20 November 18
Symbiface II (IDE) support???

Yes, should be run (i can't test it - i have no SF2).
Please reported back.  (then i will Change the title of this thread)
Media max. 128GB FAT16 or FAT32.
CubeMDOS should be detect every 1st Partition.
Title: Re: CubeMDOS / FAT16+FAT32-IDE-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 23:24, 20 November 18
Second: Some subfolders shows as name "eEUERO~1" (with YANCC) in place of their real name.
(with pure CubeMDOS on the commandoline the first letter is instead of "e" a  (&HE5) Symbol)
This happens both on XMASS and on HXC Gotek with RSX |HB.
Bugfix sent to netmercer.
If he does not report any problems, the bugfix will be included in the next version.
The next version will take a while (I'm still struggling with the FlashFloppy-Firmware)


(Thanks to netmercer for cooperation)
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: TotO on 15:07, 16 February 19
Hello SOS,

I have updated my X-MEM / X-MASS installer with:
- FW3.16 (UK,FR,ES) + EXP ROM
- BASIC 1.20
- CUBEMDOS 0.12
- SYMBOS 3.0 ABCD ROM (optional)

The disk content include FORMAT (use FAT32), INSTALL and the X-MEM FLASHER tool.
Here the link: xmem_xmass_install.zip (http://totoonthemoon.free.fr/temp/xmem_xmass_install.zip)

Cheers,

  TotO
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 16:55, 20 February 19
Thank you so much SOS for your work. You save our sources!
I've used the CubeIOS version for some months, and it really improves my life.

Some bug reports / feature requests (NB: I'm using 1st ACMEDOS format):

1/ Path handling
1a/ I regularly save backups on A from Orgams itself. It would be nice to just use "A:gap.o"
1b/ Even more important when includes are included: be able to write INCLUDE "/lib/arithm.o" (and relative paths as well)
Both Offset and Candy have a nice system working.

2/ |A inconsistent
Sometimes it works directly, other times I just log on A but subsequent CAT is on D: and I have to use |AOFF. I've tried both settings of the ROMs IIRC.

3/ Crashes when trying to save the 65th file.
"Directory full" message would be more gentle!

4/ Be able to use FAT with 128MB
For interoperability and since you say saving would be faster.

5/ YANCC should have a 'Move' command
At least YANCC should retain the selection (like PARADOS copier).

6/ There should be a |MV RSX as well!
Specially with 7/ fixed.

7/ Globs doesn't work as in AMSDOS
E.g. |DIR,"*.BAK"

8/ |ERA doesn't work with globs.
E.g. |ERA,"*.BAK"

9/ Sort directory.
It should take less than 1 frame on a 4Mhz Z80 :)

10/ Fix |DRIVE
When wrong number of arguments, you should lift the command to overridden DOS rom.
Right now we cannot invoke Parados copier anymore.

11/ Open source.

Ok, that's a lot demands! It just shows I've used it quite intensively (:)
As i said it's really useful. Thanks to TotO and yOu, disc access is now on par with general CPC reactivity (From switch on, 1 second to fire up Orgams, 2 seconds to load a source !).
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 18:03, 20 February 19
Hi there!

nice to hear  :)

At the Moment I'm busy with Symbiface 3-Support, but i will continue the open points soon, i have some first Questions (i will check this message completely later):

2/ |A inconsistent
Sometimes it works directly, other times I just log on A but subsequent CAT is on D: and I have to use |AOFF. I've tried both settings of the ROMs IIRC.
Strange, i will later test this, please inform me, when you can reproduce that

4/ Be able to use FAT with 128MB
For interoperability and since you say saving would be faster.
??
What do you mean exactly?
I support the original 128MB formatted media's from ACMEDOS.



5/ YANCC should have a 'Move' command
At least YANCC should retain the selection (like PARADOS copier).

6/ There should be a |MV RSX as well!
Specially with 7/ fixed.
It's a similar feature.
I thinking about it, but when i will add this, i think not in this year.  (last Point on my todo-list)

7/ Globs doesn't work as in AMSDOS
E.g. |DIR,"*.BAK"

8/ |ERA doesn't work with globs.
E.g. |ERA,"*.BAK"
7: Oh, should work  :(   (but doesnt)
8: I will take a look…..

9/ Sort directory.
It should take less than 1 frame on a 4Mhz Z80 :)
No it's canceled, i'm thinking about this feature, but IMHO i Need a 40mhz instead of a 4mhz-CPU.
Next Problem: I Need RAM for sorting.


Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 20:52, 20 February 19
> 2/ Inconsistent |A
Strange, i will later test this, please inform me, when you can reproduce that
I reproduce ~50% of the time.
* Booting on D.
* Working on D.
* Resetting to exist Orgams.
* |A

> 4/ 128Mb FAT
??What do you mean exactly?
I support the original 128MB formatted media's from ACMEDOS.
Here is what I've understood. I might be wrong:
- If I choose FAT format, it will try to use 400Mb. So, once the first 128Mb of the DOM is used, all hell breaks loose.
- ACMEDOS format is safe, but slower in regard to SAVE and not readable by SymbOS.
Hence, a FAT format not overflowing over 128Mb would be perfect.
> 9/ Sorting directory
No it's canceled, i'm thinking about this feature, but IMHO i Need a 40mhz instead of a 4mhz-CPU.Next Problem: I Need RAM for sorting.
Not counting the 2ko for cat, cannot we reuse some AMSDOS buffer (like the one used to read sectors)?
Do you plan to maintain the 64 files directory limit (I would be fine with that)?I could do the sorting routine, if you wish!


Thank you for your fast reply!
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: TotO on 21:00, 20 February 19
ACMEDOS format is safe, but slower in regard to SAVE and not readable by SymbOS.
ACMEDOS handle an unparted FAT16 mass storage. You can read and write from SymbOS as well as from any compatible OS (windows, linux, ...) if connected.

Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 22:52, 20 February 19
I reproduce ~50% of the time.
* Booting on D.
* Working on D.
* Resetting to exist Orgams.
* |A
Could you describe the steps a Little bit more?
"Resetting to exist Orgams." ?
CPC-Reset, starting Orgams from ROM, save & load something on A or ?

Here is what I've understood. I might be wrong:
- If I choose FAT format, it will try to use 400Mb. So, once the first 128Mb of the DOM is used, all hell breaks loose.

I want to quote Connor MacLeod here: There can only be one.
Yes, CubeMDOS supports only the 1st Partition of a media, so the Format kills every existing Partition. (i do not Change this)


Not counting the 2ko for cat, cannot we reuse some AMSDOS buffer (like the one used to read sectors)?
Do you plan to maintain the 64 files directory limit (I would be fine with that)?
hmmm....
my english is not very perfect :-[   (so i dont know exactly, if i understand you correctly)

For CAT i use the 2KB Buffer, when i detect buffer-overflow, i will print an information in the cat-buffer.
The ReadSector-Buffer in AMSDOS i use it intensively.
64-Files-Limit?
I copied with YANCC 68 files in one directory and do a save&load in BASIC , so 69 files are no problem.
=> i need a more reproduceable szenario


I could do the sorting routine, if you wish!
(thanks)
Hmmm, i dont know :-\
The problem is, that my ROM is nearly full and this may break the 16KB-Size.
I think, the sorting will be very problematic.
The whole Directory must be read by the CPC (e.g. 712 Files) and then sorted in the memory.
It could consume a lot of the 64KB Main-RAM....
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: Fessor on 00:08, 21 February 19
Sorting, kind of, could be done by |dir,"a*", |dir,"b*" etc..Maybe a command like |dira2z could be introduced, which intern runs through the alphabet and calls the dir-output with filemasks from "a*" to "z*"


Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 01:29, 21 February 19
1/ |A
OK I can reproduce consistently: if firmware zone is zeroed, then I have to enter |AOFF to access A, despite my configuration (cf config.bas).
I like the fact that:
• X-MASS is the default on reset.
• The path is conserved across warm resets.
I'd like to have AOFF behavior forced all the time.

3/ 64 files per directory limit
I got a crash each time I reached 65 files.
Code: [Select]
|mkdir,"tmp":|cd,"tmp"
for i=1 to 99:print i:save str$(i):next
-> Boom after i=63.

4/ FAT format
I'm not sure to see why FAT32 format couldn't be restricted to 128Mb, so that:
• |FREE is accurate
• More importantly, disc full is properly detected and no overwriting occurs!

9/ Sort directory712 files !? I don't mind if the sorting is kind of disabled for such extreme cases.
It doesn't mean it should be thrown away for day to day usage !
We could come with a pretty fast solution for directories with <=128 files.
And not that big in memory! Tell me how much space do you have (:


13/ Starkos hangs with 'GetDir'
It could be a bug with Starkos, but if the ROM is fully AMSDOS compatible why wouldn't it work?

Thank you for your attention!
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 01:40, 21 February 19
Sorting, kind of, could be done by |dir,"a*", |dir,"b*" etc..Maybe a command like |dira2z could be introduced, which intern runs through the alphabet and calls the dir-output with filemasks from "a*" to "z*"
That's an interesting approach, modulo some caveats:
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 10:00, 21 February 19
1/ |A
OK I can reproduce consistently: if firmware zone is zeroed, then I have to enter |AOFF to access A, despite my configuration (cf config.bas).
I like the fact that:
• X-MASS is the default on reset.
• The path is conserved across warm resets.
I'd like to have AOFF behavior forced all the time.
the "firmware zone" is zeroed could be a problem.
Please could you describe the completely point "1" with PM more clearly?

3/ 64 files per directory limit
I got a crash each time I reached 65 files.
Code: [Select]
|mkdir,"tmp":|cd,"tmp"
for i=1 to 99:print i:save str$(i):next
-> Boom after i=63.
I can reproduce that now (thanks), crashes only on FAT16.
Prio 1


4/ FAT format
I'm not sure to see why FAT32 format couldn't be restricted to 128Mb, so that:
• |FREE is accurate
FAT32 is not restricted to 128MB, you can use large media's.
I dont optimize the format.bas anymore, because you can format your media with Windows, Linux, ....
The FREE-Display on FAT32 must be correct, else it's a strong indicator, that something is going very wrong!
FREE on FAT16 is..... >:(  :'(  :'( :'(   So this should be nearly correct....

• More importantly, disc full is properly detected and no overwriting occurs!
I have checks against possible overwriting-issues, so this "should" be not occur.
Disc full detection: Should be work too
Do you have problems with this two points?


And not that big in memory! Tell me how much space do you have (:
Much too few.
Maybe (or not) i will later release an add-on-rom, where i have enough space.

13/ Starkos hangs with 'GetDir'
It could be a bug with Starkos, but if the ROM is fully AMSDOS compatible why wouldn't it work?
I check this later

I must now hurry-up to continue with Symbiface3-Programming, i think maybe april-mai i will correct the bugs.
(there are other open issues, which i want to fix, e.g. FlashFloppy-Support on a Plus-Machine)
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: TotO on 20:31, 21 February 19
The FAT32 strange limitation is to not be able to support partitions under 32MB. :-\
Title: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: angelcaio on 14:07, 23 February 19
Hi. I have connected a DOM to the PC with an adapter and I have presented it to WinApe:
   (https://uploads.tapatalk-cdn.com/20190223/eadb6d3e154a086c4ea21552adb9e953.jpg)
(https://uploads.tapatalk-cdn.com/20190223/e875f38532d60f608daa1643e493fb40.png)

With the ROM’s configuration (with firmware 3.16 and extensions)
(https://uploads.tapatalk-cdn.com/20190223/d334c3ddcea994a0318256aa677d5a70.jpg)

The Format.bas utility does not do anything either. Leave it as it was
  (https://uploads.tapatalk-cdn.com/20190223/b7b9bf90597be4f80c7fb6e24e0aae00.png)

I have formatted it from Windows with Fat format and then, from Windows I can create subdirectories and files that are then visible from WinApe

In WinApe, can read from the DoM and browse the subdirectories, read and execute programs, but I can not create files or directories.
(https://uploads.tapatalk-cdn.com/20190223/b5e8f5dc699786abb4a7a3cb20239b98.png)
(https://uploads.tapatalk-cdn.com/20190223/8b3eb2c4833ba8a46b94441060215447.png)
   
 Again I  executed format.bas with the same result

What am I doing wrong?
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: gerald on 16:17, 23 February 19
The FAT32 strange limitation is to not be able to support partitions under 32MB. :-\
It's not a strange limitation, it's a logical one.
There is no need to have 32bit fat entry when 16bit are enough. So you use FAT16.
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: TotO on 16:28, 23 February 19
There is no need to have 32bit fat entry when 16bit are enough. So you use FAT16.
You have no need... This "fake" limitation avoid to use really common 32MB MMC/SD cards on devices not compatible with FAT16 (HxC in example).
Next, because FAT32 allows to support long filenames and a faster acces to the files.
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: gerald on 17:56, 23 February 19
You have no need... This "fake" limitation avoid to use really common 32MB MMC/SD cards on devices not compatible with FAT16 (HxC in example).
That's laziness  ;D . There is not much to do to support FAT12/FAT16.
 It's just a matter of dealing with a fixed place root directory for FAT12/16 and cluster number to sector conversion.

Next, because FAT32 allows to support long filenames and a faster acces to the files.
Long filename is a extension of directory entry and has no implication on FAT itself.
You can use long filename on a floppy (FAT12) if you want.
 DOS 3.1 will only show you short names, but windows will show you the full name.
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: TotO on 19:59, 23 February 19
Sure, I know that... But that not fix my HxC issue when I have offered a 32MB MMC bonus for R-TYPE 128K box versions, to use it like a floppy. ;D
I only got an answer to explain that is not possible to support the FAT32 for a next update of the HxCFloppyEmulator!  :-\



Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 22:53, 23 February 19
Hi. I have connected a DOM to the PC with an adapter and I have presented it to WinApe:

The Format.bas utility does not do anything either. Leave it as it was

I have formatted it from Windows with Fat format and then, from Windows I can create subdirectories and files that are then visible from WinApe

In WinApe, can read from the DoM and browse the subdirectories, read and execute programs, but I can not create files or directories.
...
Hi, strange things you reported  :o
It seems that the Partition is write-protected.

Ok, i do some Tests too:
- Plug in a 4GB Fat16 USB-Stick, it's writeprotected too (so i can reproduce your issue)
- Make an Image from the Stick and mount them in WinApe -> It's writeable!!!!!
- Format in Winape the 4GB-USB-Stick with ACMEDOS and Change the ROM to CubeMDOS.
  It's writeable from Winape.

I cant do in Z80 a difference: WinApe IDE-Image or Logical Drive-Letter -> It looks the same.
The only logical conclusion must be, that WinApe has a problem / bug and not CubeMDOS (?!)

I try to contact Executioner to talk with him, about this problem.
But "last active" was 07 June 18 .... maybe he will not answer....
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: GUNHED on 03:28, 24 February 19
Regarding the IDE part I'm not sure if the SF2 is emulated 100%. At the beginning my IDE code had problems, but I don't know it the missing status bits have been added. Therefore please do tests on real hardware.  :)
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 09:20, 03 March 19
FAT32 is not restricted to 128MB, you can use large media's.
I dont optimize the format.bas anymore, because you can format your media with Windows, Linux, ....
Hum! I like my CPC self-contained (:

The FREE-Display on FAT32 must be correct, else it's a strong indicator, that something is going very wrong!
FREE on FAT16 is..... >:( :'( :'( :'(   So this should be nearly correct....
I have checks against possible overwriting-issues, so this "should" be not occur.
Disc full detection: Should be work too
Do you have problems with this two points?
No problem so far, as I am only using ~10Mb for now! Simply the doc mentioned:
Quote
Three presets of formats you can choose
Format 1: Original ACEMDOS, with the Identifier "X-MASS" at #2B of LBA 0, 128MB Volume
Format 2: First Primary Partition FAT16, 400MB partition Table (Type #06, 8192 Bytes/Cluster)
Format 3: First Primary Partition FAT32, 450MB partition Table (Type #0B, 4096 Bytes/Cluster)
But as I understand now, this was a limitation of format.bas and not CUBEOS's.
The recommended solution is to format the 128MB DOM with a 128MB FAT32 partition by another mean (e.g. via SymbOS).
Is that correct?

Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 09:41, 03 March 19
I'm encountering an issue with YANCC.
All OrgamS sources larger than 32k copied to a sub-directory are corrupted at the end (but the file size seems correct).
I couldn't reproduce that with a binary file, so maybe it's because .O are ASCII.
That being said, thank you for your helpful answers and attentiveness.
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 11:52, 03 March 19
Another one for your Sunday (:
Code: [Select]
|cd,"/plad"
|o     <- OK
|cd,"/plad/archive3"   <- existing dir
|o     <- unknown command

My Orgams ROMs are in &a,&15,&1a. Dedicated RAM memory starts at &ABF8.
Amsdos RAM memory start at &A6F0 (yes it is shifted).
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 13:09, 03 March 19
Hi m_dr_m,

First thanks about your mails, to make CubeMDOS better  :D

13/ Starkos hangs with 'GetDir'
It could be a bug with Starkos, but if the ROM is fully AMSDOS compatible why wouldn't it work?
I checked Starkos.
The reason, why the access to the Massstorage is problematic, starkos re-init (why?) the ROM 07,
so the hook of CubeMDOS is re-init to Amdos-Default - no Massstorage-ROM anymore :-(
When i disable these init or mount CubeMDOS at ROM7: Starkos did not function correctly.
The CAT-Buffer from CAS_CATALOG is build correctly, but some routines in Starkos prevent
from function.
So the Starkos-Author must be change his program to get a functional Massstorage-Application.


Simply the doc mentioned:But as I understand now, this was a limitation of format.bas and not CUBEOS's.
The recommended solution is to format the 128MB DOM with a 128MB FAT32 partition by another mean (e.g. via SymbOS).
Is that correct?

The Format.bas should only have a small number of Presets for possible DOM's. So CubeMDOS is not restricted in detection of the Format. So the only rule is "first Partition", e.g. FAT16 with 1GB, FAT32 with 400MB or 40GB are possible.
For the 128MB DOM i will Always recommend the 128MB ACMEDOS FAT16-Format (1st Preset).
Btw. TotO almost convinced me to extend the format.bas with other/additional presets, but i must check, if i have the DOM's in my roof.


I'm encountering an issue with YANCC.
All OrgamS sources larger than 32k copied to a sub-directory are corrupted at the end (but the file size seems correct).
I couldn't reproduce that with a binary file, so maybe it's because .O are ASCII.
That being said, thank you for your helpful answers and attentiveness.
:(
Ok, i will check that later.


Another one for your Sunday (:
Code: [Select]
|cd,"/plad"
|o     <- OK
|cd,"/plad/archive3"   <- existing dir
|o     <- unknown command

My Orgams ROMs are in &a,&15,&1a. Dedicated RAM memory starts at &ABF8.
Amsdos RAM memory start at &A6F0 (yes it is shifted).

Hmmmm, in Winape this works
- I used your ROM-Numbers (Orgams in &a, orgext in &15 and monogams in &1a)
- CubeMDOS in ROM6
- I created the directories and make a cold-reset.
- I used your RSX-Codes, i leave Orgams with CTRL+B

Orgams make a memory restore of the high-memory.
In my test i noticed, that orgams does not restore the complete memory from himem up to the stack-end.
The first &81 bytes are missing, i not checked at the moment, if this is important.
I think the exact ROM-Configuration could be important

Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 17:53, 03 March 19
First thanks about your mails, to make CubeMDOS better  :D
You are very welcome!
Another option to make CubeMDOS better is to release the source (:
So the Starkos-Author must be change his program to get a functional Massstorage-Application.
Yep, fair enough, that's what I've thought.
Thanks for looking at it.
Anyway soon no one won't need Starkos anymore as a native CPC tracker!

For the 128MB DOM i will Always recommend the 128MB ACMEDOS FAT16-Format (1st Preset).
Oh, why is that, since FAT32 is better (faster access, less space wasted, more common...)?
According to https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system#Size_limits (https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system#Size_limits), the min size is 32Mb.

Btw. TotO almost convinced me to extend the format.bas with other/additional presets, but i must check, if i have the DOM's in my roof.
Always listen to TotO, he is wise. (:

Ok, i will check that later.
Nice! I've done some more tests. It also fails when copying from D to A or from A to D.
BTW when trying to copy back a corrupted &8400 long ascii file (on D) to A, I got:
Error close Destination-File. Abort Operation
Hmmmm, in Winape this works
- I used your ROM-Numbers (Orgams in &a, orgext in &15 and monogams in &1a)
- CubeMDOS in ROM6
- I created the directories and make a cold-reset.
- I used your RSX-Codes, i leave Orgams with CTRL+B
Actually the scenario with /plad/archive3 also fails at RESET.

Orgams make a memory restore of the high-memory.
In my test i noticed, that orgams does not restore the complete memory from himem up to the stack-end.The first &81 bytes are missing, i not checked at the moment, if this is important.
Maybe related to this bug: mailto:http://orgams.wikidot.com/bugs#toc40
 (http://orgams.wikidot.com/bugs#toc40)Anyway, as said above, I get the issue from a cold start as well.

Quote
I think the exact ROM-Configuration could be important
1: CubeIOS
2: UTOPIA
3: YANCC
4: LAUNCH
5: HACKIT
6: PARADOS
7: AMSDOS
9: Flash burn
10: Orgams
12: TurboAss
15: OVL v2
The others ROMS are extensions (02) or data (03).

Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 04:25, 04 March 19
10/ Fix |DRIVE
When wrong number of arguments, you should lift the command to overridden DOS rom.
Right now we cannot invoke Parados copier anymore.
Since YANCC doesn't allow A to A copy, this request would have a very good utility/work ratio!
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 09:17, 04 March 19
Another option to make CubeMDOS better is to release the source (:Yep, fair enough, that's what I've thought.
The Projects CubeMDOS+YANCC are not started as an open-source project
=> Not planned at the moment, maybe (maybe not) later in this year.


Oh, why is that, since FAT32 is better (faster access, less space wasted, more common...)?
Backward-compatibillity to ACMEDOS+IMPDOS.


Actually the scenario with /plad/archive3 also fails at RESET.
Maybe related to this bug: mailto:http://orgams.wikidot.com/bugs#toc40
 (http://orgams.wikidot.com/bugs#toc40)Anyway, as said above, I get the issue from a cold start as well.
1: CubeIOS
2: UTOPIA
3: YANCC
4: LAUNCH
5: HACKIT
6: PARADOS
7: AMSDOS
9: Flash burn
10: Orgams
12: TurboAss
15: OVL v2
The others ROMS are extensions (02) or data (03).
The ROM's 9+12 i haven't found.
The other Orgams-ROMs i put it in 11+12.
But i can't reproduce your problem in WinApe  :(
Could you reproduce that in Winape?
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 14:48, 21 June 19
Nice summer to you!


Another bug detected: cannot save an ASCII file larger than 64k. The result is truncated.
Is a new version planned anytime soon? (:
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 15:15, 21 June 19
Nice summer to you!
Another bug detected: cannot save an ASCII file larger than 64k. The result is truncated.
Is a new version planned anytime soon? (:
Thanks, for you too ;-)

"Soon" is very relative ;-)
My actual versions (CubeMDOS+YANCC) are stable in Winape, so i "only" Need to test it on real Hardware.
The changelog of the next Version is:
- Bugfix of FlashFloppy-Support (Amstrad+)
- CAT/DIR: Possible false display in the path name  (thnx netmercer)
- Display VolumeName during boot - Changed/Fixed - again :-(
- No MSD-Hardware found, correct exit
- Make-Directory: Convert Directory-Names to Uppercase (else Directory can't read by Windows)
- FAT16: Can't create more than 64 DirEntries  - checked 20000 save's   (thnx m_dr_m)
- FAT32: Saves to LBA 65535 crashes
- Internal Restructure->Some more games should be run.
- V1 (default) & V2 mode introduce ->Some more games should be run.
- |disc , then cat crashes
- CAS_IN_CHAR: Reads sometimes a little bit too much bytes & improved 1A-Handling (Orgams)
- Sometimes deleted directories will be displayed (thnx netmercer)

Open are you two issues:
- Globs doesn't work as in AMSDOS (dir+era)     (thnx m_dr_m)
  E.g. |DIR,"*.BAK"
  E.g. |ERA,"*.BAK"
- Cannot save an ASCII file larger than 64k. The result is truncated.        (thnx m_dr_m)
  => But i must check, if this is solveable....
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: m_dr_m on 15:46, 22 June 19
- Make-Directory: Convert Directory-Names to Uppercase (else Directory can't read by Windows)


Oh that's a pity! I enjoy the lowercase names (more legible).
[/size]
[/size]
Quote

- Cannot save an ASCII file larger than 64k. The result is truncated.        (thnx m_dr_m)
  => But i must check, if this is solveable....
Why not? It works like a charm in Amsdos.


I would be happy to beta-test!
Title: Re: CubeMDOS / FAT16+FAT32-OS - for XMASS, Symbiface 3,HXC/Gotek
Post by: SOS on 21:53, 23 June 19
I would be happy to beta-test!
:D :D :D :D
https://sourceforge.net/projects/symbiface3/files/Alpha%20%28Next%20Version%29/ (https://sourceforge.net/projects/symbiface3/files/Alpha%20%28Next%20Version%29/)
(Version runs without an Problem in Winape)
You need an YANCC-Update and configure CubeMDOS with the Config.bas in the DSK-File

But Problems, Questions & …. please only per PM