[syslinux] replacing ldlinux.sys

H. Peter Anvin hpa at zytor.com
Thu Jan 31 15:39:23 PST 2013


On 01/31/2013 03:00 PM, Alakesh wrote:
> I need to debug some issue in second stage of syslinux boot, i.e.
> ldlinux.sys. I have put a few debug instructions in core/diskstart.inc and
> recompiled everything. The newly obtained ldlinux.sys confirms to the size
> restriction for the boot sector.  Now how do o replace the current
> /boot/ldlinux.sys file with mine. I tried removing the immutable flag and
> then doing a copy. Nothing changes. It still loads the old one. If i delete
> /boot/ldlinux.sys, it reappears from somewhere. I have used dd to copy the
> new ldlinux.sys to the old one and no luck.  Has anyone successfully
> updated ldlinux.sys?  I thought using the the "make install-all" facility
> will help ,but it complains about my gcc version in the xenserver i am
> using and many other dependencies. Right now i am recompiling syslinux in
> an ubuntu 12.10 vm and copying the binary to the xenserver to install onto
> it. Any help would be appreciated.
> 

You have to use the installer program, usually extlinux, that is built
as part of the Syslinux build.  ldlinux.sys as installed is not the same
file as produced by the build; it is modified to match your system.

	-hpa




More information about the Syslinux mailing list