davidgiven / fluxengine

PSOC5 floppy disk imaging interface
MIT License
359 stars 69 forks source link

Apple 2 #640

Closed jonnixxx closed 1 year ago

jonnixxx commented 1 year ago

Hi, I have greaseweazle V4 + Mitsumi D509V3 floppy drive+ Apple A2M4050 floppy drive and i am using the fluxengine software. And the questions:

davidgiven commented 1 year ago

Hello,

I actually know very little about different models of drive --- there are far too many. Most 5.25" 1.2MB double-sided drives should work with the Apple II formats, as far as I'm aware. Regarding the Apple drive, the GreaseWeazle supports the interface and FluxEngine knows how to access them. See the GreaseWeazle documentation for the electrical connection. For FluxEngine, you'll need to add the apple2_drive option. This should let you use the Apple drive for any single-sided 40-track format.

Do be aware that FluxEngine only supports vanilla Apple II formats, so no weird copy protected stuff. They're just too weird.

jonnixxx commented 1 year ago

Thank you very much.

jonnixxx commented 1 year ago

Re: [davidgiven/fluxengine] Apple 2 (Issue #640)

Hi David,

Now, I have a Panasonic JU-475-4 floppy drive, but i can not read a correct Apple II disk. I am using this line: fluxengine read apple2 --appledos  --usb.greaseweazle.port=COM4

I wrote an Apple II DOS 3.3 to real disk by ADTPro on Apple IIc. If i read the disk, the first sector is OK, (binary compare with original .DSK image) but after ... no.

Could you please help me?

Regards, Arpad

From: David Given @.> To: davidgiven/fluxengine @.> Date: Monday, January 23, 2023, 10:47:51 PM Subject: [davidgiven/fluxengine] Apple 2 (Issue #640) Hello, I actually know very little about different models of drive --- there are far too many. Most 5.25" 1.2MB double-sided drives should work with the Apple II formats, as far as I'm aware. Regarding the Apple drive, the GreaseWeazle supports the interface and FluxEngine knows how to access them. See the GreaseWeazle documentation for the electrical connection. For FluxEngine, you'll need to add the apple2_drive option. This should let you use the Apple drive for any single-sided 40-track format. Do be aware that FluxEngine only supports vanilla Apple II formats, so no weird copy protected stuff. They're just too weird. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

davidgiven commented 1 year ago

If FluxEngine thinks the disk reads all right (no bad sectors in the map displayed at the end), then chances are it's because of the sector remapping. Try --prodos instead (or neither). Did you have to tell ADTPro what format the disk was when you wrote it?

jonnixxx commented 1 year ago

Re: [davidgiven/fluxengine] Apple 2 (Issue #640)

The floppy is good. Booting the DOS 3.3 on original Apple II. (IIc, IIGS, IIe) Ok. Tomorrow, i will try. Many thanks.

From: David Given @.> To: davidgiven/fluxengine @.> Date: Monday, January 23, 2023, 11:40:48 PM Subject: [davidgiven/fluxengine] Apple 2 (Issue #640) If FluxEngine thinks the disk reads all right (no bad sectors in the map displayed at the end), then chances are it's because of the sector remapping. Try --prodos instead (or neither). Did you have to tell ADTPro what format the disk was when you wrote it? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jonnixxx commented 1 year ago

Re: [davidgiven/fluxengine] Apple 2 (Issue #640)

Hi David,

I have tested it, but i confused. Please find the attached file. (The mailserver can not accept the attachment ... ) The sector order is not correct. (--prodos --appledos). Could you please check it?

Regards, Arpad

From: David Given @.> To: davidgiven/fluxengine @.> Date: Monday, January 23, 2023, 11:40:48 PM Subject: [davidgiven/fluxengine] Apple 2 (Issue #640) If FluxEngine thinks the disk reads all right (no bad sectors in the map displayed at the end), then chances are it's because of the sector remapping. Try --prodos instead (or neither). Did you have to tell ADTPro what format the disk was when you wrote it? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jonnixxx commented 1 year ago

Hi David,

I have tested it, but i confused. Please find the attached file. The sector order is not correct. (--prodos --appledos). Could you please check it?

Regards, Arpad Read.zip https://drive.google.com/file/d/1PdJOpMs1PyFsH4t-SkNOOEQ6VBzI05Gd/view?usp=drive_web

On Mon, 23 Jan 2023 at 23:40, David Given @.***> wrote:

If FluxEngine thinks the disk reads all right (no bad sectors in the map displayed at the end), then chances are it's because of the sector remapping. Try --prodos instead (or neither). Did you have to tell ADTPro what format the disk was when you wrote it?

— Reply to this email directly, view it on GitHub https://github.com/davidgiven/fluxengine/issues/640#issuecomment-1401106298, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2BG6PILHEURRONSKFC7OULWT4CHBANCNFSM6AAAAAAUCVSJDQ . You are receiving this because you authored the thread.Message ID: @.***>

jonnixxx commented 1 year ago

Re: [davidgiven/fluxengine] Apple 2 (Issue #640)

Hi David,

I have tested (Apple DOS 3.3 boot disk) the apple2 read again (the write is fail, always) with Panasonic JU-475. https://wiki.applesaucefdc.com/doku.php?id=drives:panasonic_ju475

fluxengine read apple2 -o ADOS.img --drive.high_density=0 --usb.greaseweazle.port=COM4 fluxengine read apple2 --appledos -o ADOSappledos.img --drive.high_density=0 --usb.greaseweazle.port=COM4 fluxengine read apple2 --prodos -o ADOSprodos.img --drive.high_density=0 --usb.greaseweazle.port=COM4

Result: (I have checked the track 0) without --appledos and -- prodos option: the sector order is: Apple dos 3.3. It is correct. (0,7,e,6,d,5,c,4,b,3,a,2,9,1,8,f) with --appledos option, the sector order is: Prodos sector order. It is not correct. (0,8,1,9,2,a,3,b,4,c,5,d,6,e,7,f) with --prodos option, the sector order is: fail (0,e,d,c,b,a,9,8,7,6,5,4,3,2,1,f)

And, the fluxengine or drive can not read the sector 5 and 6, just 0 bytes.

Regards, Arpad

From: David Given @.> To: davidgiven/fluxengine @.> Date: Monday, January 23, 2023, 11:40:48 PM Subject: [davidgiven/fluxengine] Apple 2 (Issue #640) If FluxEngine thinks the disk reads all right (no bad sectors in the map displayed at the end), then chances are it's because of the sector remapping. Try --prodos instead (or neither). Did you have to tell ADTPro what format the disk was when you wrote it? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

davidgiven commented 1 year ago

Could you paste in the map shown at the end of the fluxengine read?

jonnixxx commented 1 year ago

Re: [davidgiven/fluxengine] Apple 2 (Issue #640)

Hi David,

I have changed the Panasonic drive to Mitsumi drive, and i wrote the first bootable Apple 2 floppy disk. It is booting on Apple IIc. (without --appledos or --prodos options) I have a question:

Regards, Arpad

This is the new map:      Tracks -> 1         2         3         H.SS 01234567890123456789012345678901234

  1. 0 ...................................
  2. 1 ...................................
  3. 2 ...................................
  4. 3 ...................................
  5. 4 ...................................
  6. 5 ...................................
  7. 6 ...................................
  8. 7 ...................................
  9. 8 ...................................
  10. 9 ................................... 0.10 ................................... 0.11 ................................... 0.12 ................................... 0.13 ................................... 0.14 ................................... 0.15 ................................... Good sectors: 560/560 (100%) Missing sectors: 0/560 (0%) Bad sectors: 0/560 (0%)       IMG: wrote 35 tracks, 1 sides, 140 kB total to ADOS.img

From: David Given @.> To: davidgiven/fluxengine @.> Date: Wednesday, January 25, 2023, 11:17:35 PM Subject: [davidgiven/fluxengine] Apple 2 (Issue #640) Could you paste in the map shown at the end of the fluxengine read? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jonnixxx commented 1 year ago

Re: [davidgiven/fluxengine] Apple 2 (Issue #640)

Panasonic:

The map list is OK, but sector 6 and 5 filled by 0 bytes.

And, this is the BAD Panasonic map: (seems like good) H.SS 01234567890123456789012345678901234

  1. 0 ...................................
  2. 1 ...................................
  3. 2 ...................................
  4. 3 ...................................
  5. 4 ...................................
  6. 5 ...................................
  7. 6 ...................................
  8. 7 ...................................
  9. 8 ...................................
  10. 9 ................................... 0.10 ................................... 0.11 ................................... 0.12 ................................... 0.13 ................................... 0.14 ................................... 0.15 ................................... Good sectors: 560/560 (100%) Missing sectors: 0/560 (0%) Bad sectors: 0/560 (0%)       IMG: wrote 35 tracks, 1 sides, 140 kB total to ADOS.img

From: David Given @.> To: davidgiven/fluxengine @.> Date: Wednesday, January 25, 2023, 11:17:35 PM Subject: [davidgiven/fluxengine] Apple 2 (Issue #640) Could you paste in the map shown at the end of the fluxengine read? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jonnixxx commented 1 year ago

Panasonic:

The map list is OK, but sector 6 and 5 filled by 0 bytes.

And, this is the BAD Panasonic map: (seems like good) H.SS 01234567890123456789012345678901234

  1. 0 ...................................
  2. 1 ...................................
  3. 2 ...................................
  4. 3 ...................................
  5. 4 ...................................
  6. 5 ...................................
  7. 6 ...................................
  8. 7 ...................................
  9. 8 ...................................
  10. 9 ................................... 0.10 ................................... 0.11 ................................... 0.12 ................................... 0.13 ................................... 0.14 ................................... 0.15 ................................... Good sectors: 560/560 (100%) Missing sectors: 0/560 (0%) Bad sectors: 0/560 (0%) IMG: wrote 35 tracks, 1 sides, 140 kB total to ADOS.img

From: David Given @.> To: davidgiven/fluxengine @.> Date: Wednesday, January 25, 2023, 11:17:35 PM Subject: [davidgiven/fluxengine] Apple 2 (Issue #640) Could you paste in the map shown at the end of the fluxengine read?

-- Reply to this email directly or view it on GitHub: https://github.com/davidgiven/fluxengine/issues/640#issuecomment-1404301487 You are receiving this because you authored the thread.

Message ID: @.***>

davidgiven commented 1 year ago

Those all look like good reads. FluxEngine has at least thought it's read the disk correctly.

I did recently rewrite a lot of the sector ordering code. It looks like I broke something. I'm actually away for a few days and will only be able to get to this next week, but if you want to try it yourself, the Apple II format definition is in this file: https://github.com/davidgiven/fluxengine/blob/master/src/formats/apple2.textpb

If you download it, you can modify it, and then use the modified version by using the filename of the textpb file instead of the format name. So:

fluxengine read apple2.textpb ...options here...

There are two 'option' chunks at the bottom with the sector order in them. The file format should be obvious. I see that currently the prodos format defines the sectors as 0,2,4,6,8,10,12,14,1,3,5,7,9,11,13,15, which is clearly wrong...

jonnixxx commented 1 year ago

Hi David,

Many thanks.

Regards, Arpad

On Thu, 26 Jan 2023 at 00:23, David Given @.***> wrote:

Those all look like good reads. FluxEngine has at least thought it's read the disk correctly.

I did recently rewrite a lot of the sector ordering code. It looks like I broke something. I'm actually away for a few days and will only be able to get to this next week, but if you want to try it yourself, the Apple II format definition is in this file: https://github.com/davidgiven/fluxengine/blob/master/src/formats/apple2.textpb

If you download it, you can modify it, and then use the modified version by using the filename of the textpb file instead of the format name. So:

fluxengine read apple2.textpb ...options here...

There are two 'option' chunks at the bottom with the sector order in them. The file format should be obvious. I see that currently the prodos format defines the sectors as 0,2,4,6,8,10,12,14,1,3,5,7,9,11,13,15, which is clearly wrong...

— Reply to this email directly, view it on GitHub https://github.com/davidgiven/fluxengine/issues/640#issuecomment-1404352648, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2BG6PNHHAJRTUUUPYP4UILWUGYVPANCNFSM6AAAAAAUCVSJDQ . You are receiving this because you authored the thread.Message ID: @.***>