testing os

OS Design, Theory, and Programming

Moderator: Moderators

testing os

Postby zfos » Sat Nov 24, 2007 6:34 pm

how do test demo 5?

demo 4 will not work i need help with it

great tutorial

-zfos developer
zfos
 
Posts: 13
Joined: Sat Nov 24, 2007 6:30 pm

Postby Mike » Sat Nov 24, 2007 7:17 pm

Hello,

Can you please provide more information on Demo 5? Also, do you have the express or professional version of VC++?

To test it, just compile and build the project. I have my project setup to output to the floppy drive, so it produces A:\KRNL.DLL .

Thats it ;) If Stage2 and Stage1 botloaders are working properly, just run it through Bochs, and it should load and execute the kernel just fine, using mainCRTStartup() as the entry point. ... Which eventually calls your kmain() routine for Kernel Initialization.

Also, please provide more information at what you need help on with Demo 4 :)
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

VS 2005

Postby zfos » Sat Dec 01, 2007 5:28 pm

professional edition on xp tablet pc edition with sp 2 on os and fully updated

i dont know what to use to put the kernel on a disc
zfos
 
Posts: 13
Joined: Sat Nov 24, 2007 6:30 pm

Postby Mike » Sat Dec 01, 2007 8:50 pm

Hello,

The kernel itself is an independent program file. All you need to do is copy the file (as if any other file) and copy it to your floppy drive. - No special tools are needed at all.

Do you have a real floppy drive? If so, Either copy it using Windows Explorer, or using its command line:
Code: Select all
copy KRNL.dll A:\KRNL.DLL


If you do not have a real floppy drive, you should then use a virtual floppy drive. This is where VFD (Virtual Floppy Drive) comes in. You can download it on <a href="http://www.brokenthorn.com/Resources/OSDev1.html">THIS</a> page.

The purpose if VFD is to create a virtual floppy drive. This means that you will have an emulated floppy drive--Windows will think it is a real floppy drive.

How to setup VFD can be found <a href="http://www.brokenthorn.com/Resources/OSDev3.html">HERE</a>.

After VFD is set up, all of the instructions are the same as if it was a real floppy drive. Either use Windows Explorer to copy the file to the floppy drive, or use the command line:
Code: Select all
copy KRNL.dll A:\KRNL.DLL


The kernel itself is just a PE program (KRNL.dll). It is a DLL file like any other - There is nothing special or different about it. Because of this, we do not need any special software to copy it, and Windows can copy it for you.

I hope this clarifies it ;)
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Postby Mike » Sat Dec 01, 2007 8:54 pm

Another option is to have Visual C++ output it to your floppy drive automatically. To do this:

Go to project properties->Configuration properties->General

On the right pane, you should see a field Output Directory, type in: A:\KRNL.dll

Now, every time you build the Kernel, Visual Studio will automatically copy it to the A: drive, so you do not need to do it manually.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm


Return to Advanced OS Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron