Page 1 of 1

problem in deploying the kernel

Posted: Sun Jan 27, 2008 6:28 am
by redDot
hello friends,
i am new to OS development. I am following the Bran's kernel development tutorial, and have successfully compiled the Hello World kernel. I want to deploy this kernel on VMware, but every time i get this message "Operating System not found".
I figured out that it must be some bootloader problem, so i tried to create the GRUB diskette as given in the wike-GRUB.
i am working with virtual floppy disk, n i first create a img file auxdsk.img n formatted, n then my commands are
c:\ dd if=stage1 of=auxdsk.img bs=512 count=1 conv=notrunc
c:\ dd if=stage2 of=auxdsk.img bs=512 seek=1 conv=notrunc

i believe this diskette is suppose to load the GRUB, which i am then suppose to change the diskette n load the 2nd diskette with the kernel.bin, stage1, stage2, menu.lst in /boot folder.

well, when i load the first diskette, i get the message "Operating System not found".

it would be very kind of you guys to think about this problem, n post them . if you have any working img file of a bootable floppy with kernel, please send me the link.

regards.

Posted: Sun Jan 27, 2008 12:15 pm
by piranha
Correct me if I'm wrong but, I think to get a GRUB floppy you can:
cat stage1 stage2 > boot
cat boot > floppy.img
or
cat boot > /dev/fd0

Have you determined that your boot options are correct? And the floppy is connected?

-JL

Posted: Sun Jan 27, 2008 3:55 pm
by Wave
If you are on Windows, simply use the virtual floppy program from here: http://chitchat.at.infoseek.co.jp/vmware/vfd.html, use the floppy image with grub as the virtual floppy, copy the kernel onto the floppy with Windows explorer, and you're done. (Set vmware to use the fake floppy drive.)

Posted: Mon Jan 28, 2008 4:14 am
by redDot
thank you friends for your response.
The problem was with the VMWare settings. I had not checked the 'connect on power on' for the floppy, and hence it was not reading the floppy image. Everything is working fine now.
Thank you all once again for your help.