Find the answer to your Linux question:
Results 1 to 7 of 7
Hi all, i installed gentoo with genkernel but it didnt have a module for my soundcard. So i used make menuconfig and selected the module i needed setting it to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Location
    Birmingham
    Posts
    70

    Recompiling the kernel


    Hi all,

    i installed gentoo with genkernel but it didnt have a module for my soundcard. So i used make menuconfig and selected the module i needed setting it to 'M'. I then saved my changes and exited. I then ran make modules && make modules_install. I then had the module i needed but when i modprobe it i get a few errors. I read that i might be more successfull to instead of selecting 'M' for the module in make menuconfig i compile it into the kernel by changing it to a *. When i do that and exit and save changes what command do i need to enter (i.e. before i had to enter make modules && make modules_install)? Also will i need to do anything else to get the driver working or because it is compiled into the kernel will it do it itself?

    Please remember i installed genkernel, so im not sure if this will have any unwanted effects when recompiling the kernel.

    Thanks

  2. #2
    Linux Newbie
    Join Date
    Jun 2005
    Posts
    181
    I'm not sure about genkernel, but to compile the kernel, use:

    Code:
    make dep && make bzImage modules modules_install
    200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.

  3. #3
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    you add specific hardware to the genkernel build like this:

    Code:
    genkernel --menuconfig
    make the changes you need and exit

    edit: make sure /boot is mounted first!

  4. #4
    Just Joined!
    Join Date
    Sep 2004
    Location
    Birmingham
    Posts
    70
    So thats basically it then? As root just do, genkernel --menuconfig and save changes and exit? No other commands like make bZimage or make modules or anything? Thanks for your help both

  5. #5
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    yeah man genkernel does the lot afaik.. make sure /boot is mounted first though

  6. #6
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    Quote Originally Posted by Monkeh
    I'm not sure about genkernel, but to compile the kernel, use:

    Code:
    make dep && make bzImage modules modules_install
    thoes commands are for a 2.4.x kernel

    for a 2.6.x kernel the commands are
    Code:
    make;make modules modules_install
    and if you want the kernel installed into /boot for you you must
    Code:
    mount /boot
    first then add install to the end of the command
    Code:
    make;make modules modules_install install
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  7. #7
    Linux Newbie
    Join Date
    Jun 2005
    Posts
    181
    Quote Originally Posted by loft306
    Quote Originally Posted by Monkeh
    I'm not sure about genkernel, but to compile the kernel, use:

    Code:
    make dep && make bzImage modules modules_install
    thoes commands are for a 2.4.x kernel
    Good point. I only use 2.4 kernels, so I didn't think about 2.6
    200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •