Hi,
this weekend I`ve tried to compile OpenWRT as well. First error I got with the path was solved by adding break/enter behind last line in "openwrt-metarouter-1.1.patch". But during compilation I got these errors which I don`t know, how to solve:
.
.
.
Applying /home/pepe/trunk/target/linux/generic-2.6/patches-2.6.27/208-rtl8110sb_fix.patch using plaintext:
patching file drivers/net/r8169.c
Hunk #1 succeeded at 1507 (offset -19 lines).
Hunk #2 succeeded at 1516 (offset -19 lines).
Hunk #3 succeeded at 1525 (offset -19 lines).
Hunk #4 FAILED at 2853.
1 out of 4 hunks FAILED -- saving rejects to file drivers/net/r8169.c.rej
Patch failed! Please fix /home/pepe/trunk/target/linux/generic-2.6/patches-2.6.27/208-rtl8110sb_fix.patch!
make[3]: *** [/home/pepe/trunk/build_dir/toolchain-mips_gcc-4.1.2_uClibc-0.9.30.1/linux-2.6.27.21/.prepared86a4dd3aaceaeaeca884aabd65ed581e] Error 1
make[3]: Leaving directory `/home/pepe/trunk/toolchain/kernel-headers'
make[2]: *** [toolchain/kernel-headers/prepare] Error 2
make[2]: Leaving directory `/home/pepe/trunk'
make[1]: *** [/home/pepe/trunk/staging_dir/toolchain-mips_gcc-4.1.2_uClibc-0.9.30.1/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/pepe/trunk'
make: *** [world] Error 2
... this is the end, my only friend - the end
Does anyone know what is wrong? Just in case it is usefull, this is inside the "r8169.c.rej" file:
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -1526,7 +1526,7 @@ static const struct rtl_cfg_info {
.hw_start = rtl_hw_start_8169,
.region = 1,
.align = 0,
- .intr_event = SYSErr | LinkChg | RxOverflow |
+ .intr_event = LinkChg | RxOverflow |
RxFIFOOver | TxErr | TxOK | RxOK | RxErr,
.napi_event = RxFIFOOver | TxErr | TxOK | RxOK | RxOverflow,
.features = RTL_FEATURE_GMII
@@ -1535,7 +1535,7 @@ static const struct rtl_cfg_info {
.hw_start = rtl_hw_start_8168,
.region = 2,
.align = 8,
- .intr_event = SYSErr | LinkChg | RxOverflow |
+ .intr_event = LinkChg | RxOverflow |
TxErr | TxOK | RxOK | RxErr,
.napi_event = TxErr | TxOK | RxOK | RxOverflow,
.features = RTL_FEATURE_GMII | RTL_FEATURE_MSI
@@ -1544,7 +1544,7 @@ static const struct rtl_cfg_info {
.hw_start = rtl_hw_start_8101,
.region = 2,
.align = 8,
- .intr_event = SYSErr | LinkChg | RxOverflow | PCSTimeout |
+ .intr_event = LinkChg | RxOverflow | PCSTimeout |
RxFIFOOver | TxErr | TxOK | RxOK | RxErr,
.napi_event = RxFIFOOver | TxErr | TxOK | RxOK | RxOverflow,
.features = RTL_FEATURE_MSI
@@ -2872,12 +2872,12 @@ static irqreturn_t rtl8169_interrupt(int
rtl8169_tx_timeout(dev);
break;
}
-
+#if 0
if (unlikely(status & SYSErr)) {
rtl8169_pcierr_interrupt(dev);
break;
}
-
+#endif
if (status & LinkChg)
rtl8169_check_link_status(dev, tp, ioaddr);
Good luck or thank you for help
Pep.