hello list I manage some servers from german 1und1 with a special SuSE-kernel build by this company. In this kernel the VIA-RHINE-II network card ist compiled in staticly. A binary update from SuSE would't work correctly. Therefore my question: How can I build my own kernel based on the SuSE's newest patched kernel source. Or other questione can/should I use the newest kernel from kernel.org. What can happen. Thanks for any help ... /Mario
Hi, The Kernel Source RPMs got updated, too. Install the SRPM, go to the kernel source directory (should be something like /usr/src/linux) and follow the instructions in the README file. To configure the kernel, a "make cloneconfig" should be your favorite choice. Bye, Holger Am Freitag, 5. Dezember 2003 17:29 schrieb Mario Neubert:
hello list
I manage some servers from german 1und1 with a special SuSE-kernel build by this company. In this kernel the VIA-RHINE-II network card ist compiled in staticly. A binary update from SuSE would't work correctly. Therefore my question: How can I build my own kernel based on the SuSE's newest patched kernel source. Or other questione can/should I use the newest kernel from kernel.org. What can happen.
Thanks for any help ...
/Mario
Am Fre, 05.12.2003, um 19:07:40 Uhr [+0100] schrieb Holger Schletz:
The Kernel Source RPMs got updated, too. Install the SRPM, go to the kernel source directory (should be something like /usr/src/linux) and follow the instructions in the README file. To configure the kernel, a "make cloneconfig" should be your favorite choice.
For me this does not work - and I do not know why. Here is, what I have done (on my SuSE 7.3). Because a former patched kernel 2.4.18 disabled my scsi card (used for the scanner), I had installed the patched 2.4.19 kernel of SuSE 8.1. It worked. No I fetched and installed k_deflt-2.4.21-151.i586.rpm (the binary) of SuSE 8.1, and it worked. (At least mostly. By the way: this made it necessary to tell smbmount that the charcode must be unicode.) Since I had some modules compiled manually, I have to recompile them with the new kernel header files. So I tried to get the preconfigured SuSE sources: I fetched and installed kernel-source-2.4.18.SuSE-281.i386.rpm I fetched and installed k_deflt-2.4.21-151.src.rpm Then I looked into /usr/src - no directory linux*! Only some files added in /usr/src/packages/SOURCES, among them linux-2.4.21.tar.bz2 (the unpatched and not configured vanilla kernel tree, as far as I see it), some patches.$ARCH.tar.bz2, and some *.sh without x-flag (!). The file README.SuSE in this directory SOURCES presupposes that after installing kernel-source.$ARCH.rpm everything should be in /usr/src/linux, which in my case is not true. And even after unpacking linux-2.4.21.tar.bz2 I could not "make cloneconfig" (this option is not available). What ist wrong? Is there a mistake in one of the kernel source packages mentioned above? Or is there another way to get the header files of k_deflt-2.4.21-151? With kind regards, Hatto von Hatzfeld
Hi, On Mon, Dec 08, 2003 at 11:00:37AM +0100, Hatto von Hatzfeld wrote:
Since I had some modules compiled manually, I have to recompile them with the new kernel header files. So I tried to get the preconfigured SuSE sources:
I fetched and installed kernel-source-2.4.18.SuSE-281.i386.rpm I fetched and installed k_deflt-2.4.21-151.src.rpm
You should always use the kernel-source RPM matching _exactly_ your binary k_xxx package. In this case, not even the kernel version matches. This makes it somewhat unlikely that your self-compiled kernel modules will ever run with your binary kernel.
Then I looked into /usr/src - no directory linux*!
Are you sure used the kernel-source _binary_ RPM? All you need is kernel-source-2.4.21-151.i586.rpm, and install that. This will put a completely patched kernel into /usr/src/linux-*, and all you really need to do is call "make cloneconfig". If you use _source_ RPMs, you just get the pieces and need to put them together yourself. It's not pretty, and it's not really the recommended way of building your kernel (unless you want to learn something about our kernel patch and build management process).
The file README.SuSE in this directory SOURCES presupposes that after installing kernel-source.$ARCH.rpm everything should be in /usr/src/linux, which in my case is not true.
It really appears as if you used kernel-source.src.rpm. Olaf -- Olaf Kirch | Stop wasting entropy - start using predictable okir@suse.de | tempfile names today! ---------------+
Am Mon, 08.12.2003, um 11:24:48 Uhr [+0100] schrieb Olaf Kirch:
I fetched and installed kernel-source-2.4.18.SuSE-281.i386.rpm
That was my typo, sorry! In reality it was kernel-source-2.4.21-151.src.rpm, the same version as the binary kernel. But it was the *src.rpm - and that was my former mistake.
Are you sure used the kernel-source _binary_ RPM?
Now I am sure that I did not. :-)
All you need is kernel-source-2.4.21-151.i586.rpm, and install that.
Thanks for the hint. By the way: kernel-source-2.4.21-151.i586.patch.rpm is not needed, is it?
It really appears as if you used kernel-source.src.rpm.
Yeah, you are right. It's a bit confusing: a binary of the kernel binary, a binary of the kernel source, a source of the kernel source - all these are different files. Bye, Hatto -- Hatto von Hatzfeld sdb Tel. 0221/64708-31 Provinzialat der Salesianer Don Boscos Mobil 0151/14705577 Rixdorfer Str. 15 Fax 069/791256380 51063 Köln hatto@salesianer.de
(Sorry, in my first mail there was an ugly typing error, so I repeat:) Am Fre, 05.12.2003, um 19:07:40 Uhr [+0100] schrieb Holger Schletz:
The Kernel Source RPMs got updated, too. Install the SRPM, go to the kernel source directory (should be something like /usr/src/linux) and follow the instructions in the README file. To configure the kernel, a "make cloneconfig" should be your favorite choice.
For me this does not work - and I do not know why. Here is, what I have done (on my SuSE 7.3). Because a former patched kernel 2.4.18 disabled my scsi card (used for the scanner), I had installed the patched 2.4.19 kernel of SuSE 8.1. It worked. No I fetched and installed k_deflt-2.4.21-151.i586.rpm (the binary) of SuSE 8.1, and it worked. (At least mostly. By the way: this made it necessary to tell smbmount that the charcode must be unicode.) Since I had some modules compiled manually, I have to recompile them with the new kernel header files. So I tried to get the preconfigured SuSE sources: I fetched and installed kernel-source-2.4.21-151.i386.rpm (not 2.4.18 as I had written before!) I fetched and installed k_deflt-2.4.21-151.src.rpm Then I looked into /usr/src - no directory linux*! Only some files added in /usr/src/packages/SOURCES, among them linux-2.4.21.tar.bz2 (the unpatched and not configured vanilla kernel tree, as far as I see it), some patches.$ARCH.tar.bz2, and some *.sh without x-flag (!). The file README.SuSE in this directory SOURCES presupposes that after installing kernel-source.$ARCH.rpm everything should be in /usr/src/linux, which in my case is not true. And even after unpacking linux-2.4.21.tar.bz2 I could not "make cloneconfig" (this option is not available). What ist wrong? Is there a mistake in one of the kernel source packages mentioned above? Or is there another way to get the header files of k_deflt-2.4.21-151? With kind regards, Hatto von Hatzfeld -- Check the headers for your unsubscription address For additional commands, e-mail: suse-security-help@suse.com Security-related bug reports go to security@suse.de, not here
Hi, On Mon, Dec 08, 2003 at 02:02:41PM +0100, Hatto von Hatzfeld wrote:
I fetched and installed kernel-source-2.4.21-151.i386.rpm
Where did you get that from? $ cd /pub/suse/i386/update/8.1/rpm/i586 $ ls kernel-source-2.4.21-151.i386.rpm ls: kernel-source-2.4.21-151.i386.rpm: No such file or directory There is a *.i586.rpm however. $ rpm -qlp kernel-source-2.4.21-151.i586.rpm ... /usr/src/linux-2.4.21-151/COPYING /usr/src/linux-2.4.21-151/CREDITS /usr/src/linux-2.4.21-151/Config.in /usr/src/linux-2.4.21-151/Documentation /usr/src/linux-2.4.21-151/Documentation/00-INDEX /usr/src/linux-2.4.21-151/Documentation/AIO-NOTES /usr/src/linux-2.4.21-151/Documentation/BK-usage Again: are you sure you installed the .i586.rpm, not the .src.rpm? Olaf -- Olaf Kirch | Stop wasting entropy - start using predictable okir@suse.de | tempfile names today! ---------------+
Am Mon, 08.12.2003, um 14:24:13 Uhr [+0100] schrieb Olaf Kirch:
On Mon, Dec 08, 2003 at 02:02:41PM +0100, Hatto von Hatzfeld wrote:
I fetched and installed kernel-source-2.4.21-151.i386.rpm
Where did you get that from?
You are right. (Heute ist wirklich nicht mein Tag.) It was in fact the rpm file kernel-source-2.4.21-151.i586.rpm.
Again: are you sure you installed the .i586.rpm, not the .src.rpm?
Yes, and now everything works as it should. The only strange thing was, that kernel-source-2.4.21-151.i586.rpm wanted to remove the kernel sources of 2.4.9. It did not find them. As far as I know, my SuSE 7.3 had started with kernel version 2.4.10. Thanks for your help! Hatto von Hatzfeld
participants (4)
-
Hatto von Hatzfeld
-
Holger Schletz
-
Mario Neubert
-
Olaf Kirch