nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   AMD kernel patch question (http://www.nvnews.net/vbulletin/showthread.php?t=1618)

redmoose 09-07-02 01:43 PM

AMD kernel patch question
 
When trying to patch the kernel source with the amd-adv-spec-caching-disable-2.4.19pre10-2 patch, the following occurs:

root@linux:/usr/src/linux-2.4.4.SuSE/arch/i386/kernel > patch -p4 < /usr/src/amd-adv-spec-caching-disable-2.4.19pre10-2
patching file setup.c
Hunk #1 succeeded at 445 with fuzz 2 (offset 374 lines).
Hunk #2 succeeded at 608 with fuzz 2 (offset 433 lines).
Hunk #3 FAILED at 1172.
Hunk #4 FAILED at 1272.
Hunk #5 succeeded at 1037 with fuzz 2 (offset -77 lines).
Hunk #6 succeeded at 1180 (offset -110 lines).
Hunk #7 FAILED at 1338.
Hunk #8 succeeded at 1919 with fuzz 2 (offset 448 lines).
Hunk #9 succeeded at 2277 (offset -470 lines).
3 out of 9 hunks FAILED -- saving rejects to file setup.c.rej

What does this mean and is it alright to continue with the kernel configuration? I have never tryed to configure/compile and kernel before so I don't know too much yet. Any help appreciated.

kgroombr 09-07-02 04:06 PM

I would guess that a patch has already been applied to the file in the kernel source you have installed.

My guess, in order for the patch to work, download the kernel source from one of the links off of kernel.org, install and patch that one.

I think it could also be the directory you are in when you are applying the patch. Make sure you are in the right directory.

Ken

bwkaz 09-07-02 07:16 PM

The patch you're trying to apply was created against kernel 2.4.19-pre10, and you're trying to apply it to kernel 2.4.4, modified by SuSE.

This most likely will not work. Is there a version of that patch for kernel 2.4.4? That would get you closer at least. Maybe not all the way there, but closer.

A better solution would be to download ftp://ftp.kernel.org/pub/linux/kerne...-2.4.18.tar.gz and the patch that brings that up to 2.4.19-pre10 (it's at ftp://ftp.kernel.org/pub/linux/kerne....4.19-pre10.gz), remove your /usr/src/linux symlink, decompress linux-2.4.18.tar.gz in /usr/src (it'll create a linux directory), cd into linux, apply the 2.4.19-pre10 patch with a -p1, and then try the AMD patch again.

Caveats: if SuSE patched kernel 2.4.4 with support for something you find useful (case in point was back when I used Mandrake, they had patched supermount support into their kernel), you won't have that support any more, after you build this new kernel. I don't mind anymore, I can live without supermount, but if it's a driver for some specific piece of hardware, it might cause other problems.

Ummm, what else... make sure you know what hardware you have installed (motherboard's IDE chipset, sound card chip, stuff like that) before you start. You can probably copy the .config file from /usr/src/linux-2.4.4.SuSE/ into /usr/src/linux before you do your make menuconfig or make xconfig or whatever you like doing, that would probably make configuration a bit easier because you wouldn't have to look through every option.


All times are GMT -5. The time now is 09:41 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.