Community discussions

MikroTik App
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Feb 18, 2012 11:53 am

Reasonable doubt can be different kernel, but its publicly known issue, RB450 and metarouter.

http://forum.mikrotik.com/viewtopic.php?f=15&t=35800
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Sat Feb 18, 2012 4:21 pm

Stability experience with nik's OpenWRT Metarouter MIPS build on RB450G is very impressive.

And it is true that my office need more applications/packages that nik didn't provide on his build.

So i start to build myself from r30550, we need to add
KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)

on kernel Makefile to reduce noise and avoid build to failling.
or edit .config to use gcc 4.5 instead of default 4.6

Instability still occur, it's vary from RB450G reboot itself whenever in other RB450G there is no auto reboot but networking always up and down(temporary fix with disable-enable bridge).

Until i build openwrt-metarouter with r30624, automagically no more reboot itself or up and down openwrt networking.

Another reason for past instability may about host RouterOS kernel version and guest OpenWRT kernel version seem didn't fit again.
Or about elco type, which other say that need to replace with 1000uF, there is no need to do that. I check all my RB450G using vary elco from 560uF, 680uF and 1000uF, before using r30624 all have instability issue even i change switching power adaptor to 9V-0.6A, 12V-0.5A, 12V-1A and 18V-0.8A instability still occur.

Using r30624, all elco varian and all type switching power adaptor do the same result, stable RB450G and stable OpenWRT networking.

Still investigating the diff from r30550 and r30624.

Now it's time to explore this feature with our RB1000 and RB1100 (OpenWRT Metarouter PPC).

Have a nice good expectation for all.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sun Feb 19, 2012 9:56 am

Thanks for investigation. Well, im going to rebuild new image and packages tree from actual trunk without any modification of makefile or .config.

After that, can you test my image on RB450G? I have only some 433UAH.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Feb 20, 2012 10:42 am

even i change switching power adaptor to 9V-0.6A, 12V-0.5A
these 2 will be to weak for RB450G with all cables plugged and with fully loaded CPU at 680MHz. So, instability using these could happen just due to power failure. 12V - 1A should be fine as far as power requirements go.
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Fri Feb 24, 2012 5:17 pm

Thanks for investigation. Well, im going to rebuild new image and packages tree from actual trunk without any modification of makefile or .config.

After that, can you test my image on RB450G? I have only some 433UAH.
I see your trunk build dated on 23 February 2012, are they new builds ?
still using r29684 and r29884 ?
looking your .config from the beginning you use gcc linaro 4.5, that's why your build have no any complaints when compiling.

btw, i'll try your new build.
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Fri Feb 24, 2012 5:35 pm

even i change switching power adaptor to 9V-0.6A, 12V-0.5A
these 2 will be to weak for RB450G with all cables plugged and with fully loaded CPU at 680MHz. So, instability using these could happen just due to power failure. 12V - 1A should be fine as far as power requirements go.
I use this 12V-0.5A too on RB493AH with all cables plugged to pcc adsl and CPU loaded at 680MHz everything running smooth for at least 2 weeks until now.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Feb 25, 2012 2:51 pm

Thanks for investigation. Well, im going to rebuild new image and packages tree from actual trunk without any modification of makefile or .config.

After that, can you test my image on RB450G? I have only some 433UAH.
I see your trunk build dated on 23 February 2012, are they new builds ?
still using r29684 and r29884 ?
looking your .config from the beginning you use gcc linaro 4.5, that's why your build have no any complaints when compiling.

btw, i'll try your new build.
Im in trouble now to compile newer build (higher then r29884) . All the time some errors, despite of manually editing config file from newer build and configure linaro back to 4.5.

Well, now, im trying to compile really basic build without any modification and feeds, just really basic image only with MK patch 1.2.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Feb 25, 2012 4:28 pm

I just build new basic image (without any advanced modification in "make menuconfig", just only with MK patch 1.2).

I had to modify Makefile of kernel as "ferywu" wrote, just added -Wno-unused-but-set-variable in KBUILD_CFLAGS and leave linaro 4.6.

MIPS:
http://openwrt.wk.cz/trunk/mr-mips/open ... sic.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/trunk/mr-mips/conf ... 0717-basic

PPC:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... sic.tar.gz
CONFIG PPC
http://openwrt.wk.cz/trunk/mr-ppc/confi ... 0717-basic
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Sun Feb 26, 2012 11:48 am

Until i build openwrt-metarouter with r30624, automagically no more reboot itself or up and down openwrt networking.
Sadly it's only standing for 5 days before our RB450G reboot itself.

Now i manage to build with v1.1 patch.
Compile succeed with OWRT r18200 which still have support for kernel 2.6.27.
Wait for several days, or a couple weeks maybe 1 months or more to know it's going stable.

Patch v1.2 on PPC always produce MT kernel panic with OWRT backfire or any trunk revision, right after login prompt show up. ( still find another solution too)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Feb 27, 2012 4:23 pm

even i change switching power adaptor to 9V-0.6A, 12V-0.5A
these 2 will be to weak for RB450G with all cables plugged and with fully loaded CPU at 680MHz.
I use this 12V-0.5A too on RB493AH with all cables plugged to pcc adsl and CPU loaded at 680MHz everything running smooth for at least 2 weeks until now.
linked gigabit ports uses around 0.7W when plugged. 100Mbps ports compared to that does not use any power at all. So you see in the quote that i specifically state that for RB450G use of 0.5A@12V is too weak. Actually it could work but it would be maxing out the PSU and that could cause some problems if PSU is not new.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Mon Feb 27, 2012 11:11 pm

New build 30733 - image, packages tree, config
Modifications:
- manually set UCLIBC_VERSION to older 0.9.32 - because i was unable to build Asterisk package with newer 0.9.33 - https://issues.asterisk.org/jira/browse/ASTERISK-2531
- modification of KBUILD_CFLAGS -Wno-unused-but-set-variable
- Mikrotik MetaRouter Patch 1.2
- package vsftp - needed to add LIBS = -lcrypt -lnsl -lcap

MIPS:
http://openwrt.wk.cz/trunk/mr-mips/open ... 733.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/trunk/mr-mips/config-mips-30733
PACKAGES:
http://openwrt.wk.cz/trunk/mr-mips/packages/

PPC:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... 733.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/trunk/mr-ppc/config-ppc-30733
PACKAGES:
http://openwrt.wk.cz/trunk/mr-ppc/packages/
 
djmuk
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Mon Jan 18, 2010 8:48 pm

Re: Metarouter images

Thu Mar 01, 2012 1:24 am

Guys you have saved my sanity!

I have been trying to get a metarouter image compiled for the last 3 days without success.

Build against 8.09 fails to complete, build against backfire or trunk completes but the code crashes with kernel alignment error...

I found this thread but didn't read to the end... :(

When you give the build number (30733) is that the last patch that you pull from the openwrt svn? If so how do you specify it on the SVN command?

I want the faifa package installed - any chance you could add it to the package repo?

Thanks

David
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Mar 01, 2012 7:56 pm

Guys you have saved my sanity!

I have been trying to get a metarouter image compiled for the last 3 days without success.

Build against 8.09 fails to complete, build against backfire or trunk completes but the code crashes with kernel alignment error...

I found this thread but didn't read to the end... :(

When you give the build number (30733) is that the last patch that you pull from the openwrt svn? If so how do you specify it on the SVN command?

I want the faifa package installed - any chance you could add it to the package repo?

Thanks

David
I know how are you feel at this time. :-) Dont waste your time and use my repo. I just build and uploaded new image and packages tree that include faifa package.
 
djmuk
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Mon Jan 18, 2010 8:48 pm

Re: Metarouter images

Thu Mar 01, 2012 9:17 pm

Thanks for doing that - I grabbed the trunk down to that commit and successfully did a build & put faifa in the kernel & it all works on the 750GL I'm using! It is also a much smaller kernel as I didn't put a lot of modules in there.

I think it was the compile fail that threw me off using trunk - isn't that an openwrt Trunk issue as ISTR it was a kernel file that threw the error? Also is there a 'clean' place to put the KBUILD_CFLAGS parameter, I put it in the kernel makefile in the build_dir directory but is it possible to put it in the target folder so it is part of the build process and not a hack of the autogenerated file...?

Regards

David
 
ALIEN360
just joined
Posts: 4
Joined: Thu Dec 08, 2011 2:39 pm
Location: Sofia, Bulgaria

Re: Metarouter images

Tue Mar 13, 2012 12:41 pm

@ liquidcz,
You don't have permission to access /trunk/mr-mips/openwrt-mr-mips-rootfs-30733.tar.gz on this server.
can you please upload it somewhere other
thx in advance
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Mar 15, 2012 12:03 am

@ liquidcz,
You don't have permission to access /trunk/mr-mips/openwrt-mr-mips-rootfs-30733.tar.gz on this server.
can you please upload it somewhere other
thx in advance
Sorry fo that, i just moved my server to another ISP.
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Metarouter images

Sat Mar 17, 2012 5:57 am

@ liquidcz,
You don't have permission to access /trunk/mr-mips/openwrt-mr-mips-rootfs-30733.tar.gz on this server.
can you please upload it somewhere other
thx in advance
Sorry fo that, i just moved my server to another ISP.

when is ready??

I need repo
 
Attila
newbie
Posts: 33
Joined: Sun Mar 18, 2012 1:57 pm

Re: Metarouter images

Sun Mar 18, 2012 9:32 pm

Dear Liquidcz!
When possible you can compile the package tvheadend 2.12 (https://www.lonelycoder.com/tvheadend/download) by PPC? :?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Mar 21, 2012 8:44 pm

Dear Liquidcz!
When possible you can compile the package tvheadend 2.12 (https://www.lonelycoder.com/tvheadend/download) by PPC? :?
Im sorry, im unable to find tvheadend in feeds from openwrt.
 
Attila
newbie
Posts: 33
Joined: Sun Mar 18, 2012 1:57 pm

Re: Metarouter images

Thu Mar 22, 2012 12:11 pm

Liquidz,

MediaWrt Multimedia support for OpenWrt contain this package:
(http://code.google.com/p/mediawrt/sourc ... tvheadend/)

This is the working version for OpenWrt AR71xx:
(https://docs.google.com/leaf?id=0B8oQFO ... ZjRm&hl=en)

When possible please make a ported version to PPC. :)


Regards

Attila
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Metarouter images

Fri Mar 23, 2012 12:58 am

Liquidz:


Please make a howto how to compile packages for openwrt in metarouter
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Mar 23, 2012 11:52 pm

Liquidz:

Please make a howto how to compile packages for openwrt in metarouter
Im using Ubuntu server 11.04 x86 in Virtualbox as my builder machine of OpenWRT metarouter images. :-) Not directly in OpenWRT.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Mar 28, 2012 12:37 am

New build 31079 - image, packages tree, config
Modifications:
- modification of KBUILD_CFLAGS -Wno-unused-but-set-variable
- Mikrotik MetaRouter Patch 1.2
- Multimedia support "mediawrt" http://code.google.com/p/mediawrt/ - include tvheadend as module

MIPS - Advanced:
http://openwrt.wk.cz/trunk/mr-mips/open ... 079.tar.gz
MIPS - Basic:
http://openwrt.wk.cz/trunk/mr-mips/open ... sic.tar.gz
CONFIG MIPS - Advanced:
http://openwrt.wk.cz/trunk/mr-mips/config-mips-31079
CONFIG MIPS - Basic:
http://openwrt.wk.cz/trunk/mr-mips/conf ... 1079-basic
PACKAGES:
http://openwrt.wk.cz/trunk/mr-mips/packages/

PPC - Advanced:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... 079.tar.gz
PPC - Basic:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... 079.tar.gz
CONFIG PPC - Advanced:
http://openwrt.wk.cz/trunk/mr-ppc/config-ppc-31079
CONFIG PPC - Basic:
http://openwrt.wk.cz/trunk/mr-ppc/confi ... 1079-basic
PACKAGES:
http://openwrt.wk.cz/trunk/mr-ppc/packages/
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun Apr 01, 2012 5:04 pm

liquidcz,

Thanks for your efforts!

Just to let you know, the asterisk packages you built for your OpenWRT build seem to be severely broken somehow. I'm not sure how to track this issue down, but this is what I see:

1. UDP SIP doesn't work at all. If you try to initiate a SIP dialog via UDP to the OpenWRT/Asterisk host, 'sip set debug on' shows absolutely nothing and the client times out trying to talk to Asterisk.

2. TCP SIP seems to at least partially work (if I change my SIP client to use TCP, I see the entire dialog on the Asterisk console with SIP debug enabled). But Asterisk will not initiate a SIP REGISTER dialog for any 'register=>' lines in my sip.conf to defined SIP trunks. 'sip show registry' shows 'Unregistered' status for the defined peer/trunk, and nothing shows up on the Asterisk console with 'sip set debug on' (which proves that Asterisk isn't even trying to send the registration request). And yes, I made sure that my register line specified TCP as the transport (register=>tcp://user:pass@64.x.x.x). (A SIP REGISTER via UDP doesn't work either, but I figured that was probably related to problem #1.)

3. 'sip reload' is broken. When Asterisk is running as a daemon, sending 'sip reload' causes all 'sip show x' commands to return blanks. I started up Asterisk in the foreground ('asterisk -c'), tried 'sip reload', and found that the Asterisk process hangs and makes the CPU of the MikroTik host router go to 100% until I 'kill -9' the process.

I'm thinking something in Asterisk is broken with regard to network sockets. I'm wondering if this is at all related to your earlier comments about having problems getting Asterisk to build against certain versions of uClibc. As it stands right now, chan_sip in this build of Asterisk is unusable.

Thanks,

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Mon Apr 02, 2012 12:05 am

NathanA, thanks fo your report.

Honestly, i dont have anough time to test all of builded packages and all of features :-), but it can be true, that previous Asterisk packages can be somehow "buggy".

Lets try to use the new one from my last build "session" 31079. :-)
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Apr 02, 2012 11:42 am

Lets try to use the new one from my last build "session" 31079. :-)
Actually, I was using the latest...I tried 31079 both basic and advanced, and the asterisk18 ipk I installed was timestamped March 28.

So far I have only tried it on MIPSBE. I will try it on PPC and see if it is any different, and report back.

Thanks again,

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Apr 02, 2012 1:33 pm

So all of my previous tests have been on a 450G. I pulled out an 1100AH to try your PPC build with, and Asterisk is even more broken:
root@OpenWrt:/# asterisk -cvvvvvvvvvddddddddd
Asterisk 1.8.10.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Parsing /etc/asterisk/asterisk.conf
  == Found
Seeding global EID '02:b2:d9:a2:c7:af' from 'eth0' using 'siocgifhwaddr'
Illegal instruction
...and it just stops there.

"Illegal instruction" would seem to indicate (to me) that the compiler is trying to build or optimize for a slightly different target CPU than what is running in the 1100AH...it sounds like it is trying to execute an instruction that this CPU does not support.

Again, this is build 31079 (advanced).

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Mon Apr 02, 2012 7:39 pm

NathanA, thanks for testing, im going to build it all again, from clean svn directory, from scratch.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Tue Apr 03, 2012 6:28 pm

NathanA, i just uploading new release, 31182. Can you repeat your test?
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 04, 2012 5:00 am

NathanA, i just uploading new release, 31182. Can you repeat your test?
Again, thanks for your time and efforts. Unfortunately, 31182 is behaving the same way as 31079 was: mipsbe asterisk doesn't crash but has problems with UDP traffic and makes the CPU go to 100% when you try to have it register with a remote SIP proxy, and ppc asterisk immediately crashes with "Illegal instruction" upon launch before it gets very far.

I have since tried one of the old builds from nik247 (his latest, 18199), and it works just fine. It comes with Asterisk 1.4 instead of 1.8, though, and I was thinking it would be nice to have a more recent LTS release. :) Maybe one of these days I'll give building OWRT a shot myself.

-- Nathan

EDIT: Oh yeah, and nik247 only ever built for mipsbe, not ppc. So not aware of any working ppc asterisk binaries, past or present.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Apr 04, 2012 12:03 pm

NathanA, i just tested Asterisk (installed all possible modules from my repository) on RB433UAH mips platform, my last build, and make internal call without any problems.

I did just basic configuration like it is describe here: http://jeremy-mcnamara.com/asterisk/how ... -asterisk/.

Then install Windows 7 PBX client 3CX http://www.3cx.com/VOIP/voip-phone.html and connect to my openwrt metarouter from two different virtual machine (win7 + 3cx pbx phone client) and successfully make a phone call.

So, lets try to install all Asterisk modules and make basic configuration. Well, im not an Asterisk expert, but it works for me.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 04, 2012 12:35 pm

NathanA, i just tested Asterisk (installed all possible modules from my repository) on RB433UAH mips platform, my last build, and make internal call without any problems.
Interesting.

I am no stranger to Asterisk. I use 1.8.x in my day-to-day. On nik247's old build, the same configuration that I applied to your build works fine.

Here is what I did:

In asterisk.conf, I set 'verbose = 9' and 'debug = 9' for maximum console output detail.

In sip.conf, I added the following peer, which points at my VoIP provider (which is actually my employer) (I've removed specifics, such as username/password/hostname):
[myusername]
type=friend
sendrpid=yes
secret=mypassword
host=provider.hostname.com
fromuser=myusername
defaultuser=myusername
Our SIP proxy requires registration via SIP REGISTER, so I added this to the [general] section:
register => myusername:mypassword@provider.hostname.com/myusername
Finally, I uncommented 'sipdebug = yes' in the general section so that any SIP dialogs would get printed to the Asterisk console. This means that ANY SIP activity should be logged when it occurs. If nothing is getting printed out, that means no communication is even being attempted.

I did not add a peer to sip.conf for an extension because I intended for an IVR (the built-in demo one in the default extensions.conf) to answer any incoming calls; the default context specified in the general section was the 'default' one which includes the 'demo' context.

When I start up your Asterisk build with this configuration, the CPU goes to 100% until I kill Asterisk. No SIP activity is logged to the console. Asterisk should be sending the SIP registration to the proxy server listed on the "register" line, but it is not trying...it's stuck doing something that is pegging the CPU. I try to force the issue by restarting the SIP module with either 'sip reload' or 'module reload chan_sip.so' (both should have the same effect), but either command merely causes the console to completely hang. At this point, I have no option but to 'kill -9' the Asterisk process (SIGKILL is the only signal that will kill it; a normal 'kill' will not have any effect).

When I repeat this exact configuration with Asterisk 1.4 from nik247's build of svn18199, the configuration works perfectly. I launch Asterisk, it sends the registration request to my provider's SIP proxy, and the entire registration dialog is printed in full to Asterisk's console. The CPU never pegs out. I can then make calls to the Asterisk box's number, it will answer, and start to play the demo recording.

If I comment out the "register =>" line from sip.conf, the CPU does NOT peg to 100%. But if I don't register with my provider, I cannot get any incoming calls.

What I'm going to try next (because I can't remember if I have tried it or not) is to place a direct IP-to-IP call from a SIP client to the RB433AH, while leaving the 'register' line commented out. I have tried IP-to-IP in the past and it didn't work, but I now wonder if the problem with the 'register' line pegging my CPU was also preventing other SIP dialogs from taking place. In any case, 'register' is broken somehow in these builds.

The PowerPC binary still simply fails to launch at all.

I'll let you know what happens with my further tests.

Thanks,

-- Nathan

EDIT: Well, what do you know: the problem with Asterisk not seeing incoming UDP traffic *is* because of the 'register' line pegging the CPU to 100%. I commented out the 'register' line and could make a call to Asterisk from a SIP phone. If I enable SIP-over-TCP even with 'register' uncommented (via 'transport=udp,tcp' and 'tcpbindaddr=0.0.0.0'), Asterisk can get inbound TCP messages just fine, even when the CPU is pegged.

So the problem with the mipsbe build of Asterisk is that 'register' pegs the CPU to 100%, and is somehow causing the Asterisk SIP-over-UDP code to deadlock, such that it can't listen for or acknowledge inbound SIP messages via UDP.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Apr 05, 2012 9:43 am

I thing, this could be communication out of this thread. ;-) So, if you want, cantact me by email liquid at liquid.cz .

Now, i have no idea what can cause this troubles. (i just upload new version, image, packages, mips and ppc build by newer linux (gcc 4.6), maybe i could try to build by older linero 4.5, or older UCLIBC 0.9.32).
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Thu Apr 05, 2012 1:45 pm

I thing, this could be communication out of this thread. ;-) So, if you want, cantact me by email
Sounds good; I'll drop you a line soon when I've got some free time. :)
(i just upload new version, image, packages, mips and ppc build by newer linux (gcc 4.6),
I just tried both mipsbe and ppc out again from your newest builds, and same issues still exist. I am skeptical that the Asterisk PPC binaries got rebuilt since the timestamps on Asterisk IPKs are a few hours older than others in that directory...also, the Packages.gz file appears to not contain everything anymore. 'opkg install asterisk18' can't find that package, so I have to wget it and all of its dependencies and then install them manually.
maybe i could try to build by older linero 4.5, or older UCLIBC 0.9.32).
I suspect uClibc is actually behind the problem with mipsbe Asterisk. I have no idea what is causing the issue with the PPC build.

Anyway, we can take this off-line. I'll contact you shortly. Thanks for everything!

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 11, 2012 10:27 am

I didn't end up contacting liquidcz off-list because I got side-tracked into making my own OpenWRT builds. :-) And making a build of my own is exactly what I have done. In the hope that it will be useful/helpful for someone else, I'm sharing it with you all here.

My main goal was not to create another generic build of OpenWRT and to make all possible packages for it. Instead, my mission was to come up with a solid build of Asterisk to run inside of MetaROUTER. I didn't really care whether it was with OpenWRT or something else, but OpenWRT just happened to be the best way to accomplish this goal.

Whether it is because of newer versions of the kernel, uClibc, gcc, or even Asterisk itself, the current OpenWRT trunk snapshots seem to have some issues with Asterisk stability and stability in general within MetaROUTER. My past experience with nik247's old Kamikaze-era builds, though, demonstrated to me that there was a point in time when it was all working properly. So I decided to start from a known-good foundation first, with older OpenWRT snapshots. Once I'm at a point where I have familiarized myself with the OWRT buildroot process and have Kamikaze working, I can try my hand at getting more recent code to work.

nik247's old builds did work for me, but there were a couple of shortcomings:

1) He made his builds before MikroTik released their latest patch set, which is when PowerPC RouterBOARDs were finally supported. Consequently, his old builds only run on mipsbe.

2) There was always a laundry-list of tweaks I had to make after installing his build, not to mention the fact that Asterisk had to be installed separately from a package repository. I wanted to be able to install and go.

So what I came up with is a build of OpenWRT for both MIPS and PPC that includes Asterisk within the rootfs itself, fixes a few Asterisk-specific things that OpenWRT doesn't get right during the build process by default (hotplug2 behaving nicely with DAHDI device files, permanent storage of voicemail), and assumes some sane system defaults (gets IP via DHCP). The goal was a lean and mean, plug-and-play MetaROUTER image tuned specifically for running Asterisk.

So here are the details:

- It is based off of the last official stable release of Kamikaze (8.09.2, r18961).
- It uses MikroTik's OpenWRT patch set v1.2, with PPC support.
- It builds and runs on both mipsbe and ppc!
- It uses the official set of packages and package versions from Kamikaze 8.09.2; as a result, it runs Asterisk 1.4.
- Asterisk is built into the rootfs and does not need to be installed separately.
- It includes asterisk14, asterisk14-app-meetme, asterisk14-res-agi, asterisk14-sounds, and asterisk14-voicemail.

In order to make this possible, I had to make a few modifications to the stable Kamikaze buildroot tree; 2.6.31.10, which is the Linux kernel version that MikroTik's v1.2 patch was made against, is not supported by the official Kamikaze stable branch, so I had to merge in the 2.6.31 patchfiles that existed in OpenWRT trunk from around that time. Also, there was a bug in the build scripts that prevented Asterisk from being able to be included in the rootfs that I had to work around. iptables had to be upgraded from the stock version that was included with Kamikaze 8.09.2 because too much had changed between kernel 2.6.26 and 2.6.31. Finally, I ended up leaving out dnsmasq, mtd, and opkg from my images; dnsmasq's default config is broken when you are only using one ethernet interface and aren't using OpenWRT as a router, mtd isn't applicable to a MetaROUTER environment, and I have no interest in running a package repository. Other than that, it's pretty much a stock build of Kamikaze.

I have images to download for anyone that wants them:

http://www.nconx.com/~nathan/ast-owrt-m ... s_mips.tgz (MIPS)
http://www.nconx.com/~nathan/ast-owrt-m ... fs_ppc.tgz (PowerPC)

Here are some notes on its use:

- As mentioned earlier, it will try to get an IP via DHCP on eth0.
- The 'root' account already has a default password set of 'ast-owrt', and you can SSH in immediately.
- There is a second account, 'admin', that you can login as via SSH (same default password) which will dump you directly at an Asterisk console shell instead of an ash/busybox shell.
- Both account passwords are set separately, and it IS highly recommended that you change them ASAP! Just SSH as root and run 'passwd root' and 'passwd admin'.
- Asterisk is set to run automatically at boot as a daemon.
- Because /var is a symlink to /tmp on OpenWRT, Asterisk's spool directory has been relocated to /usr/local/var/spool/asterisk. All persistent session data is stored here (voicemail audio files, astdb, etc.) so that it is not lost when the system is rebooted.
- Asterisk configuration files are located in /etc/asterisk

If you want to build it yourself, either just for the experience or in order to re-mix your own version with your own tweaks, here is what you do:

