Author Topic: HDOS drivers for SymbiFace-II/X-MASS  (Read 10366 times)

0 Members and 1 Guest are viewing this topic.

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
HDOS drivers for SymbiFace-II/X-MASS
« on: 14:22, 20 March 16 »
People,

I have managed to now get a set of HDOS drivers to read from an IDE file in WinAPE via the SF2 emulation. I am in the process of checking these with HDOS itself.

I have also created a very simple disk editor (there is no GUI, just keyboard entries).

Attached is the ROM (+ source) with the drivers to READ/WRITE/INIT the SymbiFace-II/X-MASS device. INIT is part of the HDOS startup to get the partition geometry for the FAT32 structure definition.

Can people please try this on a REAL CPC with X-MASS/SymbiFace-II and let me know if the editor is fully function (Note: be aware that write may corrupt the media, so use it at your own peril). The read of the first sector matches the expected contents for a FAT32 partition.

The disk editor has the following commands:

'R' - Read current sector
'W' - write current sector
'S' - read sector x
'F' - forward to next sector
'B' - Back to previous sector
'P' - display next page of current sector
'E' - change contents (offset from current display data).
'I' - display Boot sector info (if it is current sector)

To start the editor

RUN "SF2DE

if people want to test this in WinAPE, remember to set it up with an IDE file associated with the SF2 interface.

if an error is displayed as a number (check code DR-SF.asm for what codes mean).

rpalmer

Offline Joseman

  • 6128 Plus
  • ******
  • Posts: 780
  • Country: es
  • Liked: 628
  • Likes Given: 430
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #1 on: 02:05, 21 March 16 »

Can people please try this on a REAL CPC with X-MASS/SymbiFace-II and let me know if the editor is fully function (Note: be aware that write may corrupt the media, so use it at your own peril). The read of the first sector matches the expected contents for a FAT32 partition.

Hi,

Here are the results with SymbiFaceII and a 4GB FAT32 partition:



It seems valid judging the message that can be read in spanish...

for me its working correctly

if you want any particular test just tell me!


Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 776
  • Country: gb
  • Liked: 213
  • Likes Given: 215
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #2 on: 10:26, 21 March 16 »
Hi Ray,
presumably there are commands such as |cd, |dir etc?

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #3 on: 13:42, 21 March 16 »
Munchausen,

The ROM posted only has the drivers to READ/WRITE/INIT the device. HDOS which has the file system contains the required commands to access the media as if it were AMSDOS formatted. The HDOS ROM is currently under going testing to make sure it works as expected.

Joseman,

The pictures seem to not correlate with an expected sector format for FAT32 (See attached images from WinAPE with a test IDE file).

Rpalmer

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #4 on: 13:50, 21 March 16 »
Joseman,

I just re-looked at your pictures and find that your device has an MBR (Master Boot Record). The sector is found in normal IDE devices formatted in Windows to assign this MBR to the first sector for multiple partitions on the same device. The pictures I have attached shows that the sector I am dealing with may be formatted with just one partition and has no need for the MBR. This would make it very difficult to know which is which under HDOS.

I will need to look further into how I can manage this situation.

rpalmer

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 776
  • Country: gb
  • Liked: 213
  • Likes Given: 215
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #5 on: 16:15, 21 March 16 »
Looks as though it works then :)

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #6 on: 01:05, 22 March 16 »
There's some detailed information here on the MBR. WinAPE IDE files could in theory support multiple partitions since they are just raw sector data. The latest version of WinAPE also works with SD Cards and USB drives being selectable as well as CD/DVD/BR drives (not sure if these are actually fully functional since the current version probably only handles 512 bytes sectors, not sure).

Offline HAL 6128

  • 464 Plus
  • *****
  • Posts: 493
  • Country: de
    • index.php?action=treasury
  • Liked: 244
  • Likes Given: 1243
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #7 on: 09:12, 22 March 16 »
....
WinAPE IDE files could in theory support multiple partitions since they are just raw sector data.
....
Yes, I created an image which is in principle a mirror of a whole harddrive ~768MB with 6 partitions (3 primary  and 3 extended each 128MB), and it works fine reading it out sector wise under WinApe. :)
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #8 on: 12:41, 22 March 16 »
HAL6128,

Could you please post a few screen shots so that I can get a better picture of the image you mentioned to improve the drivers.

Rpalmer

Offline HAL 6128

  • 464 Plus
  • *****
  • Posts: 493
  • Country: de
    • index.php?action=treasury
  • Liked: 244
  • Likes Given: 1243
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #9 on: 09:47, 24 March 16 »
A picture from the image? It's a simple image of a harddrive created under linux with the 'dd' command.
The first sector is a common MBR. Nothing spectacular.

* Partition2.PNG
(107.63 kB, 558x1017 - viewed 97 times)

 [ Invalid Attachment ]
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #10 on: 15:51, 25 March 16 »
Can someone please tell me how the SF2 emulation in WinAPE works.

I am getting nowhere trying to find where the start of the directories are in the test ide files supplied with the emulation.

I have looked at the first sector and find that is says there are &0150CF9F sectors (22073247 sectors, i.e 10 GigaBytes), yet the file is 94K. This tells me that something is seriously missing...

I calculated from the test.ide file where the directory is expected to be and find it is not there.

