BlueSCSI / BlueSCSI-v2

Open source, open hardware, SCSI emulator using the Pi Pico PR2040
https://bluescsi.com
GNU General Public License v3.0
225 stars 23 forks source link

BlueSCSI.ini documentation CHS values #32

Closed z80micro-mc closed 1 year ago

z80micro-mc commented 1 year ago

How do I specify CHS parameters in Bluescsi.ini?

The example comments:

number of heads: 'HeadsPerCylinder=4' sectors per track: 'SectorsPerTrack=33'

but omits details on number of cylinders!

Peter

erichelgeson commented 1 year ago

Cylinders is calculated here https://github.com/BlueSCSI/BlueSCSI-v2/blob/main/lib/SCSI2SD/src/firmware/geometry.c#L83 - Do you have a situation where you'd need to set cylinders where it would not match that calculated value?

z80micro-mc commented 1 year ago

I am looking at what sets the values in physical geometry for page 4 for 'modeSense' and 'modeSelect' coomands.

Peter

erichelgeson commented 1 year ago

Right, that method is called for page 4 -https://github.com/BlueSCSI/BlueSCSI-v2/blob/main/lib/SCSI2SD/src/firmware/mode.c#L421

erichelgeson commented 1 year ago

If you have any other questions on CHS feel free to re-open or reply here (or open a new issue/discussion)