View previous topic :: View next topic |
Author |
Message |
nateo n00b
Joined: 19 Sep 2012 Posts: 15
|
Posted: Mon Sep 24, 2012 9:47 pm Post subject: general kernel building question |
|
|
Howdy All,
I have been having a really tough time getting my radeon card working--so much so that I'm doubting my abilities to make and copy a new kernel to boot (even though I've done it before).
Anyway could someone look at the following code and see if there is anything I'm missing?
Code: | cd /usr/src/linux
make menuconfig |
I'm am now in menuconfig and choosing my various options including the relevant radeon stuff. I save the configuration upon exiting menuconfig and then:
Code: | make && make modules |
The computer is busy for a while and appears to make a new kernel. So then I copy:
Code: | cp -pv arch/x86_64/boot/bzImage /boot/linux-3.4.9-gentoo |
I've checked my time stamps for bzImage and linux-3.4.9-gentoo and they are always the same and always reflect the latest kernel roll.
I then reboot and the system and it works. But am I using the kernel I just rolled or some other kernel.
So, is there anything possibly wrong with any of the above? |
|
Back to top |
|
|
pidsley Tux's lil' helper
Joined: 09 Jun 2012 Posts: 80
|
Posted: Mon Sep 24, 2012 9:51 pm Post subject: Re: general kernel building question |
|
|
nateo wrote: |
Code: | make && make modules |
|
I think this should be "make && make modules_install"
If you're building the radeon driver as a module, this may be why it's not working.
See this section in the handbook: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#doc_chap3
Quote: | Compiling and Installing
Now that your kernel is configured, it is time to compile and install it. Exit the configuration and start the compilation process:
Code Listing 3.9: Compiling the kernel
Code: | # make && make modules_install |
|
If you want to be absolutely certain you are using the kernel you just built, either change its name when you copy it (kernel-3.4.9-gentoo-1, for example; you will then also need to edit your menu.lst file) or set CONFIG_LOCALVERSION in the .config file; this allows you to add a string that will be displayed with the kernel version when you use uname -r.
Of course, this won't help if your modules are not being built or installed correctly. |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Mon Sep 24, 2012 11:31 pm Post subject: |
|
|
nateo,
This is a good outline to follow for radeon
And as pidsley advised it's make && make modules_install
To copy the kernel to /boot first make sure it's mounted then make install _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9524 Location: beyond the rim
|
Posted: Tue Sep 25, 2012 11:25 am Post subject: |
|
|
To check which kernel you're running atm use `uname -a` and look at the build time. If it's not the correct one check your bootmanager config (grub usually). But as others have said, if the problem is mainly with the radeon driver it's likely you simply forgot to install it using `make modules_install`. |
|
Back to top |
|
|
|