HelloWorld Kernel to Windows Dualboot

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Speewave
Member
Member
Posts: 40
Joined: Fri Jun 22, 2007 1:11 pm
Location: The USA
Contact:

HelloWorld Kernel to Windows Dualboot

Post 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
User avatar
AndrewAPrice
Member
Member
Posts: 2309
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post 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..
My OS is Perception.
Speewave
Member
Member
Posts: 40
Joined: Fri Jun 22, 2007 1:11 pm
Location: The USA
Contact:

Post 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!
Speewave
Member
Member
Posts: 40
Joined: Fri Jun 22, 2007 1:11 pm
Location: The USA
Contact:

Post 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"
Post Reply