2013.08.29. 0:11 keltezéssel, David Hutchison írta:
> This patch enables OpenWRT to be ran on the RouterBOARD 951Ui-2HnD.
> GPIO 2 enables or disables the POE on port 5. By default we enable
> GPIO2. GPIO 20 controls the USB Power, by default it enables the USB
> port.
> 
> Attached is 624-MIPS-ath79-RB951u-support.patch
> 
> Signed-off-by: Davey Hutchison <dhutchi...@bluemesh.net>
> 
> --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
> +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c

Please use strip level 1 for the patches. The current form fails with 'git am':

> $ wget http://patchwork.openwrt.org/patch/4017/mbox/ -O - | git am
> ...
> Applying: Add RouterBOARD 951Ui-2HnD Support
> error: linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c: does not exist in 
> index
> Patch failed at 0001 Add RouterBOARD 951Ui-2HnD Support
> When you have resolved this problem run "git am --resolved".
> If you would prefer to skip this patch, instead run "git am --skip".
> To restore the original branch and stop patching run "git am --abort".
> $ git am --abort

Additionally the whitespaces are corrupted in the patch, so it is not working
even with 'git am -p0':

> $ wget http://patchwork.openwrt.org/patch/4017/mbox/ -O - | git am -p0
> ...
> Applying: Add RouterBOARD 951Ui-2HnD Support
> error: patch failed: target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c:37
> error: target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c: patch does not 
> apply
> Patch failed at 0001 Add RouterBOARD 951Ui-2HnD Support
> When you have resolved this problem run "git am --resolved".
> If you would prefer to skip this patch, instead run "git am --skip".
> To restore the original branch and stop patching run "git am --abort".
> $ git am --abort

Quilt fails as well:

> $ wget http://patchwork.openwrt.org/patch/4017/mbox/ -O 4017.patch && quilt 
> import -p0 4017.patch && quilt push
> ...
> 2013-09-01 14:48:41 (13.6 KB/s) - `4017.patch' saved [3898]
> 
> Importing patch 4017.patch (stored as patches/4017.patch)
> Applying patch patches/4017.patch
> patching file target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
> Hunk #1 succeeded at 37 with fuzz 2.
> Hunk #2 succeeded at 90 with fuzz 2.
> Hunk #3 FAILED at 245.
> 1 out of 3 hunks FAILED -- rejects in file 
> target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
> Patch patches/4017.patch does not apply (enforce with -f)

Please try again. Additionally, please put the
'624-MIPS-ath79-RB951u-support.patch' into the patch.

Thanks,
GAbor
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to