Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make bootloaders retry reading sectors on failure #185

Open
boeckmann opened this issue Aug 7, 2024 · 2 comments
Open

Make bootloaders retry reading sectors on failure #185

boeckmann opened this issue Aug 7, 2024 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@boeckmann
Copy link
Contributor

The floppy on my Pentium MMX system produces occasional read errors. The boot.asm (and probably the others) give up on the first read error without retrying, making the system fail to boot from time to time. Can the bootloaders be altered to at least retry to read one-two times?

@PerditionC PerditionC added bug Something isn't working enhancement New feature or request labels Aug 7, 2024
@ecm-pushbx
Copy link
Contributor

lDOS boot loaders can do that however to use their _COMPAT_FREEDOS set some options need to be disabled to fit the loader into the sector.

The loaders embedded in lDebug do also retry reads so you could load lDebug using a _COMPAT_LDOS loader then instruct the debugger to load your FreeDOS, EDR-DOS, or lMS-DOS kernel. The commands needed for this can be stored in an ldebug.sld for boot startup, possibly sleeping for a moment and checking for keypresses to allow dropping into the debugger shell instead of chaining to the loaded kernel immediately.

@boeckmann
Copy link
Contributor Author

lDOS boot loaders can do that however to use their _COMPAT_FREEDOS set some options need to be disabled to fit the loader into the sector.

The loaders embedded in lDebug do also retry reads so you could load lDebug using a _COMPAT_LDOS loader then instruct the debugger to load your FreeDOS, EDR-DOS, or lMS-DOS kernel. The commands needed for this can be stored in an ldebug.sld for boot startup, possibly sleeping for a moment and checking for keypresses to allow dropping into the debugger shell instead of chaining to the loaded kernel immediately.

Perhaps I could do this, but that would not exactly be a solution for the "ordinary" user :) So either the current boot loaders should be extended to handle this, or they should be replaced by derivates of your lDOS loaders to be shipped with the SYS command, if that is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants