Koozali.org: home of the SME Server

Ad VT8235 Southbridge support

Mike

Re: Ad VT8235 Southbridge support
« Reply #15 on: June 10, 2003, 04:22:01 PM »
The lines in the patchfile point to:
diff -Nur linux-2.4/drivers/ide/ide-timing.h linux/drivers/ide/ide-timing.h
--- linux/drivers/ide/ide-timing.h   Thu Apr 18 19:31:29 2002
+++ linux/drivers/ide/ide-timing.h   Thu Sep 19 15:22:49 2002

diff -Nur linux-2.4/drivers/ide/via82cxxx.c linux/drivers/ide/via82cxxx.c
--- linux-2.4/drivers/ide/via82cxxx.c   Thu Apr 18 18:50:33 2002
+++ linux/drivers/ide/via82cxxx.c   Thu Sep 19 15:22:38 2002

diff -Nur linux-2.4/include/linux/pci_ids.h linux/include/linux/pci_ids.h
--- linux-2.4/drivers/ide/pci_ids.h   Thu Apr 18 18:50:35 2002
+++ linux/drivers/ide/linux/pci_ids.h   Thu Sep 19 15:22:29 2002

You should patch from /usr/src
That means /usr/src/linux-2.4 /usr/src/linux should exist.
They don't.
Is /usr/src/linux-2.4 the source dir?
Where should /usr/src/linux link to?
The driver is meant for 2.4.18-3 and SME uses 2.4.18-5
How do I deal with that?

Kelvin

Re: Ad VT8235 Southbridge support
« Reply #16 on: June 10, 2003, 04:38:12 PM »
Mike,

patch appears to work by just comparing text from the patch script with the target source file at the given line number. It allows for an "error - x" by scanning x number of lines around the target line number. If it fails to locate the intended line to modify, it "fails" the hunk.

So, if you opened the patch script and the target source file side by side, you should be able to locate and modify the required lines in the source file (can't beat a human brain). By the way which patch did you end up trying ? The LWN one or the VIA one. The VIA one appears to only need manual editing at 2 places while the LWN one failed every hunk (I think).

As for the paths, I can't help you there as I encountered the same thing and did not have a "real" RedHat Development PC setup to compare against.

Kelvin