[syslinux] HDT: Doesn't work with syslinux
Kim Mik
kimmik999999 at yahoo.co.uk
Tue Mar 24 06:49:41 PDT 2009
I added some code to sebastian's patch, which skips the detection of the
problematic f2 drive.
====================================================================
#include <getkey.h>
......
/* Try to detect disks from port 0x80 to 0xff */
/* Skip detection of "drive: f2: getbios: getparm: extended" */
void detect_disks(struct s_hardware *hardware)
{
hardware->disk_detection = true;
for (int drive = 0x80; drive < 0xff; drive++) {
if (drive == 0xf2) {
printf("\nskip drive: f2");
}
else {
printf("\ndrive: %x ", drive);
if (get_disk_params(drive, hardware->disk_info) != 0)
continue;
printf(" got info\n");
struct diskinfo *d = &hardware->disk_info[drive];
printf
(" DISK 0x%X: %s : %s %s: sectors=%d, s/t=%d head=%d : EDD=%s\n",
drive, d->aid.model, d->host_bus_type, d->interface_type,
d->sectors, d->sectors_per_track, d->heads,
d->edd_version);
}
}
printf("\nDetect disks is finished.\nPress any key to continue\n");
get_key(stdin, 0);
}
===============================================================
The output:
===============================================================
drive: e1
drive: e2
drive: e3
drive: e4
drive: e5
drive: e6
drive: e7
drive: e8
drive: e9
drive: ea
drive: eb
drive: ec
drive: ed
drive: ee
drive: ef
drive: f0
drive: f1
skip drive: f2
drive: f3
drive: f4
drive: f5
drive: f6
drive: f7
drive: f8
drive: f9
drive: fa
drive: fb
drive: fc
drive: fd
drive: fe
Detect disks is finished.
Press any key to continue.
==============================================================
After I press continue, the main menu of HDT is shown.
It seems that HDT doesn't like the extended atribute of the f2 drive.
But when I boot the original HDT from CD, with the external HDD attached,
HDT doesn't hang.
Shouldn't you code also try to detect disk 0xff?
Change:
for (int drive = 0x80; drive < 0xff; drive++) {
To:
for (int drive = 0x80; drive <= 0xff; drive++) {
Gert Hulselmans
----- Original Message ----
From: Kim Mik <kimmik999999 at yahoo.co.uk>
To: For discussion of Syslinux and tftp-hpa <syslinux at zytor.com>
Sent: Tuesday, 24 March, 2009 12:43:26
Subject: Re: [syslinux] HDT: Doesn't work with syslinux
This is the output that I can see:
drive: da: getbios: getparm
drive: db: getbios: getparm
drive: dc: getbios: getparm
drive: dd: getbios: getparm
drive: de: getbios: getparm
drive: df: getbios: getparm
drive: e0: getbios: getparm
drive: e1: getbios: getparm
drive: e2: getbios: getparm
drive: e3: getbios: getparm
drive: e4: getbios: getparm
drive: e5: getbios: getparm
drive: e6: getbios: getparm
drive: e7: getbios: getparm
drive: e8: getbios: getparm
drive: e9: getbios: getparm
drive: ea: getbios: getparm
drive: eb: getbios: getparm
drive: ec: getbios: getparm
drive: ed: getbios: getparm
drive: ee: getbios: getparm
drive: ef: getbios: getparm
drive: f0: getbios: getparm
drive: f1: getbios: getparm
drive: f2: getbios: getparm: extended
The PC freezes (Ctrl + Alt + Del doesn't work).
I will try to adapt the source code and let it skip drive f2.
Gert Hulselmans
----- Original Message ----
From: Erwan Velu <erwan at seanodes.com>
To: For discussion of Syslinux and tftp-hpa <syslinux at zytor.com>
Sent: Tuesday, 24 March, 2009 9:54:23
Subject: Re: [syslinux] HDT: Doesn't work with syslinux
Kim Mik wrote:
> HDT works on the stick inside qemu:
>
> $ sudo qemu -boot c -hda /dev/sdf
>
>
> I will try now if HDT works on my PC with the isolinux CD, when the stick is also inserted.
>
>
> How do I apply the patch?
>
>
Hey Kim,
Thanks for your inputs.
Looks like something got wrong while detecting a disk. I've been
recompiling hdt with sebastian's patch + some more debug.
Please download it here :
http://konilope.linuxeries.org/tmp/hdt-debug.c32 and show us the last
output you have.
Erwan,
_______________________________________________
Syslinux mailing list
Submissions to Syslinux at zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic..
_______________________________________________
Syslinux mailing list
Submissions to Syslinux at zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
More information about the Syslinux
mailing list