Did you see this thread?
As I said there, the patch has not been updated by MT in a while (over 2 years!), and that Wiki page is quite old. Many changes have been made to OpenWRT since then.
In fact, I can see now what is causing your problem, and the other poster’s problem: the latest version of the patch MikroTik wrote is against Linux kernel version 2.6.31. At the time they wrote the patch, 2.6.31 was supported in ‘trunk’. It was never supported in the official Kamikaze (which only supported 2.6.23-2.6.26), or in Backfire (only 2.6.30 and 2.6.32). The current version of ‘trunk’ only supports kernels 3.1, 3.2, and 3.3…all support of 2.6.x has been removed from ‘trunk’ by OpenWRT devs as of a couple of weeks ago.
So, again, either you are going to have to study MikroTik’s patch and port it forward to a more recent kernel, or grab a copy of OpenWRT that has 2.6.31 support, or introduce support for 2.6.31 into whatever OpenWRT version you want to build.
In my case, I backported kernel 2.6.31 to Kamikaze 8.09.2 (SVN r18961), and I can share those patches with you. I have been planning on working on a build of Backfire 10.03.1, but have not had the time recently.
If you want to try building a version of ‘trunk’ with 2.6.31 support, it looks like r31411 is the last revision of ‘trunk’ before OpenWRT devs ripped support for that kernel out. You will have to check 31411 out of SVN and try patching and building against that.
If you want to try building against Kamikaze with my patches that introduce 2.6.31 support, I have them for download here:
[u]http://www.nconx.com/~nathan/openwrt-metarouter/mr1p2_owrt_18961.patch.gz[/u]
Kamikaze 8.09.2 buildroot source is available straight from OpenWRT:
[u]http://downloads.openwrt.org/kamikaze/8.09.2/kamikaze_8.09.2_source.tar.bz2[/u]
First apply MikroTik’s 1.2 patch as instructed on the Wiki. Then apply my patches with ‘zcat mr1p2_owrt_18961.patch.gz | patch -p1’ from within the root of the Kamikaze source tree directory. Finally, ‘make menuconfig’, make sure to select either MetaROUTER MIPS or PPC, and then select ‘tgz’ from “Target Images”. Save, and then ‘make’. Final tgz image file will be located under ‘bin/’.
If you elect to try to grab an older revision of ‘trunk’ to build against that supports kernel 2.6.31, you should be able to simply follow the instructions on the Wiki as-is and all should be well (in theory).
– Nathan