How to Boot

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
prudhvi
Posts: 2
Joined: Thu Oct 28, 2004 11:00 pm

How to Boot

Post by prudhvi »

Hi,
I have developed my own small kernel
but i dont wat to boot to it from the floppy disk instead i want to boot from my hard disk running on RHEL V3 with Grub as default boot loader. is there any method to boot into my kernel using the grub.My kernel must boot from my hard disk.

please post the answer soon.

Prudhvi Krishna Surapaneni
bregma
Member
Member
Posts: 25
Joined: Tue Oct 26, 2004 11:00 pm
Location: the back woods
Contact:

Re: How to Boot

Post by bregma »

prudhvi wrote:is there any method to boot into my kernel using the grub.My kernel must boot from my hard disk.
GRUB is a bootloader: it's sole purpose is to boot your kernel from the hard disk. You should try reading the GRUB documentation, it's not obscure.

Among the good things about GRUB is that it will boot your kernel, your development platform, and your Windows install (for playing games) all from the same hard disk.
prudhvi
Posts: 2
Joined: Thu Oct 28, 2004 11:00 pm

Re: How to Boot

Post by prudhvi »

I have Every File Needed to Boot My Kernel. can any one explain me how to boot into it.

i would me more happy to boot from my Kernel from Harddisk
and that too using Grub as a boot loader.
[AlAdDiN]
Member
Member
Posts: 107
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: How to Boot

Post by [AlAdDiN] »

The best solution is to write a loader witch will be loaded with GRUB, then will load all files needed by your OS

If you want to know how to use GRUB, this link may be useful
http://www.mega-tokyo.com/osfaq2/index. ... 5c3418a8c3


H4v3 Fu|\| (^_^)Y
-----------------------
There are 10 types of people in this world... those that understand binary, and those that don't.
DIpendra
Posts: 1
Joined: Fri Nov 19, 2004 12:00 am

Re: How to Boot

Post by DIpendra »

Add grub multiboot header . Compile your kernel and boot it....
See OSD samples:
http://my.execpc.com/~geezer/osd/code/osd.zip
jonny
Posts: 1
Joined: Fri Nov 26, 2004 12:00 am

Re: How to Boot

Post by jonny »

I dont even use a bootloader...
I just use PARTCOPY and copy the binary file into sector 0.
this would work for your hd, but it would destroy your current boot sector!
I'm new to OS programming someone tell me if i suck...
ComputerPsi
Member
Member
Posts: 83
Joined: Fri Oct 22, 2004 11:00 pm

Re: How to Boot

Post by ComputerPsi »

jonny wrote:I dont even use a bootloader...
I just use PARTCOPY and copy the binary file into sector 0.
this would work for your hd, but it would destroy your current boot sector!
I'm new to OS programming someone tell me if i suck...
Jonny, sector 0 is the boot sector. :P When you use PartCopy to write to sector 0, you are basically putting in your own code for the boot sector. Not really destroying (unless you already have another system installed). Sector 0 is the boot sector for both the floppy and the hard drive. So your system would work on both a floppy disk and a hard disk.
Oh, and, you don't suck. ;) You are just new to programming an operating system.
rexlunae
Member
Member
Posts: 134
Joined: Sun Oct 24, 2004 11:00 pm
Location: North Dakota, where the buffalo roam

Re: How to Boot

Post by rexlunae »

[AlAdDiN] wrote:The best solution is to write a loader witch will be loaded with GRUB, then will load all files needed by your OS
H4v3 Fu|\| (^_^)Y
If you need to load multiple files, why not use GRUB's built-in module-loading capability? Much simpler than creating a loader for GRUB to load.
Post Reply