[opensuse] HELP! cloop module compiled in a new kernel - most complicated linux related task ever?
I have never been stump on anything Linux related until now, I can't get cloop to work on the latest kernel. I need to update the suse10.1 live DVD to the new kernel as it appears to be having panic errors on Compaq's with asus mobo's and NVIDIA GeForce 6150 + nForce 430 chip set. so in putting a new kernel into 10.1 i need to compile a cloop driver, no can do!!! I get this (according to my googling) standard shit, not specific to cloop, but to my environment, but I did everything just fine (i thought) My make KERNEL_SOURCE=.......... give me ===================================================================================== In file included from /usr/src/linux-2.6.18.2/include/asm/thread_info.h:16, from /usr/src/linux-2.6.18.2/include/linux/thread_info.h:21, from /usr/src/linux-2.6.18.2/include/linux/preempt.h:9, from /usr/src/linux-2.6.18.2/include/linux/spinlock.h:49, from /usr/src/linux-2.6.18.2/include/linux/capability.h:45, from /usr/src/linux-2.6.18.2/include/linux/sched.h:44, from /usr/src/linux-2.6.18.2/include/linux/module.h:9, from compressed_loop.c:38: /usr/src/linux-2.6.18.2/include/asm/processor.h:80: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function) /usr/src/linux-2.6.18.2/include/asm/processor.h:80: error: requested alignment is not a constant compressed_loop.c: In function ‘cloop_init’: compressed_loop.c:903: error: ‘struct gendisk’ has no member named ‘devfs_name’ make: *** [compressed_loop.o] Error 1 ====================================================================================== these errors turn up in all kinds things (on google), and the sol'n always seems to indicate some headers out of sync, but I just compiled a linus kernel 2.6.18-2 and installed it as normal, it boots fine, yet when i "make" cloop (any recent versions), i get this same error. I changed kernel source to the /lib/modules/......... same thing. I suppose i could use the kernel in 10.2 beta, but there is no cloop module for that yet is there? someone has to make one, and not get the problem i have above. For me , cloop is just so cursed. any help would be massively appreciated! -tl --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
[still beating my head on wall] On Wed, 2006-11-08 at 23:43 -0500, ted leslie wrote:
I have never been stump on anything Linux related until now,
I can't get cloop to work on the latest kernel.
I need to update the suse10.1 live DVD to the new kernel as it appears to be having panic errors on Compaq's with asus mobo's and NVIDIA GeForce 6150 + nForce 430 chip set.
so in putting a new kernel into 10.1 i need to compile a cloop driver,
no can do!!!
I get this (according to my googling) standard shit, not specific to cloop, but to my environment, but I did everything just fine (i thought)
My make KERNEL_SOURCE=..........
give me
=====================================================================================
In file included from /usr/src/linux-2.6.18.2/include/asm/thread_info.h:16,
from /usr/src/linux-2.6.18.2/include/linux/thread_info.h:21, from /usr/src/linux-2.6.18.2/include/linux/preempt.h:9,
from /usr/src/linux-2.6.18.2/include/linux/spinlock.h:49,
from /usr/src/linux-2.6.18.2/include/linux/capability.h:45, from /usr/src/linux-2.6.18.2/include/linux/sched.h:44, from /usr/src/linux-2.6.18.2/include/linux/module.h:9, from compressed_loop.c:38: /usr/src/linux-2.6.18.2/include/asm/processor.h:80: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function) /usr/src/linux-2.6.18.2/include/asm/processor.h:80: error: requested alignment is not a constant compressed_loop.c: In function ‘cloop_init’: compressed_loop.c:903: error: ‘struct gendisk’ has no member named ‘devfs_name’ make: *** [compressed_loop.o] Error 1
======================================================================================
these errors turn up in all kinds things (on google), and the sol'n always seems to indicate some headers out of sync, but I just compiled a linus kernel 2.6.18-2 and installed it as normal, it boots fine, yet when i "make" cloop (any recent versions), i get this same error. I changed kernel source to the /lib/modules/......... same thing.
I suppose i could use the kernel in 10.2 beta, but there is no cloop module for that yet is there? someone has to make one, and not get the problem i have above. For me , cloop is just so cursed.
any help would be massively appreciated!
-tl
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
ted leslie wrote:
I have never been stump on anything Linux related until now,
I can't get cloop to work on the latest kernel.
[...]
What cloop sources did you use? The standard cloop from knoppix might not work. Download the latest cloop src.rpm from factory, this one should work with kernel 2.6.18 (as long as the kernel source is properly configured). Cheers, Th. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Thomas Hertweck
Download the latest cloop src.rpm from factory, this one should work with kernel 2.6.18 (as long as the kernel source is properly configured).
Please explain "kernel source is properly configured". I have a problem installing the nvidia driver with kernel-source-2.6.18.1-24.2. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
* Thomas Hertweck
[11-12-06 08:35]: ... Download the latest cloop src.rpm from factory, this one should work with kernel 2.6.18 (as long as the kernel source is properly configured).
Please explain "kernel source is properly configured". I have a problem installing the nvidia driver with kernel-source-2.6.18.1-24.2.
Just for the record, 10.2 beta 2 has the 2.6.18.2-4 kernel and there is no problem in installing the nVidia driver with it. Cheers. -- If apathy is increasing, where is it coming from? --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Basil Chupin
Patrick Shanahan wrote:
* Thomas Hertweck
[11-12-06 08:35]: ... Download the latest cloop src.rpm from factory, this one should work with kernel 2.6.18 (as long as the kernel source is properly configured).
Please explain "kernel source is properly configured". I have a problem installing the nvidia driver with kernel-source-2.6.18.1-24.2.
Just for the record, 10.2 beta 2 has the 2.6.18.2-4 kernel and there is no problem in installing the nVidia driver with it.
In my haste I have provided insufficient information :^( SUSE 10.1 x86_64 2.6.18.1-1-default SMP kernel-source-2.6.18.1-24.2 NVIDIA-Linux-x86_64-1.0-8774-pkg2.run says it cannot find kernel.h, which is indeed not where the nvidia install expects, nor will it accept command-line direction to /usr/src/linux-2.6.18.1-24/include/linux/kernel.h tks, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 12 November 2006 15:24, Patrick Shanahan wrote:
In my haste I have provided insufficient information :^(
SUSE 10.1 x86_64 2.6.18.1-1-default SMP kernel-source-2.6.18.1-24.2
NVIDIA-Linux-x86_64-1.0-8774-pkg2.run says it cannot find kernel.h, which is indeed not where the nvidia install expects, nor will it accept command-line direction to /usr/src/linux-2.6.18.1-24/include/linux/kernel.h
The kernel source package doesn't match the running kernel. This is not a good idea. If you're running kernel 2.6.18.1-1, find kernel source 2.6.18.1-1 to go with it --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Anders Johansson
The kernel source package doesn't match the running kernel. This is not a good idea.
If you're running kernel 2.6.18.1-1, find kernel source 2.6.18.1-1 to go with it
10:18 wahoo:~ > smart query kernel-default-2.6.18.1 kernel-source-2.6.18.1;smart query --installed kernel-default-2.6.18.1 kernel-source-2.6.18.1 kernel-default-2.6.18.1-1.1@i586 kernel-default-2.6.18.1-1.1@x86_64 kernel-source-2.6.18.1-24.2@i586 kernel-source-2.6.18.1-24.2@x86_64 kernel-default-2.6.18.1-1.1@x86_64 kernel-source-2.6.18.1-24.2@x86_64 http://ftp.gwdg.de/pub/opensuse/repositories/Kernel/SUSE_Linux_10.1/ there is no source 2.6.18.1-1 ???? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 12 November 2006 16:31, Patrick Shanahan wrote:
http://ftp.gwdg.de/pub/opensuse/repositories/Kernel/SUSE_Linux_10.1/
there is no source 2.6.18.1-1 ????
Could be. That usually means the source wouldn't build, so there were no binary packages created. Which means the kernel-source package you have is doubly broken Remember, that kernel repo consists of really bleeding edge code, which gets built automatically. If you're going to track it, you better keep on your toes --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Anders Johansson
Could be. That usually means the source wouldn't build, so there were no binary packages created. Which means the kernel-source package you have is doubly broken
?? then why would there not be a kernel-default-2.6.18.1-2 ??? lftp ftp.gwdg.de:/pub/opensuse/repositories/Kernel/SUSE_Linux_10.1/x86_64> ls drwxr-xr-x - 2006-11-06 19:53 .. -rw-r--r-- 17.5M 2006-11-02 16:50 kernel-debug-2.6.18.1-1.1.x86_64.rpm -rw-r--r-- 17.1M 2006-11-02 16:58 kernel-default-2.6.18.1-1.1.x86_64.rpm -rw-r--r-- 2k 2006-11-02 15:26 kernel-dummy-2.6.18.1-1.1.x86_64.rpm -rw-r--r-- 44.4M 2006-11-02 16:22 kernel-source-2.6.18.1-24.2.x86_64.rpm -rw-r--r-- 16.9M 2006-11-06 19:53 kernel-xen-2.6.18.1-1.2.x86_64.rpm
Remember, that kernel repo consists of really bleeding edge code, which gets built automatically. If you're going to track it, you better keep on your toes
Have no choice, usb on my mb is dis-functional with the 2.6.16 kernel :^( -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 12 November 2006 18:05, Patrick Shanahan wrote:
* Anders Johansson
[11-12-06 10:50]: ... Could be. That usually means the source wouldn't build, so there were no binary packages created. Which means the kernel-source package you have is doubly broken
?? then why would there not be a kernel-default-2.6.18.1-2 ???
Like I said, if there is a kernel-source package in that directory without a matching kernel binary package, it means that for some reason, the binary package didn't build --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
[...] Like I said, if there is a kernel-source package in that directory without a matching kernel binary package, it means that for some reason, the binary package didn't build
When the binary package doesn't build in the automatic build process, then the corresponding source package should not be published and put on the FTP server. That doesn't make much sense, IMO. Cheers, Th. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
[...]
Please explain "kernel source is properly configured". I have a problem installing the nvidia driver with kernel-source-2.6.18.1-24.2.
Whenever you want to create a kernel module, certain header files of the corresponding kernel for which you want to compile a module are required. Those header files (e.g. version.h or now utsrelease.h) are created when a kernel is compiled or when you explicitly call "make modules_prepare" for the configured kernel source (you might use "make cloneconfig" or "make oldconfig" if necessary to clone a configuration). If you use a standard SuSE kernel, then you should already find those files in the build directory (usually /usr/src/linux-obj/...) after installation. If you try to build a module for the running kernel, then the link /lib/modules/`uname -r`/build should point to a subdirectory of SuSE's build directory (dependent on your architecture etc., e.g. i386/default) and the correct kernel headers should automatically be picked up. If you want to compile a kernel module for another kernel (which is not running) then you need to specify the kernel source/build directory explicitly! Unfortunately, not all third-party packages use the same mechanism to create kernel modules. In principle, they should use the mechanism that the kernel (source) itself provides. Then, you should just go to the source directory of your external kernel module and type "make -C /path/to/build/directory M=$(pwd) modules modules_install" and it should build and install the corresponding module. Of course, all of this only works if the source of the external kernel module matches somehow the kernel for which you try to create it. In other words, if certain symbols have changed in the kernel source and the NVIDIA driver is not aware of it (e.g. the NVIDIA interface compiles fine with a previous kernel release but fails to compile with the latest kernel), then you can't do much about it (unless you know a lot about the kernel and how to fix the problem) - you have to wait for NVIDIA to update the driver "source". Without a detailed description of your problem it's hard to say what might have gone wrong. Cheers, Th. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
this did it, going to factory, thanks,!!! -tl On Sun, 2006-11-12 at 13:31 +0000, Thomas Hertweck wrote:
ted leslie wrote:
I have never been stump on anything Linux related until now,
I can't get cloop to work on the latest kernel.
[...]
What cloop sources did you use? The standard cloop from knoppix might not work. Download the latest cloop src.rpm from factory, this one should work with kernel 2.6.18 (as long as the kernel source is properly configured).
Cheers, Th.
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anders Johansson
-
Basil Chupin
-
Patrick Shanahan
-
ted leslie
-
Thomas Hertweck