A stupid Question On Booting My Os via GRUB

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
hendric
Member
Member
Posts: 38
Joined: Sat Oct 21, 2006 10:56 am
Location: China

A stupid Question On Booting My Os via GRUB

Post by hendric »

Hmm I'm tired writing my own Loader But wanna boot it with GRUB. But there's one thing I mentioned that whether GRUB 's capable booting x86-64 kernel ..

P.S:I've read about GRUB manuals and the source of Candy's Kernel But nothing found ...
Sigh..........
Just Lazy Writing Anything...
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Every good solution is obvious once you've found it.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: A stupid Question On Booting My Os via GRUB

Post by Candy »

hendric wrote:Hmm I'm tired writing my own Loader But wanna boot it with GRUB. But there's one thing I mentioned that whether GRUB 's capable booting x86-64 kernel ..

P.S:I've read about GRUB manuals and the source of Candy's Kernel But nothing found ...
Sigh..........
Thanks for reading my kernel, but I think you're probably best off with grub for a few months to come. You could attach a small chainloader that sets up long mode too, so you could even use it if it only supported 32-bit modes.
hendric
Member
Member
Posts: 38
Joined: Sat Oct 21, 2006 10:56 am
Location: China

Re: A stupid Question On Booting My Os via GRUB

Post by hendric »

Thanks for reading my kernel,
That's a great exprience. Your code's pretty good.
You could attach a small chainloader that sets up long mode too, so you could even use it if it only supported 32-bit modes.
Yea now my design did but I found it confusing while writing a loader into partition boot record.
Just Lazy Writing Anything...
hendric
Member
Member
Posts: 38
Joined: Sat Oct 21, 2006 10:56 am
Location: China

Post by hendric »

And I wanna know something on traditional partition image. I think it something like this:

BOOT RECORD (Some sector) | INDEX or something like it | DATA

And sectors occupied by BOOT RECORD are a certain number we 've already known. Right? If is , I'll never fill confusing as I could analyze filesystem and write a correct BOOT RECORD suit for it (Just limit the Simple Loader -- Or call it Pre Loader into the very size of BOOT RECORD) :shock: :shock:
Just Lazy Writing Anything...
Post Reply