1. Ensure that the host that you want to set up the OpenWRT buildroot on has all necessary requirements and dependencies met.
2. Download all of the essentials (for sake of command examples, I'll assume you are storing these in your home directory):

http://downloads.openwrt.org/kamikaze/8 ... ce.tar.bz2 (official Kamikaze 8.09.2 stable source tarball)
http://www.mikrotik.com/download/metaro ... -1.2.patch (MikroTik MetaROUTER Linux/OpwnWRT patch v1.2)
http://www.nconx.com/~nathan/ast-owrt-m ... r.patch.gz (My patch set against Kamikaze 8.09.2)
http://www.nconx.com/~nathan/ast-owrt-m ... ips.config (My OpenWRT buildroot configuration file for MIPS)
http://www.nconx.com/~nathan/ast-owrt-m ... ppc.config (My OpenWRT buildroot configuration file for PowerPC)

3. Unpack the Kamkiaze 8.09.2 source tree somewhere:
$ mkdir ~/openwrt; cd ~/openwrt
$ tar xvjf ~/kamikaze_8.09.2_source.tar.bz2
4. Apply the MikroTik v1.2 patchset:
$ cd ~/openwrt/8.09.2
$ cat ~/openwrt-metarouter-1.2.patch | patch -p0
5. Take either the MIPS or PPC config file, and place a copy as '.config' in the root of the OpenWRT buildroot tree:
$ cp ~/ast-owrt-mr_mips.config ~/openwrt/8.09.2/.config
6. The official Kamikaze tarball only comes with a small subset of the build files for various packages, and Asterisk is not included in the default set. So grab the full set:
$ make package/symlinks
7. Finally, apply my patchset:
$ zcat ~/kamikaze_ast-owrt-mr.patch.gz | patch -p1
8. (OPTIONAL) If you want to make any changes to the default configuration options, then run the OpenWRT buildroot configurator:
$ make menuconfig
9. Now run 'make' to build everything; the final file will be located at 8.09.2/bin/openwrt-mr-mips-rootfs.tgz or 8.09.2/bin/openwrt-mr-ppc-rootfs.tgz depending on which version you built:
$ make
That should do it. Hopefully others will find this useful. I hope to continue to find time to make changes and enhancements; ultimately, I want to get either FreePBX or some other web-based Asterisk GUI running on MetaROUTER along with Asterisk.

-- Nathan
 
peson
Trainer
Trainer
Posts: 202
Joined: Tue Jul 20, 2004 10:33 am
Location: Sweden

Re: Metarouter images

Wed Apr 11, 2012 11:54 am

That should do it. Hopefully others will find this useful. I hope to continue to find time to make changes and enhancements; ultimately, I want to get either FreePBX or some other web-based Asterisk GUI running on MetaROUTER along with Asterisk.

-- Nathan
Thanks for sharing the nice work Nathan :-D
One question, maybe you've already written it, which disto and packages are you using?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Apr 11, 2012 12:40 pm

NathanA, wouw, thx for howto. Im going to try to build full packages repo fo kamikaze. :-)
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 11, 2012 7:59 pm

One question, maybe you've already written it, which disto and packages are you using?
I built everything under ArchLinux 2010.05 (32-bit x86). I actually never bothered upgrading it past the original base install versions, so I'm sure there are many outdated things in it. It's running Linux 2.6.33, gcc 4.5.0, glibc 2.11.1, binutils 2.20.1.20100318. On the plus side, everything it comes with is from around the era of this Kamikaze version...

Would love to hear reports from others who decide to build Kamikaze under a different/newer distro, or who have success with using a different uClibc or gcc version within their buildroot for cross-compiling (I left selection at their defaults for Kamikaze 8.09: gcc 4.1.2, uClibc 0.9.29).

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Apr 12, 2012 3:45 pm

I just publish my Kamikaze build. Many thanks to NathanA, your patch was very helpful. ;-)

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP

MIPS:
http://openwrt.wk.cz/kamikaze/openwrt-m ... 961.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/kamikaze/config-ka ... mips-18961
PACKAGES:
http://openwrt.wk.cz/kamikaze/packages/mr-mips/

PPC:
http://openwrt.wk.cz/kamikaze/openwrt-m ... 961.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/kamikaze/config-kamikaze-ppc-18961
PACKAGES:
http://openwrt.wk.cz/kamikaze/packages/mr-ppc/

Im using VirtualBox machine Ubuntu Server 11.10 x86 (Linux 3.0.0.17, gcc 4.6.1, glibc 2.13, binutils 2.21.53) for my openwrt build.
Last edited by liquidcz on Fri Apr 13, 2012 11:02 am, edited 1 time in total.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri Apr 13, 2012 9:17 am

liquidcz,

I tried out both your MIPS and PPC builds of Kamikaze, and I'm happy to report that at least everything Asterisk-related that I tested worked on both platforms. :)

Hopefully one of these days I will have enough free time to poke at Backfire or even the most recent OpenWRT trunk, and see if we can figure out why MIPS Asterisk has the networking/CPU issue and why PPC Asterisk won't even start. But for now I'm content with a recent version of Asterisk 1.4 LTS running inside of MetaROUTER.

One suggestion that I might make about your build: edit the opkg.conf file to point to your repository out-of-the-box. By default, it points to downloads.openwrt.org, but in your Kamikaze build, it actually points to a nonexistent directory on MY server. :) That's because I had edited opkg.conf to point there, changed my mind about running a repository of my own, and then forgot that I left that change to opkg.conf in my patchset. In any case, if you provide a modified opkg.conf in your builds, then people who use them won't have to manually modify that file in order to download packages.

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Apr 13, 2012 11:55 am

NathanA,

great to hear that. :-)

It wil be gret to prepare Backfire build too.

I see, opkg, i allready made modification and upload new build. Hope it will help others to simplyfy maintenance metarouters.
I had to admit that im really newbie with patching source for linux build, but studying your patch helped me to start understad patch process. :-) thx.
 
Zod
Frequent Visitor
Frequent Visitor
Posts: 91
Joined: Mon Apr 23, 2012 11:02 pm

Re: Metarouter images

Mon Apr 23, 2012 11:07 pm

Is there mipsbe pkg for wifidog

http://dev.wifidog.org/browser/trunk/wi ... s/wifidog/

??

Thx Z
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Apr 26, 2012 3:23 pm

Is there mipsbe pkg for wifidog

http://dev.wifidog.org/browser/trunk/wi ... s/wifidog/

??

Thx Z
Yeah, i just build it for my repos. http://openwrt.wk.cz/trunk/

Enjoy!
 
gmaguire
just joined
Posts: 5
Joined: Sat Jan 30, 2010 2:08 pm

Re: Metarouter images

Thu May 03, 2012 3:09 pm

Hi, I have just started to use the metarouter images with openwrt and I am a bit confused re the package repositories.

Can I use some of the http://downloads.openwrt.org/ repositories or can I only use the ones that have been specifically created for the metarouter images such as http://openwrt.wk.cz/kamikaze/packages/mr-mips/

I am specifically looking to try and get dansguardian and clamav packages to see how they perform in a metarouter.

Thanks,
Ger.
 
spkmon
just joined
Posts: 1
Joined: Fri May 04, 2012 5:54 am

Re: Metarouter images

Fri May 04, 2012 6:40 am

Hi all, first of all I would like to thanks liquidcz and NathanA for their work as it is very useful for me. I am quite new to linux and routeros as well. My only gol was to run Asterisk and have decent router at home.
At the moment I am running Asterisk 1.8 on liqudcz build 29884 http://openwrt.wk.cz/trunk/mr-mips/open ... 884.tar.gz on RouterBoard RB433UAH and it is working with some limitations.
Here are some comments related to Asterisk:
1) I was trying to do ENUM lookup, but this function/application is not included in the package. I am not sure if is not in OpenWrt source or where else might be the problem.
2) I wanted to convert recordings to more suitable format and found
Converting Wav Files
Find all files in monitor directory and convert to mp4 (1/10 size) removing original wav- requires ffmpeg and x264
nice -n 19 find /var/spool/asterisk/monitor/ -iname "*wav" -type f -exec sh -c 'ffmpeg -i {} -y -vn -aq 40 -ac 1 `echo {} | sed "s/.wav/.mp4/g"` && rm {}' \;
(file size approx 6MB per hour)
http://www.voip-info.org/wiki/view/Asterisk+cmd+Monitor
for any sound processing is necessary to have installed sox http://www.voip-info.org/wiki/view/sox
3) Two days ago I have witnessed brute force attack on my Asterisk, and it would be good to see something like fail2ban http://www.voip-info.org/wiki/view/Fail ... d+Asterisk added to repo
4) Also it would be good to see GUI like FreePBX

As I said at the beginning I am newbie here and I am not sure what exactly is involved in making thees repos, just it would be handy to have it.

Once again many thanks for your effort
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri May 04, 2012 3:01 pm

Can I use some of the http://downloads.openwrt.org/ repositories or can I only use the ones that have been specifically created for the metarouter images
You have to use packages that are specifically built for the platform that you are running OpenWRT on. The MetaROUTER (both mipsbe and ppc) platform(s) are not officially supported by OpenWRT out-of-the-box, so none of the repositories that openwrt.org hosts have packages that will work for you; thus, you will need to use a repository such as liquidcz's. In fact, for the best results, it is highly recommended that you use packages that were built at the same time as the system image you're using; that way you know that the same compiler was used to build the packages and the library dependencies are all satisfied, etc. (So, although there's a chance it may work, it'd be best not to run, say, MikroTik's image that they linked to on the Wiki alongside liquidcz's packages...use liquidcz's packages with his system image. Also, don't use liquidcz's kamikaze image with his trunk packages...keep everything in the same family. :) So kamikaze image with kamikaze packages, trunk image with trunk packages, etc.)

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri May 04, 2012 3:21 pm

1) I was trying to do ENUM lookup, but this function/application is not included in the package. I am not sure if is not in OpenWrt source or where else might be the problem.
I'd have to take a look at the build scripts/Makefile for Asterisk 1.8 on a recent OpenWRT; I haven't had time to poke at this lately.
2) I wanted to convert recordings to more suitable format and found [...] for any sound processing is necessary to have installed sox
Are you trying to transcode recordings being made by Asterisk, or the stock sound recordings that come with Asterisk? If the latter, I'd highly advise you to just batch-process them on a real PC and then transfer them over to your OpenWRT MetaROUTER afterward!
3) Two days ago I have witnessed brute force attack on my Asterisk, and it would be good to see something like fail2ban
Correct me if I'm wrong, but fail2ban appears to just be a Python script. I note that liquidcz's repository has a python interpreter. Have you tried installing the Python package on OpenWRT and then following the install instructions in fail2ban's README?

Most people argue that because fail2ban is dependent on Python, and Python is a bit...large to run on most embedded systems, someone should come up with a lightweight fail2ban alternative or rewrite. Based on its current architecture, it seems highly unlikely that fail2ban will ever become an OpenWRT package.
4) Also it would be good to see GUI like FreePBX
I am actively working on this. :) Not FreePBX specifically...that depends on PHP. Someone else tried to port FreePBX to an embedded system a few years back, and got pretty far (http://www.rowetel.com/blog/?p=55), but eventually gave up and the project never got past 'alpha' status: it was just too unwieldy to port onto a smaller device and I don't think most of his changes ever got committed to FreePBX trunk, so a lot of that work would have to be re-researched and re-done on a more modern version of FreePBX. It's definitely doable, I'm sure, but I'm *not* sure that there is anybody who feels like taking the time to do it...I sure don't!

My strategy is to get Asterisk-GUI (https://wiki.asterisk.org/wiki/display/AST/Asterisk+GUI) bundled into a package. It's a bit rough around the edges, true, but it does the job and is perfect for an embedded system like OpenWRT...it's implemented as a bunch of static HTML pages (no CGI!), is AJAX-based, and simply makes calls to the Asterisk AMI interface over HTTP. Very, very lightweight.

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun May 06, 2012 7:22 am

Now, i have no idea what can cause this troubles. (i just upload new version, image, packages, mips and ppc build by newer linux (gcc 4.6), maybe i could try to build by older linero 4.5, or older UCLIBC 0.9.32).
Hey again liquidcz,

I just found an open ticket with OpenWRT about this very problem that I was running into with Asterisk on your trunk builds (where Asterisk would go to 100% CPU when I tried to SIP REGISTER with a VoIP provider):

https://dev.openwrt.org/ticket/10974

From reading through it, it appears that the solution is in fact to downgrade to uClibc 0.9.32, and then remove the '500-nres.patch' file from packages/net/asterisk-1.8.x/patches/ before building.

Looks like they still don't know why this problem happens with uClibc 0.9.33. Apparently it had something to do with the fact that uClibc 0.9.33 dropped some previously supported function calls/APIs that have to do with DNS name resolution. They tried to work around this by forcing Asterisk to use a different function call, and when they do this, it causes the 100% CPU problem.

So downgrading uClibc would fix the mipsbe build of Asterisk on trunk. I haven't gotten around to poking at the ppc build's crash issue yet.

Hope this helps,

-- Nathan

EDIT: After studying this a bit more, uClibc 0.9.33 actually introduced res_n* functions for the first time ever to the library, and older versions did not have them. Asterisk autoconf just dealt with it before. Not only do these functions appear to be buggy, but something else must have also changed underneath the hood, because if you patch autoconf to force Asterisk to not be built to use res_ninit (which is how it was always built before 0.9.33), you get the 100% CPU on SIP REGISTER problem. In any case, according to reports, going back to 0.9.32 works.
 
Zod
Frequent Visitor
Frequent Visitor
Posts: 91
Joined: Mon Apr 23, 2012 11:02 pm

Re: Metarouter images

Tue May 08, 2012 12:36 am

Is there mipsbe pkg for wifidog

http://dev.wifidog.org/browser/trunk/wi ... s/wifidog/

??

Thx Z
Yeah, i just build it for my repos. http://openwrt.wk.cz/trunk/

Enjoy!
Excellent - thank you!
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue May 08, 2012 12:45 am

Hey everybody,

I'm happy to announce that I have a preliminary version of an OpenWRT build that includes Asterisk-GUI! Most things work, but I still have a few bugs to iron out. I'd definitely welcome anybody else's testing and feedback, though!

This is kind of a strange mish-mash of software...Asterisk-GUI comes with a front-end to the automatic phone provisioning/templating feature of Asterisk (new as of 1.6.0.x) which I wanted to include and be able to use, but my only working OpenWRT build with Asterisk in it so far is Kamikaze 8.09.2 running Asterisk 1.4. I spent a little bit of time trying to build Backfire 10.03.1, but Backfire's toolchain builder doesn't like something in my build environment that I have not yet been able to identify. Add to that the fact that there is still an unidentified problem with later versions of OpenWRT buildroot that cause Asterisk on PPC MetaROUTER to crash out during startup, which led me to the inescapable conclusion that for right now, the easiest thing to do would actually be to backport Asterisk 1.8.x to Kamikaze. Which is exactly what I did. :P (Not actually too difficult, I discovered in the end.)

So this build includes Kamikaze 8.09.2, Linux 2.6.31, uClibc 0.9.29, Asterisk 1.8.11.1, Asterisk-GUI 2.1.0-rc1, and MikroTik's MR patchset 1.2.

Here are a few things to note about it:

1. I'm afraid it is rather US-centric right now...by default, the OpenWRT Asterisk 'sounds' package only includes GSM-encoded versions of the audio prompts, which I deem to be of insufficient quality. So I removed those and decided to ONLY include uLaw-encoded sound files, since that is what is considered landline-grade around these parts. Sorry. :( You can modify the asterisk-1.8.x Makefile to select whatever audio prompts you want when you build your own.

2. If you do change the audio prompt selection when building your own image, watch out for the voicemail audio codec, too...near the end of '999-conf_file_changes.diff' you can see that voicemail.conf gets patched to only record/save messages in uLaw format. You can either change that before you make your build (just edit that file before running 'make'), or within MR after you import the image by editing /etc/asterisk/voicemail.conf

3. I decided to go ahead and include the default Music-On-Hold files from Asterisk as well, which OpenWRT doesn't do traditionally.

4. Asterisk 1.8 comes with some defaults configured in res_phoneprov (the phone provisioning feature) for Polycom SoundPoint IP phones, which we use. The included templates were very out-of-date (pre UC-3.3.0) and didn't work at all with the new simplified provisioning of more recent Polycom firmware releases. So I replaced those templates with ones that should work with Polycom UC 3.3.0 and above (into 4.x). The firmware files and the 000000000000.cfg from the firmware release you are using need to be uploaded to /usr/lib/asterisk/phoneprov/polycom

5. I re-thought a lot of how I constructed my previous patch-set, and have done things a little differently this time. I will probably fix a few things and re-release a new version of the original patch at some point. Instead of storing volatile data (voicemail, astdb, etc.) in /usr/local/var/lib/asterisk, I am now storing that data in /home/asterisk. At some point, I may even add an 'asterisk' user to the system and change it so that Asterisk doesn't run as 'root'.

6. The default username/password for Asterisk-GUI is also 'admin'/'ast-owrt'. Note that this is completely independent of the system usernames/passwords, so when you change the password in the GUI, this has no effect on passwords used for SSHing into OpenWRT.

7. Here are a few known issues with the current version as-is:

- On first boot, Asterisk-GUI asks you to restart Asterisk manually rather than restarting it itself.
- I need to include an NTP client in the build...CDR records show the wrong date/timestamps.
- Any section of the GUI that needs to get a list of files from the OWRT FS (Music-On-Hold, Voice Menus, File Editor, Backup) doesn't work.
- Maybe I'm blind/missing something, but even if VM is enabled for a user, if the user doesn't answer the call, it doesn't go to VM.
- If you put the Asterisk server behind a NAT, even with correct port forwards, phone provisioning won't work.

Much of it *is* working, though: I have successfully registered to VoIP providers, created users, auto-provisioned Polycom phones, created inbound and outbound calling rules and dialplans, made both inbound and outbound calls, and looked at CDR records. I haven't tested call queues, intercom, or conferencing yet.

Right now, I don't have images for all of you to download...they weigh in at over 20MB with all of the audio files. :( So you'll have to roll-your-own. To make an image, you will need to follow the instructions that I outlined in my earlier post for my original images (so this new patch *requires* that you apply my original patch first...it doesn't include all of the necessary changes from that patch), but before you run 'make', you will need to apply a second patch:

http://www.nconx.com/~nathan/ast-owrt-m ... 1.patch.gz

I also have new '.config' files, one for mipsbe and one for ppc:

http://www.nconx.com/~nathan/ast-owrt-m ... ips.config (MIPS)
http://www.nconx.com/~nathan/ast-owrt-m ... ppc.config (PPC)

Please note a couple of things:

- This ADDS asterisk-1.8.x to the list of asterisk versions in Kamikaze. Don't build more than one version of Asterisk into your image: pick one and stick with it. The results will be unpredictable otherwise.

- Asterisk-GUI probably could be made to work with Asterisk 1.4 or 1.6.1.x if you decide for some reason you don't want to use 1.8, but my patches don't support this, and this would be left as an exercise for the reader. Asterisk-GUI is configured to be dependent on asterisk-1.8.x, so selecting it will also select 1.8 to be built.

- Many OpenWRT platforms (RouterBOARDs included) don't include any 'zaptel' hardware, but Zaptel has been traditionally included because even in 1.8, the "MeetMe" conferencing app requires it to be present so that it can use it as a timing source. However, Asterisk 1.8 won't work with the old 'zaptel' driver and instead requires a more recent version of the renamed 'dahdi' driver. My patch adds DAHDI to Kamikaze, but also leaves the 'zaptel' package in menuconfig. Just like with Asterisk versions, don't build both zaptel and dahdi into your image. Pick one. (I recommend DAHDI even if you go with Asterisk 1.4, because it supports both.)

Have fun, and let me know if there are any questions, or reports of other broken features.

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun May 13, 2012 5:20 am

I have a new version of my Asterisk 1.8 + Asterisk-GUI patch up for grabs:

http://www.nconx.com/~nathan/ast-owrt-m ... 2.patch.gz

All of the things I said about the last patch apply to this one. This patch fixes all of the known issues I listed last time around (and then some), with one exception...

I haven't been able to fix the last one yet...the reason that phone provisioning doesn't work if this MR is behind a NAT is because Asterisk doesn't substitute in either externip or externhost for the ${SERVER} variable in your phone provisioning templates, so the phones get the config but then try to register to the non-routable IP of the MR guest instead of the IP it is being NATted to. Fixing this is going to require that I delve into the Asterisk source code itself. Fixing res_phoneprov so that it honors externip from sip.conf may possibly be trivial (...or not...), but externhost is going to take a bit more effort. I don't know if/when I will bother to poke at this. In the meantime, if you have the host MikroTik NAT for this MR instead of giving it a routable, you can get around this by constructing a VPN tunnel for your phone(s) to go through, which is probably a better solution anyway.

Please also re-grab the ".config" file for your platform, too, since it now selects 'ntpclient' for inclusion into the image, fixing the CDR timestamp problem.

I have fixed various annoying bugs in the Asterisk-GUI code and made a few (very minor) changes. Most everything I have tested seems to be working, but I would love for others to bang away at it and let me know if I've missed anything obvious. If you don't have the time or resources to make a build of it yourself using my patch files and instructions, I can provide you with an importable image upon request to nathana@fsr.com.

Thanks,

-- Nathan
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Metarouter images

Sun Jun 24, 2012 8:14 am

NathanA:

asterisk is working or not?
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Jun 25, 2012 2:48 am

NathanA: asterisk is working or not?
Not sure I understand your question...all of my posts in this thread have been about making Asterisk work under MetaROUTER, so yes, Asterisk works. I am not sure what led you to think otherwise.

Now, I had trouble using Asterisk under some of liquidcz's OpenWRT builds, but that was because of problems with uClibc (MIPSBE) or compiler problems (PowerPC). I am building the latest 1.8.x Asterisk under OpenWRT "Kamikaze" with an older uClibc and gcc compiler, so my builds do not have the same problems. But my builds are also solely focused on Asterisk functionality; Asterisk is embedded into the main OpenWRT image and I do not run a package repository. So, if you want to run a standard OpenWRT system under MetaROUTER, and you don't want to build it yourself, you are better off using liquidcz's builds. But if your #1 goal is to run Asterisk inside of MetaROUTER, and you don't really care about OpenWRT itself, then you can use my builds.

-- Nathan
 
rtandon
just joined
Posts: 3
Joined: Sat Jan 28, 2012 12:07 am

Re: Metarouter images

Sun Jul 15, 2012 3:51 am

Nathan and liquidcz

Thanks for your work.

Nathan, I had sent you a mail, before i read this thread. Now I understand your point of view - dedicated to ast on mikrotik and Liquid's generic approach.

@Nathan,
Athough I had built a generic image, from your earliest patch but later perhaps I screwed up the source tree by following some instructions at openwrt and using feeds. Most likely, I need to start afresh.

I also followed up your post on unstability ob RB450G, and yet I have to try it on RB450G with stock power supply. Will see if I can find a 12V supply later, if my board reboots too (yes, it had been doing so but then I thought it's my openwrt build that is the culprit)
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun Jul 15, 2012 1:16 pm

Nathan, I had sent you a mail, [...]
...and I have sent you a response. :)

-- Nathan
 
rtandon
just joined
Posts: 3
Joined: Sat Jan 28, 2012 12:07 am

Re: Metarouter images

Sun Jul 15, 2012 1:46 pm

Nathan,

Ok, So as per your clarification it is -

# Mikrotik Patch for kernel 2.6.3
patch -p0 <openwrt-metarouter-1.2.patch

# Nathan's patch to backport kernel 2.6.3 to kamikaze 8.09.2
zcat kamikaze_ast-owrt-mr.patch.gz | patch -p1

# Nathan's next patches (bug fixes)
zcat kamikaze_ast-owrt-mr_1p8GUI_b2.patch.gz | patch -p1
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun Jul 15, 2012 1:54 pm

In essence, yes. Clarifications:

1) It's a backport of 2.6.31, not 2.6.3

2) The first patch set of mine not only backports 2.6.31, but fixes a few things with the build process that allows you to build a working Asterisk 1.4 into the main filesystem image (without requiring you to install it separately from an ipk after installation).

3) The second patch set of mine (the 1p8GUI set) backports Asterisk 1.8 to Kamikaze, introduces a new Asterisk-GUI package, and distributes bug-fixes for Asterisk-GUI. It requires the previous patch, because I didn't include the 2.6.31 backport in this file. There were two versions of this file: b1 and b2. b2 fixes a few problems with b1, and you don't need both; in fact, I removed b1 when I posted b2.

-- Nathan
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Mon Jul 16, 2012 5:38 am

Hello Nathan,

could you please send me the asterisk gui for 1.8 package?

Thank you.

Tedd
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Jul 16, 2012 1:02 pm

Hey Tedd,

As I have explained before, I am not releasing individual packages or hosting a package repository. For now, I have only released the Asterisk-GUI for OpenWRT as a patch set against the OpenWRT buildroot tree for Kamikaze 8.09.2, and links to download this patch set have been provided in past posts of mine; you could probably make a working package from my patches, but at this point they are highly dependent on my Asterisk 1.8 package backport for Kamikaze, so it wouldn't really make much sense for me to release it separately in its current state.

I would also be happy to send you a copy of a fully-built MetaROUTER image that includes Kamikaze, Asterisk 1.8.11.1, and Asterisk-GUI 2.1.0-rc1 with my various bug-fixes applied. Just send an e-mail to nathana@fsr.com, let me know which platform you need a copy for (MIPSBE or PPC), and I will get back to you as soon as I am able.

-- Nathan
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Mon Jul 16, 2012 1:21 pm

