problem in deploying the kernel

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
redDot
Member
Member
Posts: 29
Joined: Sat Jan 26, 2008 2:48 am

problem in deploying the kernel

Post 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.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post 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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Wave
Member
Member
Posts: 50
Joined: Sun Jan 20, 2008 5:51 am

Post 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.)
Conway's Law: If you have four groups working on a compiler, you'll get a 4-pass compiler.
Melvin Conway
redDot
Member
Member
Posts: 29
Joined: Sat Jan 26, 2008 2:48 am

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