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

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
SmartRoss
Posts: 2
Joined: Sun May 17, 2009 10:56 am

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

Post 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.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

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

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
SmartRoss
Posts: 2
Joined: Sun May 17, 2009 10:56 am

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

Post 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.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

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

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