[syslinux] [ANNOUNCE] syslinux for win2k/winxp

Lars Munch lars at segv.dk
Wed May 21 07:28:09 PDT 2003


On Tue, May 20, 2003 at 10:30:12AM -0700, H. Peter Anvin wrote:
> Lars Munch wrote:
> >Hi
> >
> >I have ported syslinux to win2k/winxp. It is attached.  It has been
> >tested with floppies and flashcards, but not on harddisks.
> >
> >On harddisks I'm not sure if I should use \\.\PHYSICALDRIVEX or \\.\X:
> >as arguments to CreateFile (I'm no windows wiz) and I do not currently
> >have a system to test this on.
> >
> >The program can be compiled using mingw or in cygwin using the option
> >-mno-cygwin (NOTE nasm on cygwin does not seem to generate a correct
> >ldlinux.bin so this should be done on Linux). The program also compiles
> >nicely using a Linux/mingw cross compiler.
> >
> >I had to include most of syslxmod.c into my port since libsyslinux.a did
> >not compile due to all the header-files syslxmod.c includes (and not
> >seems
> >to need).
> >
> >Comments are welcome.
> >
> 
> I think the list software stripped off the binary attachment - could you 
> send it to me directly?
> 
> Also, could you please send a bug to the NASM bug tracker on:
> 
> http://www.sourceforge.net/projects/nasm/

I was a bit to quick on blaming nasm since it generates the *exact* same
output on Cygwin and Linux, but bin2c.pl is not behaving well on cygwin.

The problem is that read(STDIN, $data, 1) skips bytes containing 0x0d
(carriage return) if it sees the sequence 0x0d, 0x0a in the input.

The solution is to insert 'binmode STDIN;' just before entering the
while loop in bin2c.pl.

-- Lars Munch




More information about the Syslinux mailing list