Community discussions

 
User avatar
mrz
MikroTik Support
MikroTik Support
Topic Author
Posts: 5910
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

OpenWRT metarouter patch v1.2

Tue Apr 13, 2010 4:33 pm

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
 
crs
just joined
Posts: 18
Joined: Wed Mar 10, 2010 10:19 am

Re: OpenWRT metarouter patch v1.2

Fri Apr 23, 2010 10:05 am

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!
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: OpenWRT metarouter patch v1.2

Thu Apr 28, 2011 2:48 pm

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".
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: OpenWRT metarouter patch v1.2

Sat Feb 25, 2012 3:51 am

Can we get metarouter patch v1.1 again ?
If anybody still have it pls share to us.
Thank you.
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: OpenWRT metarouter patch v1.2

Mon Feb 27, 2012 9:07 am

Found it
http://www.mikrotik.com/download/metarouter/openwrt-metarouter-1.1.patch
Thank you.
 
guy1with1mr1problems
newbie
Posts: 43
Joined: Wed Jun 13, 2012 12:34 pm

Re: OpenWRT metarouter patch v1.2

Wed Jul 18, 2012 1:35 pm

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)
 
Rivera
Member Candidate
Member Candidate
Posts: 105
Joined: Thu Jul 21, 2011 7:42 pm

Re: OpenWRT metarouter patch v1.2

Thu Sep 13, 2012 11:58 am

Trying to build latest openwrt with needed packages (8.09 branch), gives me following error: http://pastebin.com/7PeV0jvk
 
napismizpravu
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Apr 09, 2011 1:27 pm
Location: czech

Re: OpenWRT metarouter patch v1.2

Fri Nov 23, 2012 12:00 am

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)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Fri Nov 23, 2012 8:48 am

it is working again. you should be able to download the file from this link:
http://www.mikrotik.com/download/metaro ... -1.2.patch
 
napismizpravu
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Apr 09, 2011 1:27 pm
Location: czech

Re: OpenWRT metarouter patch v1.2

Fri Nov 23, 2012 9:19 am

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 ...."
 
vaalaskala
just joined
Posts: 13
Joined: Sun Nov 04, 2012 1:09 pm

Re: OpenWRT metarouter patch v1.2

Sat Dec 29, 2012 11:29 am

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
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Wed Jan 02, 2013 9:47 am

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.
 
vaalaskala
just joined
Posts: 13
Joined: Sun Nov 04, 2012 1:09 pm

Re: OpenWRT metarouter patch v1.2

Wed Jan 02, 2013 11:47 am

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)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Wed Jan 02, 2013 12:03 pm

you can look up tips on internet where more experienced people suggests what exactly should and can be done.
 
vaalaskala
just joined
Posts: 13
Joined: Sun Nov 04, 2012 1:09 pm

Re: OpenWRT metarouter patch v1.2

Wed Jan 02, 2013 3:45 pm

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
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Wed Jan 02, 2013 5:57 pm

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.
 
vaalaskala
just joined
Posts: 13
Joined: Sun Nov 04, 2012 1:09 pm

Re: OpenWRT metarouter patch v1.2

Wed Jan 02, 2013 10:44 pm

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.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Thu Jan 03, 2013 10:32 am

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.
 
vaalaskala
just joined
Posts: 13
Joined: Sun Nov 04, 2012 1:09 pm

Re: OpenWRT metarouter patch v1.2

Thu Jan 03, 2013 2:58 pm

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.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Thu Jan 03, 2013 5:38 pm

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.
 
vaalaskala
just joined
Posts: 13
Joined: Sun Nov 04, 2012 1:09 pm

Re: OpenWRT metarouter patch v1.2

Fri Jan 04, 2013 3:59 pm

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
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Mon Jan 07, 2013 10:25 am

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)
 
vaalaskala
just joined
Posts: 13
Joined: Sun Nov 04, 2012 1:09 pm

Re: OpenWRT metarouter patch v1.2

Mon Jan 07, 2013 2:39 pm

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?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Mon Jan 07, 2013 4:17 pm

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?
 
but
just joined
Posts: 6
Joined: Mon Apr 01, 2013 5:32 pm

Re: OpenWRT metarouter patch v1.2

Wed Apr 10, 2013 2:57 pm

how is last revision of openWRT supported by patch 1.2, please?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Wed Apr 10, 2013 3:16 pm

no, it has to be manually applied to it.
 
but
just joined
Posts: 6
Joined: Mon Apr 01, 2013 5:32 pm

Re: OpenWRT metarouter patch v1.2

Wed Apr 10, 2013 4:11 pm

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
 
User avatar
otgooneo
Trainer
Trainer
Posts: 570
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: OpenWRT metarouter patch v1.2

Mon Apr 22, 2013 6:45 am

Any good news about Metarouter on multi-cpu routerboards? How about on tile CPU?
----------------------------
Want to learn more and more...
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 793
Joined: Tue Aug 03, 2004 9:01 am

Re: OpenWRT metarouter patch v1.2

Fri May 10, 2013 9:19 am

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
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 793
Joined: Tue Aug 03, 2004 9:01 am

Re: OpenWRT metarouter patch v1.2

Fri May 10, 2013 9:22 am

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
 
EXANIX
just joined
Posts: 1
Joined: Fri Sep 27, 2013 9:43 am

Re: OpenWRT metarouter patch v1.2

Fri Sep 27, 2013 9:48 am

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.
 
ppaulojr
just joined
Posts: 8
Joined: Wed Oct 30, 2013 4:27 pm

Re: OpenWRT metarouter patch v1.2

Wed Oct 30, 2013 4:32 pm

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
 
essele
newbie
Posts: 28
Joined: Tue Jan 07, 2014 5:55 am

Linux Kernel questions for MikroTik

Tue Jan 07, 2014 6:31 am

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.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT metarouter patch v1.2

Wed Jan 08, 2014 1:50 pm

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.
 
joncolby
newbie
Posts: 39
Joined: Wed Nov 13, 2013 8:09 am
Location: Southern California

Re: OpenWRT metarouter patch v1.2

Sat Aug 09, 2014 11:45 pm

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
 
roadracer96
Forum Veteran
Forum Veteran
Posts: 714
Joined: Tue Aug 25, 2009 12:01 am

Re: OpenWRT metarouter patch v1.2

Tue Aug 12, 2014 3:08 am

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.
 
pqatsi
just joined
Posts: 3
Joined: Thu Jun 18, 2015 3:03 pm

Re: OpenWRT metarouter patch v1.2

Thu Jun 18, 2015 3:08 pm

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
 
viumden
just joined
Posts: 3
Joined: Mon Aug 24, 2015 6:26 am

Re: OpenWRT metarouter patch v1.2

Tue Aug 25, 2015 1:16 pm

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?
 
xaoc
just joined
Posts: 8
Joined: Tue May 24, 2016 1:17 pm

Re: OpenWRT metarouter patch v1.2

Thu Jun 09, 2016 2:35 pm

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).
 
PowerPan
just joined
Posts: 1
Joined: Thu Jun 08, 2017 10:00 am

Re: OpenWRT metarouter patch v1.2

Thu Jun 08, 2017 10:03 am

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 ;)
 
ajack46
newbie
Posts: 37
Joined: Tue Mar 28, 2017 9:08 am

Re: OpenWRT metarouter patch v1.2

Thu Jun 15, 2017 11:23 am

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.

Who is online

Users browsing this forum: No registered users and 2 guests