Smonson's untitled simple harddisk project

General discussions or ideas about hardware.
User avatar
Smonson
Posts: 708
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Smonson's untitled simple harddisk project

Post by Smonson »

beel1 wrote: Fri Jul 17, 2020 12:06 pm Maybe you can start first with Atari's AHDI?
ICD made ACSI-SCSI adapters known for their extended SCSI commands set support (group 1) using 2-bytes commands (IIRC $1F+group1 command byte) where ACSI is limited to 5bits commands (group0)
I think you're right there, I have also seen another forum post hinting about this behaviour. Looks like opcode 0x1f is used as as escaping mechanism. Excellent to know!

I think I also discovered something about the other problem, too. Looks like ENQUIRY reports more data about the device, including the total number of blocks, if the host makes requests with the ENABLE VITAL PRODUCT DATA bit set and PAGE 0xb0 (Block Limits) parameter. Well, I guess I'll implement that next!
User avatar
Smonson
Posts: 708
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Smonson's untitled simple harddisk project

Post by Smonson »

No no, I'm totally out of the ballpark. There is a READ BLOCK LIMITS command in scsi-0, but it's not mentioned at all in the Integration Guide, and it's so old that it doesn't appear in the copy of the SCSI spec that I have. But I finally found a reference to it on page 121 of an old scanned copy of the manual for a tape drive from 1986 :lol:
User avatar
Smonson
Posts: 708
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Smonson's untitled simple harddisk project

Post by Smonson »

Nope, wrong again. I'm just going to stop talking now.
User avatar
stephen_usher
Posts: 5578
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: Smonson's untitled simple harddisk project

Post by stephen_usher »

See page 460 of this document (Rigid drive geometry parameters page, 0x04h ): https://www.google.co.uk/url?sa=t&rct=j ... I2B3FSW_YD
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
Smonson
Posts: 708
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Smonson's untitled simple harddisk project

Post by Smonson »

stephen_usher wrote: Fri Jul 17, 2020 6:57 pm See page 460 of this document (Rigid drive geometry parameters page, 0x04h ): https://www.google.co.uk/url?sa=t&rct=j ... I2B3FSW_YD
Thank you very much @stephen_usher! This has gotta be it!
User avatar
Smonson
Posts: 708
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Smonson's untitled simple harddisk project

Post by Smonson »

Phew! After implementing that geometry page thing, plus read, write, and format, I can format the device in the AHCI drivers now (with 100% bad sectors). ICD Pro doesn't work at all. I think it's set up to only work with SCSI drives.

I set it up with 1 head, 10 sectors per track, and 8 tracks but the formatter utility decided there were 780 sectors and a total of 32MB of data. No idea how it's arriving at those numbers. But perhaps once I add the ability to save and load data to an SD card there'll be more clues to work from.
beel1
Posts: 55
Joined: Mon Feb 25, 2019 10:36 pm

Re: Smonson's untitled simple harddisk project

Post by beel1 »

Rigid Drive Geometry Parameters page (04h)
This mode page has been declared obsolete by the T10 committee.
So I guess this is the reason why RaSCSI cannot be partitioned with AHDI or SCSItools (511MB falsely reported IIRC), but is OK with ICD Pro (my ACSI-SCSI adapter is group1 compatible) :D
User avatar
Smonson
Posts: 708
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Smonson's untitled simple harddisk project

Post by Smonson »

So, I think I got this all pretty close to working... I still need to speed up the SD card transfers because there's a 3-second timeout on ACSI transfers, after which the operation gets aborted. And of course the AHDI drivers insist on doing 128-sector bursts which is too many for most of my SD cards to do in 3 seconds. However, I do have one that seems fast enough. I will work on that problem later.

I got through the AHDI formatting and partitioning process OK but then nothing happens. The docs mention assigning drive letters to the partitions but they don't explain how to do that.
czietz
Posts: 548
Joined: Sun Jan 14, 2018 1:02 pm

Re: Smonson's untitled simple harddisk project

Post by czietz »

Drive letters are assigned to the partitions automatically at the next reboot when AHDI is loaded.
User avatar
Smonson
Posts: 708
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Smonson's untitled simple harddisk project

Post by Smonson »

Thanks @czietz. I guess that means there's something wrong with the data on the disk itself.
Post Reply

Return to “HARDWARE DISCUSSIONS”