Page 1 of 1

HelloWorld Kernel to Windows Dualboot

Posted: Sun Jun 24, 2007 10:30 pm
by Speewave
I started on my Operating System CoolOS.

i made a Kernel: hello.sys and hello.bin

How do i load this in my boot.ini file in windows: i have this already:

Code: Select all

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Media Center Edition" /noexecute=optin /fastdetect
help

Posted: Sun Jun 24, 2007 10:38 pm
by AndrewAPrice
I think CoolOS has been used before.

Just add
multi(0)disk(0)rdisk(0)partition(1)\hello.bin="CoolOS"
to your boot.ini.

You shouldn't be doing it this way for a few reasons:
  • You're placing your kernel on a Windows XP drive. You'll have fun when it comes time to write file system drivers (there's little documentation, and even Linux NTFS support is somewhat buggy).
  • I would be much easier to use virtual machine software (QEMU, VirtualPC, VMWare Server, Bochs, VirtualBox) and an floppy image editor for testing, so you don't have to reboot and wait 5 minutes just to make a small change, reboot, make another small change, reboot, etc..

Posted: Sun Jun 24, 2007 10:42 pm
by Speewave
Windows has a Dual boot thing. so at start it could say something like:

1. Microsoft Windows XP
2. Ubuntu
3. Crappy bootload Kernel!

Posted: Sun Jun 24, 2007 10:44 pm
by Speewave
MessiahAndrw wrote:I think CoolOS has been used before.

Just add
multi(0)disk(0)rdisk(0)partition(1)\hello.bin="CoolOS"
to your boot.ini.

You shouldn't be doing it this way for a few reasons:
  • You're placing your kernel on a Windows XP drive. You'll have fun when it comes time to write file system drivers (there's little documentation, and even Linux NTFS support is somewhat buggy).
  • I would be much easier to use virtual machine software (QEMU, VirtualPC, VMWare Server, Bochs, VirtualBox) and an floppy image editor for testing, so you don't have to reboot and wait 5 minutes just to make a small change, reboot, make another small change, reboot, etc..
i just wanna see if my crappy thing works! but i do get your point. although right now it just says (or should say) "Welcome To CoolOS 2007 Kernel v0.10"