Skip to content

[kernel] Allow unimplemented FDC version command for MartyPC in direct FD driver#2682

Merged
ghaerr merged 1 commit into
masterfrom
martypc1
May 14, 2026
Merged

[kernel] Allow unimplemented FDC version command for MartyPC in direct FD driver#2682
ghaerr merged 1 commit into
masterfrom
martypc1

Conversation

@ghaerr

@ghaerr ghaerr commented May 14, 2026

Copy link
Copy Markdown
Owner

This is the first of two PRs being made to overcome emulation issues running ELKS on MartyPC. Discussed in detail in #2678.

This PR works around new information that the VERSION command is in fact not implemented in uDP765 FDC chips. While real hardware returns an invalid command code of 0x80 which is handled by the ELKS DF driver, MartyPC does not (yet) do so. This workaround now reports "8272A assumed" and allows continuation of the boot, rather than disallowing further DF driver use as was done previously.

During testing it was found that when a 2.88M floppy image is booted using the DF driver, an incorrect and unnecessary message "df: need 82077 FDC for disc" was displayed and the driver possibly not initialized correctly. This is also fixed in this PR.

@ghaerr ghaerr merged commit aed4bca into master May 14, 2026
1 check passed
@ghaerr ghaerr deleted the martypc1 branch May 14, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant