dirkwhoffmann / vAmiga

vAmiga is a user-friendly Amiga 500, 1000, 2000 emulator for macOS
https://dirkwhoffmann.github.io/vAmiga
Other
293 stars 24 forks source link

Hard drive geometry not recognized correctly #734

Closed dirkwhoffmann closed 1 year ago

dirkwhoffmann commented 1 year ago

This HDF is reported to have 0 heads:

Bildschirmfoto 2022-09-06 um 17 10 11
mras0 commented 1 year ago

It has 578112 blocks and GeometryDescriptor::driveGeometries (called from HDFFile::getGeometryDescriptor) tries to find a suitable geometry, but because all of them result in more than 1024 cylinders they're rejected. FWIW WinUAE just uses 18066/1/32 (C/H/S) for this one. Increasing HDR_C_MAX works around it (3011/6/32 is possible for example). I don't think you'll run in to any issues increasing it to ~16M (just checked my own implementation, and the only place where the number of cylinders is visible to emulation is with direct SCSI commands, and there 24-bit values are supported).

dirkwhoffmann commented 1 year ago

Fixed