On 5/30/20 1:09 PM, Eric Auer wrote: > > Hi ECM, > >> https://sourceforge.net/p/freedos/svn/1835/log/?path=/kernel/trunk/boot/boot32lb.asm >> -- also last change 2004. Note that this requires a 386 and doesn't >> check for it. My take on a FAT32 boot sector loader allows to load >> FreeDOS KERNEL.SYS too, but automatically detects either CHS or LBA and >> is supposed to work even on 8086: >> https://hg.ulukai.org/ecm/ldosboot/file/3b98bf84db45/boot32.asm (It >> requires part of it be installed to the FSINFO sector, which is how it >> can do so much more.) > > That is exactly the difference: It was an interesting challenge to > put the whole boot sector into one sector :-) I believe that CHS > FAT32 version even works for 8086, while LBA FAT32 needed 386? :-)
Yes, as you can see I commented on boot32lb.asm which is the FAT32 loader that uses LBA. > Note that Windows would use the second sector only for FSINFO and > uses the THIRD sector for additional code for booting, so I wonder > why you prefer the FSINFO sector for it? When not used, the third > sector just contains the 55 aa magic. All three sectors have that. It allows using my loader in parallel to theirs. They use the third sector or whatever, I use FSIBOOT in the FSINFO sector. For example, if one were to use your Metakern then booting Microsoft loaders requires their additional sector to be present where they expect it. And booting my loader from Metakern requires its additional FSIBOOT part be present in the FSINFO sector. (All assuming 512 bytes per sector. If there are 1024+ bytes per sector my loader expects the FSIBOOT part to be present at offset 512 in its own sector, thus already loaded.) Note that although they differ in their details, the lDOS/RxDOS.3 and FreeDOS load protocols of my FAT32 loader both use the exact same FSIBOOT part, so can be used in parallel without re-installing the FSIBOOT. Regards, ecm _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user