Thank you Nathan, I would like to try the MIPSE image.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Jul 16, 2012 2:53 pm

if you mean mipsle - metarouter is not available on these routers, only MIPSBE and PPC
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Tue Jul 17, 2012 12:29 am

Sorry MIPSBE
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Thu Aug 02, 2012 2:58 am

I am trying to run metarouter with an image having asterisk on it. my router is RB450G (firmware 2.41 and router os 5.19)
Unfortunately once the Metarouter image is enabled the RB starts to reboot every 30 seconds.
The memory allocated (32 then tried 64) same problem.

Same image was used on RB493G however with much lesser problems (rebooted every few hours but that was due to RB493G NAND limitations with regards to OWRT)

Could someone share his experience ?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Thu Aug 02, 2012 8:21 am

 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Thu Aug 02, 2012 6:27 pm

I have looked and could not figure out a solution. is the problem the power supply or deleting the voltage.ko ? if deleting the voltage.ko how to do that? procedure?
thank you.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue Aug 07, 2012 3:04 pm

I have looked and could not figure out a solution. is the problem the power supply or deleting the voltage.ko ? if deleting the voltage.ko how to do that? procedure?
thank you.
The power supply is not a sure-fire fix. The only true fix at the moment is to delete voltage.ko. To do this, you have to Netboot a plain-vanilla build of OpenWRT Backfire 10.03 on your 450G, mount the root partition, and then delete the file, which is located somewhere under /lib/modules (can't remember exact location off the top of my head).

I don't know the procedure well enough by heart to type it out in detail...I just know what I'm looking for when I'm front of a computer. :) If you really need step-by-step, I can try to find some time to write it out for everyone (since it seems that MT still has not yet released a software patch).

BTW, I never sent you a copy of my Asterisk MetaROUTER image because you never e-mailed me. :)

-- Nathan
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Mon Aug 20, 2012 6:33 pm

In order to netboot I need the correct file to place into my tftpboot directory.
I searched for the backfire 10.03.xx none of the files is of elf type, could you please let me know which file to choose?
http://downloads.openwrt.org/backfire/10.03/rb532/
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Mon Aug 20, 2012 7:51 pm

