TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patching Kernel Questions



I've had the following successes before running into a wall.

I freshly installed Redhat Linux 6.0 out of the box choosing the install
option 
"everything" when it asked me about packages to install.

Then after succesfully configuring lilo for a dual boot--and using it, I
tried using "make xconfig" (clicked through all 30 submenus without 
changing a thing and hit "save and exit"...; I did the rest of the "makes..." 
including the modules, moved and relinked the new kernel, re-configured
lilo and put the new bootconf.lnx over on the WinNT side.  And THIS
successfully rebooted.

But then I ran into a wall:
I then saved a copy of of this new kernel in a separate unlinked directory
    "cp -R /usr/src/linux-2.2.5-15 /usr/src/linux-2.2.5-15-old
got a copy of patch-2.2.6.gz
    "cd /usr/src/linux    - (links to /usr/src/linux-2.2.5-15)
and ran
    "zcat /root/patch-2.2.6.gz | patch -p1 -E"
   ...and it failed.

So I deleted the "patch attempt" copy of the /usr/src/linix directories and 
made a new copy from /linux-2.2.5-old .  And I get this same or similar 
failure messages.

Now I'm saying to myself: "Dhaaaaaa!  What does it all mean?"
   ("Exactly what it says.")
"Yea, but why does it say there are some files missing?  And why is there a
whole directory that seems to be missing???"
   ("Because you installed for i386 ???")
"But how do I fix this???   What do I need to do now?"

gs
#######################################
[root@localhost linux]# zcat /root/patch-2.2.6.gz | patch -p1 -E
patching file `Documentation/Changes'
patching file `Documentation/Configure.help'
Hunk #1 succeeded at 4004 (offset 48 lines).
Hunk #3 succeeded at 4151 (offset 48 lines).
Hunk #5 succeeded at 7788 (offset 48 lines).
patching file `Documentation/fb/vesafb.txt'
patching file `Documentation/filesystems/00-INDEX'
patching file `Documentation/filesystems/ufs.txt'
The next patch would create the file `Documentation/sound/PCM1-pro',
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to 
Documentation/sound/PCM1-pro.rej
patching file `Documentation/sound/mwave'
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to Documentation/sound/mwave.rej
patching file `Documentation/sysctl/README'
patching file `Documentation/sysctl/fs.txt'
patching file `Documentation/sysctl/kernel.txt'
patching file `Documentation/sysctl/sunrpc.txt'
patching file `Documentation/sysctl/vm.txt'
patching file `MAINTAINERS'
Hunk #1 succeeded at 407 (offset 12 lines).
patching file `Makefile'
Hunk #1 FAILED at 1.
1 out of 4 hunks FAILED -- saving rejects to Makefile.rej
can't find file to patch at input line 758
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u --recursive --new-file v2.2.5/linux/arch/alpha/lib/io.c 
linux/arch/alpha/lib/io.c
|--- v2.2.5/linux/arch/alpha/lib/io.c	Wed Sep  9 14:51:04 1998
|+++ linux/arch/alpha/lib/io.c	Thu Apr 15 05:42:31 1999
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
4 out of 4 hunks ignored
patching file `arch/i386/defconfig'
Hunk #1 FAILED at 174.
1 out of 1 hunk FAILED -- saving rejects to arch/i386/defconfig.rej
patching file `arch/i386/kernel/io_apic.c'
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
patch: **** malformed patch at line 857: Ó,@ü%= 
;ì`öI²¯K*ûÄAä9r;ÜÝäÀF*°êÀFâP9Àº#MÃ
[root@localhost linux]# 


******************************************
George Swan
Collection Development Support Unit	VOICE:	(612) 624-5860
Room 170B, Wilson Library			FAX:	(612) 626-9353
University of Minnesota Libraries		g-swan@tc.umn.edu
309 19th Avenue South			cdm-web@tc.umn.edu
Minneapolis, MN 55455			colldev@tc.umn.edu
USA						http://www.lib.umn.edu/cdm/