Booting a drive with Syslinux installed and running disk.c32 in qemu, will
show some garbage characters for drive 0xE0:
$ qemu -boot c -hda /dev/sdb
The following patch (by pam) fixes it (it is fixed in HDT long time ago).
- Gert Hulselmans
diff --git a/com32/modules/disk.c b/com32/modules/disk.c
index e94a36b..62914f4 100644
--- a/com32/modules/disk.c
+++ b/com32/modules/disk.c
@@ -33,7 +33,7 @@ int main(int argc __attribute__ (( unused )),
err = get_drive_parameters(d);
/* Do not print output when drive does not exists */
- if (err == -1)
+ if (err == -1 || !d->cbios)
continue;
if (err) {
On Sat, Mar 6, 2010 at 2:25 PM, Gert Hulselmans <gerth at zytor.com> wrote:> > Booting a drive with Syslinux installed and running disk.c32 in qemu, will > show some garbage characters for drive 0xE0: >Hello Erwan, You can find the pull request below (for the contrib repo). Thanks! -- Pierre-Alexandre Meyer http://mouraf.org The following changes since commit cdfd4a411a53fc128591c1fe2b93580cf210c1da: H. Peter Anvin (1): NEWS, version: update for 3.86 are available in the git repository at: git://git.zytor.com/users/pam/hdt-pierre.git fixes-for-3.86 Pierre-Alexandre Meyer (1): disk.c32: add disk geometry check com32/modules/disk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)