Victor Sologoubov
2019-Jan-21 07:43 UTC
[syslinux] A bug in command localboot was introduced in version 6.03.
I created a bootable usb flash with boot menu. One of items was "Boot from hard drive" with command "localboot 0x81". This item worked when this usb flash was prepared with syslinux 6.02. And it stopped working when the flash was prepared with syslinux 6.03. The message was Booting from local disk... Boot error I extracted the source code, investigated, changed, compiled and used for the flash. This menu item works again. 20.01.2019 0:35, Erwan Velu writes:> Can you detail what bug that introduce ? > Behavior with the current code and with your change proposal ? > That's pretty unclear for me. > Thanks ! >
Erwan Velu
2019-Jan-21 08:03 UTC
[syslinux] A bug in command localboot was introduced in version 6.03.
Can you share the patch you used ? Le lun. 21 janv. 2019 ? 08:46, Victor Sologoubov via Syslinux < syslinux at zytor.com> a ?crit :> I created a bootable usb flash with boot menu. One of items was "Boot > from hard drive" with command "localboot 0x81". This item worked when > this usb flash was prepared with syslinux 6.02. And it stopped working > when the flash was prepared with syslinux 6.03. The message was > > Booting from local disk... > Boot error > > I extracted the source code, investigated, changed, compiled and used > for the flash. This menu item works again. > > 20.01.2019 0:35, Erwan Velu writes: > > Can you detail what bug that introduce ? > > Behavior with the current code and with your change proposal ? > > That's pretty unclear for me. > > Thanks ! > > > > _______________________________________________ > Syslinux mailing list > Submissions to Syslinux at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux >
Victor Sologoubov
2019-Jan-21 08:34 UTC
[syslinux] A bug in command localboot was introduced in version 6.03.
diff --git a/core/localboot.c b/core/localboot.c index 0b8769e4..30bfb272 100644 --- a/core/localboot.c +++ b/core/localboot.c @@ -63,7 +63,6 @@ __export void local_boot(int16_t ax) ireg.eax.w[0] = 0; /* Reset drive */ __intcall(0x13, &ireg, NULL); - memset(&ireg, 0, sizeof(ireg)); ireg.eax.w[0] = 0x0201; /* Read one sector */ ireg.ecx.w[0] = 0x0001; /* C/H/S = 0/0/1 (first sector) */ ireg.ebx.w[0] = OFFS(trackbuf); 21.01.2019 11:03, Erwan Velu writes:> Can you share the patch you used ? >
Reasonably Related Threads
- A bug in command localboot was introduced in version 6.03.
- A bug in command localboot was introduced in version 6.03.
- [PATCH] core: Incorrect detection of EDD in /core/fs/diskio_bios.c
- A bug in command localboot was introduced in version 6.03.
- The simple menu system doesn't work with serial console