How do you really get started with OS development?

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Developer
Posts:37
Joined:Sun May 30, 2010 4:30 pm
Re: How do you really get started with OS development?

Post by Developer » Sun Jun 06, 2010 1:26 pm

I use Microsoft Virtual PC 2007 for testing I have VMware as well.

halofreak1990
Posts:92
Joined:Thu May 27, 2010 8:54 pm
Location:Netherlands

Re: How do you really get started with OS development?

Post by halofreak1990 » Sun Jun 06, 2010 9:20 pm

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.

Developer
Posts:37
Joined:Sun May 30, 2010 4:30 pm

Re: How do you really get started with OS development?

Post by Developer » Mon Jun 07, 2010 6:06 am

halofreak1990 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.
I tried it using PartCopy but I am not sure if whether that is wrong
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.

Developer
Posts:37
Joined:Sun May 30, 2010 4:30 pm

Re: How do you really get started with OS development?

Post by Developer » Tue Jun 08, 2010 2:35 pm

Any replies or thoughts? :?:

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: How do you really get started with OS development?

Post by Andyhhp » Tue Jun 08, 2010 4:22 pm

can you post a description of exactly what you are doing, including commandline parameters please?
Image

Developer
Posts:37
Joined:Sun May 30, 2010 4:30 pm

Re: How do you really get started with OS development?

Post by Developer » Wed Jun 09, 2010 7:27 am

Andyhhp wrote:can you post a description of exactly what you are doing, including commandline parameters please?
I open Microsoft Visual Studio and I write the bootloader.asm.
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

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: How do you really get started with OS development?

Post by Andyhhp » Wed Jun 09, 2010 11:42 am

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
Image

Developer
Posts:37
Joined:Sun May 30, 2010 4:30 pm

Re: How do you really get started with OS development?

Post by Developer » Wed Jun 09, 2010 1:02 pm

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
The author used the regular copy in windows as well, but he had a batch file, like this:

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?

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: How do you really get started with OS development?

Post by Andyhhp » Wed Jun 09, 2010 2:28 pm

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
Image

ehenkes
Posts:34
Joined:Fri Jul 24, 2009 5:35 pm

Re: How do you really get started with OS development?

Post by ehenkes » Sun Jun 13, 2010 2:47 pm

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? :D
http://www.c-plusplus.de/forum/viewtopi ... 1a02c.html

Post Reply