I'm trying to patch a file with a patch extracted from a forum post and it doesn't seem to be working or maybe I'm doing it wrongly.....
This is the source of the patch and I've cut the following out as a patchfile:-
After removing the first and last lines and saving the above as PATCHFILE
can I just run
Obviously not since that doesn't work.
Any hints?
This is the source of the patch and I've cut the following out as a patchfile:-
Code:
-------------- next part --------------
--- DOCKSTAR 2017-03-31 12:30:26.752632000 +0200
+++ GOFLEX 2017-04-01 20:10:43.480437000 +0200
@@ -19,7 +19,7 @@
#
#NO_UNIVERSE
-ident DOCKSTAR
+ident GOFLEX
include "std.arm"
include "../mv/kirkwood/std.db88f6xxx"
@@ -31,9 +31,6 @@
options INET6 # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
-options NFSCL # Network Filesystem Client
-options NFSLOCKD # Network Lock Manager
-#options NFS_ROOT # NFS usable as /, requires NFSCL
options MSDOSFS # MSDOS Filesystem
options CD9660 # ISO 9660 filesystem
options NULLFS # NULL filesystem
@@ -48,21 +45,10 @@
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
-# Enable these options for nfs root configured via BOOTP.
-#options BOOTP
-#options BOOTP_NFSROOT
-#options BOOTP_NFSV3
-#options BOOTP_WIRED_TO=mge0
-
-# If not using BOOTP, use something like one of these...
-#options ROOTDEVNAME=\"ufs:/dev/da0a\"
-options ROOTDEVNAME=\"ufs:/dev/da0s1a\"
-#options ROOTDEVNAME=\"ufs:/dev/da0p10\"
-#options ROOTDEVNAME=\"nfs:192.168.0.254/dreamplug\"
+options ROOTDEVNAME=\"ufs:/dev/ufs/kirkwoodroot\"
# Misc pseudo devices
device bpf # Required for DHCP
-device firmware # firmware(9) required for USB wlan
device gif # IPv6 and IPv4 tunneling
device loop # Network loopback
device md # Memory/malloc disk
@@ -71,7 +57,6 @@
device tun # Packet tunnel.
device ether # Required for all ethernet devices
device vlan # 802.1Q VLAN support
-device wlan # 802.11 WLAN support
# cam support for umass and ahci
device scbus
@@ -92,23 +77,18 @@
device usb # Basic usb support
device ehci # USB host controller
device umass # Mass storage
-device uhid # Human-interface devices
-device rum # Ralink Technology RT2501USB wireless NICs
-device uath # Atheros AR5523 wireless NICs
-device ural # Ralink Technology RT2500USB wireless NICs
-device zyd # ZyDAS zb1211/zb1211b wireless NICs
-device urtw # Realtek RTL8187B/L USB
-device upgt # Conexant/Intersil PrismGT SoftMAC USB
-device u3g # USB-based 3G modems (Option, Huawei, Sierra)
# I2C (TWSI)
device iic
device iicbus
device twsi
-# Sound
-device sound
-device snd_uaudio
+# SATA
+device mvs
+device ahci
+
+# NAND
+#device nand
#crypto
device cesa # Marvell security engine
@@ -118,18 +98,13 @@
# IPSec
device enc
options IPSEC
-options IPSEC_NAT_T
options TCP_SIGNATURE # include support for RFC 2385
-# IPFW
-options IPFIREWALL
-options IPFIREWALL_DEFAULT_TO_ACCEPT
-options IPFIREWALL_VERBOSE
-options IPFIREWALL_VERBOSE_LIMIT=100
-options IPFIREWALL_NAT
-options LIBALIAS
-options DUMMYNET
-options IPDIVERT
+# DTrace
+options KDTRACE_HOOKS
+options DDB_CTF
+makeoptions DEBUG=-g
+makeoptions WITH_CTF=1
#PF
device pf
@@ -153,4 +128,4 @@
# Flattened Device Tree
options FDT # Configure using FDT/DTB data
options FDT_DTB_STATIC
-makeoptions FDT_DTS_FILE=dockstar.dts
+makeoptions FDT_DTS_FILE=goflex.dts
-------------- next part --------------
After removing the first and last lines and saving the above as PATCHFILE
can I just run
patch < PATCHFILE
and create a file called GOFLEX.Obviously not since that doesn't work.
Any hints?