I’m trying to compile the latest OpenWRT trunk to run on Metarouter but it is failing at various points with the patch apparently the culprit.
Does anyone know if the patch should be working currently and if not, is there an update?
I’m trying to compile the latest OpenWRT trunk to run on Metarouter but it is failing at various points with the patch apparently the culprit.
Does anyone know if the patch should be working currently and if not, is there an update?
Hi,
this weekend Ive 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 dont 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 |
+#endif
if (status & LinkChg)
rtl8169_check_link_status(dev, tp, ioaddr);
Good luck or thank you for help ![]()
Pep.
Yup, same issue here.
If you alter the 208 patch file to remove that last section that is failing, then the kernel-updates section also fails with a bunch of patch errors.
The kernel-updates section also fails once the trunk is patched, even if you leave the config at the defaults.
Suspect that a new patch file is required.
Any updates on this?
Gerard
edit: I just deleted target/linux/generic-2.6/patches-2.6.27/208-rtl8110sb_fix.patch and build r17542 compiles and seems to work fine.
Latest trunk image build success with this patch (208-rtl8110sb_fix.patch) without errors.
With a bit of re-editing I got the the patch to work (attached, rename as .patch rather than .txt). Minor line number and formatting changes.
I’ll admit haven’t tested it yet .. it’s still building.
This is with openwrt trunk from git.
208-rtl8110sb_fix.txt (1.33 KB)