<br>hello, friend:<br>I try to patch it from the follow, but i still got error:<br>-----------------------------------------------------------------------------------------------<br>voyage:/usr/src/linux-source-2.6.23-voyage# patch -p4 < kernel-patch-2.6.23-voyage_5.0-2.patch<br>missing header for unified diff at line 4 of patch<br>can't find file to patch at input line 4<br>Perhaps you used the wrong -p or --strip option?<br>The text leading up to this was:<br>--------------------------<br>|diff -Naur linux-source-2.6.23/Documentation/filesystems/00-INDEX linux-source-2.6.23-voyage/Documentation/filesystems/00-INDEX<br>|--- linux-source-2.6.23/Documentation/filesystems/00-INDEX 2007-10-09 20:31:38.000000000 +0000<br>|+++ linux-source-2.6.23-voyage/Documentation/filesystems/00-INDEX 2008-05-01 04:31:33.000000000 +0000<br>--------------------------<br>File to patch:<br>[6]+
Stopped patch -p4 <kernel-patch-2.6.23-voyage_5.0-2.patch<br>voyage:/usr/src/linux-source-2.6.23-voyage# patch -p1 <kernel-patch-2.6.23-voyage_5.0-2.patch<br>patching file Documentation/filesystems/00-INDEX<br>Reversed (or previously applied) patch detected! Assume -R? [n]<br>------------------------------------------------------------------------------------------------------------<br>i tried -p1 or p4 all have errors, please give some suggestion for that.<br>thanks!<br>zhu<br><b><i>Mali VMS <rma@vmsys.com></i></b> 写道:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta name="Generator" content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:*
{behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"> <o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:"\@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:宋体;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0in;
mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:宋体;} pre {margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> <div class="Section1"><pre style="background: white none repeat scroll 0% 0%; line-height: 19.8pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Well, you have to gunzip it before patch it or you do : <o:p></o:p></span></font></pre><pre style="background: white none repeat scroll 0% 0%; line-height: 19.8pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy:
-moz-initial;"><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">gzip –d < xxx.gz | patch –p1 <o:p></o:p></span></font></pre> <div class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Regards,<o:p></o:p></span></font></div> <div class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Robbert<o:p></o:p></span></font></div> <div> <div class="MsoNormal" style="text-align: center;" align="center"><font size="3" face="宋体"><span style="font-size:
12pt;"> <hr tabindex="-1" align="center" size="2" width="100%"> </span></font></div> <div class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> lizhong zhu [mailto:zhulizhongum@yahoo.com.cn] <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 08, 2008 12:47 PM<br> <b><span style="font-weight: bold;">To:</span></b> Mali VMS; voyage-linux@voyage.hk<br> <b><span style="font-weight: bold;">Subject:</span></b> </span></font><font size="2"><span style="font-size: 10pt;" lang="ZH-CN">回复:</span></font><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> RE: [Voyage-linux] where is kernel-source-2.6.8-voyage?</span></font><o:p></o:p></div> </div> <div class="MsoNormal"><font size="3" face="宋体"><span style="font-size:
12pt;"><o:p> </o:p></span></font></div> <div class="MsoNormal"><font size="3" face="宋体"><span style="font-size: 12pt;">hello, <st1:country-region w:st="on"><st1:place w:st="on">mali</st1:place></st1:country-region>:<br> i have to change to linux-source to patch that.<br> this is error:-----------------------------------------------<br> voyage:/usr/src# cd linux-source-2.6.23-voyage/<br> voyage:/usr/src/linux-source-2.6.23-voyage# ls<br> COPYING Documentation MAINTAINERS README REPORTING-BUGS block crypto kernel-patch-2.6.23-voyage_5.0-1.patch.gz<br> CREDITS Kbuild Makefile README.openswan-2 arch conf.vars drivers<br> voyage:/usr/src/linux-source-2.6.23-voyage# patch -p1 <
kernel-patch-2.6.23-voyage_5.0-1.patch.gz<br> patch unexpectedly ends in middle of line<br> patch: **** Only garbage was found in the patch input.<br> voyage:/usr/src/linux-source-2.6.23-voyage#<br> ------------------------------------------------------------------------------------------------<br> i also tried -p4 but it does work. is anything wrong with patch file?<br> thanks!<br> zhu <br> <br> <st1:country-region w:st="on"><st1:place w:st="on"><b><i><span style="font-weight: bold; font-style: italic;">Mali</span></i></b></st1:place></st1:country-region><b><i><span style="font-weight: bold; font-style: italic;"> VMS <rma@vmsys.com></span></i></b> <span lang="ZH-CN">写道:</span><o:p></o:p></span></font></div> <div class="MsoNormal"><font size="3" face="宋体"><span style="font-size: 12pt;">You do these:<br> <br> 1) apt-get install linux-source-2.6.23-voyage<br> 2) cd /usr/src; tar xjvf linux-source-2.6.23-voyage.tar.bz2;<br> 3) cd linux-source-2.6.23;<br> <br>
Regards,<br> Robbert <br> <br> -----Original Message-----<br> From: voyage-linux-bounces+rma=vmsys.com@list.voyage.hk<br> [mailto:voyage-linux-bounces+rma=vmsys.com@list.voyage.hk] On Behalf Of<br> lizhong zhu<br> Sent: Tuesday, July 08, 2008 11:41 AM<br> To: voyage-linux@voyage.hk<br> Subject: [Voyage-linux] where is kernel-source-2.6.8-voyage?<br> <br> hello, users:<br> I try to recompile the kernel, but i have some problems. i do that based on<br> the link:<br> http://wiki.voyage.hk/dokuwiki/doku.php?id=voyage_kernel.<br> i have linux source :linux-source-2.6.23-voyage. the confusion part is here:<br> <br> <br> --------------------------------------------------------<br> <br> <br> <br> Downloading kernel configuration<br> <br> Download the corresponding kernel config file from voyage.hk and put to<br> /usr/src: <br> wget<br> http://www.voyage.hk/download/kernel_config/config-2.6.8-486-voyage_2.0-3<br> cp config-2.6.8-486-voyage_2.0-3
kernel-source-2.6.8-voyage/.config<br> Kernel configuration files can be found here<br> <http: www.voyage.hk="" download="" kernel_config="">. <br> <br> Patching kernel<br> <br> You can now apply your own kernel patch to voyage kernel, here are the<br> commands I use: <br> cd kernel-source-2.6.8-voyage<br> patch -p1 < <br> <my patch="">_______________________________________________<br> where is kernel source? is it linux-source? anyone knows that? <br> please give me a hint.<br> Regards!<br> James.zhu<br> <br> <br> ________________________________<br> <br> <span lang="ZH-CN">雅虎邮箱,您的终生邮箱! </span><br> <http: cn.mail.yahoo.com=""><br> <br> <o:p></o:p></http:></my></http:></span></font></div> <div class="MsoNormal"><font size="3" face="宋体"><span style="font-size: 12pt;"><o:p> </o:p></span></font></div> <div><font size="3" face="宋体"><span style="font-size: 12pt;"> <o:p></o:p></span></font></div> <div class="MsoNormal" style="text-align:
center;" align="center"><font size="3" face="宋体"><span style="font-size: 12pt;"> <hr align="center" size="1" width="100%"> </span></font></div> <div class="MsoNormal"><font size="3" face="宋体"><span style="font-size: 12pt;"><a href="http://cn.mail.yahoo.com/"><span lang="ZH-CN">雅虎邮箱,您的终生邮箱!</span></a><o:p></o:p></span></font></div> </div> </o:smarttagtype></o:smarttagtype></blockquote><br><p>
<hr size=1><a href="http://cn.mail.yahoo.com/"> 雅虎邮箱,您的终生邮箱!</a>