Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.gentoo    |    Stupid OS you gotta compile EVERYTHING    |    17,684 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 16,593 of 17,684    |
|    Aragorn to All    |
|    Re: kernel OK - Modules KO    |
|    05 Dec 09 14:15:34    |
      From: aragorn@chatfactory.invalid              On Saturday 05 December 2009 13:29 in alt.os.linux.gentoo, somebody       identifying as jf-f wrote...              > Hi u all,       >       > Here is the problem :       > I've just compiled the new kernel following these steps :       > - emerge the new sources       > - eselect to the new kernel       > - make menuconfig - make && make modules_install       > - copy the new kernel image to /boot       > - add the new kernel to grub.conf -> reboot       >       > Then everything seems to work but it seems that it points to the wrong       > modules version. At boot, il says :       > "This is jf_hp at chez.moi ( linux i686 2.6.30.gentoo-r8 )"       > if I run eselect kernel list, I get :       > Available kernel symlink targets:       > [1] linux-2.6.30-gentoo-r8       > [2] linux-2.6.31-gentoo-r6 *       > jf@jf_hp / $       >       > and when I want to make some modules I need, it puts them in the wrong       > place       > :       >       > "make -C /home/jf/3650/s2-liplianin/v4l       > make[1]: Entering directory `/home/jf/3650/s2-liplianin/v4l'       > creating symbolic links...       > make -C firmware prep       > make[2]: Entering directory `/home/jf/3650/s2-liplianin/v4l/firmware'       > make[2]: Leaving directory `/home/jf/3650/s2-liplianin/v4l/firmware'       > make -C firmware       > make[2]: Entering directory `/home/jf/3650/s2-liplianin/v4l/firmware'       > make[2]: Nothing to be done for `default'.       > make[2]: Leaving directory `/home/jf/3650/s2-liplianin/v4l/firmware'       > Kernel build directory is /lib/modules/2.6.30-gentoo-r8/build       > make -C /lib/modules/2.6.30-gentoo-r8/build SUBDIRS=/home/jf/3650/s2-       > liplianin/v4l modules       > make[2]: Entering directory `/usr/src/linux-2.6.30-gentoo-r8'       > Building modules, stage 2.       > MODPOST 313 modules       > make[2]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r8'       > ./scripts/rmmod.pl check       > found 313 modules       > make[1]: Leaving directory `/home/jf/3650/s2-liplianin/v4l'       >       > then I can't load these modules, as it doesn't find them !       >       > Any help would make me happy :)              I have no experience with "eselect", but my recommendation would be to       build your kernel with all the required drivers statically linked, i.e.       use "Y" instead of "M" in the kernel configuration. First write down       what drivers you need, based upon the hardware in the machine and any       potential hardware you plan on connecting to the machine for which an       in-tree driver exists, plus of course all the filesystems that you want       to have support for. For instance, if your root filesystem is on ext3,       then you should definitely have ext3 statically linked into the kernel,       or otherwise you're going to need an /initrd/ with ext3 support.              Since you're already using "menuconfig", it's trivial to select all the       required drivers to be built in. The advantage is that you won't need       an /initrd/ anymore and that the kernel will boot a little bit faster -       not that this is really noticeable.              Do however remember to leave the option for loading kernel modules       enabled if this is a kernel for a desktop/workstation machine and you       are going to use proprietary video and/or wireless drivers on it. As       those drivers come as binary blobs only, you cannot build them into the       kernel image directly. (It would also be a violation of the GPL.)              --       *Aragorn*       (registered GNU/Linux user #223157)              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca