An Odd Problem...
Posted: Mon Jun 08, 2009 11:10 pm
So I'm working on 64-bit Windows 7, so VFD doesnt work at all. What I do to prevent that, is rename boot1.bin to boot1.img, then using a disk imager, I copy it to a flash drive. Windows see's the flash drive as a 1.44MB flash drive, so I can tell it gets formatted correctly. Then, I drag and drop the stage 2 loader onto the drive. In Bochs, I set F: (my flash drive) as the bootable floppy and hit go. I'm on tutorial 6, Bootloader 4, so all the program should do is run the bootloader, then load sector 2. The problem is, it can't find sector 2. It says
Loading Boot Image
...................
ERROR : Press Any Key to Reboot
So, clearly the first part worked, copying the boot1 to the floppy drive, because it executed, but then the second stage doesn't load. The main reason this is strange is because it works on real hardware. I tried booting from the exact same flash drive on my netbook, and it found stage 2 fine. Any ideas why Bochs has problems, but real hardware doesnt. Or, does anyone know a workaround? I'd prefer to not have to go through all these steps to just test every build, only on real hardware.
Loading Boot Image
...................
ERROR : Press Any Key to Reboot
So, clearly the first part worked, copying the boot1 to the floppy drive, because it executed, but then the second stage doesn't load. The main reason this is strange is because it works on real hardware. I tried booting from the exact same flash drive on my netbook, and it found stage 2 fine. Any ideas why Bochs has problems, but real hardware doesnt. Or, does anyone know a workaround? I'd prefer to not have to go through all these steps to just test every build, only on real hardware.