Mellvik / TLVC

Tiny Linux for Vintage Computers
Other
9 stars 0 forks source link

[kernel] Change bootopts chs0 option in preparation for MFM driver #54

Closed Mellvik closed 6 months ago

Mellvik commented 6 months ago

PC/XT generation systems do not have any standardized means to specify disk drive types or parameters. Some use controller switches, some allow BIOS calls, some have proprietary extensions in the controller firmware etc. We don't have the luxury (i.e. RAM) to look for all these variants, and /bootopts does the trick anyway.

Thus this extension to the chs0 /bootopts option in preparation for introducing the MFM diver.

The drives using hdparms will use default values when parameters are missing. For IDE drives, that is the values provided by the drive itself. For MFM it's the values for a type 1 drive, 10MB - 406/4/17/128.