LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2008, 05:36 PM   #16
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234

Put the patch file in /home/andy/src/linux-2.6.26

Then try this:

Code:
cd /home/andy/src/linux-2.6.26
patch -p0 < patch-2.6.26

Last edited by trickykid; 07-17-2008 at 05:38 PM.
 
Old 07-17-2008, 06:00 PM   #17
SgtBower
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
[andy@localhost linux-2.6.26]$ patch -p0 < patch-2.6.26
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/.gitignore b/.gitignore
|index fdcce40..869e1a3 100644
|--- a/.gitignore
|+++ b/.gitignore
--------------------------
File to patch:


There is no such file anywhere in my user directory.

Do I even need this patch since this is the most current kernel and there is no Extraversion number on the patch?
 
Old 07-17-2008, 06:10 PM   #18
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Is this just a normal 2.6.26 patch from the kernel.org archives? I followed the link and that's what it seems like. If so, downloading and using kernel 2.6.26 shouldn't need it's own patch. This would be a patch if you wanted to patch the 2.6.25 kernel source.
 
Old 07-17-2008, 06:12 PM   #19
SgtBower
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Not a battle worth fighting then. That's what I thought.

Now to get on with the config process. . . .
 
Old 07-17-2008, 06:46 PM   #20
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Generally patch files are kept one level above the source tree (say in /usr/src) so as not to get "creamed" when you have to re-unroll the source tree (and start afresh) because of a screw-up. Believe me, it happens ...
Also means the patch is available to multiple (kernel source) versions via the same command.
This is why the how-to suggested ../patch-file.
The patch command itself needs to be run from the top level of the source tree itself - so your last attempt was the closest. Either mv/cp the patch file up one level, or drop the "../"

Edit: referring to earlier posts BTW, not (obviously) these recent ones ...

Last edited by syg00; 07-17-2008 at 06:58 PM.
 
Old 07-17-2008, 07:22 PM   #21
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by syg00 View Post
Generally patch files are kept one level above the source tree (say in /usr/src) so as not to get "creamed" when you have to re-unroll the source tree (and start afresh) because of a screw-up. Believe me, it happens ...
Also means the patch is available to multiple (kernel source) versions via the same command.
This is why the how-to suggested ../patch-file.
The patch command itself needs to be run from the top level of the source tree itself - so your last attempt was the closest. Either mv/cp the patch file up one level, or drop the "../"

Edit: referring to earlier posts BTW, not (obviously) these recent ones ...
Yeah, for some reason I was even thinking the patch attempt was a special patch for the 4k stack, not to move from 2.6.25 to 2.6.26, etc.
 
Old 07-17-2008, 08:11 PM   #22
SgtBower
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
It's on it's third build right now. I've seen a couple of "array" errors and repeated the build with a stock "xconfig" profile, but I'm still getting them. I guess I'll just have to try it and see what happens unless you think it's something fatal. They're just labeled "warning".
 
Old 07-17-2008, 10:59 PM   #23
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
The exact output might be more useful to diagnose but you'll usually see warnings during kernel compiles.
 
Old 07-18-2008, 12:04 AM   #24
SgtBower
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
It ended up showing a total of seven warnings, but were for the hardware that this machine has. I probably should have pulled alot of that extra stuff out, but I tried not to touch much since it was my first try at this.

I went ahead and built and installed everything, and modified my /boot/grub/menu.lst file according to the How-to I referred to a couple posts above. Everything went smooth on the reboot until it got must past the Grub menu and is stopped saying "Error 15" and "File not found.

Menu.lst:

#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Vanilla Fedora (2.6.26.8kstack)
root (hd0,0)
kernel /boot/bzImage-2.6.26.8kstack ro root=LABEL=/
initrd /boot/initrd-2.6.26.8kstack.img

title Fedora (2.6.25.10-86.fc9.i686)
root (hd0,0)
kernel /vmlinuz-2.6.25.10-86.fc9.i686 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.25.10-86.fc9.i686.img
title Fedora (2.6.25-14.fc9.i686)
root (hd0,0)
kernel /vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=3eb478bc-6e13-4a6a-99e3-ee8eb2ff5a8f rhgb quiet
initrd /initrd-2.6.25-14.fc9.i686.img
title Other
rootnoverify (hd1,0)
chainloader +1

PS: I found the problem . . .The Howto refers to SCSI, RAID, and other stuff in the section about creating the RAMdisk and the image file and I skipped it thinking it was optional, thus there is no image file to be located by the grub entry.

I went back to the main source directory and tried to run the "mkinitrd" command, but it says there are no modules available. Is there a fix for this or do I start all over again?

Almost there . . . .
 
  


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
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 08:40 PM
Microphone doesn't work in FC9 mickeyboa Fedora 1 06-07-2008 09:17 PM
FC9, issue with ATI Radeon 7000 (9250 chip) cavin1 Fedora - Installation 0 06-01-2008 12:53 AM
Downgrade gdm in FC9? ordealbyfire83 Linux - Software 0 05-29-2008 02:47 PM
LXer: Which Stack is the Best Stack? LXer Syndicated Linux News 0 07-11-2006 07:33 AM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration