|
From: Nick D. <nic...@ya...> - 2002-05-23 16:48:12
|
Hi Brian, ----- Original Message ----- From: "Brian Palmer" <br...@sg...> To: <rea...@li...> Sent: Tuesday, May 21, 2002 8:20 PM Subject: RE: [ros-kernel] Problems building freeldr > I believe that the latest version of NASM is v0.98.32. I have only used > v0.98 however. It may be that the new version of NASM is trying to > optimize my boot sector code for me and generating extra instructions in > doing so. I'll download the new version of NASM and see what it is > doing. In the mean time you should be able to assemble it just fine with > v0.98. Will try that. It does seem strange that the new version isn't backwardly compatible with older source. > As for the install/header file problems you are having that's because > you are trying to compile it with DJGPP. You see, there are 3 parts to > freeldr. The boot sectors (assemble with NASM), freeldr (compile with > DJGPP), and the installer (compile with Mingw32). I really should remove > the top-level makefile because it just seems to cause confusion, but it > will be useful once freeldr can be compiled with Mingw32. So to solve > your install/header file problems you will need to switch over to > Mingw32 to compile the installer since it is Win32 code. Though I haven't downloaded the previous version of NASM, I followed your instructions anyway. Unfortunately, none of the 3 parts will compile. There seems to be a problem with freeldr\freeldr\makefile and manual attempts at command line to build the freeldr bit (under DJGPP) throw up a screen full of errors. Attempting to make install with mingw32 does a similar thing. Do you want me to see if I can get it to work hack the makefiles (and paths in the source if necessary)? If you like I can report back if and when I get freeldr to build. Just one other thing - can freeldr boot from a second primary partition? It's just that my WinXP bootsector is quite important! :-) Thanks for your help. Nick. -- Nick Date Bath, England, UK > > -----Original Message----- > > From: rea...@li... > [mailto:reactos-kernel- > > ad...@li...] On Behalf Of Nick Date > > Sent: Tuesday, May 21, 2002 7:11 AM > > To: rea...@li... > > Subject: Re: [ros-kernel] Problems building freeldr > > > > Hi Casper, > > > > ----- Original Message ----- > > From: "Casper Hornstrup" <ch...@us...> > > To: <rea...@li...> > > Sent: Tuesday, May 21, 2002 1:01 PM > > Subject: Re: [ros-kernel] Problems building freeldr > > > > [snip] > > > > > > I have no idea whatsoever what the "TIMES value is negative" error > is > > all > > > > about. My assembler knowledge is very limited. The line in FAT.ASM > > reads > > ... > > > > > > > > times 510-($-$$) db 0 ; Pad to 510 bytes > > > > > > > > > > I have never seen this before. Which nasm version are you using? My > best > > > guess is that fat.asm assembles to a binary larger than 510 bytes. > > > > I'm using the latest version of NASM (3.0.5?). I've managed to compile > the > > freeldr part of the program and have found that the problem with the > TIMES > > value is related to the bootsect directory and the missing/bad path > for > > header problems is related to the install part of freeldr. > > > > Where's Brian Palmer when you need him? :-) If and when I get freeldr > > working I'll submit any tweaks here so that someone can update the > CVS. > > It's > > just a pity that loadros doesn't seem to be in the tree anymore cos I > > can't > > load ros! ;-) > > > > Thanks again for your help, Casper. > > > > Nick. > > > > -- > > Nick Date > > Bath, England, UK --- Outgoing mail is certified virus free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/2002 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |