Creating a bootloader
Moderator:Moderators
-
- Posts:9
- Joined:Fri Feb 19, 2010 12:58 pm
I am trying to build a bootloader from the tutorial of operating system development series. i have a separate kernel file which i made earlier and used grub to boot it. I downloaded the Demo4 package from here and tried to use. The kernel file provided with the Demo4 package is being loaded. But when I replace my kernel file ( i renamed it) , it is not being loaded. any ideas???
-
- Posts:59
- Joined:Tue Oct 13, 2009 8:49 pm
Re: Creating a bootloader
is your kernel not being loaded at all or is it not executing properly (or not at all)?
-
- Posts:9
- Joined:Fri Feb 19, 2010 12:58 pm
Re: Creating a bootloader
the kernel is being copied but is not executing
actually the system restarts when this instruction is reached: (from stage2 boot)
actually the system restarts when this instruction is reached:
Code: Select all
jmp CODE_DESC:IMAGE_PMODE_BASE; jump to our kernel! Note: This assumes Kernel's entry point is at 1 MB
-
- Posts:2
- Joined:Mon Feb 22, 2010 7:40 pm
Re: Creating a bootloader
It most likely ran into a triple fault and that can only mean one thing: the place you're jumping to is filled with nonsense data. Use Bochs as your debugger and check your Assembly code.brainbarshan wrote:the kernel is being copied but is not executing
actually the system restarts when this instruction is reached:(from stage2 boot)Code: Select all
jmp CODE_DESC:IMAGE_PMODE_BASE; jump to our kernel! Note: This assumes Kernel's entry point is at 1 MB
Regards,
Stephan J.R. van Schaik.