LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-06-2005, 07:48 AM   #1
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
Question Kernel Patch Configuration Error


I decided to try to learn some things about the kernel and go ahead and try patching that baddy so I could upgrade to the new 2.6.14 from the 2.6.13 which came installed on SuSE 10.0.
So I read around and found since it was one version, I could just patch it. So I got the patch-2.6.14.gz from www.kernel.org and extracted the patch. I put it in the usr/src/linux folder(which is actually merely linked to usr/src/linux-2.6.13-15). So then I ran the patch and had a ton of little things like this:
Code:
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
I had dozens of those and about 3 of these errors about line 90167 could not be found or something, and so I skipped that part too.
So then, I figured since SuSE's was probably slightly modifed those kind of warnings/errors were normal, and it was okay, I went to configure the kernel.
Code:
Garibaldi:/usr/src/linux # make xconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  SHIPPED scripts/kconfig/zconf.tab.h
  HOSTCC  scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
  HOSTCC  scripts/kconfig/kconfig_load.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  HOSTCC  scripts/kconfig/zconf.tab.o
scripts/kconfig/zconf.tab.c:228:6: warning: "YYSTACK_USE_ALLOCA" is not defined
scripts/kconfig/zconf.tab.c:852:5: warning: "YYMAXDEPTH" is not defined
/usr/lib/qt3/bin/moc -i scripts/kconfig/qconf.h -o scripts/kconfig/qconf.moc
  HOSTCXX scripts/kconfig/qconf.o
  HOSTLD  scripts/kconfig/qconf
scripts/kconfig/qconf arch/i386/Kconfig
file net/netfilter/Kconfig already scanned?
make[1]: *** [xconfig] Error 1
make: *** [xconfig] Error 2
So now, this is where I am at in my endaevor, I was hoping at least to be able to configure it so I could really start looking into compiling a new one and pesonalizing it for my system. Can anyone help figure out what I need to go to get there?
 
Old 11-06-2005, 09:03 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Put patch-2.6.14.gz in /usr/src not in /usr/src/linux. Then cd into /usr/src/linux and do this:
gunzip -dc ../patch-2.6.14.gz | patch -p1

NOTE: Because of the errors you described above you may have already borked the sources and you'll need to start fresh, e.g.
rm -fr /usr/src/linux-2.6.13-15
Reinstall sources and start over.
 
Old 11-06-2005, 09:41 AM   #3
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Original Poster
Rep: Reputation: 45
Sorry, I was going by a guide linked to from another thread, this is the set of instructions I used here. So I put it in the folder they told me to, and did as they suggested. If they don't have the right thing, there are another few thread posters that need a warning.

Okay, I ran the rm and reinstalled the source for linux from the SuSE ftp.

Then I put the kernel patch, still gzed, in the /usr/src folder and ran the command you mentioned to gunzip and patch in the same move(at least that is how I see it working.)

I got what appears to be exactly as many of identical errors during my first attempt, and identical output upon running "make xconfig".

So, does that mean this patch is just not gonna work and I should get the full kernel from www.kernel.org?
 
Old 11-06-2005, 01:30 PM   #4
anantshri
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Debian, Fedora,Ubuntu
Posts: 25

Rep: Reputation: 15
patch

hello my friend,
well here i would like to tell all the new babies in kernel compilation that
try to compile a fresh (vanilla ) kernel.

coz the kernel that comes with your distro is being heavily tweaked by the company and many patches are back ported in from the development series.

so if you wish to experiment then please download a fresh kernel

yours
anant
 
Old 11-06-2005, 02:27 PM   #5
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Original Poster
Rep: Reputation: 45
So does that mean I would lose out on any of the features(or flaws) my distro put in? Where could I read up on what they did differently than the fresh stuff? Cause it may be worth it to do a full fresh, but if I lose out ona ton of stuff that SuSE did well, and don't fix any of the flaws, it wouldn't be worth it, know what I mean?
 
Old 11-07-2005, 03:38 AM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Some nice distros will put a copy of the patches in the /usr/src directory (debian calls the directory kernel-patches.) If not then you are either stuck using their tweeked kernel or you can venture out on your own and build a fresh kernel. Chances are the fresh kernel will work just fine. At any rate you can try it and the worse case is it doesn't work and you have to search for a patch to fix the problem.

BTW, I got the instructions on where to put the patch from the file /usr/src/linux/README so I think I'm right

<edit> HERE is a much better kernel build guide, with pictures and everything. It covers both 2.4 and 2.6 kernels.

Last edited by /bin/bash; 11-07-2005 at 03:47 AM.
 
Old 11-07-2005, 07:16 AM   #7
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Original Poster
Rep: Reputation: 45
That looks very good. And I was following a 2.4 guide, the one you mentioned points out that 2.4 and 2.6 need to be compiled differently, which is good to know. Soon as I have time tonight, I will be trying this out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error compiling kernel 2.6.6 with bootsplash patch nagromo Debian 2 12-18-2004 10:51 PM
Kernel 2.6.9 make error (after bootsplash patch) jai_joy Linux - Newbie 7 12-06-2004 02:19 PM
kernel patch error - reversed? pfunk Linux - Software 4 10-14-2004 04:53 AM
ACPI patch and kernel compile error crisponions Linux - Laptop and Netbook 3 10-29-2003 06:52 PM
Kernel Compile error after applyin bootsplash patch h1tman Slackware 0 10-06-2003 09:05 AM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration