Page 1 of 1

OpenWRT metarouter patch v1.2

Posted: Tue Apr 13, 2010 4:33 pm
by mrz
New OpenWRT metarouter patch have been released.

*) Added PowerPC support (now you can run OpenWRT image on RB800, R1000 and RB1100)
*) Added support for newer kernel (now it is possible to build image with latest OpenWRT trunk)

Patch downloads and build instructions can be found from link below
http://wiki.mikrotik.com/wiki/Manual:Me ... al_machine

Re: OpenWRT metarouter patch v1.2

Posted: Fri Apr 23, 2010 10:05 am
by crs
I had serious problems with running PowerPC image form Wiki and with image built from OpenWRT sources with applied patch. You can read about it in my post -> http://forum.mikrotik.com/viewtopic.php ... 89#p204389 . Be aware!

Re: OpenWRT metarouter patch v1.2

Posted: Thu Apr 28, 2011 2:48 pm
by liquidcz
Where can i download the older one? I would like to use OpenWRT Backfire with older patch. When i used patch 1.2 for backfire svn, i cant get choice MK Metarouter in "make menuconfig".

Re: OpenWRT metarouter patch v1.2

Posted: Sat Feb 25, 2012 3:51 am
by ferywu
Can we get metarouter patch v1.1 again ?
If anybody still have it pls share to us.
Thank you.

Re: OpenWRT metarouter patch v1.2

Posted: Mon Feb 27, 2012 9:07 am
by ferywu
Found it
http://www.mikrotik.com/download/metarouter/openwrt-metarouter-1.1.patch
Thank you.

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jul 18, 2012 1:35 pm
by guy1with1mr1problems
Hello, as I already posted elsewhere:

This fixes a problem where mounting a squashfs loop device inside linux guest would get autodetected as 'metafs' instead, wrongly mounting metafs (the mikrotik-shared filesystem) in place of the squashfs contents.

Also note: from that point on, you need to specify the root device explicitly on kernel command line. The only way seems to be via CONFIG_CMDLINE in guest kernel.
Example that works with the liquidcz infrastructure: CONFIG_CMDLINE="init=/etc/preinit rootfstype=metafs root=none"

Could you please merge this into your official patches? Thank you !

--- old/fs/metafs/inode.c   2012-06-29 16:31:48.331049440 +0200
+++ new/fs/metafs/inode.c   2012-06-29 16:32:31.652047941 +0200
@@ -841,7 +841,6 @@
    .name      = "metafs",
    .get_sb      = mfs_get_sb,
    .kill_sb   = kill_block_super,
-   .fs_flags   = FS_REQUIRES_DEV,
 };
 
 static void init_once(void *foo)

Re: OpenWRT metarouter patch v1.2

Posted: Thu Sep 13, 2012 11:58 am
by Rivera
Trying to build latest openwrt with needed packages (8.09 branch), gives me following error: http://pastebin.com/7PeV0jvk

Re: OpenWRT metarouter patch v1.2

Posted: Fri Nov 23, 2012 12:00 am
by napismizpravu
Wiki http://wiki.mikrotik.com Building your own OpenWRT image http://www.mikrotik.com/download/metarouter/openwrt-metarouter-1.2.patch update? ...bad file patch (inside the non-existent links)

Re: OpenWRT metarouter patch v1.2

Posted: Fri Nov 23, 2012 8:48 am
by janisk
it is working again. you should be able to download the file from this link:
http://www.mikrotik.com/download/metaro ... -1.2.patch

Re: OpenWRT metarouter patch v1.2

Posted: Fri Nov 23, 2012 9:19 am
by napismizpravu
it is working again. you should be able to download the file from this link:
http://www.mikrotik.com/download/metaro ... -1.2.patch
the file is the same openwrt-metarouter-1.2.patch

command "make" after a while error no download ftp://...kernel....xxx.2.6.31 inside the non-existent links
NathanA write May 19, 2012 >> "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 ...."

Re: OpenWRT metarouter patch v1.2

Posted: Sat Dec 29, 2012 11:29 am
by vaalaskala
tried to compile and it is not possible with latest trunk and patch 1.2 cause it can't find the linux packages to download from mirrors

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jan 02, 2013 9:47 am
by janisk
latest patch is not for latest trunk. however it should be possible to manually apply it. Others use last revision that had kernel against what 1.2 patch was created.

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jan 02, 2013 11:47 am
by vaalaskala
latest patch is not for latest trunk. however it should be possible to manually apply it. Others use last revision that had kernel against what 1.2 patch was created.
can you share some tips or have a "how to" so I could apply it manually ? Or what trunk is meant to be used (i guess it will fail even with right trunk as the packages are removed from mirrors)

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jan 02, 2013 12:03 pm
by janisk
you can look up tips on internet where more experienced people suggests what exactly should and can be done.

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jan 02, 2013 3:45 pm
by vaalaskala
you can look up tips on internet where more experienced people suggests what exactly should and can be done.
great answer Janisk :) this really adds some shine to this community :D

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jan 02, 2013 5:57 pm
by janisk
even if i could i cannot you answer off-topic questions that does not regard RouterOS configuration or use of hardware. There are better forums that has already have well laid out answer to your question.

Same way you can find already built images linked in this forum that users have built for others to use.

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jan 02, 2013 10:44 pm
by vaalaskala
even if i could i cannot you answer off-topic questions that does not regard RouterOS configuration or use of hardware. There are better forums that has already have well laid out answer to your question.

Same way you can find already built images linked in this forum that users have built for others to use.
I got your point. There seems to be "invisible off-topic wall" in every tech forum you hit :) and always the magical other places where all answers seem to be existing. I'll try to search better

Please update your wiki page http://wiki.mikrotik.com/wiki/Manual:Me ... nWRT_image which is outdated to indicate the patch provided is outdated for latest trunk that is referenced there. Would save you a lot of "off-topic" n00b questions.

Re: OpenWRT metarouter patch v1.2

Posted: Thu Jan 03, 2013 10:32 am
by janisk
if you really need that, you can see this thread:

http://forum.mikrotik.com/viewtopic.php?f=15&t=32187

where some users did awesome work and made OpenWRT images for MetaROUTER


on later pages they are using newer releases that matched kernel that patch 1.2 was made against.
on 3rd page of that thread you will see posts of liquidcz and NathanA
where they have built images and what version they used.
for example this post:
http://forum.mikrotik.com/viewtopic.php ... 08#p309608

wiki page has note saying that using latest trunk might have problems while applying the patch.

Re: OpenWRT metarouter patch v1.2

Posted: Thu Jan 03, 2013 2:58 pm
by vaalaskala
if you really need that, you can see this thread:...
Thanks for that info , managed to find those threads on my own last night as well.

My goal is to use openwrt as metarouter and mount the samba share on routerboard and share it with dlna pacage of some kind or install a newer samba version and reshare the share to be able to access this with latest os-x. I'll dig deeper as I managed to get the metarouter working with kamikaze build provided there but still i'm unable to mount smb shares on this even after I have managed to find needed packages for this.

Re: OpenWRT metarouter patch v1.2

Posted: Thu Jan 03, 2013 5:38 pm
by janisk
there was problem with linux OS to mount routeros smb share, try nweer RouterOS if possible. At least on 5.22 ROS smb shares are mountable via CLI or fstab entry.

Re: OpenWRT metarouter patch v1.2

Posted: Fri Jan 04, 2013 3:59 pm
by vaalaskala
there was problem with linux OS to mount routeros smb share, try nweer RouterOS if possible. At least on 5.22 ROS smb shares are mountable via CLI or fstab entry.
running the RC right now and i can mount from my virtualbox ubuntu but not from openwrt jet . tho i can use smbclient flawlessly on bot osx and openwrt the mounting part is what is failing here. But i guess eventually i get there if i lear n how to debug mount -t cifs

Re: OpenWRT metarouter patch v1.2

Posted: Mon Jan 07, 2013 10:25 am
by janisk
I am using 6.0rc6 that have smb part similar to 5.22 and i am able to mount smb of the router.

add share

ros code

[admin@MikroTik] > /ip smb shares add name=tst

shell code

$ sudo mount -t cifs //192.168.88.1/tst ./mnt/
$ mount |grep cifs
//192.168.88.1/tst on /home/janisk/test/mnt type cifs (rw)

Re: OpenWRT metarouter patch v1.2

Posted: Mon Jan 07, 2013 2:39 pm
by vaalaskala
I am using 6.0rc6 that have smb part similar to 5.22 and i am able to mount smb of the router.

add share

ros code

[admin@MikroTik] > /ip smb shares add name=tst

shell code

$ sudo mount -t cifs //192.168.88.1/tst ./mnt/
$ mount |grep cifs
//192.168.88.1/tst on /home/janisk/test/mnt type cifs (rw)
srry for really offtopic discussion here, did you mounted this from openwrt metarouter? or just from random shell you have at hand?

Re: OpenWRT metarouter patch v1.2

Posted: Mon Jan 07, 2013 4:17 pm
by janisk
that would be random shell (namely my workstation with latest Kubuntu)
$ smbclient -V
Version 3.6.6
What options are you using (and how the command you are trying to use to mount looks like? What version of samba OpenWRT use?

Re: OpenWRT metarouter patch v1.2

Posted: Wed Apr 10, 2013 2:57 pm
by but
how is last revision of openWRT supported by patch 1.2, please?

Re: OpenWRT metarouter patch v1.2

Posted: Wed Apr 10, 2013 3:16 pm
by janisk
no, it has to be manually applied to it.

Re: OpenWRT metarouter patch v1.2

Posted: Wed Apr 10, 2013 4:11 pm
by but
Your answer isn't relevant for my question.

I want to know number of last revision supported by patch 1.2

Thank you for this information

Re: OpenWRT metarouter patch v1.2

Posted: Mon Apr 22, 2013 6:45 am
by otgooneo
Any good news about Metarouter on multi-cpu routerboards? How about on tile CPU?

Re: OpenWRT metarouter patch v1.2

Posted: Fri May 10, 2013 9:19 am
by NathanA
This fixes a problem where mounting a squashfs loop device inside linux guest would get autodetected as 'metafs' instead, wrongly mounting metafs (the mikrotik-shared filesystem) in place of the squashfs contents.
Thanks for posting this. This patch personally came in handy for me.

-- Nathan

Re: OpenWRT metarouter patch v1.2

Posted: Fri May 10, 2013 9:22 am
by NathanA
Your answer isn't relevant for my question.

I want to know number of last revision supported by patch 1.2

Thank you for this information
If you read my post over at this thread (which you posted to, by the way, so I know you have seen it!), I mentioned which version of OpenWRT 'trunk' was the last one to have support for kernel version 2.6.31. Of course, that by itself is no guarantee you will be able to build that revision of 'trunk' without difficulty. I can't say because I haven't tried. Your mileage may vary.

-- Nathan

Re: OpenWRT metarouter patch v1.2

Posted: Fri Sep 27, 2013 9:48 am
by EXANIX
Hello. Could you make new patch for openwrt, because actual trunk have kernel "LINUX_VERSION:=3.10.12". And this version have asterisk11, it is very important, because asterisk11 have faxgateway.

Re: OpenWRT metarouter patch v1.2

Posted: Wed Oct 30, 2013 4:32 pm
by ppaulojr
I agree we need a new patch. We are having serious trouble compiling the current version even with the recent changes in the documentation:
sudo apt-get update sudo apt-get install gcc g++ patch binutils bzip2 flex make gettext pkg-config unzip libz-dev libc6 ncurses-base ncurses-bin libncurses5-dev subversion git 

Mikrotik:
svn checkout -r 33081 svn://svn.openwrt.org/openwrt/trunk/ cd trunk/ 
wget http://www.mikrotik.com/download/metarouter/openwrt-metarouter-1.2.patch 
patch -p0 <openwrt-metarouter-1.2.patch make menuconfig
I get this error: https://gist.github.com/ppaulojr/7219679

Linux Kernel questions for MikroTik

Posted: Tue Jan 07, 2014 6:31 am
by essele
Hi,

I'm relatively new to Routerboards, but a long time user of OpenWRT trunk builds on a variety of different hardware. I'm really interested in the metarouter concept to run OpenWRT as a VM, but I like using trunk and certainly don't want to be way out of date.

I see there is a patch (v1.2) discussed on this list, but I've also seen references to a "linux_3_3_5_patch.gz".

I was considering trying to port the v1.2 patch to the current OpenWRT trunk kernel when I discovered the 3_3_5 patch, which looks much easier to apply to the current kernel. The 3_3_5 patch also seems to be a more generic "support for Routerboards" patch rather than a metarouter specific patch.

So I have a couple of questions:

1. Do MikroTik have any plans to get this stuff included in the stock kernel? (the rb523 is there!)
2. Do MikroTik have any plans to get this stuff included in the standard OpenWRT builds?
3. Is this the most recent patch available?
4. Was this patch part of a planned release cycle? I don't see any announcements or anything?
5. Do you intend to release future patches as you progress RouterOS versions?

I'd love to spend some time trying to make this work, but I'm quite keen to understand how serious MikroTik are about OpenWRT as a virtual platform in the longer term.

Thanks,

Lee.

Re: OpenWRT metarouter patch v1.2

Posted: Wed Jan 08, 2014 1:50 pm
by janisk
linux_3_3_5_patch is for current 6.x RouterOS

patches are released as they are requested at support@mikrotik.com (you can get details there)

It is not connected to openwrt patch we are talking about here.

There are some plans to create next patch for a newer openwrt, but nothing has been decided yet.

Re: OpenWRT metarouter patch v1.2

Posted: Sat Aug 09, 2014 11:45 pm
by joncolby
Ive messed with OpenWRT to get virtualization and packetfence support. All thats needed to run it directly is to enable Dynamic VLAN Assignment.. Go Vote here for it : http://forum.mikrotik.com/viewtopic.php?f=1&t=86461

Re: OpenWRT metarouter patch v1.2

Posted: Tue Aug 12, 2014 3:08 am
by roadracer96
Ive messed with OpenWRT to get virtualization and packetfence support. All thats needed to run it directly is to enable Dynamic VLAN Assignment.. Go Vote here for it : http://forum.mikrotik.com/viewtopic.php?f=1&t=86461

Thread jacking.

Re: OpenWRT metarouter patch v1.2

Posted: Thu Jun 18, 2015 3:08 pm
by pqatsi
Based on http://naberius.de/2015/01/10/openwrt-b ... k-rb-2011/ - i've "fixed" the panic issuing network interfaces in Barrier Breaker.

The main issue with network is the rxbuf size. I did not made other checks, but i saw a packet that's >= 300bytes leads kernel to crash, what leads to 1600 (Old RXBUF) - 300 == 1300 - for some kind of another stuff. So i increased RXBUF to 10300 and compiled. Its running now a Privoxy and i tested a Ubuntu ISO download from a local mirror and archived my link total speed (5mbps), so for a baby step, is enough. Also in kdoc (link in gist above), skb_put really leads to panic if buffer dont fit the allocation.

I published the patch here: https://gist.github.com/leleobhz/61cd38b851d254a0cee6

Re: OpenWRT metarouter patch v1.2

Posted: Tue Aug 25, 2015 1:16 pm
by viumden
Based on http://naberius.de/2015/01/10/openwrt-b ... k-rb-2011/ - i've "fixed" the panic issuing network interfaces in Barrier Breaker.

The main issue with network is the rxbuf size. I did not made other checks, but i saw a packet that's >= 300bytes leads kernel to crash, what leads to 1600 (Old RXBUF) - 300 == 1300 - for some kind of another stuff. So i increased RXBUF to 10300 and compiled. Its running now a Privoxy and i tested a Ubuntu ISO download from a local mirror and archived my link total speed (5mbps), so for a baby step, is enough. Also in kdoc (link in gist above), skb_put really leads to panic if buffer dont fit the allocation.

I published the patch here: https://gist.github.com/leleobhz/61cd38b851d254a0cee6
I tried your patch but it crashes the router for a while when there is network connected:
http://forum.mikrotik.com/viewtopic.php?f=15&t=99807
Is it because of "skb_put really leads to panic if buffer dont fit the allocation."? Any idea how to proceed to solve this issue?

Re: OpenWRT metarouter patch v1.2

Posted: Thu Jun 09, 2016 2:35 pm
by xaoc
There are some plans to create next patch for a newer openwrt, but nothing has been decided yet.
Hi,
Are there any new information about patch (will be new version)?
The last I found in the web is here http://www.kriskinc.com/mikrotik-metarouter but it's for OpenWrt 12.09 (Linux 3.3).

Re: OpenWRT metarouter patch v1.2

Posted: Thu Jun 08, 2017 10:03 am
by PowerPan
I am also looking for an update Patch to bring Metarouter Supports for the OpenWRT Fork LEDE https://lede-project.org

I will be very cool if there will come a Update and I can use it on several Routers ;)

Re: OpenWRT metarouter patch v1.2

Posted: Thu Jun 15, 2017 11:23 am
by ajack46
I am also looking for an update Patch to bring Metarouter Supports for the OpenWRT Fork LEDE https://lede-project.org

I will be very cool if there will come a Update and I can use it on several Routers ;)
Have a similar query too, one thing are you using it for some workplace as you mentioned using several routers.