How do you really get started with OS development?
Moderator:Moderators
I use Microsoft Virtual PC 2007 for testing I have VMware as well.
-
- Posts:92
- Joined:Thu May 27, 2010 8:54 pm
- Location:Netherlands
Re: How do you really get started with OS development?
Did you use PartCopy to copy the boot1.bin file to the first sectorn of the ISO file as Andyhhp asked?
Like Andy said, you need your boot1.bin to be in the first sector of the ISO for it to work.
Like Andy said, you need your boot1.bin to be in the first sector of the ISO for it to work.
Re: How do you really get started with OS development?
I tried it using PartCopy but I am not sure if whether that is wronghalofreak1990 wrote:Did you use PartCopy to copy the boot1.bin file to the first sectorn of the ISO file as Andyhhp asked?
Like Andy said, you need your boot1.bin to be in the first sector of the ISO for it to work.
or the MSVPC2007 is bad.
Because when I download a demo from the Series I easily could
just enable the virtual floppy and just drag-and-drop the *.bin
right into it.
The I started the VM and told it to use physical A:\ and it did found
it. Then the demo example worked fine.
Re: How do you really get started with OS development?
Any replies or thoughts? 

Re: How do you really get started with OS development?
can you post a description of exactly what you are doing, including commandline parameters please?

Re: How do you really get started with OS development?
I open Microsoft Visual Studio and I write the bootloader.asm.Andyhhp wrote:can you post a description of exactly what you are doing, including commandline parameters please?
Then I save it to C:\ root and I execute a Windows Batch script
like this: nasm -f bin boot.asm -o boot.bin
Once the *.bin is made I will drag-and-drop it into the Virtual Floppy.
For Virtual Floppy I use the vfdwin.exe like the one (http://www.brokenthorn.com/Resources/OSDev3.html)
VFD.
But still it doesn't work. No text is printed even if I tested to copy the code-snippet from this page:
http://www.brokenthorn.com/Resources/OSDev4.html
Re: How do you really get started with OS development?
Ok. That is your problem.
Read, one again, how to use partcopy, and use it! Partcopy is not the same as dragging and dropping.
~Andrew
Read, one again, how to use partcopy, and use it! Partcopy is not the same as dragging and dropping.
~Andrew

Re: How do you really get started with OS development?
The author used the regular copy in windows as well, but he had a batch file, like this:Andyhhp wrote:Ok. That is your problem.
Read, one again, how to use partcopy, and use it! Partcopy is not the same as dragging and dropping.
~Andrew
copy boot.bin a:\boot.bin
However, it never copies pretty interesting...
Well, well, I will check the Partcopy exe again.
But Andrew, how would you do?
Re: How do you really get started with OS development?
the 512 byte bootloader has to be the first segment of the disk, meaning you have to use partcopy or equivelent to set it up.
for the later bootloaders which understand FAT12, you can copy other files as normal and the bootloader will look for stage2.bin which continues to boot the computer.
~Andrew
for the later bootloaders which understand FAT12, you can copy other files as normal and the bootloader will look for stage2.bin which continues to boot the computer.
~Andrew

Re: How do you really get started with OS development?
dd for windows is efficient for binary copying from one media to another one.
There is an interesting example: how to "format" a usb mass storage device (e.g. pen stick) with the FAT12 file system?
http://www.c-plusplus.de/forum/viewtopi ... 1a02c.html
There is an interesting example: how to "format" a usb mass storage device (e.g. pen stick) with the FAT12 file system?

http://www.c-plusplus.de/forum/viewtopi ... 1a02c.html