my problem is that I cannot install a module. Firstly I thought it is a specific module which I cannot install so I posted in network forum first, but it seems its a general problem.
This was the original thread:
viewtopic.php?f=52&t=28261
I had kernel 3.5.0, then I updated to 3.6.0 using kernel-switcher to test if the internal wlan module was working better, but it didn't. Then I tried to downgrade the kernel to 3.3.0, because the 3.3.0 is the only directory which got files in /usr/src/linux-3.3.0-sabayon/. the directories /usr/src/linux-3.5.0-sabayon/ and /usr/src/linux-3.6.0-sabayon/ are rather small, only like 4MB and 3.3.0 got 400+MB. For me as a beginner it seemed logical to downgrade to see if it can install the module to the 3.3.0 kernel since it gor the usr/src/linux-3.3.0-sabayon files.
I tried the following commands:
- Code: Select all
# eselect kernel list
Available kernel symlink targets:
[1] linux-3.3.0-sabayon *
[2] linux-3.5.0-sabayon
[3] linux-3.6.0-sabayon
[4] linux-3.6.2-gentoo
and
- Code: Select all
# uname -r
3.6.0-sabayon
So it seems I did not switch the kernel back to 3.3.0 even though # eselect kernel list shows me a * at 3.3.0.
When I do 'make' at the module it gives me:
- Code: Select all
# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.6.0-sabayon/build M=/home/ebo/Downloads/RTL modules
make[1]: Entering directory `/usr/src/linux-3.6.0-sabayon'
Makefile:323: /usr/src/linux-3.6.0-sabayon/scripts/Kbuild.include: No such file or directory
Makefile:564: /usr/src/linux-3.6.0-sabayon/arch/x86/Makefile: No such file or directory
/bin/sh: /usr/src/linux-3.6.0-sabayon/scripts/gcc-goto.sh: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.6.0-sabayon/arch/x86/Makefile'. Stop.
make[1]: Leaving directory `/usr/src/linux-3.6.0-sabayon'
make: *** [modules] Error 2
and 'make install' gives me:
- Code: Select all
# make install
install -p -m 644 8192cu.ko /lib/modules/3.6.0-sabayon/kernel/drivers/net/wireless/
install: cannot stat ‘8192cu.ko’: No such file or directory
make: *** [install] Error 1
So I see it still tries to copy to 3.6.0. before I updated to 3.6.0 it tried to copy to 3.5.0 (the active kernel that time)
When I use the following commands:
- Code: Select all
# equery belongs /usr/src/linux-3.3.0-sabayon/scripts/Kbuild.include
* Searching for /usr/src/linux-3.3.0-sabayon/scripts/Kbuild.include ...
sys-kernel/sabayon-sources-3.3-r4 (/usr/src/linux-3.3.0-sabayon/scripts/Kbuild.include)
#
# equery belongs /usr/src/linux-3.5.0-sabayon/scripts/Kbuild.include
* Searching for /usr/src/linux-3.5.0-sabayon/scripts/Kbuild.include ...
#
# equery belongs /usr/src/linux-3.6.0-sabayon/scripts/Kbuild.include
* Searching for /usr/src/linux-3.6.0-sabayon/scripts/Kbuild.include ...
#
Only the 3.3.0 can find something.
And I do not understand why the directory /usr/src/linux-3.6.0-sabayon/ got no files which in my opinion should be there. It got a makefile and a few other small files only.
So as a summation I think th eproblem is that the module tries to install to /usr/src/linux-3.6.0-sabayon/, where it cannot find the destination directories. It could find them only in /usr/src/linux-3.3.0-sabayon/.
Thank you.


