Page 1 of 1

My OS Freezes on Boot, I Don't See Anything Wrong...

Posted: Sun May 17, 2009 12:26 pm
by SmartRoss
OK, here's a background. I'm new to OS development, and have been using the tutorial here to aid me. I also have a GRUB floppy disk, and a virtual machine to test my OS on.

When I boot off of the GRUB floppy, I get dumped to the prompt, and type this:

Code: Select all

grub> root (fd0)
grub> kernel /boot/kernel.bin
, bss=0x3010
grub> boot
When this is typed, the text Starting up... appears under the command line, and the cursor jumps to the top-left hand corner of the screen, then freezes. I've tried many things to get it fixed, including trying to fix some warnings raised while compiling, moving the source of the screen functions into a header file, etc but nothing has worked.

The kernel that is called by GRUB calls the main() function inside main.c, which then calls various functions inside scrn.c. The prototypes for all of these functions, preceded by 'extern', are in system.h (created by me, not anything to do with the compiler). I have attempted to make this work to no avail. Is there something that I'm overlooking, or something wrong? In the tutorial linked to above, I am at the stage at the end of the section on working with VGA display.

Re: My OS Freezes on Boot, I Don't See Anything Wrong...

Posted: Mon May 18, 2009 8:00 am
by Combuster
Ask smart questions

What do you want it to do? How are you trying to do that? Did you even ask a question?

Re: My OS Freezes on Boot, I Don't See Anything Wrong...

Posted: Tue May 19, 2009 6:56 am
by SmartRoss
OK, sorry. I admit that I mucked up by only skimming that file when I should have read it properly. I've decided to follow another tutorial in light of the problem I'm having with this one; so all should be fine. Sorry again for being stupid and wasting time.

Re: My OS Freezes on Boot, I Don't See Anything Wrong...

Posted: Wed May 20, 2009 4:27 am
by jal
SmartRoss wrote:Sorry again for being stupid and wasting time.
The fact that you actually realize this, makes you potentially a much better OS developer than many beginners on this board :).


JAL