I found an image that could netboot my RB450G (http://www.practicaltester.com/store/en ... tramfs.elf) , I am now in the search of voltage.ko .
It would be great if you could provide me with its location.
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: Metarouter images

Mon Aug 20, 2012 9:10 pm

I found an image that could netboot my RB450G (http://www.practicaltester.com/store/en ... tramfs.elf) , I am now in the search of voltage.ko .
It would be great if you could provide me with its location.
You can try to use my patched netinstall with my custom openwrt npk. It should also work on RB450G and other boards (RB4XX, RB7XX). For more details read my post on openwrt forum:
https://forum.openwrt.org/viewtopic.php ... 26#p165526

Kamil
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Mon Aug 20, 2012 10:38 pm

Thank you but that does not help as I need a backdoor to my mikrotik OS in order to delete the voltage.ko . your firmware is to turn the RB into an openwrt.
Unfortunately the image I found cannot detect my NAND hence unable to mount and delete the desired file.
Any help ?
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: Metarouter images

Mon Aug 20, 2012 11:21 pm

 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Tue Aug 21, 2012 12:15 am

Thank you for your prompt help, this is better however I still cannot see the NAND.
if I do cat /proc/mtd I can see the following:
dev: size erasesize name
mtd0: 0000b000 00001000 "routerboot"
mtd1: 00001000 00001000 "hard_config"
mtd2: 00002000 00001000 "bios"
mtd3: 00001000 00001000 "soft_config"
mtd4: 00040000 00020000 "booter"
mtd5: 005c0000 00020000 "kernel"
mtd6: 1fa00000 00020000 "rootfs"

If I do df -h I only see the /tmp and /dev but not the NAND related
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 125.5M 60.0K 125.4M 0% /tmp
tmpfs 512.0K 0 512.0K 0% /dev

I should be able to see something similar in addition to the above
/dev/mtdblock6 506.0M 3.0M 503.0M 1% /mnt
/dev/mtdblock5 5.8M 1.5M 4.3M 26% /mnt2
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: Metarouter images

Tue Aug 21, 2012 11:17 am

You have to mount:
mount /dev/mtd6block /mnt
or
mount /dev/mtd6 /mnt
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Tue Aug 21, 2012 4:16 pm

The problem is that I am unable to see the NAND related devices.
Unless I see those mount is impossible.
 
rmichael
Forum Veteran
Forum Veteran
Posts: 718
Joined: Sun Mar 08, 2009 11:00 pm

Re: Metarouter images

Tue Aug 21, 2012 11:19 pm

@liquidcz

Build 31244 (MIPSE) seems more stable than 31206 (PCC). Could you update PCC trunk with 31244 build?

31206 crashes while using logread command.

thank you
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Wed Aug 22, 2012 8:08 pm

Solution to delete voltage.ko in order to solve constant reboot of RB450G with Metarouter asterisk image

Netboot RB450G using the following image http://wiki.hwmn.org/downloads/routerboardlinux
You will need to add extension elf to the (routerboardlinux) file downloaded from (http://wiki.hwmn.org/downloads/routerboardlinux) so the file should read (routerboardlinux.elf)


Once the RB450G is netbooted (unfortunately df -h or mount will not display the NAND devices) hence you need to execute the following commands:
mount /dev/mtdblock6 /mnt
cd /mnt/lib/modules/2.6.35/misc
rm voltage.ko

Once done you will need to set the RB450G to boot again from NAND.
Now you can import asterisk image with confidence.

Special thanks to Nathan, ayufan and to the writer of the following article http://wiki.hwmn.org/w/Mikrotik_RouterBoard_450G

Should you need instructions how to netboot from CENTOS please let me know.
 
rkiendl
just joined
Posts: 13
Joined: Wed Oct 28, 2009 9:27 pm

Re: Metarouter images

Mon Aug 27, 2012 5:21 pm

@liquidcz

can you please ad rtl_tcp (part of rtl-sdr http://sdr.osmocom.org/trac/wiki/rtl-sdr) to your mr-mips and mr-ppc packages repo?
it would be a great help to the ham radio community.

many thanks in advance, Robert
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Sun Sep 02, 2012 5:28 pm

Nathan

I have the following issues on Metarouter , with asterisk GUI.
1. Should I recycle power to RB450G , my GUI becomes out of reach, on the other hand if I halt the asterisk and then recycle power then no problems.
When power is cycled the GUI stops working , SIP extensions are fine, asterisk -rvvv is connecting, is there a way to bring back gui without flashing the metarouter?
2. If I take a backup of asterisk from GUI, (then download from unit to PC) I am unable to send it back to unit using GUI. I tried all browsers none worked.
Actually FIREFOX pretends to have done it but nothing displays in the list.
3. How can one take backup of the metarouter ?

Thank you for sharing your experience with me.
Tedd
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Mon Sep 03, 2012 4:08 pm

I have a workaround solution for the first 2 problems.

1. Should the GUI fails to start after a power failure on the MIKROTIK, check the following files :
dahdi_guiread.conf
dahdi_scan.conf
http.conf
If the problem is there these files will have 0 byte , you need to restore these files and restart asterisk . 100% working workaround
Can someone suggest a permanent solution ? maybe a script to copy a backup to these files should the size is 0 ?
I do not know how to write such a script.

2. For the backup taken from Asterisk GUI to return back to the unit you will need to manually place the files into : /usr/lib/asterisk/gui_backups/

3. as for how to backup a full metarouter , I still do not have a solution.

Nathan to comment please.
Tedd
Last edited by tedd77 on Tue Sep 04, 2012 3:20 am, edited 1 time in total.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue Sep 04, 2012 1:15 am

tedd77,

1. I have only had this happen to me once. I am not sure what causes it yet since I have not dug very deeply into it. When it happened to me, I had unplugged power to the RouterBoard without shutting it down first. I would recommend that you SSH into the MetaROUTER, 'halt' it, and then shut down RouterOS properly. I suspect this will prevent the problem from occurring.

2. This is probably another Asterisk-GUI bug. I have run into a ton of them over the course of trying to adapt it to run under this MetaROUTER. I have not tested this specific functionality (uploading backup from computer via web browser), so I cannot comment on this particular problem at this time. When I have time to look into it, I'll let you know.

3. I don't know how to back up a whole MetaROUTER or whether it is even possible to do; since MikroTik wrote MetaROUTER, they would have to be the one to answer this question.

-- Nathan
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Tue Sep 04, 2012 1:29 am

Nathan,

1. I have done further testings with a proper solution, I am now very confident with the script change I made. Need to make a file that copies the 3 files back to the asterisk folder.
place the command at the beginning of /etc/init.d/asterisk file
2. It seems that my suggestion is fine, you do not need to worry about that bug in GUI backup , just scp the metarouter and place the file into /usr/lib/asterisk/gui_backups/

as for 3. we shall await for Mikrotik if they wish to provide the way but again that is low priority for me.

I have a new question: is there a way to restart asterisk at a certain time of the day? I know that we can set it to restart every 2 or 3 hours by adding a command to the crontab -e
please let me know the command if you have it.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue Sep 04, 2012 2:09 am

please let me know the command if you have it.
Perhaps...
/etc/init.d/asterisk stop && /etc/init.d/asterisk start
...?

-- Nathan
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Tue Sep 04, 2012 2:15 am

Nathan,

It is not! The command to make it restart every 3 hours is : */180 * * * * /etc/init.d/asterisk restart
this will force the asterisk to restart every 180 minutes = 3 hours, what I am looking for is to restart the asterisk say at 12:00 AM every day.

---Tedd
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Metarouter images

Tue Sep 04, 2012 2:45 pm

The command to make it restart every 3 hours is : */180 * * * * /etc/init.d/asterisk restart
this will force the asterisk to restart every 180 minutes = 3 hours, what I am looking for is to restart the asterisk say at 12:00 AM every day.

---Tedd
0 12 * * * /etc/init.d/asterisk restart
:)
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Sep 05, 2012 2:13 am

It is not! The command to make it restart every 3 hours is : */180 * * * * /etc/init.d/asterisk restart
I think we are misunderstanding each other. The only part of your example text that is a "command" is the "/etc/init.d/asterisk restart" part. The prefix to that is instructions to cron on when and how often that command should be executed; if you tried to type that entire thing at a command shell, you would get a syntax error thrown back at you.

I specified "/etc/init.d/asterisk stop && /etc/init.d/asterisk start" because I actually looked at the init script for Asterisk and saw that it did not contain a "restart" section, so I didn't think that particular verb was supported. I tried it, though, and you're right: it does work. It turns out that there is a generic "restart" provided within /etc/rc.common that simply shortcuts my method by executing "stop" and then "start" for you, so it essentially does the same thing.

As for how to use cron, that is more a matter of learning about a general Unix administration concept, which is a subject outside the scope of this thread about MetaROUTER images and their functionality. I would advise you to actually read the documentation: "man 5 crontab" :)

-- Nathan
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Sun Sep 23, 2012 10:32 pm

@@Nathan

I respect your suggestion, I will not post things that are not related to Metarouter however being talking about asterisk and solutions to make it more stable on Metarouter (The subject)
some of the commands posted by me about crontab were not correct.
Just need to correct the command to restart every 3 hours is : */0 0,3,6,9,12,15,18,21 * * 0-5 /etc/init.d/asterisk restart
Normal crontab does not require */ however openwrt does therefore in openwrt you need to add the */ at the start of the command to work.
use crontab -e to create the file.

Thank you and sorry if I created any miss-understanding or a confusion to anyone.
Tedd
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Sep 24, 2012 11:01 am

that is ok, normal crontab does not use extra * as it is run with user privileges. While one in OpenWRT and one on 'root' account on *nix will require extra parameter.
 
User avatar
m4rk0
Member Candidate
Member Candidate
Posts: 196
Joined: Sat Feb 16, 2008 8:30 pm
Location: BA
Contact:

Re: Metarouter images

Wed Oct 31, 2012 12:25 pm

Where can I find more custom images?

Btw link for default images:
http://openwrt.wk.cz/trunk/
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Wed Nov 07, 2012 11:59 am

Hello Nathan,
Your image for PPC works great. Thanks a lot. The GUI is very helpful for people like me. I have installed on RB1100AH. I just imported image file and configured basic setting like IP address, gateway, ntpclient, timezone, trunk, users etc... Now I`ll try to test how many active calls use how many CPU and memory usage.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Mon Nov 12, 2012 8:10 am

Hi Guys,

My GUI file "etc/asterisk/httpd" loses after routerboard reboots without proper shutdown. Also NTP configuration loses. How to solve this? In this case every time I need to copy backup httpd file to Metarouter.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Fri Dec 21, 2012 4:24 am

Any advise?
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Sat Dec 22, 2012 9:56 pm

Yes there is a solution ,
1. you will need to backup the following files: dahdi_guiread.conf, dahdi_scan.conf and http.conf to a directory say "etc/astbkp/
2. Create a script to restore these files everytime the router is rebooted.

enjoy!
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Mon Jan 07, 2013 6:26 am

Thanks tedd77,

I have added following startup commands to rc.local
echo GMT-8 > /etc/TZ

ntpclient -c 1 -s -h 202.131.XXX.XXX

hostname RouterBoard_PBX

echo "[general]
enabled = yes
bindaddr = 0.0.0.0
bindport = 8088
enablestatic = yes
redirect = / /static/config/index.html
[post_mappings]
backups = /usr/lib/asterisk/gui_backups
moh = /usr/lib/asterisk/moh" > /etc/asterisk/http.conf
Now it`s okay after reboots. But I have new issue, OWRT stop to respond sometimes. When is freezes last CPU usage info is idle=98%. But suddenly stops to respond to ICMP, SSH, HTTP even console. Just freezes. Reboot or stop/start Metarouter helps. What might be the reason? Such unstable router can`t be used for live usage.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Tue Jan 08, 2013 12:12 pm

Guys, any idea? I can`t see any even any failure logs on OWRT.
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Thu Jan 10, 2013 12:01 am

Now it`s okay after reboots. But I have new issue, OWRT stop to respond sometimes. When is freezes last CPU usage info is idle=98%. But suddenly stops to respond to ICMP, SSH, HTTP even console. Just freezes. Reboot or stop/start Metarouter helps. What might be the reason? Such unstable router can`t be used for live usage.
You will find more information about this problem here: http://forum.mikrotik.com/viewtopic.php ... &start=350
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Sat Apr 20, 2013 9:21 pm

Anyone knows what happened to site http://openwrt.wk.cz/trunk ?
Now, we have stable MetaROUTER but this site has disappeared! I downloaded OpenWRT r31411 some time ago from that link and it is working fine now but it's useless if I cannot get packages.

Does anyone have any contact to liquidcz?
Last edited by payday on Mon Apr 22, 2013 11:33 pm, edited 1 time in total.
 
gamespb
just joined
Posts: 15
Joined: Mon Nov 03, 2008 5:32 pm

Re: Metarouter images

Sat Apr 20, 2013 10:10 pm

Has anyone have any contact to liquidcz?
I try access to site week ago - don't work (
 
luminescentsimian
just joined
Posts: 6
Joined: Fri Nov 02, 2012 7:41 am

Re: Metarouter images

Sun Apr 21, 2013 6:23 am

Anyone knows what happened to site http://openwrt.wk.cz/trunk ?
Now, we have stable MetaROUTER but this site has disappeared! I downloaded OpenWRT r31411 some time ago from that link and it is working fine now but it's useless if I cannot get packages.
Seems to only resolve via ipv6 now, no ipv4 addr. It comes up fine on my desktop, but not on the new openwrt metarouter I just imported because it doesn't come with ipv6 out of the box.
 
gamespb
just joined
Posts: 15
Joined: Mon Nov 03, 2008 5:32 pm

Re: Metarouter images

Mon Apr 22, 2013 8:00 pm

luminescentsimian
Thank you. there is still hope )
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Mon Apr 22, 2013 8:59 pm

Anyone knows what happened to site http://openwrt.wk.cz/trunk ?
Now, we have stable MetaROUTER but this site has disappeared! I downloaded OpenWRT r31411 some time ago from that link and it is working fine now but it's useless if I cannot get packages.
Seems to only resolve via ipv6 now, no ipv4 addr. It comes up fine on my desktop, but not on the new openwrt metarouter I just imported because it doesn't come with ipv6 out of the box.
Do you have access to contents of this site? Can you download it all and put it into archive?
 
luminescentsimian
just joined
Posts: 6
Joined: Fri Nov 02, 2012 7:41 am

Re: Metarouter images

Tue Apr 23, 2013 10:24 am

Do you have access to contents of this site? Can you download it all and put it into archive?
Done:
http://openwrt.glowingmonkey.org/trunk/
It's junk a simple wget --mirror job, and the main index page still points to openwrt.wk.cz, but the lower links should work.
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Tue Apr 23, 2013 11:59 pm

Do you have access to contents of this site? Can you download it all and put it into archive?
Done:
http://openwrt.glowingmonkey.org/trunk/
It's junk a simple wget --mirror job, and the main index page still points to openwrt.wk.cz, but the lower links should work.
At home I cannot access http://openwrt.wk.cz because my ISP does not support IPv6. I have downloaded all from your site. Thank you very much.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Fri May 03, 2013 9:44 am

Does anybody know possible way just change asterisk default configuration files of the image (.gz file), without rebuilding it? I tried to use 7-ZIP. It allow me to change files of the image without extracting it. But when I upgraded asterisk configuration files of the image, image become unable to import into metarouter. Metarouter says "Archive is too short"

Second thin is, yesterday I had power issue and router rebooted. But /etc/asterisk/users.conf file has broken. Just became blank file. All other files "/etc/asterisk/extensions.conf, /etc/asterisk/extconfig.conf" are OK. How can I automate process "backup users.conf file every day and replace original users.conf by this backup file after every reboot occurs"
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri May 03, 2013 10:32 am

Does anybody know possible way just change asterisk default configuration files of the image (.gz file), without rebuilding it? I tried to use 7-ZIP. It allow me to change files of the image without extracting it. But when I upgraded asterisk configuration files of the image, image become unable to import into metarouter. Metarouter says "Archive is too short"
Well, it's not just a .gz (gzip) file, it's a .tgz / .tar.gz file, so it's a compressed "tarball". I have no familiarity with 7-ZIP, but a quick Google reveals it to be a Windows-based multiformat compressed archive utility. If you are modifying the tarball with 7-ZIP, and RouterOS can no longer import it after that, then it seems clear that 7-ZIP is doing something wrong, and is corrupting the file when you try to use 7-ZIP to modify the file. So...moral of the story is, don't use 7-ZIP, I guess. Something must be buggy either with its TAR support, or its GZIP support.

I have never bothered to try to modify the MetaROUTER tarball images directly, because I've had no need to. If I want to make a change, I always make it in the OpenWRT build environment. However, in theory, making your own tarball without recompiling everything should be possible. Rather than using 7-ZIP, why don't you use the actual tools that made the file in the first place? tar and gzip. Decompress the file somewhere, make the changes that you want to the directory tree you unpacked from the tarball, and then recompress the entire directory tree again into a new compressed tarball.

Long term, if you are going to be making many changes, it would serve you best to teach yourself how to perform an OpenWRT build.
Second thin is, yesterday I had power issue and router rebooted. But /etc/asterisk/users.conf file has broken. Just became blank file. All other files "/etc/asterisk/extensions.conf, /etc/asterisk/extconfig.conf" are OK. How can I automate process "backup users.conf file every day and replace original users.conf by this backup file after every reboot occurs"
Sounds like an issue similar to what others were seeing with http.conf corruption after not shutting down the system cleanly. You might look back through this thread for other posts on the subject. I think some people may be creating cron jobs to schedule config backups, and then adding their own shell scripts to /etc/init.d that restore the latest backup during bootup. I haven't looked into it myself.

Quite honestly, if you are unfamiliar with basic UNIX system administration concepts (such as using tar and/or gzip, cron, shell scripts, and the init bootup process), you're probably going to have a tough time maintaining an Asterisk system. I am trying to make my MetaROUTER image as plug-and-play and "turnkey" as possible, but obviously it isn't there yet. It's a project I've been working on in my spare time and that I've voluntarily given back to the community. But I cannot reasonably be expected to support every single person that uses it, and help them make their own custom changes to it; I don't have the time to train people how to use it correctly, much less do things with it or to it that it doesn't do already. I am offering it freely "as-is", so if it serves your purposes as-is, then great! And although I welcome feedback when things don't work, as that will help make it better, if you need something other than what I've provided, you should be willing to take the time to teach yourself how to make it, and then get your hands dirty, or find someone you can pay to do what you need. :)

-- Nathan
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Sat May 04, 2013 1:22 am

Does anybody know possible way just change asterisk default configuration files of the image (.gz file), without rebuilding it? I tried to use 7-ZIP. It allow me to change files of the image without extracting it. But when I upgraded asterisk configuration files of the image, image become unable to import into metarouter. Metarouter says "Archive is too short"
You should make changes in running OpenWRT Metarouter and then export it to image. This is also good way to make backup: http://forum.mikrotik.com/viewtopic.php?f=15&t=35916
Second thin is, yesterday I had power issue and router rebooted. But /etc/asterisk/users.conf file has broken. Just became blank file. All other files "/etc/asterisk/extensions.conf, /etc/asterisk/extconfig.conf" are OK. How can I automate process "backup users.conf file every day and replace original users.conf by this backup file after every reboot occurs"
Read about crond, crontab and /etc/rc.local in OpenWRT.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Mon May 06, 2013 5:37 am

-- Nathan
Thanks Nathan for quick reply. You are right. I didn`t know even file is Tarball. I will try to research and learn OpenWRT :-)
-- payday
Thanks Payday. Good link to learn how to make backup.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Tue May 07, 2013 12:35 pm

Finally I got my own Asterisk OWRT image. Just modified after extracted and re-archived it to tgz using Tarball. Works great on RB450G, RB2011, RB1100AH. :D

Great thanks to Nathan and Payday!
 
leovinci81
just joined
Posts: 8
Joined: Wed May 15, 2013 1:55 pm

Re: Metarouter images

Wed May 15, 2013 1:58 pm

Hi All,

Great posts !
Already for a while I'm looking for a asterisk version for my RB2011

Any chance somebody can publish the routerboard image ...?
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Thu May 16, 2013 1:33 am

Any chance somebody can publish the routerboard image ...?
Send me e-mail: nathana@fsr.com

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Tue Jul 09, 2013 11:21 am

Do you have access to contents of this site? Can you download it all and put it into archive?
Done:
http://openwrt.glowingmonkey.org/trunk/
It's junk a simple wget --mirror job, and the main index page still points to openwrt.wk.cz, but the lower links should work.
At home I cannot access http://openwrt.wk.cz because my ISP does not support IPv6. I have downloaded all from your site. Thank you very much.
Sorry guys, my mistake. It happend during DNS server changes. Now http://openwrt.wk.cz/ running again on IPV4 and IP6.
 
mattijs
just joined
Posts: 3
Joined: Sun Feb 24, 2013 3:23 pm

Re: Metarouter images

Tue Jul 23, 2013 2:42 pm

Not sure why this wasn't done before or what I've broken in the process;

I've taken the latest OpenWRT Backfire snapshot (r33081). I then applied the metarouter patches to the longterm 2.6.32 kernel which is 2.6.32.61 at the time of writing. This is the 2.6.x with the latest projected EOL, somewhere Mid-2014 probably. I build a rootfs, it boots, but that's as far as I've tested it.

I'm a bit unsure how to proceed now, do I try and get 'Attitude Adjustment' to run a 2.6.32 kernel? Or do I try to get the metarouter patches to work for the 3.x kernel?

Mattijs
oh, here's the link to the rootfs for now: https://dl.dropboxusercontent.com/u/376 ... tfs.tar.gz

Linux version 2.6.32.61 (mattijs@vbox) (gcc version 4.3.3 (GCC) ) #1 Tue Jul 9 17:18:47 CEST 2013
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
User-defined physical RAM map:
 memory: 01800000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001800
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001800
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 6096
Kernel command line: init=/etc/preinit console=hvc0 board=vm mem=24M 
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Memory: 20736k/24576k available (2060k kernel code, 3840k reserved, 284k data, 132k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
console [hvc0] enabled
Calibrating delay loop... 245.76 BogoMIPS (lpj=491520)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
MFS init
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 40
io scheduler noop registered
io scheduler deadline registered (default)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (metafs filesystem) readonly on device 0:11.
Freeing unused kernel memory: 132k freed
Warning: unable to open an initial console.
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -

Please press Enter to activate this console. PPP generic driver version 2.4.2
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (342 buckets, 1368 max)



BusyBox v1.15.3 (2013-07-09 17:11:02 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ---------------------------------------------------
 Backfire (10.03.x Snapshot, r33081)
 ---------------------------------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua 
  * 1/3 shot Bailey's  on the bottom, then Bailey's, 
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------
root@OpenWrt:/# 
[/size]
 
itsmorefun
just joined
Posts: 7
Joined: Mon Jul 29, 2013 11:46 pm

Re: Metarouter images

Thu Aug 08, 2013 6:15 pm

@mattijs

Hi,

How do proceed?

As i see here: svn://svn.openwrt.org/openwrt/trunk/target/linux/generic at rev 33081, there is no patches-2.6.32 folder, it was removed at rev 31597

Can you explain me how do you proceed?

Thank
Last edited by itsmorefun on Sat Aug 10, 2013 3:42 am, edited 1 time in total.
 
mattijs
just joined
Posts: 3
Joined: Sun Feb 24, 2013 3:23 pm

Re: Metarouter images

Sat Aug 10, 2013 3:35 am

I'm well aware where and when Backfire was branched from the trunk :) I also never mentioned 3.2, I'm aware that has been removed too. What I said was that I had a working 2.6.32.61 kernel, and then asked how to proceed ;) Do I try and get the current OpenWRT trunk to work with my 2.6.32.61 kernel or do I try and get some 3.x kernel to boot on MetaRouter?

Fact of the matter is that I'm working on patches to get 3.x working, the bare kernel which would then compile both in buildroot and OpenWRT. Current state is that I have it compiling, booting and I even hacked a debug console in there so I can see where it hangs (because it does before hvc0 can come up). I guess it's a matter of debugging now :)
 
itsmorefun
just joined
Posts: 7
Joined: Mon Jul 29, 2013 11:46 pm

Re: Metarouter images

Sat Aug 10, 2013 3:43 am

Sorry, bad keystroke, i want write 2.6.32 not 3.2.

I have also try to compile a 3.3.5 kernel with the attached patch (from "http://www.mikrotik.com/download/share/ ... 5_patch.gz), i have made a metarouter patch that compile but metarouter never boot (or hang before any console output, or console output is broken), i am too bad to do a working metarouter patch :-(
You do not have the required permissions to view the files attached to this post.
 
inlan
just joined
Posts: 13
Joined: Mon Apr 29, 2013 2:01 pm

Re: Metarouter images

Sun Aug 25, 2013 1:14 pm

liquidcz, can you add to your repository 2 packages: redsocks and srelay, please. I cannot compile this sources for mr-mips arch. But this packages very need for me
 
3draven
just joined
Posts: 19
Joined: Thu Oct 04, 2012 9:08 am

Re: Metarouter images

Tue Oct 15, 2013 1:07 am

Hello everyone. Tell me whether you can run OpenWRT on RB OmniTIK U-5HnD?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Thu Oct 17, 2013 12:08 pm

Hello everyone. Tell me whether you can run OpenWRT on RB OmniTIK U-5HnD?
you can run OpenWRT guest easily on that router.
 
3draven
just joined
Posts: 19
Joined: Thu Oct 04, 2012 9:08 am

Re: Metarouter images

Sat Oct 19, 2013 4:32 am

I used to have a lot of options (all in this thread and many other) for the images they reboot the router at boot OpenWRT. Can you show what specific image will work with RB OmniTIK U-5HnD?

If I want to build my image, that is the question:

0. Necessarily need a Mikrotik patch?
1. When building OpenWRT which target platform must be chosen without the patch for RB OmniTIK U-5HnD?
2. Is it possible to install other Linux system?
3. How to set an arbitrary Linux?
 
odge
Member Candidate
Member Candidate
Posts: 110
Joined: Mon Nov 29, 2010 2:53 pm

Re: Metarouter images

Sat Oct 19, 2013 5:23 pm

Building openwrt patching it and so forth is a bit beyond my scope.

I want to run openwrt and openl2tp, but I cant find a build package for it. (I'm just looking for a lt2p client that I can run inside mikrotik metarouter that support shared secret without ipsec).

Can anyone more experienced help me out.
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Sun Oct 27, 2013 11:32 pm

Mainly this post is addressed to Nathan and liquidcz

Is there a possibility to add to Nathan's openwrt asterisk the firewall fail2ban ?
The reason is that we are getting lots of attack attempts from the internet, with fail2ban firewall we could subscribe (freely) to networksystemssolution.info
all attacks will be registered and therefore added to the blacklist.

Having this added to the image will make everyone's life simple.
I am sure someone have noticed that due to the large amount of attacks the "/var/log/asterisk/messages.log" is getting very large hence rendering the asterisk unstable, slow and sometimes dead until next reboot.
If someone wondered why the asterisk (that is on public IP) becoming dead or slow the answer is the "messages.log" became too big.

Thank you for letting me know if that is possible.
 
RobertoMenesesB
just joined
Posts: 1
Joined: Mon Dec 02, 2013 3:53 pm

Re: Metarouter images

Mon Dec 02, 2013 5:09 pm

Dear Nathan,

Mikrotik have experience but am new to MetaRouter, Might me some manual or procedure to virtualize asterisk on mikrotik, I'm studying to propose as a topic for my college thesis, Greetings from Ecuador
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Tue Dec 03, 2013 9:46 am

for this - you have to have your own built OpenWRT and then you can make binaries of your liking following OpenWRT documentation on how to create binaries for flavor of OpenWRT you have built. (Package building)
 
iqt
just joined
Posts: 23
Joined: Fri Jun 07, 2013 11:04 am

Re: Metarouter images

Sun Dec 22, 2013 1:32 pm

Not sure why this wasn't done before or what I've broken in the process;

I've taken the latest OpenWRT Backfire snapshot (r33081). I then applied the metarouter patches to the longterm 2.6.32 kernel which is 2.6.32.61 at the time of writing. This is the 2.6.x with the latest projected EOL, somewhere Mid-2014 probably. I build a rootfs, it boots, but that's as far as I've tested it.

I'm a bit unsure how to proceed now, do I try and get 'Attitude Adjustment' to run a 2.6.32 kernel? Or do I try to get the metarouter patches to work for the 3.x kernel?

Mattijs
oh, here's the link to the rootfs for now: https://dl.dropboxusercontent.com/u/376 ... tfs.tar.gz
@mattijs: Could you provide your patches for backfire r33081 and kernel 2.6.32.61 please. I downloaded the source from openwrt and adopted the patches. Compilation is ok but I can't start the image.

Thanks! Dirk

Linux version 2.6.32.61 (dirk@obelix) (gcc version 4.3.3 (GCC) ) #1 Sun Dec 22 11:
56:37 CET 2013
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
User-defined physical RAM map:
 memory: 01800000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001800
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001800
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 6096
Kernel command line: init=/etc/preinit console=hvc0 board=vm mem=24M 
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Memory: 20816k/24576k available (1952k kernel code, 3760k reserved, 295k data, 128
k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
console [hvc0] enabled
Calibrating delay loop... 418.81 BogoMIPS (lpj=837632)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
Unhandled kernel unaligned access[#1]:
Cpu 0
$ 0   : 00000000 0000006b 00000000 00000000
$ 4   : c01107a0 a1700000 00000000 c0c68d08
$ 8   : 10008201 1000001e 00000000 c0c68cb0
$12   : 00000000 c032ba98 c03276bc 00000000
$16   : 8c430000 c0c17de8 c0360000 00000000
$20   : c033aaf0 00000000 00000000 00000000
$24   : c0c68d08 c0119ac0                  
$28   : c0c16000 c0c17dc0 00000000 c0101460
Hi    : 00000000
Lo    : 00000000
epc   : c01107b8 0xc01107b8
    Not tainted
ra    : c0101460 0xc0101460
Status: 10008203    KERNEL EXL IE 
Cause : 00000010
BadVA : a1700000
PrId  : 0001800a (MIPS 4Kc)
Modules linked in:
Process swapper (pid: 1, threadinfo=c0c16000, task=c0c15938, tls=00000000)
Stack : c032bb48 c01429a4 00000082 00000000 c0c04500 c03521c8 c03522e0 c0360000
        00000000 c0101460 c0328bc0 c0142ec4 c0c13e10 00000000 c0c6b880 00000000
        00000000 0000006b a1700000 a0000000 a1700000 00004000 01703fff c0c68d08
        c032769c c02fa08c 00000000 c0c68cb0 00000000 c032ba98 c03276bc 00000000
        c03521c8 c03522e0 c0360000 00000000 c033aaf0 00000000 00000000 00000000
        ...
Call Trace:[<c01429a4>] 0xc01429a4
[<c0101460>] 0xc0101460
[<c0142ec4>] 0xc0142ec4
[<c033aaf0>] 0xc033aaf0
[<c0119ac0>] 0xc0119ac0
[<c012a484>] 0xc012a484
[<c033ab20>] 0xc033ab20
[<c033ab2c>] 0xc033ab2c
[<c033aae0>] 0xc033aae0
[<c0109610>] 0xc0109610
[<c01de6fc>] 0xc01de6fc
[<c0155314>] 0xc0155314
[<c0334348>] 0xc0334348
[<c01b4e50>] 0xc01b4e50
[<c010af94>] 0xc010af94
[<c0334264>] 0xc0334264
[<c010af84>] 0xc010af84


Code: 00431024  14400063  00000000 <88b20000> 98b20003  24020000  14400051  000000
00  08044203 
Disabling lock debugging due to kernel taint
Kernel panic - not syncing: Attempted to kill init!

[/size]
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Dec 28, 2013 1:20 am

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP
New requested packages: rsync, stunnel, quagga, srelay

MIPS:
http://openwrt.wk.cz/kamikaze/openwrt-m ... 961.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/kamikaze/config-ka ... 1-20131227
PACKAGES:
http://openwrt.wk.cz/kamikaze/packages/mr-mips/

PPC:
http://openwrt.wk.cz/kamikaze/openwrt-m ... 961.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/kamikaze/config-ka ... 1-20131227
PACKAGES:
http://openwrt.wk.cz/kamikaze/packages/mr-ppc/
 
LeoCombes
Frequent Visitor
Frequent Visitor
Posts: 78
Joined: Mon May 28, 2007 3:56 pm

Re: Metarouter images

Mon Dec 30, 2013 12:38 am

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP
New requested packages: rsync, stunnel, quagga, srelay
Excellent news liquidcz!!!
Any posibility of include zabbix_proxy 2.0 in repository?
I tried to compile without success, my compiler skills are not very good.

Thanks for your effort!
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Thu Jan 02, 2014 11:37 am

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP
New requested packages: rsync, stunnel, quagga, srelay
Thanks liquidcz. Do you have any news on stability?
 
User avatar
bysard
Member Candidate
Member Candidate
Posts: 295
Joined: Thu Apr 22, 2010 2:53 pm

Re: Metarouter images

Thu Jan 02, 2014 12:58 pm

Thank you liquidcz. I have no problems running this image but I can't change the IP address from DHCP to static. When I click save, I see new values, but when I reboot the router it goes back to DHCP.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Jan 02, 2014 2:49 pm

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP
New requested packages: rsync, stunnel, quagga, srelay
Excellent news liquidcz!!!
Any posibility of include zabbix_proxy 2.0 in repository?
I tried to compile without success, my compiler skills are not very good.

Thanks for your effort!
I'm afraid that I can only add zabbix 1.6, which is officially in Kamikaze feeds.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Jan 02, 2014 2:53 pm

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP
New requested packages: rsync, stunnel, quagga, srelay
Thanks liquidcz. Do you have any news on stability?
Stability? Did you mean those problems with occasional reboot?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Jan 02, 2014 2:56 pm

Thank you liquidcz. I have no problems running this image but I can't change the IP address from DHCP to static. When I click save, I see new values, but when I reboot the router it goes back to DHCP.
If you are using web administration, after clicking "Save Changes", you still have to click on the "Applay Changes" at the bottom of the page.
 
User avatar
bysard
Member Candidate
Member Candidate
Posts: 295
Joined: Thu Apr 22, 2010 2:53 pm

Re: Metarouter images

Fri Jan 03, 2014 8:57 am

Thank you liquidcz. I have no problems running this image but I can't change the IP address from DHCP to static. When I click save, I see new values, but when I reboot the router it goes back to DHCP.
If you are using web administration, after clicking "Save Changes", you still have to click on the "Applay Changes" at the bottom of the page.
:)

ty
 
LeoCombes
Frequent Visitor
Frequent Visitor
Posts: 78
Joined: Mon May 28, 2007 3:56 pm

Re: Metarouter images

Mon Jan 06, 2014 3:09 pm

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP
New requested packages: rsync, stunnel, quagga, srelay
Excellent news liquidcz!!!
Any posibility of include zabbix_proxy 2.0 in repository?
I tried to compile without success, my compiler skills are not very good.

Thanks for your effort!
I'm afraid that I can only add zabbix 1.6, which is officially in Kamikaze feeds.
Surely, the same is going to happend with other packages, soon. They will be outdated.
Can I run a latest version of the openWRT (Attitude Adjustment) in the routerboard? Or is not possible or technically complicated?

Thanks.
 
User avatar
blazej44800
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Thu Feb 20, 2014 6:16 pm

Re: Metarouter images

Sat Feb 22, 2014 10:59 pm

Hello.

liquidcz: can you add packages: minidlna, kmod-usb-uhci, kmod-usb-ohci, kmod-usb2, kmod-usb-printer, p910nd

Thanks a lot (vďaka :))
 
Vitaly
just joined
Posts: 21
Joined: Tue Feb 25, 2014 3:13 pm

Re: Metarouter images

Tue Feb 25, 2014 3:24 pm

Hello, please add print server (printer support) to metarouter. I tried install cups, but it not works.
Thanks!
 
User avatar
bysard
Member Candidate
Member Candidate
Posts: 295
Joined: Thu Apr 22, 2010 2:53 pm

Re: Metarouter images

Wed Feb 26, 2014 1:17 pm

Hello, please add print server (printer support) to metarouter. I tried install cups, but it not works.
Thanks!
How do you intend to push USB to metarouter?
 
Vitaly
just joined
Posts: 21
Joined: Tue Feb 25, 2014 3:13 pm

Re: Metarouter images

Wed Feb 26, 2014 3:11 pm

How do you intend to push USB to metarouter?
Hi. I am not developer of this system and don't know.
But I see two ways:
1. Native support for RouterOs
2. Forward /dev to metarouter, create image with printer support(with cups or something). If they made this for network devices, maybe this is not big deal for usb. Maybe usb not work in metarouter for security reasons.

Topic with request http://forum.mikrotik.com/viewtopic.php?f=1&t=82284&e=0
 
User avatar
bysard
Member Candidate
Member Candidate
Posts: 295
Joined: Thu Apr 22, 2010 2:53 pm

Re: Metarouter images

Fri Feb 28, 2014 10:56 am

It was a retorical question and the answer is no, you can't. You can only share ether devices with metarouter.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Feb 28, 2014 3:07 pm

I just create new repositories for Backfire 10.03.1 build 29592 + ALL packages

OpenWrt milestone info: https://dev.openwrt.org/milestone/Backfire%2010.03.1

Modifications:
- Mikrotik MetaRouter Patch 1.2
- changed root password to: master
- changed eth0 to DHCP
- changed opkg source to my repositories

MIPS:
http://openwrt.wk.cz/backfire/mr-mips/o ... tfs.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/backfire/mr-mips/c ... fire-29592
PACKAGES:
http://openwrt.wk.cz/backfire/mr-mips/packages/

PPC:
http://openwrt.wk.cz/backfire/mr-ppc/op ... tfs.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/backfire/mr-ppc/co ... fire-29592
PACKAGES:
http://openwrt.wk.cz/backfire/mr-ppc/packages/

Enjoy!
Last edited by liquidcz on Wed Mar 12, 2014 1:56 pm, edited 1 time in total.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Metarouter images

Fri Feb 28, 2014 5:32 pm

Does it work in rb2011 with ros 6.9 or 6.10?

Sent from Android by Tapatalk.
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Fri Feb 28, 2014 8:26 pm

Does it work in rb2011 with ros 6.9 or 6.10?
Works, very well! :)

Thank You, liquidcz!
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Sat Mar 01, 2014 7:50 pm

liquidcz, is it possible to do the same with newer release of OpenWRT?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sun Mar 02, 2014 11:16 am

liquidcz, is it possible to do the same with newer release of OpenWRT?
I would like to, but there is a problem with mikrotik patch and openwrt with different kernel version.
 
JanezFord
Member Candidate
Member Candidate
Posts: 269
Joined: Wed May 23, 2012 10:58 am

Re: Metarouter images

Mon Mar 03, 2014 10:04 am

I cant get ppc version running on RB800 ... mipsbe runs fine on my rb493.

JF
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Mon Mar 03, 2014 11:51 am

Any error messages or detailed description? I'm unable to test PPC because I dont have any PPC hardware.
I cant get ppc version running on RB800 ... mipsbe runs fine on my rb493.

JF
 
Unb0rn
just joined
Posts: 20
Joined: Sat Jan 28, 2012 1:04 am

Re: Metarouter images

Mon Mar 03, 2014 7:15 pm

Great work! Thanks. But it looks like there is no "asterisk-gui" in package repository. It would be great if someone could build one.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Tue Mar 04, 2014 5:13 pm

Any error messages or detailed description? I'm unable to test PPC because I dont have any PPC hardware.
I cant get ppc version running on RB800 ... mipsbe runs fine on my rb493.

JF
there is a problem on PPC hardware regarding OpenWRT - guest is not booting. So that is an issue on our side.
 
User avatar
bysard
Member Candidate
Member Candidate
Posts: 295
Joined: Thu Apr 22, 2010 2:53 pm

Re: Metarouter images

Wed Mar 05, 2014 9:45 am

Any error messages or detailed description? I'm unable to test PPC because I dont have any PPC hardware.
I cant get ppc version running on RB800 ... mipsbe runs fine on my rb493.

JF
there is a problem on PPC hardware regarding OpenWRT - guest is not booting. So that is an issue on our side.
As I remember this is an old issue, still not fixed.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Mar 05, 2014 9:57 am

janisk: Thank you for that information.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Wed Mar 05, 2014 12:00 pm

As I remember this is an old issue, still not fixed.
unfortunately this is not as trivial as it might seem.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Fri Mar 07, 2014 6:45 am

How about Metarouter on Multi-core? Does any body have latest news?
 
Unb0rn
just joined
Posts: 20
Joined: Sat Jan 28, 2012 1:04 am

Re: Metarouter images

Fri Mar 07, 2014 7:39 pm

I don't want to appear impolite, but I'll question one more time-is there any way of getting any kind of webif for asterisk on backfire? It seems like there is no package asterisk-gui in repository. Package from kamikaze gives me an error-incorrect architecture. I really need it. Thank you.
 
JanezFord
Member Candidate
Member Candidate
Posts: 269
Joined: Wed May 23, 2012 10:58 am

Re: Metarouter images

Sun Mar 09, 2014 9:23 pm

Any error messages or detailed description? I'm unable to test PPC because I dont have any PPC hardware.
I cant get ppc version running on RB800 ... mipsbe runs fine on my rb493.

JF
As janisk reported it does not boot, no error messages, nothing, just CPU goes up to 100% and stays there. I have tested on rb800 with ros 6.10 .... mipsbe version is running great for days now on my rb493g ... great work, tnx!

JF
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Tue Mar 11, 2014 11:19 pm

I just updated my repositories and include asterisk-gui.
Great work! Thanks. But it looks like there is no "asterisk-gui" in package repository. It would be great if someone could build one.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Mar 12, 2014 1:51 pm

I just create new "experimental" repositories for Attitude Adjustment 12.09 build 36088 + ALL packages + Asterisk GUI.

OpenWrt milestone info: https://dev.openwrt.org/milestone/Attit ... nt%2012.09

Modifications:
- Experimental MetaRouter Patch for Kernel 3.3.8
- changed root password to: master
- changed eth0 to DHCP
- changed opkg source to my repositories

MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... tfs.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... 8-20140311
PACKAGES:
http://openwrt.wk.cz/attitude_adjustmen ... /packages/

PPC:
http://openwrt.wk.cz/attitude_adjustmen ... tfs.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/attitude_adjustmen ... 8-20140311
PACKAGES:
http://openwrt.wk.cz/attitude_adjustmen ... /packages/

Enjoy!
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Metarouter images

Thu Mar 13, 2014 12:00 am

Enjoy!
For me everything is working perfect! Thank You!!! Build 36088 is now my gold standard. :D
 
Unb0rn
just joined
Posts: 20
Joined: Sat Jan 28, 2012 1:04 am

Re: Metarouter images

Thu Mar 13, 2014 4:12 pm

I just create new "experimental" repositories for Attitude Adjustment 12.09 build 36088 + ALL packages + Asterisk GUI.

OpenWrt milestone info: https://dev.openwrt.org/milestone/Attit ... nt%2012.09

Modifications:
- Experimental MetaRouter Patch for Kernel 3.3.8
- changed root password to: master
- changed eth0 to DHCP
- changed opkg source to my repositories

MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... tfs.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... 8-20140311
PACKAGES:
http://openwrt.wk.cz/attitude_adjustmen ... /packages/

PPC:
http://openwrt.wk.cz/attitude_adjustmen ... tfs.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/attitude_adjustmen ... 8-20140311
PACKAGES:
http://openwrt.wk.cz/attitude_adjustmen ... /packages/

Enjoy!
Great news! Works great for me with samba 36.
But it looks like there are some dependencies problems for asterisk gui (asterisk18-res-phoneprov, asterisk18-app-meetme and asterisk18-app-page)
Anyway, this is unbelievably cool! Thanks.
 
poisons
just joined
Posts: 17
Joined: Wed Sep 18, 2013 3:50 pm

Re: Metarouter images

Fri Mar 14, 2014 1:40 pm

liquidcz
Thanx for builds. I have try last build for mips and something go strange.
My rb951 have 5 ethernets.
ether1 for my isp
etrer2-5 for my local devices.
I have no bridges.
When i import image into metarouter, it was started corectly, but dhcp-client dont work. And i see droped packeges
root@metarouter:/# ifconfig 
eth0      Link encap:Ethernet  HWaddr 02:97:24:54:0D:20  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:399 errors:0 dropped:115 overruns:0 frame:0
          TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27692 (27.0 KiB)  TX bytes:31205 (30.4 KiB)
I try to set up VM interface to ether1 port(my isp) and VM get IP. No droped packets and so on.
What i do wrong?
[admin@MikroTik] /metarouter> export 
# mar/14/2014 15:38:57 by RouterOS 6.11rc1
# software id = 2BME-LLFU
#
/metarouter
add name=mr1
/metarouter interface
add static-interface=ether2-master-local virtual-machine=mr1 vm-mac-address=\
    02:97:24:54:0D:20
[admin@MikroTik] /ip dhcp-server> export 
# mar/14/2014 15:37:28 by RouterOS 6.11rc1
# software id = 2BME-LLFU
#
/ip dhcp-server
add add-arp=yes address-pool=default-dhcp disabled=no interface=\
    ether2-master-local lease-time=1d name=home_network
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Mar 14, 2014 5:05 pm

Great news! Works great for me with samba 36.
But it looks like there are some dependencies problems for asterisk gui (asterisk18-res-phoneprov, asterisk18-app-meetme and asterisk18-app-page)
Anyway, this is unbelievably cool! Thanks.
I see, Im going to try to build these packages.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Mar 14, 2014 5:08 pm

liquidcz
Thanx for builds. I have try last build for mips and something go strange.
My rb951 have 5 ethernets.
ether1 for my isp
etrer2-5 for my local devices.
I have no bridges.
When i import image into metarouter, it was started corectly, but dhcp-client dont work. And i see droped packeges
root@metarouter:/# ifconfig 
eth0      Link encap:Ethernet  HWaddr 02:97:24:54:0D:20  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:399 errors:0 dropped:115 overruns:0 frame:0
          TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27692 (27.0 KiB)  TX bytes:31205 (30.4 KiB)
I try to set up VM interface to ether1 port(my isp) and VM get IP. No droped packets and so on.
What i do wrong?
[admin@MikroTik] /metarouter> export 
# mar/14/2014 15:38:57 by RouterOS 6.11rc1
# software id = 2BME-LLFU
#
/metarouter
add name=mr1
/metarouter interface
add static-interface=ether2-master-local virtual-machine=mr1 vm-mac-address=\
    02:97:24:54:0D:20
[admin@MikroTik] /ip dhcp-server> export 
# mar/14/2014 15:37:28 by RouterOS 6.11rc1
# software id = 2BME-LLFU
#
/ip dhcp-server
add add-arp=yes address-pool=default-dhcp disabled=no interface=\
    ether2-master-local lease-time=1d name=home_network
Lets try to use another (ether3,4,5) static interface for metarouter then ether2-master-local where DHCP server is binding.
 
poisons
just joined
Posts: 17
Joined: Wed Sep 18, 2013 3:50 pm

Re: Metarouter images

Fri Mar 14, 2014 5:39 pm

liquidcz
I tried another ether, but my lan dhcp dont work. Work only on ether1. Metarouter catch ip from isp dhcp server. Pings and so on work perfect.
May be root of problem is droped packets in eth0 interface, how can i diagnostic why packets drop?

P.S. can you add nano text editor at next builds? vi not friendly for me...
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Mar 14, 2014 7:01 pm

liquidcz
I tried another ether, but my lan dhcp dont work. Work only on ether1. Metarouter catch ip from isp dhcp server. Pings and so on work perfect.
May be root of problem is droped packets in eth0 interface, how can i diagnostic why packets drop?

P.S. can you add nano text editor at next builds? vi not friendly for me...
Well, lets try to create dynamic metarouter interface and bridge it with ether2.

Ad nano,.. just opkg update, opkg install nano .
 
LeoCombes
Frequent Visitor
Frequent Visitor
Posts: 78
Joined: Mon May 28, 2007 3:56 pm

Re: Metarouter images

Fri Mar 14, 2014 10:58 pm

liquidcz: your site is now unreachable?

EDIT: is online again!
 
LeoCombes
Frequent Visitor
Frequent Visitor
Posts: 78
Joined: Mon May 28, 2007 3:56 pm

Re: Metarouter images

Fri Mar 14, 2014 11:17 pm

zabbix proxy 2.0 is available!!!

THANKS LIQUIDCZ!!!!!!!!
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Mar 15, 2014 1:23 pm

liquidcz: your site is now unreachable?

EDIT: is online again!
I'm sorry, I had to reinforce the server.
 
poisons
just joined
Posts: 17
Joined: Wed Sep 18, 2013 3:50 pm

Re: Metarouter images

Sat Mar 15, 2014 1:55 pm

liquidcz
I tried another ether, but my lan dhcp dont work. Work only on ether1. Metarouter catch ip from isp dhcp server. Pings and so on work perfect.
May be root of problem is droped packets in eth0 interface, how can i diagnostic why packets drop?

P.S. can you add nano text editor at next builds? vi not friendly for me...
Well, lets try to create dynamic metarouter interface and bridge it with ether2.

Ad nano,.. just opkg update, opkg install nano .
liquidcz, hehey!!! it work!!! DHCP not work again, but i configure interface manualy.

But another one question. When i try to ping mikrotik host, i see latency over 1-10ms. It normal?
And in repo broken depencies
Installing asterisk-gui (2.1.0-rc1) to root...
Downloading http://openwrt.wk.cz/attitude_adjustment/mr-mips/packages/asterisk-gui_2.1.0-rc1_mr-mips.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for asterisk-gui:
 * 	asterisk18-res-phoneprov * 	asterisk18-app-meetme * 	asterisk18-app-page * 
 * opkg_install_cmd: Cannot install package asterisk-gui.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun Mar 16, 2014 1:11 am

As I remember this is an old issue, still not fixed.
unfortunately this is not as trivial as it might seem.
I am curious what the issue seems to be. Your own kernel can boot on PPC inside of Metarouter. Can't MikroTik just share what is different about their kernel that allows it to work?

Some months ago, I tried to compare the 3.3.5 patches with the 2.6.35 patches and I couldn't see any difference between the Metarouter guest code on those two versions. Maybe MikroTik doesn't know why their kernel works but others don't? Or maybe on PPC, it has something to do with changes outside of Metarouter in the Linux kernel, and if I built a 3.3.5 kernel with Metarouter support, it would also work?

-- Nathan
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Thu Mar 20, 2014 12:42 am

liquidcz, hehey!!! it work!!! DHCP not work again, but i configure interface manualy.
Check your DHCP server: most likely there will be a red line mentioning that wrong interface is selected.
Choose your bridge instead of the ether interface.
Once changed it will work.
 
bino
newbie
Posts: 42
Joined: Thu Jun 17, 2004 4:44 pm

Re: Metarouter images

Wed Apr 23, 2014 5:31 am

c/q liquidcz

Could you please share your metarouter patch ?

I need to compile zeroMQ and it's python wrapper, and they are :
- Did not listed on current packages,
- Faild to be compiled with patch 1.2 .

Sincerely
-bino-
 
noradsistemi
just joined
Posts: 4
Joined: Tue Jul 30, 2013 3:25 am

Re: Metarouter images

Sat Apr 26, 2014 5:43 pm

c/q liquidcz

Thank you for all your work!

I'm trying to make a little web server embedded in a metarouter...
To run some parts of code, I need php5-mod-dom that isn't included in your repo.

What can I do?

How can I compile a package, not included in your repository, for mipsbe?

Thank you!
 
npf
just joined
Posts: 9
Joined: Mon Mar 11, 2013 10:45 pm

Re: Metarouter images

Sun May 04, 2014 8:33 pm

Could you please share your metarouter patch ?
Hello Bino, see this other thread for the patch:

http://forum.mikrotik.com/viewtopic.php ... 49#p403419
 
xpegenaute
just joined
Posts: 20
Joined: Sat May 17, 2014 2:02 pm

Re: Metarouter images

Sat May 17, 2014 2:11 pm

Hi all,

any one could provide a virtual environmet with all the necessary tools to compile for mikrotik?, I am interested in mipsbe though.

I want to compile the OSLEC echo cancellation software but I don't have the full system to compile it for mips.

Vagrant is a good option if you want it [1].
[1] - http://www.vagrantup.com/

Thanks,
Xavi
 
beho1der
just joined
Posts: 1
Joined: Sun Jun 01, 2014 2:31 pm

Re: Metarouter images

Sun Jun 01, 2014 2:47 pm

> liquidcz

Can you put the yours virtual environment to build openvrt for mikrotik with minimal manual for compile, I would try to get the asterisk 12.
 
User avatar
bforces
just joined
Posts: 1
Joined: Sun Aug 24, 2014 12:03 am

Re: Metarouter images

Thu Aug 28, 2014 11:35 pm

Great repository...thanks liquidcz!

Just trying to build applications on the metarouter using toolchains and buildroots...but I getting this error


line 78: /builroot/usr/bin/mips-openwrt-linux-uclibc-gcc.bin: cannot execute binary file
line 78: /builroot/usr/bin/mips-openwrt-linux-uclibc-gcc.bin: Success


any idea? thanks in advance :D


Source Cross-Compile:
http://www.frontiernet.net/~beakmyn/CrossCompile.htm
 
XeroX
just joined
Posts: 5
Joined: Mon Sep 01, 2014 9:04 pm

Re: Metarouter images

Tue Sep 02, 2014 12:36 pm

I'm using latest image of openwrt.wk.cz attitude.

Typing reboot in console, removes the vif and creates a new one.
Using restart of metarouter does noting, machine is stuck. (disable, enable)
opkg install luci says there are missing dependencies?

Any ideas whats wrong?

Cheers
 
okinobk
just joined
Posts: 5
Joined: Sun Dec 09, 2012 10:14 pm

Re: Metarouter images

Thu Oct 30, 2014 11:25 am

I just create new "experimental" repositories for Attitude Adjustment 12.09 build 36088 + ALL packages + Asterisk GUI.

OpenWrt milestone info: https://dev.openwrt.org/milestone/Attit ... nt%2012.09

Modifications:
- Experimental MetaRouter Patch for Kernel 3.3.8
- changed root password to: master
- changed eth0 to DHCP
- changed opkg source to my repositories

MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... tfs.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... 8-20140311
PACKAGES:
http://openwrt.wk.cz/attitude_adjustmen ... /packages/

PPC:
http://openwrt.wk.cz/attitude_adjustmen ... tfs.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/attitude_adjustmen ... 8-20140311
PACKAGES:
http://openwrt.wk.cz/attitude_adjustmen ... /packages/

Enjoy!
Hi liquidcz,

I tried compiled image from http://openwrt.wk.cz/attitude_adjustment/mr-ppc/, but it's not booting. Testing on RB1100AH, RouterOS 6.20, newest firmware.
Old images from your site (for example r31411) is working, but it's not stable and I have a problem with some libraries.

What was changed between these releases, that don't allow boot.

Thanks for help.
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Sat Nov 15, 2014 10:03 pm

Hello

I would like to check if anyone was able to overcome this message (asterisk-gui_2.1.0-rc1_mr-mips.ipk unable to install)

Installing asterisk-gui (2.1.0-rc1) to root...
Downloading http://openwrt.wk.cz/attitude_adjustmen ... r-mips.ipk.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for asterisk-gui:
* asterisk18-res-phoneprov * asterisk18-app-meetme * asterisk18-app-page *
* opkg_install_cmd: Cannot install package asterisk-gui.



Thank you for sharing a solution.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Nov 17, 2014 9:15 am

It looks like you have to switch to other repository or build image/packages yourself as it seems that either mirror is down or packages pulled, or packages has never been there.
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Mon Nov 17, 2014 8:49 pm

It looks like you have to switch to other repository or build image/packages yourself as it seems that either mirror is down or packages pulled, or packages has never been there.

Thank you, I am rebuilding my own version..
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Tue Nov 18, 2014 11:10 am

It looks like you have to switch to other repository or build image/packages yourself as it seems that either mirror is down or packages pulled, or packages has never been there.

Unfortunately failed to build , on attitude adjustment 12.09 as well as Barrier breaker 14.07 I am getting after a long waiting (make: *** [world] Error 1)
I used the Mikrotik openwrt-metarouter-1.2.patch patch

Before I executed the make menuconfig and make I ensured that nothing is missing by doing the following steps:
1. ./scripts/feeds update -­a
2. ./scripts/feeds install -­a
3. patch ‐p0 <openwrt‐metarouter‐1.2.patch
4. make defconfig
5. make prereq
No errors produced

Could someone help ?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Wed Nov 19, 2014 10:33 am

patch 1.2 is only for kamikaze, you have to use user created patch for attitude adjustment or have to create your own patch for releases after the attitude adjustment.
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Wed Nov 19, 2014 1:40 pm

Hello All,

First of all, thanks again liquidcz for the metarouter image.

Any chance to see an upgrade to libopenssl ? The provided one is impacted by heartbleed (1.0.1e) and used by OpenVPN.

In the meantime I'll try to do it on my side.

Thank you

Edit: If someone wants it -> https://www.dropbox.com/s/1cgk3xempsa3m ... s.ipk?dl=0
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Thu Nov 20, 2014 1:37 am

Hello All,

First of all, thanks again liquidcz for the metarouter image.

Any chance to see an upgrade to libopenssl ? The provided one is impacted by heartbleed (1.0.1e) and used by OpenVPN.

In the meantime I'll try to do it on my side.

Thank you

Edit: If someone wants it -> https://www.dropbox.com/s/1cgk3xempsa3m ... s.ipk?dl=0
Hello , Could you please share with me the way you built the image and module? I have been trying with no success for couple of days now.
Thank you in advance.
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Thu Nov 20, 2014 10:00 am

Hello , Could you please share with me the way you built the image and module? I have been trying with no success for couple of days now.
I have only built the SDK to compile packages but this should apply (using menuconfig) to anything else.
As I played around for quite a while, it might not be as accurate as it should be but the idea is there:

1. Install docker
2. Download and instanciate noonien's OpenWRT image (thanks to him btw!) - docker run -t -i noonien/openwrt-buildroot:12.09 sudo -iu openwrt bash
3. Once prompt is available: apt-get install -y wget unzip python
4. cd ~/openwrt
5. run: git pull
6. run: ./scripts/feeds update -a
7. run: ./scripts/feeds install -a
8. Download and apply patch for 12.09 (patch -p1 < filename) mentioned in http://forum.mikrotik.com/viewtopic.php ... 49#p403419
9. run: make menuconfig and select mr-mips architecture
10. run: make defconfig (I guess this steps make previous step the default configuration)
11. run once more: make menuconfig and select things to be built
12. run make and wait

Hope this helps. As long as I'm able to help you, I will remain available for questions you may have.
Last edited by dynek on Fri Nov 21, 2014 8:46 pm, edited 1 time in total.
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: Metarouter images

Fri Nov 21, 2014 2:07 am

Hello , Could you please share with me the way you built the image and module? I have been trying with no success for couple of days now.
I have only built the SDK to compile packages but this should apply (using menuconfig) to anything else.
As I played around for quite a while, it might not be as accurate as it should be but the idea is there:

1. Install docker
2. Download and instanciate noonien's OpenWRT image (thanks to him btw!) - docker run -t -i noonien/openwrt-buildroot:12.09 sudo -iu openwrt bash
3. Once prompt is available: apt-get install -y wget unzip python
4. cd ~/openwrt
5. run: git pull
6. run: ./scripts/feeds update -a
7. run: ./scripts/feeds install -a
8. Download and apply patch for 12.09 mentioned in http://forum.mikrotik.com/viewtopic.php ... 49#p403419
9. run: make menuconfig and select mr-mips architecture
10. run: make defconfig (I guess this steps make previous step the default configuration)
11. run once more: make menuconfig and select things to be built
12. run make and wait

Hope this helps. As long as I'm able to help you, I will remain available for questions you may have.

Thank you very much, at least I am now able to see some progress.
 
hecke
just joined
Posts: 3
Joined: Fri Jan 09, 2015 12:38 am

Re: Metarouter images

Sat Jan 10, 2015 11:06 pm

Hola!

I picked up the patch for AA/12.09 supplied by liquidcz and adapted it to work with Barrier Breaker (r43889). For me it is working (as far as I was able to test) on a RB2011UAS-2HnD running routerOS 5.26.

If you would like to give it a try you can find fw images, the image builder and packages here: http://openwrt.naberius.de/barrier_breaker/mr-mips/
You do not have the required permissions to view the files attached to this post.
 
zentavr
newbie
Posts: 49
Joined: Tue Nov 05, 2013 2:11 pm

Re: Metarouter images

Sun Feb 08, 2015 11:50 pm

virtual machine dies periodically with hangings or kernel panic.
I have RB951G-2HnD (mipsbe) — RouterOS 6.25 as a host system.
root@OpenWrt:/# passwd
Changing password for root
New password: 
Retype password: 
Password for root changed by root
root@OpenWrt:/# [    0.000000] skbuff: skb_over_panic: text:c02d30e4 len:14272 put:14272 head:c1bd0e80 data:c1bd0ec0 tail:0xc1bd4680 end:0xc
1bd1500 dev:<NULL>
[    0.000000] Kernel bug detected[#1]:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.49 #2
[    0.000000] task: c0338558 ti: c032e000 task.ti: c032e000
[    0.000000] $ 0   : 00000000 10008200 0000007f c0330000
[    0.000000] $ 4   : 10008200 00000001 00001248 c0372020
[    0.000000] $ 8   : 35303020 c0373268 0000004b 00000000
[    0.000000] $12   : 0000004b 00000000 00000000 00000000
[    0.000000] $16   : c1929c80 00000180 00000060 00000000
[    0.000000] $20   : c0380000 c037d340 c037db44 c0378198
[    0.000000] $24   : 00000000 c02cff58                  
[    0.000000] $28   : c032e000 c032faf8 c0330000 c02ce660
[    0.000000] Hi    : 00000000
[    0.000000] Lo    : 83126e98
[    0.000000] epc   : c02ce660 skb_panic+0x58/0x5c
[    0.000000]     Not tainted
[    0.000000] ra    : c02ce660 skb_panic+0x58/0x5c
[    0.000000] Status: 10008202 KERNEL EXL 
[    0.000000] Cause : 00000024
[    0.000000] PrId  : 0001800a (MIPS 4Kc)
[    0.000000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 ipt_MASQUERADE xt_time xt_tcpu
dp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_nat_irc nf_
nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt ip6
t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 ipv6
[    0.000000] Process swapper (pid: 0, threadinfo=c032e000, task=c0338558, tls=00000000)
[    0.000000] Stack : 00000740 c0306098 c02d30e4 000037c0 000037c0 c1bd0e80 c1bd0ec0 c1bd4680
          c1bd1500 c0321eb4 00000000 c02833dc 00000000 c1ad87b0 c1868c70 00000170
          0000005c c02d30e4 00000011 00000001 58b9db23 00000043 c1883a90 00010000
          00000000 00000000 00000043 c033c04c c03331e0 c0330000 c0330000 c01cfa78
          c1ade000 c0330e50 c1ade000 c0290740 00010000 c01fa9e8 c033c04c 00010000
          ...
[    0.000000] Call Trace:
[    0.000000] [<c02ce660>] skb_panic+0x58/0x5c
[    0.000000] [<c02833dc>] skb_put+0x48/0x50
[    0.000000] [<c02d30e4>] veth_interrupt+0x198/0x31c
[    0.000000] [<c01cfa78>] handle_irq_event_percpu+0x58/0x260
[    0.000000] [<c01cf9fc>] handle_irq_event+0x3c/0x60
[    0.000000] [<c01cf838>] handle_edge_irq+0x164/0x1b4
[    0.000000] [<c01c76b0>] generic_handle_irq+0x3c/0x54
[    0.000000] [<c018ee10>] do_IRQ+0x1c/0x2c
[    0.000000] [<c02d595c>] virq_cascade_irq+0x3c/0x70
[    0.000000] [<c01cfa78>] handle_irq_event_percpu+0x58/0x260
[    0.000000] [<c01cfda4>] handle_percpu_irq+0x54/0x84
[    0.000000] [<c01c76b0>] generic_handle_irq+0x3c/0x54
[    0.000000] [<c018ee10>] do_IRQ+0x1c/0x2c
[    0.000000] [<c01015c8>] ret_from_irq+0x0/0x4
[    0.000000] [<c0127fa4>] __do_softirq+0x9c/0x1d4
[    0.000000] [<c019cba0>] do_softirq+0x48/0x68
[    0.000000] [<c01f8288>] irq_exit+0x54/0x70
[    0.000000] [<c01015c8>] ret_from_irq+0x0/0x4
[    0.000000] [<c0101880>] __r4k_wait+0x20/0x40
[    0.000000] [<c017b7a8>] cpu_startup_entry+0xd0/0x140
[    0.000000] [<c0344948>] start_kernel+0x3a0/0x3b8
[    0.000000] 
[    0.000000] 
Code: 24841ebc  0c0b3835  00603821 <000c000d> 27bdffc0  afb00034  afbf003c  afb10038  00808021 
[    0.000000] ---[ end trace 461164077349d5ee ]---
[    0.000000] Kernel panic - not syncing: Fatal exception in interrupt
[    0.000000] Rebooting in 3 seconds..[    0.000000] Linux version 3.10.49 (zentavr@zentavr-ig) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-
2014.04 r44162) ) #2 Sun Feb 8 19:32:34 EET 2015
[    0.000000] CPU revision is: 0001800a (MIPS 4Kc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 00243000 @ 00101000 (usable)
[    0.000000]  memory: 0002c000 @ 00344000 (usable after init)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00000000-0x01ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=hvc0 board=vm mem=32M  init=/etc/preinit
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 28820k/32768k available (1936k kernel code, 3948k reserved, 377k data, 176k init, 0k highmem)
[    0.000000] NR_IRQS:168
[    0.000000] console [hvc0] enabled
[    0.000000] Calibrating delay loop... 242.94 BogoMIPS (lpj=485888)
[    0.000000] pid_max: default: 32768 minimum: 301
[    0.000000] Mount-cache hash table entries: 512
[    0.000000] NET: Registered protocol family 16
[    0.000000] bio: create slab <bio-0> at 0
[    0.000000] Switching to clocksource MIPS
[    0.000000] NET: Registered protocol family 2
[    0.000000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.000000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] TCP: Hash tables configured (established 512 bind 512)
[    0.000000] TCP: reno registered
[    0.000000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.000000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.000000] NET: Registered protocol family 1
[    0.000000] MFS init
[    0.000000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.000000] msgmni has been set to 56
[    0.000000] io scheduler noop registered
[    0.000000] io scheduler deadline registered (default)
[    0.000000] TCP: cubic registered
[    0.000000] NET: Registered protocol family 17
[    0.000000] Bridge firewalling registered
[    0.000000] 8021q: 802.1Q VLAN Support v1.8
[    0.000000] VFS: Mounted root (metafs filesystem) readonly on device 0:9.
[    0.000000] Freeing unused kernel memory: 176K (c0344000 - c0370000)
procd: Console is alive
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
mounting /dev/root
procd: - early -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.



BusyBox v1.22.1 (2015-02-08 19:20:44 EET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (Barrier Breaker, r44162)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@(none):/# [    0.000000] NET: Registered protocol family 10
[    0.000000] nf_conntrack version 0.5.0 (469 buckets, 1876 max)
[    0.000000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    0.000000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.000000] xt_time: kernel timezone is -0000
[    0.000000] PPP generic driver version 2.4.2
[    0.000000] NET: Registered protocol family 24

root@OpenWrt:/# uptime me
 21:16:58 up 0 min,  load average: 1.85, 0.48, 0.16
root@OpenWrt:/# uptime
 21:17:02 up 0 min,  load average: 1.94, 0.52, 0.17
root@OpenWrt:/# [    0.000000] device eth0 entered promiscuous mode
[    0.000000] br-lan: port 1(eth0) entered forwarding state
[    0.000000] br-lan: port 1(eth0) entered forwarding state
[    0.000000] br-lan: port 1(eth0) entered forwarding state
procd: - init complete -
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Feb 09, 2015 1:25 pm

virtual machine dies periodically with hangings or kernel panic.
Interesting. Does the panic report look similar every time? The one that you posted seems to indicate that something went wrong during packet receive over the virtual ethernet interface.

I don't know much about the Linux SKB interface, but the comment for skb_put() in skbuff.c says this: "This function extends the used data area of the buffer. If this would exceed the total buffer size the kernel will panic." The call to skb_put() here looks like it tried to push skb->tail past skb->end, where 'end' is 1600 bytes and the request to skb_put() asked that the 'tail' pointer be extended a whopping ~14K bytes, well over the originally-allocated 1600. This explains the panic you got. Now the question is why did skb_put() get called by the MikroTik virtual ethernet driver with such a large value for 'len'.

There is a constant in mtveth.c (the MikroTik virtual ethernet driver) RXBUF_SIZE which is set to 1600, and which is used as the length for SKBs that are allocated by that driver. I'm not sure if this is correct, but my guess would be that whatever you set as the SKB length acts as kind of a hard limit for MTU on that interface. Is it possible that you set the MTU of your VIF in the RouterOS host above the default 1500?

It's also possible that some subtle change was made to the SKB API in recent versions of Linux, and mtveth will need to be updated accordingly.

-- Nathan
 
zentavr
newbie
Posts: 49
Joined: Tue Nov 05, 2013 2:11 pm

Re: Metarouter images

Mon Feb 09, 2015 9:08 pm

Ok, I set up MTU of 1300 for vif interface, which is attached to that virtual machine.
Probably this is an another error, but the machine hanged too :(

[Ctrl-A is the prefix key]


[    0.000000] Linux version 3.10.49 (zentavr@zentavr-ig) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44162) ) #2 Sun Feb 8 19:32:34 EET 2015
[    0.000000] CPU revision is: 0001800a (MIPS 4Kc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 00243000 @ 00101000 (usable)
[    0.000000]  memory: 0002c000 @ 00344000 (usable after init)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00000000-0x03ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=hvc0 board=vm mem=64M  init=/etc/preinit
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 61308k/65536k available (1936k kernel code, 4228k reserved, 377k data, 176k init, 0k highmem)
[    0.000000] NR_IRQS:168
[    0.000000] console [hvc0] enabled
[    0.000000] Calibrating delay loop... 242.94 BogoMIPS (lpj=485888)
[    0.000000] pid_max: default: 32768 minimum: 301
[    0.000000] Mount-cache hash table entries: 512
[    0.000000] NET: Registered protocol family 16
[    0.000000] bio: create slab <bio-0> at 0
[    0.000000] Switching to clocksource MIPS
[    0.000000] NET: Registered protocol family 2
[    0.000000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.000000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] TCP: Hash tables configured (established 512 bind 512)
[    0.000000] TCP: reno registered
[    0.000000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.000000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.000000] NET: Registered protocol family 1
[    0.000000] MFS init
[    0.000000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.000000] msgmni has been set to 119
[    0.000000] io scheduler noop registered
[    0.000000] io scheduler deadline registered (default)
[    0.000000] TCP: cubic registered
[    0.000000] NET: Registered protocol family 17
[    0.000000] Bridge firewalling registered
[    0.000000] 8021q: 802.1Q VLAN Support v1.8
[    0.000000] VFS: Mounted root (metafs filesystem) readonly on device 0:9.
[    0.000000] Freeing unused kernel memory: 176K (c0344000 - c0370000)
procd: Console is alive
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
mounting /dev/root
procd: - early -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[    0.000000] NET: Registered protocol family 10
[    0.000000] nf_conntrack version 0.5.0 (976 buckets, 3904 max)
[    0.000000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    0.000000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.000000] xt_time: kernel timezone is -0000
[    0.000000] PPP generic driver version 2.4.2
[    0.000000] NET: Registered protocol family 24



BusyBox v1.22.1 (2015-02-08 19:20:44 EET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (Barrier Breaker, r44162)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:/# [    0.000000] device eth0 entered promiscuous mode
[    0.000000] br-lan: port 1(eth0) entered forwarding state
[    0.000000] br-lan: port 1(eth0) entered forwarding state
[    0.000000] br-lan: port 1(eth0) entered forwarding state
[    0.000000] unaligned data access af at   (null)   (null)
[    0.000000] unaligned data access 1b61 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#1]:
[    0.000000] unaligned data access 182d at   (null)   (null)
[    0.000000] unaligned data access 1b61 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#2]:
[    0.000000] unaligned data access 182d at   (null)   (null)
[    0.000000] unaligned data access 1b61 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#3]:
[    0.000000] unaligned data access 182d at   (null)   (null)
[    0.000000] unaligned data access 1b61 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#4]:
[    0.000000] unaligned data access 182d at   (null)   (null)
[    0.000000] unaligned data access 1b61 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#5]:
[    0.000000] unaligned data access 182d at   (null)   (null)
[    0.000000] unaligned data access 571 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#6]:
[    0.000000] unaligned data access 23d at   (null)   (null)
[    0.000000] CPU: 0 PID: 1930035277 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 17d at   (null)   (null)
[    0.000000] unaligned data access 29d at   (null)   (null)
[    0.000000] unaligned data access fdd at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 12d1 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#7]:
[    0.000000] unaligned data access 23d at   (null)   (null)
[    0.000000] CPU: 0 PID: 1930035277 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 17d at   (null)   (null)
[    0.000000] unaligned data access 29d at   (null)   (null)
[    0.000000] unaligned data access fdd at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 12d1 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#8]:
[    0.000000] unaligned data access 23d at   (null)   (null)
[    0.000000] CPU: 0 PID: 1930035277 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 17d at   (null)   (null)
[    0.000000] unaligned data access 29d at   (null)   (null)
[    0.000000] unaligned data access fdd at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 12d1 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#9]:
[    0.000000] unaligned data access 23d at   (null)   (null)
[    0.000000] CPU: 0 PID: 1930035277 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 17d at   (null)   (null)
[    0.000000] unaligned data access 29d at   (null)   (null)
[    0.000000] unaligned data access fdd at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 12d1 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#10]:
[    0.000000] unaligned data access 23d at   (null)   (null)
[    0.000000] CPU: 0 PID: 1930035277 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 17d at   (null)   (null)
[    0.000000] unaligned data access 29d at   (null)   (null)
[    0.000000] unaligned data access fdd at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 12d1 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#11]:
[    0.000000] unaligned data access 23d at   (null)   (null)
[    0.000000] CPU: 0 PID: 1930035277 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 17d at   (null)   (null)
[    0.000000] unaligned data access 29d at   (null)   (null)
[    0.000000] unaligned data access fdd at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 12d1 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#12]:
[    0.000000] unaligned data access 23d at   (null)   (null)
[    0.000000] CPU: 0 PID: 1930035277 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 17d at   (null)   (null)
[    0.000000] unaligned data access 29d at   (null)   (null)
[    0.000000] unaligned data access fdd at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 1381 at   (null)   (null)
[    0.000000] unaligned data access 12d1 at   (null)   (null)
[    0.00000c8198 c3bca028 c013810c
[    0.000000] Hi    : 00000000
[    0.000000] Lo    : 20c49ba6
[    0.000000] epc   : c0105640 __copy_user_common+0x198/0x2d8
[    0.000000]     Not tainted
[    0.000000] ra    : c013810c __probe_kernel_read+0x24/0x48
[    0.000000] Status: 10008202 KERNEL EXL 
[    0.000000] Cause : 40008210
[    0.000000] BadVA : 00000f45
[    0.000000] PrId  : 0001800a (MIPS 4Kc)
[    0.000000] Modules linked in: graph.css /(C)[    0.000000] unaligned data access d91 at   (null)   (null)
[    0.000000] unaligned data access d91 at   (null)   (null)
[    0.000000] unaligned data access d91 at   (null)   (null)
[    0.000000] unaligned data access d91 at   (null)   (null)
[    0.000000] unaligned data access d91 at   (null)   (null)
[    0.000000] unaligned data access d91 at   (null)   (null)
[    0.000000] unaligned data access d91 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#15]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#16]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#17]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#18]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#19]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#20]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#21]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#22]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#23]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#24]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#25]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#26]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#27]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#28]:
[    0.000000] CPU: 0 PID: 1919246692 Comm: (null) Not tainted 3.10.49 #2
[    0.000000] unaligned data access 13dd at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#29]:
[    0.000000] unaligned data access 5b233305 at   (null)   (null)
[    0.000000] unaligned data access fa5 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#30]:


 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Feb 09, 2015 11:36 pm

Ok, I set up MTU of 1300 for vif interface, which is attached to that virtual machine.
You didn't say what you had the MTU set to before. What did you have the MTU set to before?

You really should be able to safely use a 1500 MTU, so I'm not sure why you picked 1300 unless you were just trying to be extra-cautious for some reason?

If lowering the MTU fixed the first crash, and if you really do need a higher MTU to the MetaROUTER, you can probably increase the size of RXBUF_SIZE in mtveth.c and recompile your kernel (make sure that the number you pick is divisible by 8).
Probably this is an another error, but the machine hanged too :(
[    0.000000] unaligned data access 1b61 at   (null)   (null)
[    0.000000] Unhandled kernel unaligned access[#1]:
Yeah, I wondered if you were eventually going to run into this... However, are you sure that the guest was hung after it showed these messages? It might have still been running. Did you try pressing Enter after that to see if you still got a prompt?

Anyway, if you look through the official MikroTik patches for Linux 3.3.5, you will see that throughout various network-stack-related files (in net/ and drivers/net/), the developers wrapped access to certain variables/parts of memory with the get_unaligned() macro. I just looked at the patch provided by user hecke, and he didn't port these changes forward. I suspect that somebody will need to do so in order to get rid of those messages. (I had to backport them to my 2.6.35 kernel to fix similar messages.)

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun Feb 15, 2015 3:27 am

I think my guess on zentavr's original crash was incorrect. I tried increasing MTU on both the host and guest sides and used a known-working kernel, and it didn't crash. (It also was unable to send packets 1600 bytes or larger back-and-forth between host and guest, though, despite the MTU that was set, so I still suspect a link between that RXBUF_SIZE constant and max MTU for vifs.)

Apparently the author of the original AA 12.09 patch also created another one for what was 'trunk' at that time (which a BB release was eventually cut from), which was also based on kernel 3.10. He experienced exactly the same crashes, and it doesn't appear that he ever got the issue sorted out. So something apparently changed in skb between 3.3 and 3.10 that needs to be accounted for.

It might be instructive to compare some ethernet drivers between 3.3 and 3.10 to see what changes had to be made to them.

-- Nathan
 
HighTower
just joined
Posts: 16
Joined: Wed Feb 18, 2015 4:06 pm

Re: Metarouter images

Thu Feb 19, 2015 1:30 pm

I just create new "experimental" repositories for Attitude Adjustment 12.09 build 36088 + ALL packages + Asterisk GUI.

OpenWrt milestone info: https://dev.openwrt.org/milestone/Attit ... nt%2012.09

Modifications:
- Experimental MetaRouter Patch for Kernel 3.3.8
- changed root password to: master
- changed eth0 to DHCP
- changed opkg source to my repositories

MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... tfs.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/attitude_adjustmen ... 8-20140311
PACKAGES:
http://openwrt.wk.cz/attitude_adjustmen ... /packages/
[/url]

Enjoy!
thanks for your job!

is it possible to compile CDR (app and func) modules?
 
hecke
just joined
Posts: 3
Joined: Fri Jan 09, 2015 12:38 am

Re: Metarouter images

Mon Feb 23, 2015 11:40 pm

Uhh... sorry for the broken patch. I haven't tested it in deept - and put the router on the side cause I was lil busy. Now I just checked the forum for any news and found this... shame on me and sorry for your time. I was able to reproduce the crash by sending some traffic over an OpenWRT instance acting as a bridge between two physical interfaces of the RB2011.

I will have a look at it asap. I just had a look into the 3.3.5-patch mentioned by Nathan - I think I will start to incorporate it piece by piece... and as far as I know any unaligned memory access on a mips box should lead to a crash.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue Feb 24, 2015 10:33 am

I just had a look into the 3.3.5-patch mentioned by Nathan - I think I will start to incorporate it piece by piece... and as far as I know any unaligned memory access on a mips box should lead to a crash.
I just noticed that both in OpenWRT trunk and in the Barrier Breaker branch that it looks like somebody already developed similar fixes for the same memory accesses that MikroTik included in their official patch: https://dev.openwrt.org/browser/branche ... acks.patch. Maybe some of them got missed?

-- Nathan
 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: Metarouter images

Thu Feb 26, 2015 11:34 am

Hello,

Any news regarding the installation of asterisk-gui? I still have the error :

root@metarouter:/# opkg install asterisk-gui
Installing asterisk-gui (2.1.0-rc1) to root...
Downloading http://openwrt.wk.cz/attitude_adjustmen ... r-mips.ipk.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for asterisk-gui:
* asterisk18-res-phoneprov * asterisk18-app-meetme * asterisk18-app-page *
* opkg_install_cmd: Cannot install package asterisk-gui.


Thank you in advance for your help.
 
ZestfulImp
just joined
Posts: 2
Joined: Sat Feb 28, 2015 6:58 pm

Re: Metarouter images

Sat Feb 28, 2015 7:11 pm

Hi all,

I'm using OpenWrt as a VM to connect my own openvpn server. (Hardware: RB2011UiAS-2HnD-IN, 6.27)
I have compiled the OpenWrt image according to the guide (http://wiki.mikrotik.com/wiki/Manual:Metarouter) to implement Nathan's solution (http://forum.mikrotik.com/viewtopic.php?t=86765)

To install openvpn I used liquidcz's sources (http://openwrt.wk.cz/trunk/mr-mips/packages) but when I try to connect openvpn it says:
"Sorry, 'Auth' password cannot be read from a file"

And after searching I found out that the openvpn package needs to be compiled with "--enable-password-save" parameter.
(https://forums.openvpn.net/topic9918.html)

So anyone have this version of openvpn or where can I find it ?

BTW I would like to thank to liquidcz and Nathan for their efforts :)
 
ZestfulImp
just joined
Posts: 2
Joined: Sat Feb 28, 2015 6:58 pm

Re: Metarouter images

Mon Mar 02, 2015 10:13 am

Hi all,

I'm using OpenWrt as a VM to connect my own openvpn server. (Hardware: RB2011UiAS-2HnD-IN, 6.27)
I have compiled the OpenWrt image according to the guide (http://wiki.mikrotik.com/wiki/Manual:Metarouter) to implement Nathan's solution (http://forum.mikrotik.com/viewtopic.php?t=86765)

To install openvpn I used liquidcz's sources (http://openwrt.wk.cz/trunk/mr-mips/packages) but when I try to connect openvpn it says:
"Sorry, 'Auth' password cannot be read from a file"

And after searching I found out that the openvpn package needs to be compiled with "--enable-password-save" parameter.
(https://forums.openvpn.net/topic9918.html)

So anyone have this version of openvpn or where can I find it ?

BTW I would like to thank to liquidcz and Nathan for their efforts :)
I installed liquidcz's "Attitude Adjustment 12.09 build 36088 + ALL packages + Asterisk GUI" and from it's sources I installed openvpn. It seems that this version of openvpn supports saved password usage (which means it is already compiled with "--enable-password-save parameter").

Again thanks to liquidcz :)
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Mar 02, 2015 8:50 pm

Any news regarding the installation of asterisk-gui? I still have the error :
* satisfy_dependencies_for: Cannot satisfy the following dependencies for asterisk-gui:
* asterisk18-res-phoneprov * asterisk18-app-meetme * asterisk18-app-page *
As the error message clearly says, this means you do not have the res-phoneprov, app-meetme, and app-page Asterisk packages installed, and asterisk-gui requires those because some features of the GUI won't work without them (e.g., paging/intercom both rely on the Page and MeetMe applications, and phone provisioning/templating won't work without the PhoneProv resource). So install the packages it is telling you about first.

If liquidcz is not building those packages, then he will need to do so for this to work. If he can't find those packages in the OpenWRT buildroot, it is probably because he has only extracted my asterisk-gui package from my patches and didn't extract out the modifications I made to the asterisk-18 package to add new sub-packages that were not originally a part of it.

You can, of course, tell opkg to ignore the dependencies and force it to try to install asterisk-gui anyway (-force-depends; read the manual). A lot of it will probably work, but if several features mysteriously don't work, it's probably because you are trying to use it without satisfying all of the dependencies.

-- Nathan
 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: Metarouter images

Wed Mar 04, 2015 11:42 pm

Hello Nathan,

With your own image all is working perfectly, thank you again :)
 
ivan07
newbie
Posts: 26
Joined: Wed Mar 04, 2015 2:57 am

Re: Metarouter images

Mon Mar 16, 2015 8:22 am

Hi,

I installed openwrt image from liquidcz and openwrt does not see SFP interface :(
Is there a way to use in openwrt images SFP interfaces from RouterOS?
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Mar 16, 2015 8:28 am

I installed openwrt image from liquidcz and openwrt does not see SFP interface :(
Is there a way to use in openwrt images SFP interfaces from RouterOS?
A MetaROUTER doesn't see any interfaces except for the ones that you assign to that MetaROUTER. Also, MetaROUTERs do not have direct control over the interfaces, so they won't see things like link statistics and the like. The physical interface is abstracted from the MetaROUTER. (Thus MetaROUTERs have no idea that a wireless interface is anything other than an ethernet-like interface, for example...you can't run scans, change wireless modes, set SSIDs, etc.)

Best way to make an interface available to a MetaROUTER is to create a virtual interface, assign it to the MetaROUTER, and bridge it to the SFP (or ethernet, or wireless, or whatever) interface.

-- Nathan
 
ivan07
newbie
Posts: 26
Joined: Wed Mar 04, 2015 2:57 am

Re: Metarouter images

Mon Mar 16, 2015 9:16 am

A MetaROUTER doesn't see any interfaces except for the ones that you assign to that MetaROUTER.
yes, I assigned SFP interface to Metarouter:
[admin@MikroTik] /metarouter interface> print
Flags: X - disabled, A - active
# VIRTUAL-MACHINE TYPE STATIC-INTERFACE VM-MAC-ADDRESS
0 A mr2 static ether1
1 A mr2 static sfp1

But it does not appear in openwrt (only eth0-ether1) :(

root@metarouter:/# ifconfig
eth0 Link encap:Ethernet HWaddr
inet addr:10.7.7.13 Bcast:10.7.7.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7547 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7343466 (7.0 MiB) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Also, MetaROUTERs do not have direct control over the interfaces, so they won't see things like link statistics and the like. The physical interface is abstracted from the MetaROUTER.
Yes, I know it but there is only eth0 in openwrt and nothing else :(
Best way to make an interface available to a MetaROUTER is to create a virtual interface, assign it to the MetaROUTER, and bridge it to the SFP (or ethernet, or wireless, or whatever) interface.
thanks for the advice, I will try also this way.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Mar 16, 2015 12:58 pm

Yes, I know it but there is only eth0 in openwrt and nothing else :(
Okay, you didn't explain this. Your problem is not your RouterOS configuration. You need to edit /etc/config/network in OpenWRT and make sure that there is a section for every interface. If you run "ifconfig eth1" you will see that it exists, but it just isn't up and configured to do anything (because you didn't configure it).

You need to read the OpenWRT documentation to learn how to format the OpenWRT network config file correctly.
root@metarouter:/# ifconfig
"ifconfig" by itself on Linux very famously only displays information on "up" interfaces. If the interface is not "up" then it will not show up in the list. You need to do "ifconfig -a" on Linux to show all interfaces, up or not. If you are used to other Unixes, this may come as a surprise, but this is Linux Networking 101. "man 8 ifconfig" should help.

-- Nathan
 
iqt
just joined
Posts: 23
Joined: Fri Jun 07, 2013 11:04 am

Re: Metarouter images

Fri May 08, 2015 9:03 pm

I just had a look into the 3.3.5-patch mentioned by Nathan - I think I will start to incorporate it piece by piece... and as far as I know any unaligned memory access on a mips box should lead to a crash.
I just noticed that both in OpenWRT trunk and in the Barrier Breaker branch that it looks like somebody already developed similar fixes for the same memory accesses that MikroTik included in their official patch: https://dev.openwrt.org/browser/branche ... acks.patch. Maybe some of them got missed?

-- Nathan
I tried to combine the 902-unaligned_access_hacks.patch, hecke's patch and original 3.3.5-patch here: https://github.com/iqt4/openwrt

The good news: system boots, no "unaligned" messages so far. The bad news: the whole system reboots without warning. ROS log entry: System rebooted because of kernel failure

I don't have the knowledge to debug this. Any help is appreciated.

Dirk
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri May 15, 2015 2:18 pm

The good news: system boots, no "unaligned" messages so far. The bad news: the whole system reboots without warning. ROS log entry: System rebooted because of kernel failure
Let's not run ahead of ourselves and make assumptions. This may or may not be because of the patches. You need to do more testing to prove your hypothesis of where the problem lies. Have you tried other OpenWRT MetaROUTER images (NOT Barrier Breaker based, but ones that have been proven solid and are being used on production routers by others) on the same router that you are getting these kernel panics on, and are they stable, or are you seeing similar problems?

In my opinion, a MetaROUTER guest should never be able to cause the host to crash. If it does, then I count that as a RouterOS bug. As I have mentioned in other posts to this forum in the past, I have seen many bizarre things re: MetaROUTER on MIPSBE in recent versions (6.2x) of RouterOS to the point where I don't trust it anymore. What version of RouterOS are you trying this image of yours on, and what model of RouterBoard are you testing against? I can personally vouch for RouterOS 6.9 running on RB450G. If you are running a current version of RouterOS, try downgrading to something before 6.12 and see if those kernel panics of yours go away.

If you run further tests and the kernel panics prove to be specific to this Barrier Breaker image of yours, shoot a copy of a prebuilt image to me (either as a URL or an attachment) via e-mail to nathana@fsr.com and I'll take a look.

-- Nathan
 
iqt
just joined
Posts: 23
Joined: Fri Jun 07, 2013 11:04 am

Re: Metarouter images

Sun May 17, 2015 9:37 pm

The good news: system boots, no "unaligned" messages so far. The bad news: the whole system reboots without warning. ROS log entry: System rebooted because of kernel failure
Let's not run ahead of ourselves and make assumptions. This may or may not be because of the patches. You need to do more testing to prove your hypothesis of where the problem lies. Have you tried other OpenWRT MetaROUTER images (NOT Barrier Breaker based, but ones that have been proven solid and are being used on production routers by others) on the same router that you are getting these kernel panics on, and are they stable, or are you seeing similar problems?

In my opinion, a MetaROUTER guest should never be able to cause the host to crash. If it does, then I count that as a RouterOS bug. As I have mentioned in other posts to this forum in the past, I have seen many bizarre things re: MetaROUTER on MIPSBE in recent versions (6.2x) of RouterOS to the point where I don't trust it anymore. What version of RouterOS are you trying this image of yours on, and what model of RouterBoard are you testing against? I can personally vouch for RouterOS 6.9 running on RB450G. If you are running a current version of RouterOS, try downgrading to something before 6.12 and see if those kernel panics of yours go away.

If you run further tests and the kernel panics prove to be specific to this Barrier Breaker image of yours, shoot a copy of a prebuilt image to me (either as a URL or an attachment) via e-mail to nathana@fsr.com and I'll take a look.

-- Nathan
Nathan, I have a RB450G with ROS 6.25 and OpenWRT AA from liquidcz was running without a problem. Barrier Breaker recently got security patches (and has newer versions, which is not my main focus), that was reason to try it. I don't have a spare Routerboard available to check different ROS versions - my children would kill me if I shut down the internet ;)

I agree with you, that MetaROUTER guest must not crash the host. However, according to autosupout.rif it happens:
19:27:39 system,error,critical System rebooted because of kernel failure
19:27:39 system,error,critical router was rebooted without proper shutdown
Reboot happened approximately every 30 minutes, until I stopped the MetaROUTER. ROS 6.25 was running without a problem for several month (without Barrier Breaker as MetaROUTER).

To conclude: The Mikrotik Wiki is providing a MetaROUTER patch for an ancient release of OpenWRT. liquidcz provides AA (thank you for your work!). hecke and others tried to apply the known patches to recent Barrier Breaker without success (and without support from Mikrotik). As you mentioned, recent versions of ROS (6.2x) do not look very promising at all. Thus, I will stay with my current ROS 6.25 and for missing features I use my age-old Qnap TS-109 running Debain wheezy ;)

Thank you for your support - Dirk
 
mIRCon
just joined
Posts: 5
Joined: Sun May 17, 2015 12:35 pm

Re: Metarouter images

Mon May 18, 2015 2:02 am

Nathan, I have a RB450G with ROS 6.25 and OpenWRT AA from liquidcz was running without a problem. Barrier Breaker recently got security patches (and has newer versions, which is not my main focus), that was reason to try it. I don't have a spare Routerboard available to check different ROS versions - my children would kill me if I shut down the internet ;)

I agree with you, that MetaROUTER guest must not crash the host. However, according to autosupout.rif it happens:
19:27:39 system,error,critical System rebooted because of kernel failure
19:27:39 system,error,critical router was rebooted without proper shutdown
Reboot happened approximately every 30 minutes, until I stopped the MetaROUTER. ROS 6.25 was running without a problem for several month (without Barrier Breaker as MetaROUTER).

To conclude: The Mikrotik Wiki is providing a MetaROUTER patch for an ancient release of OpenWRT. liquidcz provides AA (thank you for your work!). hecke and others tried to apply the known patches to recent Barrier Breaker without success (and without support from Mikrotik). As you mentioned, recent versions of ROS (6.2x) do not look very promising at all. Thus, I will stay with my current ROS 6.25 and for missing features I use my age-old Qnap TS-109 running Debain wheezy ;)

Thank you for your support - Dirk
I can confirm the very same but on RouterOS 6.28 version running hecke's BB image as MetaROUTER.
Even Hecke confirmed it's not stable and needs more patching to make it functional.
I'm also not sure why Mikrotik stopped with providing new patches and modification since it can only make their product better and even more widely used.

By the way, anyone got Liquid's AA with asterisk gui running? It's missing 3 dependency packages and I'm wondering if they can be compiled on our own machines (not sure if they [packages] need some patching as well for AA or we can just patch using standard mips subversion)?
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue May 19, 2015 9:49 am

So, I can also confirm that the BB images floating around cause routers to crash and reboot. For me, on a test 450G, it happens approx. every 4 minutes. It turns out that it is actually causing a kernel panic on the host router. This is not 100% clear when testing on a recent version of RouterOS (6.28 in this case) because it looks like MikroTik developers have suppressed kernel panic output to the console in newer versions (which I'm not sure why they think that helps anybody?!?), but when I downgraded my test router to 6.9, the crashes still happened at the same intervals, and with 6.9 I actually got a kernel panic report on the serial console whenever it happened. After the crash, the watchdog (if enabled) would cause the router to reboot.
I agree with you, that MetaROUTER guest must not crash the host. However, according to autosupout.rif it happens:
I can confirm the very same but on RouterOS 6.28 version running hecke's BB image as MetaROUTER.
Even Hecke confirmed it's not stable and needs more patching to make it functional.
Right, but hecke was referring to the crashes that were happening only within the guest because of OpenWRT kernel bugs, not crashes that were happening on the host, which until now nobody else had even brought up in previous discussions about this image (this is totally new information; all previous discussions about BB instability referred to the guest crashing whenever it received data over the virtual ethernet interface), and which he likely cannot do anything about since fixing this kind of crash is MikroTik's responsibility...I don't know why you would expect that any changes that hecke might make to the BB image would fix the router crashes and reboots. It's certainly possible that he or somebody else might find a way to work around the RouterOS bug by making changes in the BB kernel, but it is a RouterOS bug! If Windows running on top of VMware crashed, and that caused VMware itself to also crash (taking all other running guests down with it), you would not blame the VMware crash on Windows, even if Windows itself was known to be buggy. The host should never crash as a result of something that the guest does, legally or illegally.

Even if the host router was not crashing and rebooting all the time with the BB image, I'm not sure why anybody would want to use this image since the guest itself is constantly kernel panicing whenever it receives network data from the host.

Now, it turns out that the kernel panic occurring on the host is also happening within exactly the same function (skb_put) as when the BB guest's kernel panics, and it is panicing for a very similar reason (packet length received by guest is some ridiculously astronomical value), which is very interesting. It does suggest that if the bug in the guest's kernel is fixed, it might very well also stabilize the host. But that doesn't mean that there isn't still a bug in the host that needs to be fixed.

Here is a sample panic report from the host kernel:
skb_over_panic: text:ceea47bc len:202688 put:202688 head:cefaa800 data:cefaa840 tail:0xcefdc000 end:0xcefaaf40 dev:<NULL>
Kernel bug detected[#1]:
Cpu 0
$ 0   : 00000000 00000000 00000080 c03c0000
$ 4   : 00000001 c03c1418 00000001 c0266a54
$ 8   : 0000000a 00000000 0000000a 20646576
$12   : 00000000 00000001 00000000 00000000
$16   : cefa47a8 ced98d80 cee15c00 00000001
$20   : 000000d0 0000000d 00000080 c03c0000
$24   : 00000002 c0266330                  
$28   : c03b2000 c03b3d00 00000009 c02a59f0
Hi    : 00000000
Lo    : 19d60000
epc   : c02a59f0 skb_put+0x78/0x84
    Not tainted
ra    : c02a59f0 skb_put+0x78/0x84
Status: 1000d203    KERNEL EXL IE 
Cause : 10000024
PrId  : 0001800a (MIPS 24Kc)
Process swapper (pid: 0, threadinfo=c03b2000, task=c03b5c10, tls=00000000)
Stack : ced98e40 ceea47bc 000317c0 000317c0 cefaa800 cefaa840 cefdc000 cefaaf40
        c03958fc c03c0000 00000009 ceea47bc ced98e40 6cb2ecc0 00000000 00000001
        cefa47a8 0000012c c03d0000 c03d0000 c0420000 00000080 c03c0000 c03d0000
        c03d7e88 c02afa74 c040e018 00000fbf 00000000 c010eaa0 ffffe03f c0383e9c
        00000001 00000001 c0410000 c0410000 c040e024 00000100 c040e018 c03c14a0
        ...
Call Trace:
[<c02a59f0>] skb_put+0x78/0x84
[<ceea47bc>] vm_release_queue+0x7a8/0x1468 [net-back@0xceea4000]


Code: 2484595c  0c0ce9ee  01202821 <0200000d> 03e00008  00000000  27bdffc0  afb20020  afb1001c 
---[ end trace dd086ffc4df0a0d9 ]---
Kernel panic - not syncing: Fatal exception in interrupt

panicSaver: dumping panic to flash
flash: erase f
flash: prg f
spi_program_sector 0000000f
Somebody (I suppose this will end up being me...*sigh*) will need to open a bug report with MikroTik with information on how to reproduce, autosupouts created after the crash, and a copy of the BB image that can be used to reproduce this.
I'm also not sure why Mikrotik stopped with providing new patches and modification since it can only make their product better and even more widely used.
I would guess because OpenWRT is a constant moving target that changes kernel versions like every few weeks. MikroTik tends to stick with one kernel and fine-tunes it over the course of an entire release (RouterOS 6.x has used a heavily-patched Linux 3.3.5 kernel for the entirely of the 6.x series). MikroTik trying to keep up with OpenWRT changes would be nuts; I don't blame them one bit for not constantly updating the MR guest patches for OWRT.

Ideally, if OWRT wants MetaROUTER to be a supported platform, then somebody on the OpenWRT development team needs to be the one to keep the MR release working and up-to-date. That's how all of the other officially-supported OWRT platforms work. Do you see any of the other router manufacturers (Linksys, Netgear, etc.) actively contributing to OpenWRT development for their particular products? Yeah, didn't think so. :(
By the way, anyone got Liquid's AA with asterisk gui running? It's missing 3 dependency packages and I'm wondering if they can be compiled on our own machines (not sure if they [packages] need some patching as well for AA or we can just patch using standard mips subversion)?
I tried to address this earlier in this post. The problem is that liquidcz only took the asterisk-gui package from my Kamikaze patch, and did not port over my modified version of the asterisk18 package included in the same patch sets. My asterisk-gui package is not compatible with the stock asterisk18 package from any version of OpenWRT. He will need to port my asterisk18 packages over to his AA buildroot and rebuild the Asterisk packages for his repository. (It looks like -force-depends won't work in this case because there is just too much missing/different between stock OpenWRT asterisk18 and mine.)

Alternatively, you (or anybody else) can take a basic AA buildroot, make whatever changes to it (if any) that liquidcz made to his, copy over my asterisk18 and asterisk-gui packages from my Kamikaze patches that I publish freely, and build your own copy of AA with my Asterisk changes baked in.

-- Nathan
 
mIRCon
just joined
Posts: 5
Joined: Sun May 17, 2015 12:35 pm

Re: Metarouter images

Tue May 19, 2015 10:58 am

I can confirm the very same but on RouterOS 6.28 version running hecke's BB image as MetaROUTER.
Even Hecke confirmed it's not stable and needs more patching to make it functional.
Right, but hecke was referring to the crashes that were happening only within the guest because of OpenWRT kernel bugs, not crashes that were happening on the host, which until now nobody else had even brought up in previous discussions about this image (this is totally new information; all previous discussions about BB instability referred to the guest crashing whenever it received data over the virtual ethernet interface), and which he likely cannot do anything about since fixing this kind of crash is MikroTik's responsibility...I don't know why you would expect that any changes that hecke might make to the BB image would fix the router crashes and reboots. It's certainly possible that he or somebody else might find a way to work around the RouterOS bug by making changes in the BB kernel, but it is a RouterOS bug! If Windows running on top of VMware crashed, and that caused VMware itself to also crash (taking all other running guests down with it), you would not blame the VMware crash on Windows, even if Windows itself was known to be buggy. The host should never crash as a result of something that the guest does, legally or illegally.

Even if the host router was not crashing and rebooting all the time with the BB image, I'm not sure why anybody would want to use this image since the guest itself is constantly kernel panicing whenever it receives network data from the host.

Now, it turns out that the kernel panic occurring on the host is also happening within exactly the same function (skb_put) as when the BB guest's kernel panics, and it is panicing for a very similar reason (packet length received by guest is some ridiculously astronomical value), which is very interesting. It does suggest that if the bug in the guest's kernel is fixed, it might very well also stabilize the host. But that doesn't mean that there isn't still a bug in the host that needs to be fixed.
Exactly, but my point was if they (Mikrotik) isn't much interested in fixing the source of a problem then we (as community, but mostly thinking of you, hacke and liquid as main contributors) can maybe do a temporarily fix just to avoid guest crashes which in the end will avoid host crashes (basically fixing it from the inside-out instead of outside-in as it should be).
I'm also not sure why Mikrotik stopped with providing new patches and modification since it can only make their product better and even more widely used.
I would guess because OpenWRT is a constant moving target that changes kernel versions like every few weeks. MikroTik tends to stick with one kernel and fine-tunes it over the course of an entire release (RouterOS 6.x has used a heavily-patched Linux 3.3.5 kernel for the entirely of the 6.x series). MikroTik trying to keep up with OpenWRT changes would be nuts; I don't blame them one bit for not constantly updating the MR guest patches for OWRT.

Ideally, if OWRT wants MetaROUTER to be a supported platform, then somebody on the OpenWRT development team needs to be the one to keep the MR release working and up-to-date. That's how all of the other officially-supported OWRT platforms work. Do you see any of the other router manufacturers (Linksys, Netgear, etc.) actively contributing to OpenWRT development for their particular products? Yeah, didn't think so. :(
That's very true but there is slight difference in a way that Mikrotik actually provides virtualization enviroment unlike most of mentioned manufacturers of SOHO network equipment. When you're applying OpenWRT ifmrware on such equipment you're losing warranty and support so it's totally user/community based operating system which is running on compatible chipsets and CPUs. Mikrotik, howerver, can be used as host for virtual machines running OpenWRT so it0s a bit different. It's not, by all means, their duty to patch and provide support for every possible build and operating system but it would be nice if they make some patch for at least major versions of most popular OSes or provide more details about it so people can make patches themselves much easier. It's just a suggestion and it's not some kind of forced expectation or a must have option.
By the way, anyone got Liquid's AA with asterisk gui running? It's missing 3 dependency packages and I'm wondering if they can be compiled on our own machines (not sure if they [packages] need some patching as well for AA or we can just patch using standard mips subversion)?
I tried to address this earlier in this post. The problem is that liquidcz only took the asterisk-gui package from my Kamikaze patch, and did not port over my modified version of the asterisk18 package included in the same patch sets. My asterisk-gui package is not compatible with the stock asterisk18 package from any version of OpenWRT. He will need to port my asterisk18 packages over to his AA buildroot and rebuild the Asterisk packages for his repository. (It looks like -force-depends won't work in this case because there is just too much missing/different between stock OpenWRT asterisk18 and mine.)
-- Nathan
Yeah, that sheds more light on the issue. I have seen your post regarding that on a previous page but I was just checking if someone else maybe managed to recompile missing dependencies or provide new ones for Liquid's AA build. It would be too much to actually expect someone who voluntarily did some work and shared it with everyone to do whatever we (the end users / consumer of such a free piece of someone else's code and work) wish and fix whatever we find somehow important or necessary for our own needs, so I just wanted to keep some discussion regarding it just in case someone else's maybe found a solution or so..

By the way, I have tried your Kamikaze based image Nathan and I got host reboots by watchdog as well. It mainly happened when I issued a reboot or poweroff command in guest. Pardon me if I haven't noticed some warning or post about such problem but I did the usual configuring and settings in openWRT instance after which I like to do a reboot and suddenly noticed whole Mikrotik reboot. It's Mikrotik RB2011UiAS-2HnD running on v6.28. It happened twice (for each reboot and poweroff command) and after second host crash I lost gui web interface so I would have to reinstall whole image again for more tests..
Not sure if anyone else who runs Nathan's Kamikaze customized build has encountered similar issues but I'm reporting it in this thread to keep things up to date in one place. I haven't tested it on earlier versions since other Mikrotik RBs I currently have are pretty limited in matter of resources so it's not possible to run metaRouters on them and the main one is actually in production but I use it for occasional tests hoping it won't make much reboots :)

Miron

Edit: discard last two paragraphs because I didn't do my homework with reading previous posts correctly. Reboot issue is addressed in this thread: http://forum.mikrotik.com/viewtopic.php?f=2&t=86765 and I thought that Nathan fixes were applied as well but didn't read carefully how to use it.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue May 19, 2015 2:01 pm

Edit: discard last two paragraphs because I didn't do my homework with reading previous posts correctly. Reboot issue is addressed in this thread: http://forum.mikrotik.com/viewtopic.php?f=2&t=86765 and I thought that Nathan fixes were applied as well but didn't read carefully how to use it.
Just to clarify for everyone, the patch that I provided in that other post does not fix or workaround the RouterOS MR reboot bug. It only enables the ability to send shutdown or reboot command to OpenWRT guests from the host. It is still possible (and likely) that the host will crash and reboot if you shut down or reboot the guest in this way (or any other way).

Supposedly 6.29rc15 finally fixes this RouterOS bug. I have not yet had the chance to test and verify this claim. But if anybody is encountering this problem, they might try to upgrade to the latest 6.29rc release and see if the MR reboot host crash problem goes away.

-- Nathan
 
mIRCon
just joined
Posts: 5
Joined: Sun May 17, 2015 12:35 pm

Re: Metarouter images

Wed May 20, 2015 1:01 pm

Supposedly 6.29rc15 finally fixes this RouterOS bug. I have not yet had the chance to test and verify this claim. But if anybody is encountering this problem, they might try to upgrade to the latest 6.29rc release and see if the MR reboot host crash problem goes away.

-- Nathan
New RouterOS 6.29 (final) can be expected this week, so I will test it for sure, thus no need to test any of it's RCs.
Hopefully more things will be fixed along with bad excessive NAND writes introduced in recent builds so it's some kind of "a must" update anyway...
 
MikroTikFan
Member Candidate
Member Candidate
Posts: 203
Joined: Sat Aug 02, 2014 1:13 am

Re: Metarouter images

Tue Nov 24, 2015 8:56 pm

I need to setup OpenVPN UDP connection to OpenWRT router.
Afrer last fix to SSL bugs probably I need last version of openwrt.

Please help me and provide last openwrt image for RB2011UiAS


Thank's in advance!
 
jinzhanhua
just joined
Posts: 9
Joined: Sun Nov 22, 2015 6:05 am

Re: Metarouter images

Wed Nov 25, 2015 4:53 am

liquidcz
I tried another ether, but my lan dhcp dont work. Work only on ether1. Metarouter catch ip from isp dhcp server. Pings and so on work perfect.
May be root of problem is droped packets in eth0 interface, how can i diagnostic why packets drop?

P.S. can you add nano text editor at next builds? vi not friendly for me...
Well, lets try to create dynamic metarouter interface and bridge it with ether2.

Ad nano,.. just opkg update, opkg install nano .
liquidcz, hehey!!! it work!!! DHCP not work again, but i configure interface manualy.

But another one question. When i try to ping mikrotik host, i see latency over 1-10ms. It normal?
And in repo broken depencies
Installing asterisk-gui (2.1.0-rc1) to root...
Downloading http://openwrt.wk.cz/attitude_adjustment/mr-mips/packages/asterisk-gui_2.1.0-rc1_mr-mips.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for asterisk-gui:
 * 	asterisk18-res-phoneprov * 	asterisk18-app-meetme * 	asterisk18-app-page * 
 * opkg_install_cmd: Cannot install package asterisk-gui.

Hi,
DHCP of dnsmasq didn't work under my CRS125 too.
you can install isc-dhcp-server-ipv4 package.
I tested ok.
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Tue Dec 15, 2015 2:34 am

Edit: discard last two paragraphs because I didn't do my homework with reading previous posts correctly. Reboot issue is addressed in this thread: http://forum.mikrotik.com/viewtopic.php?f=2&t=86765 and I thought that Nathan fixes were applied as well but didn't read carefully how to use it.
Just to clarify for everyone, the patch that I provided in that other post does not fix or workaround the RouterOS MR reboot bug. It only enables the ability to send shutdown or reboot command to OpenWRT guests from the host. It is still possible (and likely) that the host will crash and reboot if you shut down or reboot the guest in this way (or any other way).

Supposedly 6.29rc15 finally fixes this RouterOS bug. I have not yet had the chance to test and verify this claim. But if anybody is encountering this problem, they might try to upgrade to the latest 6.29rc release and see if the MR reboot host crash problem goes away.

-- Nathan

I'm on 6.32.3 and the host is still crashing when traffic is received over the Vif.....

Been searching the forums for updates on this topic with no luck.... anyone have any news about it?

Mikrotik perhaps? hello? years for fixing a bug? really?

Thanks,
Nico
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Tue Dec 15, 2015 2:41 am

liquidcz,

Would you mind compiling a package for me please? I need the latest package possible for OpenConnect (http://www.infradead.org/openconnect/) for your most stable build (I think it was kamikaze that didn't crash the host or reboot.)

Thanks A LOT in advance, I'm not a unix guy and even tried building my own images, but it was overwhelming and a very big challenge to even start the building env... I'd really appreciate you building up that package for me, older versions just don't work for me, I think I need >6.x.

Thank you!
Nico
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Tue Dec 15, 2015 10:23 pm

 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Tue Dec 15, 2015 11:59 pm


erm well.. nope, it's not there ... that's v4.08. Already tried it and does not work for my need, that's why I'm asking for a version >=6.x. Latest is v7.06...

And not sure if AA was still having host crashes...

Thanks for commenting anyway.
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Wed Dec 16, 2015 10:36 pm

My bad, I didn't see you were mentioning a version.
 
Chega
just joined
Posts: 16
Joined: Fri Dec 04, 2015 12:18 pm

Re: Metarouter images

Wed Feb 03, 2016 10:44 pm

Hi all. Two days I build openwrt image with different version of OpenWRT... but stability of build images very bad... some times services crashed, some times router go to cyclical reboot...(I was trying Barrier Breaker 14.07, Attitude Adjustment 12.09 and kamikaze). I need one minimal openwrt vm on my 2011uias-2hnd-in with mosquitto(mqtt broker) package and with max stability...anyone can advise me where I can download such image with such stability? Or suggest what build of OpenWrt choose for builder to build Stable minimal image for virtualization?
 
ApelPro
just joined
Posts: 2
Joined: Sun Feb 21, 2016 9:08 am

Re: Metarouter images

Sun Feb 21, 2016 9:48 am

Hello!

I'm Install OpenWRT in Metarouter and configure it. But the opkg source not found (wget returned 1). The network is okay I think, I can ping sites: facebook.com, google.com.. I'm test downloads.openwrt.com and get IP from DNS, but can't ping that ip. After test it from realPC, I can't ping it. I think the site is dead (or don't answer the ICMP packet I know, but why?). In opkg.conf "http://downloads.openwrt.org/snapshots/ ... s/packages" the default, but I'm search a lot and find things to use like".../generic/packages", ".../packages/packages" after try to add this line "src/gz metarouter http://openwrt.pantele.com.ua/trunk/metarouter/packages" but doesn't work... The DNS server can't translate openwrt.pantele.com.ua..

OpenWRT close aid for metarouter or I'm doing something wrong?

I am not add a password to root but it's funny if it is the problem... :)

Has anyone can help me?

Thanks, and sorry for horrible english. :D
 
Chega
just joined
Posts: 16
Joined: Fri Dec 04, 2015 12:18 pm

Re: Metarouter images

Tue Feb 23, 2016 12:10 am

Hello!

I'm Install OpenWRT in Metarouter and configure it. But the opkg source not found (wget returned 1). The network is okay I think, I can ping sites: facebook.com, google.com.. I'm test downloads.openwrt.com and get IP from DNS, but can't ping that ip. After test it from realPC, I can't ping it. I think the site is dead (or don't answer the ICMP packet I know, but why?). In opkg.conf "http://downloads.openwrt.org/snapshots/ ... s/packages" the default, but I'm search a lot and find things to use like".../generic/packages", ".../packages/packages" after try to add this line "src/gz metarouter http://openwrt.pantele.com.ua/trunk/metarouter/packages" but doesn't work... The DNS server can't translate openwrt.pantele.com.ua..

OpenWRT close aid for metarouter or I'm doing something wrong?

I am not add a password to root but it's funny if it is the problem... :)

Has anyone can help me?

Thanks, and sorry for horrible english. :D
Use this...Luke
#src/gz packages http://download.bmsoft.de/mikrotik/12.0 ... -mips/pack

#src/gz packages http://openwrt.wk.cz/attitude_adjustmen ... s/packages
 
ApelPro
just joined
Posts: 2
Joined: Sun Feb 21, 2016 9:08 am

Re: Metarouter images

Sun Feb 28, 2016 9:46 am

Thank you for your answer! And sorry..
I can solve problem, downloaded other OpenWRT and copy the string from opkg.conf, then installed back the Kamikaze and put the string into opkg.conf. That's works fine. :)
 
irghost
Member
Member
Posts: 302
Joined: Sun Feb 21, 2016 1:49 pm

Re: Metarouter images

Thu Jul 07, 2016 9:27 pm

how can i install virtual linux on RB951
i need to run php on this virtual to control hotspot
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Thu Jul 07, 2016 10:10 pm

how can i install virtual linux on RB951
i need to run php on this virtual to control hotspot
Let me google that for you: http://bfy.tw/6dek
All the upcoming questions you will run into have an answer right on this thread... Read it, doesn't hurt. :)
 
irghost
Member
Member
Posts: 302
Joined: Sun Feb 21, 2016 1:49 pm

Re: Metarouter images

Thu Jul 07, 2016 11:39 pm

how can i install virtual linux on RB951
i need to run php on this virtual to control hotspot
Let me google that for you: http://bfy.tw/6dek
All the upcoming questions you will run into have an answer right on this thread... Read it, doesn't hurt. :)
u know i don't have time to search all of this topic
little busy
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Fri Jul 08, 2016 1:09 pm

One of the funniest answer I have ever read: your time is worth less than mine so please do the searching for me.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Metarouter images

Fri Jul 08, 2016 3:08 pm

Many of people are like this here... Shame on them.
 
irghost
Member
Member
Posts: 302
Joined: Sun Feb 21, 2016 1:49 pm

Re: Metarouter images

Sat Jul 09, 2016 12:14 am

Many of people are like this here... Shame on them.
there is so much spam post  like ur post
so its hard to find my answer in 7 page ( 40 post for each )
i find my answer in YouTube video not in ur spams
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Metarouter images

Sat Jul 09, 2016 7:32 am

I am sorry to be responsible for your inability to search. What other of your insufficiencies am I responsible for in addition?
 
vortex
Forum Guru
Forum Guru
Posts: 1092
Joined: Sat Feb 16, 2013 6:10 pm

Re: Metarouter images

Sat Jul 09, 2016 1:50 pm

I am confused by virtual interfaces and firewall.

What are the steps needed to add avahi forwarding between 2 routerboard interfaces?

Thanks
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Sat Jul 09, 2016 5:59 pm

I guess you will have to bridge your virtual interfaces with each vlan into which it should belong so avahi can broadcast frames on both vlans.
 
vortex
Forum Guru
Forum Guru
Posts: 1092
Joined: Sat Feb 16, 2013 6:10 pm

Re: Metarouter images

Sun Jul 10, 2016 12:25 am

I failed completely at performing a basic OpenWRT networking configuration allowing me to ping the routerboard.

Is there a web interface?
 
maaboo
just joined
Posts: 8
Joined: Sat Jul 30, 2016 6:57 pm

Re: Metarouter images

Sat Jul 30, 2016 8:17 pm

Is it possible to run Chaos Calmer 15.05.1 as Metarouter? I haven't seen any references.
 
BeepDog
just joined
Posts: 10
Joined: Tue Jan 21, 2014 3:41 am

Re: Metarouter images

Tue Aug 09, 2016 7:02 am

I too am looking for a way to run mr-ppc images with the latest version. I'd love to get something working so that I can build my own image. I've tried some things, but I run into many build failures that I'm not really sure what they mean. And openwrt is on github now too.

What I've done so far:

Git clone https://github.com/openwrt/openwrt and then update the packages from: https://github.com/openwrt/packages following the instructions there.

I then applied a 1.3 patch that I found other people had made elsewhere on the forums: http://www.kriskinc.com/mikrotik-metarouter referencing this post: http://forum.mikrotik.com/viewtopic.php?t=75849#p382330

And then make menuconfig, and make. It usually fails trying to build the kernel...

EDIT:

actually on 15.05.01 I managed not even to get to the kernel building part:
gdate.c: In function 'g_date_strftime':
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~
cc1: some warnings being treated as errors
EDIT: I got past the strftime error by using 15.05, not 15.05.1.

And then that gets me this error, which is *also* new to me, but it's late and I'm tired, so more research will have to happen tomorrow.
make[4]: Entering directory '/home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10'
#
# configuration written to .config
#
*** Default configuration is based on 'sandbox_defconfig'
make[4]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10'
make -C /home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10 tools-only
make[4]: Entering directory '/home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10'
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  GEN     include/autoconf.mk
In file included from include/linux/compiler.h:54:0,
                 from /home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10/arch/sandbox/include/asm/bitops.h:20,
                 from include/linux/bitops.h:110,
                 from /home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10/include/common.h:20:
include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
 #include gcc_header(__GNUC__)
                              ^
compilation terminated.
make[6]: *** [/home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10/scripts/Makefile.autoconf:64: include/autoconf.mk] Error 1
make[5]: *** [/home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10/Makefile:464: silentoldconfig] Error 1
make[4]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
make[4]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10'
make[3]: *** [Makefile:48: /home/dkowis/gitwork/metarouter/openwrt/build_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt/tools/mkimage'
make[2]: *** [tools/Makefile:123: tools/mkimage/compile] Error 2
make[2]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt'
make[1]: *** [tools/Makefile:121: /home/dkowis/gitwork/metarouter/openwrt/staging_dir/target-powerpc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynynyy] Error 2
make[1]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt'
make: *** [/home/dkowis/gitwork/metarouter/openwrt/include/toplevel.mk:183: world] Error 2

Final edit of tiredness:
Build doesn't support gcc6. That's the problem. I'm going to have to get gcc5 set up on here or something.
 
BeepDog
just joined
Posts: 10
Joined: Tue Jan 21, 2014 3:41 am

Re: Metarouter images

Sun Aug 14, 2016 6:15 pm

Okay, made some progress after setting up an ubuntu 16.04.1 system. Unfortunately, I haven't made much progress. I am having trouble with the kernel config
make kernel_menuconfig
is how you configure the kernel for your target, unfortunately that errors. I can run the menuconfig, but something having to do with it's saving isn't working.

I have saved the kernel config to an alternate location, so maybe I can figure out how it injects it, and then get that working. Something obviously isn't quite right.
#
# configuration written to .config
#


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

make[3]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt/build_dir/target-powerpc_uClibc-0.9.33.2/linux-mr-ppc/linux-3.3.8'
/home/dkowis/gitwork/metarouter/openwrt/scripts/kconfig.pl '>'   /home/dkowis/gitwork/metarouter/openwrt/build_dir/target-powerpc_uClibc-0.9.33.2/linux-mr-ppc/linux-3.3.8/.config > /home/dkowis/gitwork/metarouter/openwrt/target/linux/mr-ppc/config-3.3
Parse error at /home/dkowis/gitwork/metarouter/openwrt/scripts/kconfig.pl line 137, <FILE> line 856.
Makefile:19: recipe for target 'menuconfig' failed
make[2]: *** [menuconfig] Error 255
make[2]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt/target/linux/mr-ppc'
Makefile:13: recipe for target 'menuconfig' failed
make[1]: *** [menuconfig] Error 2
make[1]: Leaving directory '/home/dkowis/gitwork/metarouter/openwrt/target/linux'
/home/dkowis/gitwork/metarouter/openwrt/include/toplevel.mk:134: recipe for target 'kernel_menuconfig' failed
make: *** [kernel_menuconfig] Error 2
 
pe1chl
Forum Guru
Forum Guru
Posts: 10231
Joined: Mon Jun 08, 2015 12:09 pm

Re: Metarouter images

Sun Aug 14, 2016 7:10 pm

BeepDog: I would be interested as well in a modern, generic Linux image instead of the OpenWRT thing.
 
HighTower
just joined
Posts: 16
Joined: Wed Feb 18, 2015 4:06 pm

Re: Metarouter images

Fri Aug 26, 2016 11:40 pm

and what is the latest revision of opewrt which can be compiled to use in metarouter?
 
CsXen
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed Sep 10, 2014 8:31 pm
Location: Budapest - Hungary

Re: Metarouter images

Fri Sep 09, 2016 10:33 pm

Hi.
Has anybody a working (almost current) OpenWRT image for MetaRouter with a working FFMPEG package for mr-mips platform ?
(Or a working samplicator package... it would be sufficient for me, to clone UDP packets to their destinations.)

Best regards: CsXen
 
expert
Frequent Visitor
Frequent Visitor
Posts: 97
Joined: Sun Dec 04, 2016 1:22 pm

Re: Metarouter images

Sun Dec 04, 2016 1:35 pm

Latest images found there: http://openwrt.wk.cz/
 
expert
Frequent Visitor
Frequent Visitor
Posts: 97
Joined: Sun Dec 04, 2016 1:22 pm

Re: Metarouter images

Mon Dec 05, 2016 10:44 am

Do exists some more images other than OpenWRT?
Found short note on Debian/DebWRT http://dev.debwrt.net/ticket/274 but there seems not be any progress.
It it possible to run RouterOS in metarouter?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10231
Joined: Mon Jun 08, 2015 12:09 pm

Re: Metarouter images

Mon Dec 05, 2016 4:18 pm

For running RouterOS in MetaRouter you don't need an image! That is the default image.
 
expert
Frequent Visitor
Frequent Visitor
Posts: 97
Joined: Sun Dec 04, 2016 1:22 pm

Re: Metarouter images

Mon Dec 05, 2016 7:43 pm

For running RouterOS in MetaRouter you don't need an image! That is the default image.
Are you sure? It does not work for me. It's RB450G, ROS 6.37.2.
[expert@rb] /metarouter> add name="test" memory-size=32
[expert@rb] /metarouter> console test 
[Ctrl-A is the prefix key]

Starting...
Generating SSH 2048bit RSA host key...
Generating SSH 1024bit DSA host key...
Starting services...
info failed: std failure: timeout (13)
 
lojzik
just joined
Posts: 6
Joined: Thu Jan 31, 2013 8:33 pm

Re: Metarouter images

Thu Jan 19, 2017 11:05 am

Is there some stable openwrt image for 6.38.1(951G-2HnD)? I tried different version from http://openwrt.wk.cz/ (AA, trunk) on some last few ROS versions and it's very unstable with:
"system,error,critical router was rebooted without proper shutdown by watchdog timer"
 
expert
Frequent Visitor
Frequent Visitor
Posts: 97
Joined: Sun Dec 04, 2016 1:22 pm

Re: Metarouter images

Thu Jan 19, 2017 11:39 am

Is there some stable openwrt image for 6.38.1(951G-2HnD)? I tried different version from http://openwrt.wk.cz/ (AA, trunk) on some last few ROS versions and it's very unstable with:
"system,error,critical router was rebooted without proper shutdown by watchdog timer"
It seems that OpenWRT under metarouter not supported by neither MikroTik (anymore) nor by OpenWRT upstream project.
Personally I would not rely on thirdparty sources for any production environments.
 
VK2XXY
newbie
Posts: 25
Joined: Mon Jun 15, 2015 5:01 am

Re: Metarouter images

Tue Sep 19, 2017 6:39 am

Is IPv6 operational in any of these OpenWRT images?
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Fri Jan 05, 2018 8:26 pm

Hi everyone, I had many problems with metarouters when I had Asterisk . But last month I tried again and it works fine . I can use it but Im worried to set it up in other places.
Nice!! Could you please share with us which RoterOS and OpenWRT versions did you use? if possible also include what repositories

Thanks
 
itmethod
newbie
Posts: 34
Joined: Tue Feb 18, 2014 8:44 pm

Re: Metarouter images

Thu May 10, 2018 6:02 pm

As you know, new RouterOS versions now support other OS images for MetaRouter, so we welcome you - the users - to try this, and make new images that work. If you share your ready made images, that actually work with RouterOS MetaRouter, and add meaningful features (for example Asterix for VOIP, IPcop for firewall etc.), I will give you a Level6 license for an article in the Wiki and the Image.
I have created an OpenWRT metarouter image that comes with anonymity software Tor and Privoxy pre-installed and configured. Wiki article is available in the wiki at http://wiki.mikrotik.com/wiki/Use_Metar ... y_Software which describes how to set up a NAT network that uses Tor to protect user privacy.
The image link for that wiki article is broken.
 
alli
newbie
Posts: 37
Joined: Tue Jan 24, 2017 5:43 pm

Re: Metarouter images

Thu May 31, 2018 5:56 pm

This is lede for metaroute:
https://github.com/cuihaoleo/lede-mr-mips
 
cusco
newbie
Posts: 34
Joined: Tue Jun 29, 2010 2:34 pm

Re: Metarouter images

Tue Aug 14, 2018 7:03 pm

This is lede for metaroute:
https://github.com/cuihaoleo/lede-mr-mips
Any pre-built images available?
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Tue Aug 14, 2018 7:21 pm

This is lede for metaroute:
https://github.com/cuihaoleo/lede-mr-mips
Any pre-built images available?
Same here, I'm completely new to building a kernel... I can barely install ubuntu from a livecd LOL.So using someone else build+packages would be greatly appreciated.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10231
Joined: Mon Jun 08, 2015 12:09 pm

Re: Metarouter images

Tue Aug 14, 2018 7:39 pm

I think Metarouter running something else than RouterOS is a long abandoned concept...
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: Metarouter images

Tue Aug 14, 2018 10:56 pm

I think Metarouter running something else than RouterOS is a long abandoned concept...
Unfortunately I think yo're right...we all got so excited when CCR came out that it could be an inexpensive hypervisor but I don't think it will happen.
 
starter48
just joined
Posts: 1
Joined: Tue Dec 12, 2017 6:19 am

Re: Metarouter images

Wed Aug 15, 2018 5:14 am

This is lede for metaroute:
https://github.com/cuihaoleo/lede-mr-mips
Any pre-built images available?
For RB2011: viewtopic.php?f=15&t=128998 it does work with ROS v6.42.6
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Aug 15, 2018 12:21 pm

Even MetaROUTER running RouterOS inside of itself seems to be a long-abandoned concept. The problems with stability are endemic to MetaROUTER itself and don't have anything to do with the OpenWRT patches. There are so many unaddressed stability bugs that affect MetaROUTER both on mipsbe and ppc that it is unusable even for RouterOS-as-guest.

For when I need a good value single-board-computer, I still use RouterBoards, but simply replace RouterOS with OpenWRT entirely. In some cases this means I install 2 RouterBoards for a customer instead of 1: one RouterBoard to run RouterOS and do routing, and a second RouterBoard to run OpenWRT and whatever custom applications the client needs. Twice as expensive, but at least it is completely stable. It would be nice to be able to put everything on one device, but v7 is still vaporware and MetaROUTER on v6 has so much bit-rot at this point that I don't see that happening anytime soon.

-- Nathan
 
talz
newbie
Posts: 49
Joined: Wed Mar 15, 2017 9:01 pm

Re: Metarouter images

Wed Oct 31, 2018 10:59 pm

hi guys.

I work for a company that heavily uses mikrotiks, and as one of the only software developers that works for my company, I've written tons of code using the mikrotik scripting language. Unfortunately, it is by far the worst programming/scripting language I have ever had the displeasure of working with. I could write a book on all the things that it does, or is missing that annoy me. I have been looking for a way to run Python on a mikrotik forever, and was aware that you could replace RouterOS with OpenWRT completely, but we have too many techs that know how to use RouterOS, and don't know how to use Linux, to be able to remove RouterOS from our devices completely.

Recently, I was able to get OpenWRT running in metarouter, and actually install Python2.7. I was then able to use some python routeros libraries to talk to the host mikrotik device using the mikrotik API! In theory, that means I can replace all my mikrotik scripts that run on the device itself with Python scripts that run in metarouter, and Python can perform all the logic, like checking if WAN links are up or down, changing routes between WAN links, sending email alerts about rogue DHCP servers, and whatever else needs doing.

Nathan's comment about MetaRouter not being stable is concerning however. It would be amazing if I could use Python, but not if it means we're going to have stability issues. So far, in my testing, I haven't come across any obvious stability issues, but I've only been play around with metarouter for the past day or two.

What kind of issues are common with running OpenWRT on metarouter?
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Wed Oct 31, 2018 11:38 pm

Hey Talz,

Nice to see you are also trying to leverage this great (but unfortunately abandoned) feature.

If your read through the entire thread you will find the most common issue is the metarouter guest OpenWRT kernel crashing, causing the host (yes, your actual, real, physical MK router) crash as well.
Believe it or not.

I think there was one OpenWRT version not crashing but with some other issues I don't recall right now.

Hope you hit the correct version and results are stable for your implementation. Please stay around and share any good or bad news you might have.

Regards, thank you!
Nico
 
talz
newbie
Posts: 49
Joined: Wed Mar 15, 2017 9:01 pm

Re: Metarouter images

Wed Oct 31, 2018 11:51 pm

Interesting...

It seems like I actually ran into that yesterday. I think I was using http://openwrt.wk.cz/trunk/mr-mips/open ... 079.tar.gz.
It worked for a bit, and then my RB493 started booting up, and then losing power after a few seconds and rebooting.
My 493 wasn't new - it was just out of the box of our old devices, so I figured there was probably something wrong with it, but this would explain it.

I later tried openwrt-mr-mips-rootfs-31411-basic.tar.gz, and that seemed to be working fine. I don't think it has died once today.
 
talz
newbie
Posts: 49
Joined: Wed Mar 15, 2017 9:01 pm

Re: Metarouter images

Thu Nov 01, 2018 12:27 am

This may already be covered at some point in the previous 8 pages of this thread, but this has been my experience over the past 24 hours trying to get Python running in Metarouter on RB493AH:

Working Image: http://openwrt.wk.cz/trunk/mr-mips/open ... sic.tar.gz
RouterOS Version: RouterOS v6.40.9

Had no problems copying the image to my 493, going to MetaRouter, importing it, and starting it up.
I created a dynamic interface for it under Metarouter --> Interfaces, and added vif1 to my LAN bridge on the 493.
This let OpenWRT grab an IP using its DHCP client, which was already running.
It did NOT configure a DNS server automatically however - not sure why, so I added "nameserver 8.8.8.8" to /etc/resolv.conf.
I don't know if I just missed something, or if it's some sort of bug - I didn't really look into it too hard.

At this point, I had internet, which let me download and install python 2.7, and its requirements:
wget http://openwrt.wk.cz/trunk/mr-mips/packages/libpthread_0.9.33-104_mr-mips.ipk
wget http://openwrt.wk.cz/trunk/mr-mips/packages/zlib_1.2.5-1_mr-mips.ipk
wget http://openwrt.wk.cz/trunk/mr-mips/packages/libffi_3.0.10-1_mr-mips.ipk
wget http://openwrt.wk.cz/trunk/mr-mips/packages/python-mini_2.7.3rc2-2_mr-mips.ipk
wget http://openwrt.wk.cz/trunk/mr-mips/packages/python_2.7.3rc2-2_mr-mips.ipk

opkg install *.ipk

rm -v *.ipk

This should give you working python2.7.
To talk to the host mikrotik using Mikrotik API, you have a few choices:

  1. https://github.com/rtician/routeros
  2. https://github.com/socialwifi/RouterOS-api

Option 1 is a project that doesn't seem to have any SSL support (can't use the Mikrotik API SSL protocol), so it should work out of the box.
Option 2 is slightly harder to get to work.

In both cases, the problem you'll likely run into is SSL. OpenWRT keeps things lean, and doesn't include SSL support out of the box.
As far as I can tell, normally, you can install SSL using opkg without much effort. Unfortunately, http://openwrt.wk.cz/trunk/mr-mips/packages/, which is a repository of pre-built packages that will work on the MIPS CPU the RB493AH has, does not appear to have the SSL package. This means:
  • You can't use wget to download anything that starts with https (SSL encrypted web pages)
  • You need to modify RouterOS-api to disable SSL support, or it won't run

To get around the fact that you can't download anything from HTTPS, I just downloaded stuff on a different computer, and used SCP to copy it over to OpenWRT.
Note: OpenWRT's tar also didn't seem to like extracting some of the packages I was downloading, so if you have a .tar.gz file you need to extract, you might need to extract it on a different machine and scp it as an extracted folder.

To get around RouterOS_api having built-in SSL support, which causes "import routeros_api" to fail (complains about importing of _ssl), you need to disable ssl. Find and modify api_socket.py in that project, and do 2 things:
  • Comment out "import ssl"
  • In get_socket(), right before this line
    • if ssl_context is None and use_ssl:
    add this:
    • if ssl_context or use_ssl: raise Exception("SSL not supported on OpenWRT")

It's probably enough to just comment out the import line, but I added a bit of extra code in case I ever forget, and try to use api_ssl.
At this point, as long as your current working directory has the routeros_api folder in it, you should be able to import routeros_api and use it.
If you want to install routeros_api system-wide, you can either move the entire routeros_api dir anywhere that's in python's sys.path (I haven't tried this, but it'll probably work), or use Python's SetupTools.

To use SetupTools, which is actually required in order to install a bunch of packages from PyPi, you can do this:
  • Download the setup tools zip file from https://pypi.org/project/setuptools/#files on any other machine
  • Extract it
  • SCP the extracted folder to OpenWRT
  • cd into that folder on openwrt
  • Run "python setup.py install"
  • Delete the setup tools folder to save space - it's now installed system-wide

At that point, you can go back to the RouterOS_API directory, and run "python setup.py install" on that, which will install it system-wide.
If it complains about failing to import "six", you can download that from pypi and install it with "python setup.py install" just like everything else.

Having setuptools installed will let you download and install many of the packages found on pypi's website.
It seems like most packages work, as long as they don't have C binaries that need to be compiled first - OpenWRT doesn't have a gcc compiler pre-installed.

You can even download and install pip from pypi, and it seems to work fine, except for the fact that the pypi repos are ssl-protected, and with OpenWRT not having SSL support, pip fails to fetch anything.

SSL isn't totally essential for what I'm trying to do, but my 493 should have plenty of hard drive space for it (about 70MB free - I would think it would fit), so it would be nice to have. Unfortunately, as far as I can tell, the only way to get it working is to use the toolchain to cross-compile ssl binaries on a different system, and move them to OpenWRT, unless someone out there is nice enough to do this and put them online. I haven't tried this yet - maybe I will at some point.

Essentially, what this lets you do is install any packages from github or pypi that are pure python. If you need to do mikrotik discovery using MNDP, or talk to a mikrotik using mac telnet, have a look at https://github.com/pjoe/py-mactelnet. Its MNDP script is pure python, and works great. It's mac-telnet script uses netifaces, which is a C module, making it not work out of the box, but as far as I can tell, the only thing netifaces does is make it easier for the mac-telnet script to grab the MAC and IP of the interfaces on OpenWRT, which can be done without netifaces, so it probably wouldn't take much effort to remove the dependency on netifaces.

If this is interesting to anyone, but they're having trouble following my rushed explanation, let me know, and I'll try to clarify.
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Thu Nov 01, 2018 1:48 am

Interesting, Talz... very!

I've been mostly playing around with the API via PHP annd externally only, but I like the idea of having my custom app "inside" the Routeros either to use python instead of embedded scripting or to develope some custom feature.

I follow you on the missing SSL libs, you can always start from scratch and build your own OpenWRT patching as instructed in the official metarouter documentation or using some of the modified patching scripts available on this thread for newer kernels. With that, you can get whatever openwrt packages you want pre-installed, all of them, or just build your own repo and be so nice to put it on the internet available for all the dums like me not being able to build a system on my own! :P (true story)
 
td32
Member Candidate
Member Candidate
Posts: 111
Joined: Fri Nov 18, 2016 5:55 am

Re: Metarouter images

Thu Nov 01, 2018 1:51 am

i think you can get the ssl packages directly from the openwrt website, available with each release
example
https://archive.openwrt.org/chaos_calmer/15.05/ar71xx/mikrotik/packages/
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Thu Nov 01, 2018 3:29 am

i think you can get the ssl packages directly from the openwrt website, available with each release
example
https://archive.openwrt.org/chaos_calmer/15.05/ar71xx/mikrotik/packages/

But would those work for the patched kernel? Also, how would you manage dependencies? Sorry about my ignorance, I'm most likely asking silly questions...
 
talz
newbie
Posts: 49
Joined: Wed Mar 15, 2017 9:01 pm

Re: Metarouter images

Thu Nov 01, 2018 6:06 pm

i think you can get the ssl packages directly from the openwrt website, available with each release
example
https://archive.openwrt.org/chaos_calmer/15.05/ar71xx/mikrotik/packages/

The release we are working with is Attitude Adjustment (12.09), so I guess the repo for that would be:

https://archive.openwrt.org/attitude_ad ... 09/ar71xx/

I don't see any SSL packages in that repo.
There are packages with the word "ssl" in the name, but those are just SSL modules for specific software, which I assume would all depend on a system ssl package that needs to be installed, which I can't find.

Edit: I think I found it. openssl-util_1.0.1e-1_ar71xx.ipk. I'm gonna give it a try.
Edit 2: opkg says "Packages for openssl-util found, but incompatible with the architectures configured"

What's the relation between MIPS, and AR71xx?
We use a lot of devices like 493s, 751s, 750s, 912s, and 52HPn grooves, all of which are MIPSBE.
If we need to use gcc to compile binaries, do they need to be AR71xx? MIPS? MIPSBE?

Almost all software I write is for regular x86_64, so I don't usually have to deal with different CPU architectures.

It looks like the RB493AH has an AR7161 CPU, which I guess falls within AR71xx.
What's an architecture? A CPU can have more than one architecture? It sounds like it, since the repo is for AR71xx, but it is complaining that the architecture doesn't match.
 
td32
Member Candidate
Member Candidate
Posts: 111
Joined: Fri Nov 18, 2016 5:55 am

Re: Metarouter images

Thu Nov 01, 2018 9:15 pm

what about this
http://openwrt.wk.cz/trunk/mr-mips/packages/openssl-util_1.0.1-1_mr-mips.ipk
 
talz
newbie
Posts: 49
Joined: Wed Mar 15, 2017 9:01 pm

Re: Metarouter images

Thu Nov 01, 2018 10:29 pm

Bloody safari!

I did a search in my safari browser on that page for ssl. Turns out it only showed me words that started with ssl! Anything separated by a - or a _ was considered a new word, so it found some ssl packages, but not the main openssl package!

I totally missed it.

Trying it now. It installs fine with opkg, assuming you grab its dependencies as well:
opkg install libopenssl_1.0.1-1_mr-mips.ipk openssl-util_1.0.1-1_mr-mips.ipk zlib_1.2.5-1_mr-mips.ipk

Initially, wget still couldn't download https stuff, but that's probably because by default, that openwrt image comes with wget-nossl.
Installing the regular wget from that same repo fixed the issue, and wget works fine with https now.

Unfortunately, it doesn't appear that this fixes Python's inability to use ssl. Doing "import ssl" complains about a missing _ssl module. My iMac has a _ssl.so file that lets it import "_ssl", but I can't copy it over since that's compiled for a different architecture. Maybe one of the other packages has this. I'll look around some more.
 
moham96
newbie
Posts: 33
Joined: Thu Dec 21, 2017 3:08 pm

Re: Metarouter images

Mon Mar 18, 2019 8:03 pm

Hi,
why doesn't mikrotik push their changes to mainline linux and official openwrt instead of releasing a patch for each version ? I hope Mikrotik engineers can provide us with an answer.
this will ensure that the metarouter will always be supported,and maintained by linux kernel experts, all bugs will be ironed and fixed upstream.
sending patches to mainline linux is a bit of a long process but it's well worth it.

Regards
 
User avatar
flaviojunior
Trainer
Trainer
Posts: 21
Joined: Thu Nov 17, 2016 6:27 pm
Location: Brazil
Contact:

Re: Metarouter images

Wed Mar 20, 2019 3:12 pm

Any news about update MetaRouter on RouterOS?
It's a very good feature that we can you to use Zabbix, PRTG........... and another thousands features all in one.
I used QoS Reflector on PRTG, it's a script on python running on a linux that reflect UDP packages from PRTG and with it he calculate the Quality of the Link.
But to install Python on a OpenWRT I can run the image on a 750 router because of the size, the only router today that could do it is 2011. Now we are using small PCs to use the QoS Reflector on our clients, but I want to use again RouterOS MetaRouter for it.
Points:
Make all routers ARM, MMIPS and Tile work with MetaRouter (All hEX, 3011, 4011, 1100AHx4, CCRs)
And put the Image on a external drive (USB, SDCard...)

Maybe:
Create a way to clone the running image
Replication on diferent routers to make HA

Will be a new product of mikrotik, Virtualization HA.
 
sav
just joined
Posts: 1
Joined: Thu Jan 02, 2020 2:29 pm

Re: Metarouter images

Thu Jan 02, 2020 3:04 pm

Hi everyone! I'm new around here as well I'm new in using Mikrotik features.

Now I wanted to try Metarouter. So I tryed to install OpenWRT as it is shown here https://wiki.mikrotik.com/wiki/Manual:Metarouter
But every time I'm trying get it done I see an error like this - import failed: file in archive goes out of root directory: ./www/

I've been doing exactly as it written in Wiki so I have no any idea why I got that error.
Could anyone give me an explanation what I did wrong.

My Router is RB2011, RouterOS ver.6.46.1
Last edited by sav on Thu Jan 02, 2020 4:49 pm, edited 1 time in total.
 
kovalr
just joined
Posts: 8
Joined: Wed Apr 26, 2017 9:13 pm

Re: Metarouter images

Thu Jan 02, 2020 4:12 pm

Hello,
On my Mikrotik I run Openwrt as Metarouter.
Lede project Reboot (17.01-SNAPSHOT, r4046-beaa2ecc10).
I need openssl tools.
Here my errors when I trying to use openssl command:
Error relocating /usr/bin/openssl: COMP_zlib_cleanup: symbol not found
Error relocating /usr/bin/openssl: BIO_f_zlib: symbol not found
My SSL libraries has the same version
root@LEDE:/# opkg info libopenssl
Package: libopenssl
Version: 1.0.2t-1
Depends: libc
Status: install user installed
Architecture: mips_mips32
Installed-Time: 1574142675

root@LEDE:/# opkg info openssl-util
Package: openssl-util
Version: 1.0.2t-1
Depends: libc, libopenssl
Status: install user installed
Architecture: mips_mips32
Conffiles:
 /etc/ssl/openssl.cnf 06baa8f15992bacd3e5b113cd571d828c0544d0482ccd2e15969fe819957271d
Installed-Time: 1577460901
Can someone share image with working openssl ?
 
Ariansat
just joined
Posts: 2
Joined: Mon Aug 13, 2018 4:21 pm

Re: Metarouter images

Sat Jan 04, 2020 10:56 pm

Hi everyone! I'm new around here as well I'm new in using Mikrotik features.

Now I wanted to try Metarouter. So I tryed to install OpenWRT as it is shown here https://wiki.mikrotik.com/wiki/Manual:Metarouter
But every time I'm trying get it done I see an error like this - import failed: file in archive goes out of root directory: ./www/

I've been doing exactly as it written in Wiki so I have no any idea why I got that error.
Could anyone give me an explanation what I did wrong.

My Router is RB2011, RouterOS ver.6.46.1
Hi , i have same Problem and use CRS125 i can not import any MetaRouter Image and everytime show me "Couldn't continue - import failed: file in archive goes out of root directory: ./jffs/ (6)
and i test other mips file and this have same Problem some time ./jffs/ and some time ./www/ i think this is for new firmware, i use v6.46.1 and try to downgrade to v6.45.6 but not accepted by routerboard, if we use same Version and have same problem i think this is for Firmware problem
 
Ariansat
just joined
Posts: 2
Joined: Mon Aug 13, 2018 4:21 pm

Re: Metarouter images

Sat Jan 04, 2020 11:14 pm

Metarouter Work Just to v6.45.6 if they have any problem most be Downgrade to this Version
 
anakin475
just joined
Posts: 2
Joined: Wed Jan 15, 2020 9:37 am

Re: Metarouter images

Wed Jan 15, 2020 10:40 am

Metarouter Work Just to v6.45.6 if they have any problem most be Downgrade to this Version
I wonder, why's that so? I'm running 6.46.1 on 951Ui-2HnD, lots of bugs were fixed and a new features were added since back then. Do they completely discontinued support for Metarouter after 6.45.6 or do they plan to enable it in future releases? Why to even include Matarouter ability in releases after 6.45.6 when it's not working? It's at least weird. Or there's something we don't know...
 
petrcz
just joined
Posts: 1
Joined: Thu Feb 20, 2020 10:28 am

Re: Metarouter images

Thu Feb 20, 2020 10:42 am

Metarouter Work Just to v6.45.6 if they have any problem most be Downgrade to this Version

Hi, it's the firmware problem. I saw exactly the same error on 6.46.3.
To work-around it, I had to downrade to 6.45.8, import the OpenWRT image and upgrade back to 6.46.3. It's working now.

Has anyone tried 7.0beta5? I tried it in VirtualBox - the MetaRouter menu isn't present at all here.
 
Yongki
just joined
Posts: 5
Joined: Wed Jun 06, 2018 7:55 am

Re: Metarouter images

Tue May 12, 2020 1:02 pm

can anyone give me the latest update about the device that support metarouter?
i'm searching that RB2011UiAS-2HnD-IN can run metarouter how about the same processor but different model CRS109-8G-1S-2HnD-IN? can CRS109-8G-1S-2HnD-IN run metarouter as well?
thankyou for your replat. sorry for my bad english.
 
nicolino
just joined
Posts: 12
Joined: Tue Dec 15, 2015 12:49 am

Re: Metarouter images

Tue May 12, 2020 5:47 pm

Has anyone tried 7.0beta5? I tried it in VirtualBox - the MetaRouter menu isn't present at all here.

If you tried it on a VM, then it's the CHR image for x86 architecture, no Metarouter support there.
 
rrwakc
just joined
Posts: 10
Joined: Mon Jan 04, 2016 4:54 pm

Re: Metarouter images

Tue Jul 20, 2021 1:17 am

Did anyone managed to make a stable minimal metarouter with mqtt broker (OpenWrt or other).

Although last mention of it was 5 years ago.
Now with the arrival of Mikrotik KNOT would really make sense as an all in one home automation device.

The problem seams to be, that it has only 16MB of flash and 64MB of RAM.
And the system reports 14/16 and 50/64 are already used.

(5MBs of flash is taken by meta router image to install so I am assuming thee is a way around that)
 
pe1chl
Forum Guru
Forum Guru
Posts: 10231
Joined: Mon Jun 08, 2015 12:09 pm

Re: Metarouter images

Tue Jul 20, 2021 4:27 pm

Metarouter is not available on new-style devices with 16MB flash!
It is only available on older devices with 64 or 128MB flash.
Hopefully sometime we will get a new style Metarouter that allows users to run their own daemons in a low-privilege chrooted environment in a folder on the flash.
That would allow to run such functions even on a router with little free space.
Unfortunately it does not appear that MikroTik is already considering that....
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Metarouter images

Tue Jul 20, 2021 8:32 pm

Did anyone managed to make a stable minimal metarouter with mqtt broker (OpenWrt or other).
Use CHR or x86 to.... ops, but at that point you can directly virtualize OpenWRT...
 
Chiara
Frequent Visitor
Frequent Visitor
Posts: 72
Joined: Thu Jul 23, 2015 3:47 pm

Re: Metarouter images

Fri Sep 09, 2022 4:28 pm

Running a RouterOS v7.5 on a RB951Ui, any chance to run some image with ASTERISK 17 or 19?
Anyone can share a prebuild image, I've followed official docs but point to year 2010 image:

https://wiki.mikrotik.com/wiki/Manual:Metarouter
http://www.mikrotik.com/download/metaro ... rootfs.tgz

Thanks, BR
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Metarouter images

Fri Sep 09, 2022 5:52 pm

Metarouter is supposed to be removed from v7. But it's true that I also still see the menu in 7.5.
 
User avatar
dynek
Member Candidate
Member Candidate
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Metarouter images

Fri Sep 09, 2022 6:01 pm

It's a bit sad. I used metarouter to run avahi, and I can't run containers (mipsbe & ppc)

Who is online

Users browsing this forum: No registered users and 24 guests