View previous topic :: View next topic |
Author |
Message |
zerokill n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/104557745440e7550903237.jpg)
Joined: 07 Jun 2004 Posts: 23 Location: prospect hts. IL
|
Posted: Sun Jul 04, 2004 10:21 pm Post subject: How to make Kernel? |
|
|
im a complete noob and i tried looking for it, but it seems that the small little things, are never listed because everyone knows it so im left to ask about it.
how do i make or recompile my kernel?
this is what i did so far, im not sure if i did or not, nothing seemed to change yet.
Code: | zerokill linux # make menuconfig
|
I pressed yes to save changes then
Code: | zerokill linux # make
|
then lastly
Code: | zerokill linux # make modules_install
|
am i done? is the new kernel made now? _________________ college -- sleep, study, party :: pick two |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
placeholder Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Sun Jul 04, 2004 10:23 pm Post subject: |
|
|
If /boot is on another partion then mount it and type make install. After that you need to setup your boot loader to load the new kernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zerokill n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/104557745440e7550903237.jpg)
Joined: 07 Jun 2004 Posts: 23 Location: prospect hts. IL
|
Posted: Sun Jul 04, 2004 10:24 pm Post subject: |
|
|
i have lilo boot loader, i just mounted boot and did
Code: | zerokill boot # make install
make: *** No rule to make target `install'. Stop.
|
_________________ college -- sleep, study, party :: pick two |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zerokill n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/104557745440e7550903237.jpg)
Joined: 07 Jun 2004 Posts: 23 Location: prospect hts. IL
|
Posted: Sun Jul 04, 2004 10:28 pm Post subject: |
|
|
Code: | zerokill linux # make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.5-gentoo-r1/arch/i386/boot/install.sh 2.6.5-gentoo-r1 arch/i386/boot/bzImage System.map "/boot"
In order to use the new kernel image you have just installed, you
will need to reboot the machine. First, however, you will need to
either make a bootable floppy diskette, re-run LILO, or have GRUB
installed.
Checking for LILO...Yes, on /dev/hda
Should I run /sbin/lilo? (y/n) y
Fatal: open /boot/bzImage-gentoo-dev-sources-2.6.5-r1: No such file or directory
There was a problem running /sbin/lilo.
Should I make a bootdisk? (y/n) n
WARNING: Your system is probably unbootable now. After correcting any
problems, rerun this script with the command `mkboot -installkernel'.
make[1]: *** [install] Error 1
make: *** [install] Error 2
|
_________________ college -- sleep, study, party :: pick two |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
josephoenix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 May 2004 Posts: 9 Location: Happy Linux-Land
|
Posted: Sun Jul 04, 2004 10:29 pm Post subject: |
|
|
EDIT: Darn it! People here respond too fast...
EDIT: Ignore this... Look below... If that is what your kernel is supposed to be named, then make install didn't copy it. copy it manually and edit your lilo.conf manually (instructions yada yada are at the link below...) Or, try ls /boot and see if it really does exist... if so, lilo is doing something odd...
EDIT: I am really slow today... It looks like you just need to update lilo.conf to point to the new kernel you have, it looks like your lilo.conf is looking for your old kernel...
I'm not sure, but did you actually change stuff when you did make menuconfig? I mean, go into the different categories and enable the relevant options? If so, and you did the other two commands you listed, your kernel is built!
However, even though the kernel is built, you aren't done...
Read this: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#compiling
Read starting at the paragraph above code listing 12. Then preform the commands in code listing 12, adjust them to the filename of whatever exists and all that...
After that, finish reading the guide (well, except the parts not relevant to your architecture)! And have fun with gentoo. And keep a very broad definition of fun... I am a little cynical since my nVidia drivers are farked... Such is life.
josePhoenix _________________ Current attempts to learn languages:
PHP (and MYSQL) - 20%
C++ - 30%
BASIC - 100% (We all have to start somewhere) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zerokill n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/104557745440e7550903237.jpg)
Joined: 07 Jun 2004 Posts: 23 Location: prospect hts. IL
|
Posted: Sun Jul 04, 2004 10:51 pm Post subject: |
|
|
EDIT: the reason im doing this is to install APM, seems whatever i do i cannot turn off the laptops monitor
i saw the files there in boot and i guess u were right about lilo being weird. well i just did a reboot and i check the make menuconfig to see if the settings stayed and they were there. so im assuming that since it booted and the settings are there, the kernel must have been recompiled and working. right? _________________ college -- sleep, study, party :: pick two |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Putrifier n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Jun 2004 Posts: 46
|
Posted: Sun Jul 04, 2004 10:54 pm Post subject: |
|
|
Newbie here, trying to help. so, if I screw up, dont hurt me.
But, did you actually copy your new kernel over from /usr/src/linux to /boot ? that would explain
Quote: | Fatal: open /boot/bzImage-gentoo-dev-sources-2.6.5-r1: No such file or directory | . |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zerokill n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/104557745440e7550903237.jpg)
Joined: 07 Jun 2004 Posts: 23 Location: prospect hts. IL
|
Posted: Sun Jul 04, 2004 10:55 pm Post subject: |
|
|
no i didnt copy anything over to boot, i thought "make install" did that? _________________ college -- sleep, study, party :: pick two |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Putrifier n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Jun 2004 Posts: 46
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
placeholder Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Mon Jul 05, 2004 2:40 am Post subject: |
|
|
Make install copies it to /boot/vmlinuz* where * is replaced with -2.6.7-love5 or whatever the rest is. Just type ls /boot to see what's inside. Then since it seems like you use lilo, edit /etc/lilo.conf to include that kernel and then run lilo again. Or you can use GRUB like me and just edit the configuration file without having to re-run GRUB. ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|