hnyman wrote:First guess is that your new patch is malformed. Does it apply cleanly?
And did you "make clean" first?
Use the "singlecompile.sh" and then check the end of the build.log to see what is the reason for your error.
I successfully compiled your build with the default settings. I then just deleted the directory and started all over.
Here's the end of the file, though
Applying patch platform/900-overclock.patch
patching file arch/mips/include/asm/mach-ath79/kernel-entry-init.h
Hunk #1 FAILED at 23.
1 out of 1 hunk FAILED -- rejects in file arch/mips/include/asm/mach-ath79/kernel-entry-init.h
Patch platform/900-overclock.patch does not apply (enforce with -f)
make[4]: *** [/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.18/.quilt_checked] Error 1
make[4]: Leaving directory `/Openwrt/trunk/target/linux/ar71xx'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/Openwrt/trunk/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/Openwrt/trunk'
make[1]: *** [/Openwrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/Openwrt/trunk'
make: *** [world] Error 2
inside is just
--- a/arch/mips/include/asm/mach-ath79/kernel-entry-init.h.orig
+++ b/arch/mips/include/asm/mach-ath79/kernel-entry-init.h
@@ -23,6 +23,8 @@
and t0, t1
ori t0, CONF_CM_CACHABLE_NONCOHERENT
mtc0 t0, CP0_CONFIG
+ li t2, 0xc0140198
+ sw t2, 0x18050000
nop
.endm
The file you linked,
/*
* Atheros AR71XX/AR724X/AR913X specific kernel entry setup
*
* Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
*/
#ifndef __ASM_MACH_ATH79_KERNEL_ENTRY_H
#define __ASM_MACH_ATH79_KERNEL_ENTRY_H
/*
* Some bootloaders set the 'Kseg0 coherency algorithm' to
* 'Cacheable, noncoherent, write-through, no write allocate'
* and this cause performance issues. Let's go and change it to
* 'Cacheable, noncoherent, write-back, write allocate'
*/
.macro kernel_entry_setup
mfc0 t0, CP0_CONFIG
li t1, ~CONF_CM_CMASK
and t0, t1
ori t0, CONF_CM_CACHABLE_NONCOHERENT
mtc0 t0, CP0_CONFIG
nop
.endm
.macro smp_slave_setup
.endm
#endif /* __ASM_MACH_ATH79_KERNEL_ENTRY_H */
I realize I could just edit that to be
/*
* Atheros AR71XX/AR724X/AR913X specific kernel entry setup
*
* Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
*/
#ifndef __ASM_MACH_ATH79_KERNEL_ENTRY_H
#define __ASM_MACH_ATH79_KERNEL_ENTRY_H
/*
* Some bootloaders set the 'Kseg0 coherency algorithm' to
* 'Cacheable, noncoherent, write-through, no write allocate'
* and this cause performance issues. Let's go and change it to
* 'Cacheable, noncoherent, write-back, write allocate'
*/
.macro kernel_entry_setup
mfc0 t0, CP0_CONFIG
li t1, ~CONF_CM_CMASK
and t0, t1
ori t0, CONF_CM_CACHABLE_NONCOHERENT
mtc0 t0, CP0_CONFIG
+ li t2, 0xc0140198
+ sw t2, 0x18050000
nop
.endm
.macro smp_slave_setup
.endm
#endif /* __ASM_MACH_ATH79_KERNEL_ENTRY_H */
I added two lines, but where would I put these changes? I can't find any file called kernel-entry-init.h
or would I just call this file 900-overclock.patch and place it into /Openwrt/trunk/target/linux/ar71xx/patches-3.10
sorry for the noobness
Thanks for your help, really appreciated.
(Last edited by jigglywiggly on 17 Nov 2013, 10:42)