• Advertisement
Sign in to follow this  

osdev problems...

This topic is 4342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I use msvc express and masm express for osdev. I can compile sources and link the objs to kernel.exe, but how can i convert this kernel into a img file so that i can play it via VMware.

Share this post


Link to post
Share on other sites
Advertisement
The MSVC++ compiler outputs PE files which you can't boot directly so you'll need to find (or write) a bootloader that can.

Share this post


Link to post
Share on other sites
To make an image, you can use a tool like bochs' bximage (see: bochs) - however, I'm not sure VMWare would understand such an image. Does it have a specific image format?
Given an image, you can put things on it using a tool like WinImage (not free) or by writing your own mini-tool.

As for the PE issue: You'll either have to use a boot-loader that can load PE files (I don't know any) or use a utility such as objcopy (comes with cygwin, for example) to convert the PE file to another format like elf32 or aout, both of which can be loaded by GRUB (Grand Unified Boot Loader), which is a recommended boot-loader.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement