Re: Booting from CD under FDD emulation
Posted: Fri Apr 10, 2009 12:52 am
Well one of things i was trying to accomplish here, is that the 2 stage loader is unified, as in the exact same image works on cd, emulations, fdd, hdd.. not really needing pxe/network for now.. but it would be nice.
I already do a drive > 80h before attempting to use 13h extensions.. the problem is specifically this:
drive is = 00h (emulated FDD via cd-rom still reports as drive 0 from the bios). So the code doesn't know the difference between a real FDD and an emulated one.
The probing works well for real fdd's.. but seems to break badly when using a cdrom-fdd boot.. i have a bpb in the stage1 loader, purely for compatability sake even though i'll never use it.. the idea i have in mind for my fs doesn't require the traditaional fat12/32 layout, and my info would come afterwards.
I guess I could populate the bpb correctly when transfer the image to a disk (via a windows tool) if it's a floppy.. in which case the probing is totally unnecssary.
That said... how many ppl boot of floppies anymore? i haven't had a floopy drive in a machine for close on 6 years now
I already do a drive > 80h before attempting to use 13h extensions.. the problem is specifically this:
drive is = 00h (emulated FDD via cd-rom still reports as drive 0 from the bios). So the code doesn't know the difference between a real FDD and an emulated one.
The probing works well for real fdd's.. but seems to break badly when using a cdrom-fdd boot.. i have a bpb in the stage1 loader, purely for compatability sake even though i'll never use it.. the idea i have in mind for my fs doesn't require the traditaional fat12/32 layout, and my info would come afterwards.
I guess I could populate the bpb correctly when transfer the image to a disk (via a windows tool) if it's a floppy.. in which case the probing is totally unnecssary.
That said... how many ppl boot of floppies anymore? i haven't had a floopy drive in a machine for close on 6 years now