[ltp] PnP Bios patch help

Martin Sanborn linux-thinkpad@www.bm-soft.com
Wed, 19 Dec 2001 12:57:18 -0600


On Wednesday 19 December 2001 12:44 pm, you wrote:
> The Kernel-Howto gives patch -p0 <[patch-file-name]
> And I was presented with a prompt asking me which file to patch. With
> patch -p1, no questions and it works.

FYI, the -p[no.] flag controls the directory level to patch from, more or 
less. If you look at the patch file (which I assume is   
pnpbios.patch_latest, or something similar), you'll see that the path for the 
files is something like 

linux-2.4.17-pre4_ORIG/drivers/.....
linux-2.4.17-pre4/drivers/.....

With -p0, it attempts to find the directory linux-2.4.17-pre4, which, since 
you're in the /usr/src/kernel-source-2.4.16 directory, it can't find. With 
-p1, the first part of the path up to the 1st / is stripped off, leaving it 
to look for drivers, which does exist in your directory.

> Now I can fight with make xconfig (what holidays are made for...)

It's not as bad as you think. I've (not yet) managed to damage my system with 
any kernels I have compiled, though I have ended up with an unbootable kernel 
because I did something really dumb like leave out the IDE driver or other 
such nonsense. Make sure to keep that old kernel around, and add an entry in 
your lilo.conf file for it. 

Marty Sanborn

-- 
| Martin Sanborn - Dept. of Chemical Engineering - Northwestern University |
| m-sanborn@nwu.edu - (847)467-1653 - http://zeolites.cqe.nwu.edu/marty |

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html