booting my own kernel from grub legacy

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.
Locked
prosaad
Posts: 2
Joined: Wed Aug 29, 2012 4:06 am

booting my own kernel from grub legacy

Post by prosaad »

please help me in booting my own kernel from grub legacy

I have 2 files 1 is loader which load my 64bit elf second is rte app which is 64bit elf

im using an api which make bootable iso image of my kernel with grub legacy

my directory tree is
/boot/grub/stage2_eltorito
/boot/grub/menu.lst
/boot/grub/menu.1st
/boot/loader
/boot/rte-app


in my grub config menu.lst

serial --unit=0 --speed=115200
terminal --timeout=0 serial
default=0
timeout=2
title RTE 0.1
root (cd)
kernel /boot/loader
module /boot/rte-app -c f -n 3 -m 128

when i burn img of this file to cd rom , pc hangs at stage2 loading
I used many method but nothing works

thanks in advance
Saad ahmad
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: booting my own kernel from grub legacy

Post by bluemoon »

prosaad wrote:when i burn img of this file to cd rom , pc hangs at stage2 loading
However, you provide exactly zero information about the loader.
By the way, grub legacy do not support direct loading of 64-bit elf unless you have a so-called patched version.
sounds
Member
Member
Posts: 112
Joined: Sat Feb 04, 2012 5:03 pm

Re: booting my own kernel from grub legacy

Post by sounds »

This sounds like a homework assignment.
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: booting my own kernel from grub legacy

Post by Combuster »

Lazy maybe, but not homework.

At any rate, your English is sufficiently poor I my crystal ball is going crazy on all the ways you might have screwed up. The correct instructions for making a CD with GRUB are on the wiki. Please use those and ask again if the problem remains.

EDIT: please don't spam multiple threads with the same 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 ]
Locked