vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| hello, all: I am writing a kernel(Just a very little one). I didn't want to write the bootloader by myself, I want to use the GRUB. but I don't know how to do. who have done the things like this or could give me some articles about that. many thanks! |
| |||
| casm wrote: > hello, all: > > I am writing a kernel(Just a very little one). I didn't want to write > the bootloader by myself, I want to > > use the GRUB. but I don't know how to do. > > who have done the things like this or could give me some articles > about that. > > many thanks! What distribution are you using? RHEL, CentOS, Debian, Ubuntu? They have slightly different tools built in to load up the kernel for you into grub.conf, usually using the "grubby" tool behind the scenes. Do be sure to give your kernel a unique name, and run "man grubby", and you should have some tools ready. |
| |||
| On 20 Jan, 17:11, Nico Kadel-Garcia <nka...@gmail.com> wrote: > casm wrote: > > hello, all: > > > I am writing a kernel(Just a very little one). I didn't want to write > > the bootloader by myself, I want to > > > use the GRUB. but I don't know how to do. > > > who have done the things like this or could give me some articles > > about that. > > > many thanks! > > What distribution are you using? RHEL, CentOS, Debian, Ubuntu? They have slightly different tools built in to load up the kernel for you into grub.conf, usually using the "grubby" tool behind the scenes. Do be sure to give your kernel a unique name, and run "man grubby", and you should have some tools ready. sorry, maybe I didn't say clearly. the kernel is written by myself, My OS is debian. I test the kernel in a virtual PC. And I just want to know how to load the kernel by grub. |
| |||
| fetag wrote: > On 20 Jan, 17:11, Nico Kadel-Garcia <nka...@gmail.com> wrote: >> casm wrote: >>> hello, all: >>> I am writing a kernel(Just a very little one). I didn't want to write >>> the bootloader by myself, I want to >>> use the GRUB. but I don't know how to do. >>> who have done the things like this or could give me some articles >>> about that. >>> many thanks! >> What distribution are you using? RHEL, CentOS, Debian, Ubuntu? They have slightly different tools built in to load up the kernel for you into grub.conf, usually using the "grubby" tool behind the scenes. Do be sure to give your kernel a unique name, and run "man grubby", and you should have some tools ready. > > sorry, maybe I didn't say clearly. the kernel is written by myself, My > OS is debian. I test the kernel in a virtual PC. And I just want to > know how to load the kernel by grub. OK. I can't swear, but if your kernel has a different name than the installed kernels, you should be able to do "make install" with a recent kernel. If that doesn't run grubby for you, look at the man page on grubby and the source for the Debian kernels and see exactly what options they use to install grubby, rather than trying to figure out what particular settings Debian normally uses. |
| ||||
| On 2008-01-20, fetag <casmyu@gmail.com> wrote: > > > On 20 Jan, 17:11, Nico Kadel-Garcia <nka...@gmail.com> wrote: >> casm wrote: >> > hello, all: >> >> > I am writing a kernel(Just a very little one). I didn't want to write >> > the bootloader by myself, I want to >> >> > use the GRUB. but I don't know how to do. >> >> > who have done the things like this or could give me some articles >> > about that. >> >> > many thanks! >> >> What distribution are you using? RHEL, CentOS, Debian, Ubuntu? They >> have slightly different tools built in to load up the kernel for you >> into grub.conf, usually using the "grubby" tool behind the scenes. Do >> be sure to give your kernel a unique name, and run "man grubby", and >> you should have some tools ready. > > sorry, maybe I didn't say clearly. the kernel is written by myself, My > OS is debian. I test the kernel in a virtual PC. And I just want to > know how to load the kernel by grub. Do you mean you are actually trying to write a kernel from scratch, not just modifying or configuring Linux source code? |
| Thread Tools | |
| Display Modes | |
|
|