Subject: Applying a patch
To: NetBSD List <port-mac68k@NetBSD.ORG>
From: Krak <mr_krak@televar.com>
List: port-mac68k
Date: 12/31/1997 22:56:59
Just tried to use the patch that you so kindly pointed me to, and
received the following:
Hmmm...Looks like a new style context diff to me...
The text leading up to this was:
-------------------------
|RCS File: RCS/macdep.c,v
|retrieving version 1.4
|diff -c -r1.4 macdep.c
|***macdep.c 1997/09/02 01:50:19 1.4
|- --- machdep.c 1997/09/02 01:54:49
-------------------------
Patching file machdep.c using Plan A...
patch: ****unexpected end of file in patch
The actual patch is as follows (Hopefully the formatting will come
through)
RCS file: RCS/machdep.c,v
retrieving revision 1.4
diff -c -r1.4 machdep.c
*** machdep.c 1997/09/02 01:50:49 1.4
- --- machdep.c 1997/09/02 01:54:49
***************
*** 2145,2150 ****
- --- 2145,2153 ----
case MACH_CLASSQ:
case MACH_CLASSQ2:
mac68k_machine.sonic = 1;
+ /* The next two lines are the infamous "madhatter"
patch */
+ mac68k_vidlog = mac68k_vidphys = 0xf9000000;
+ mac68k_vidlen = 1 * 1024 * 1024;
case MACH_CLASSAV:
VIA2 = 1;
IOBase = 0x50f00000;
- ---------------------------------------------------------------------
I have as I said, never tried to patch anything before and have the patch
named "mh_patch" (I am assuming the name doesn't matter here) and is
located in / so the command line I used was (from the directory
/src/sys/arch/mac68k/mac68k)
% patch < /mh_patch
the machdep.c file was in the same directory that I was in
(/src/sys/arch/mac68k/mac68k) so I am wondering where I went wrong
here... ;) Please gimme some more advice :)
Regards,
Greg
Greg Evans Design
Your Web Design Specialists
http://www.gregevansdesign.tronics.com