The specification for Boot sector data matches the original pictures I posted earlier about sector 0 of the test ide file.
The start of directory is expected to be calculated as follows:

First Sector of Directory Data = Reserved Sector Count + (Number of FATS * Number of FAT sector)

The Information I have for the formula is

Reserved Sector Count = 32
Number of FATS = 2
Number of FAT sector = &2a10 (10768)

The number i get is &5440 (21568), I read this sector and get all &FF for all bytes.

Attached is the test ide file I had played with using symbos to copy a few files and create a directory.

I also checked the first 64 sectors at the start of the test ide file and seem to locate/verify the reserved sector contents and start of the FAT.

rpalmer

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #11 on: 15:59, 25 March 16 »
Attached is the updated dsk file and ROM which i tested the test ide file with.

just run sf2de

Offline Joseman

  • 6128 Plus
  • ******
  • Posts: 780
  • Country: es
  • Liked: 628
  • Likes Given: 430
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #12 on: 21:07, 25 March 16 »
Attached is the updated dsk file and ROM which i tested the test ide file with.

just run sf2de

Do you need any test on the real deal?

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #13 on: 23:21, 25 March 16 »
joseman,

Could you please check via real hardware and manual calculations using your configuration.

rpalmer

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #14 on: 03:02, 26 March 16 »
I found my problem in reading sector data.

I had the values in REG HL back to front and was reading the wrong sector, but write still causes issues (i completes, but a read back hangs...funny)

rpalmer

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #15 on: 11:20, 27 March 16 »
People,

I have now got the drivers to read successfully sectors from the test.ide file in WinAPE via the developmental HDOS/Drivers ROMS. These are attached (see Zip file contents).

A test program "tc-sf2.bas" is included in the attached dsk file and a sanp shot of its output is attached as well.

The test of the SF2 for its catalog works with out obvious issues, but further testing to read a file will add confidence to HDOS support of the SF2 interface.

Once testing of the file read/write side is successful, i feel that HDOS will then be able to offer to the CPC users a means to access Hard discs in BASIC via the SF2.

I would also like to see if X-MASS works with these items as I understand that the X-MASS has the same I/O ports.

rpalmer

Offline dirtybb

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 28
  • Likes Given: 98
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #16 on: 13:53, 27 March 16 »
Hi
Hi,

Here is the result running tc-sf2.bas on real CPC 6128 with XMASS FAT 16.
HDos driver and HDos are in pos 5/4 in XMEM.
 [ Invalid Attachment ]


Last line loops indefinitely.

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #17 on: 14:21, 27 March 16 »
dirtybb,

Could you also please run the "sf2de.bas" and get snapshots after it starts along with the partition information.

Your setup maybe starting with an MBR rather than the Boot sector and this may cause the initialisation to end up with the wrong values for the test file output you show.

rpalmer

Offline dirtybb

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 28
  • Likes Given: 98
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #18 on: 14:40, 27 March 16 »
sure,
 [ Invalid Attachment ]

Offline dirtybb

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 28
  • Likes Given: 98
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #19 on: 14:46, 27 March 16 »
Info:
 [ Invalid Attachment ]

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #20 on: 15:38, 27 March 16 »
dirtybb,

I can see from the picture that the total sectors = &367E0 (i.e 223200). The sectors per block (AKA cluster) is 4, so the number of clusters is 55800.
I have checks my code and find that the driver did not properly determine FAT16/FAT32 type. I will correct this and get back to you.

rpalmer

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #21 on: 07:38, 28 March 16 »
dirtybb,

 I have what i think is a corrected driver and HDOS to support FAT16 on SF2.

Give this one a go and see if it works.

rpalmer

Offline dirtybb

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 28
  • Likes Given: 98
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #22 on: 13:02, 28 March 16 »
Hi
It does the same.
Something i did not mention yesterday, i ve to run 2 times the test program.
First, it gives this :


* IMG_0748 (2).JPG
(1950.44 kB, 1993x1912 - viewed 88 times)


Then i type run and :
 [ Invalid Attachment ]
« Last Edit: 13:44, 28 March 16 by dirtybb »

Offline rpalmer

  • 6128 Plus
  • ******
  • Posts: 548
  • Country: au
  • Liked: 350
  • Likes Given: 18
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #23 on: 15:28, 28 March 16 »
dirtybb,

The number in the geometry details appear somewhat unusual, however it might be that my understanding of differences between FAT16 and FAT32 may be the cause.

You can try the attached rom.

I should note that it is difficult to debug without actual hardware or an IDE file with your config (hopefully for not too long).

Rpalmer

Offline dirtybb

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 28
  • Likes Given: 98
Re: HDOS drivers for SymbiFace-II/X-MASS
« Reply #24 on: 15:52, 28 March 16 »
dirtybb,

The number in the geometry details appear somewhat unusual, however it might be that my understanding of differences between FAT16 and FAT32 may be the cause.

You can try the attached rom.

I should note that it is difficult to debug without actual hardware or an IDE file with your config (hopefully for not too long).

Rpalmer

Same results.
Before the tests, i freshly formated the XMASS with Prodatron's Tool under Symbos, and then created a few directories/copied a few files.

On its side, impDOS can access the catalogue/browse the directories.

If you need something else, just tell me
« Last Edit: 02:11, 29 March 16 by dirtybb »