Community discussions

  • 1
  • 4
  • 5
  • 6
  • 7
  • 8
 
Unb0rn
just joined
Posts: 10
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: 262
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: 10
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: 11
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: 11
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: 75
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: 75
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: 11
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: 793
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: 188
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-
CERTIFIED CI$CO HATER
 
noradsistemi
just joined
Posts: 3
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: 19
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: 38
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: 6283
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: 38
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: 38
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: 6283
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: 188
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: 38
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: 188
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: 38
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
just joined
Posts: 16
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: 793
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
just joined
Posts: 16
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: 793
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: 793
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: 13
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: 793
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
 
evince
Member
Member
Posts: 300
Joined: Thu Jul 05, 2012 12:11 pm
Location: Weiswampach - Luxemburg
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: 793
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
 
evince
Member
Member
Posts: 300
Joined: Thu Jul 05, 2012 12:11 pm
Location: Weiswampach - Luxemburg
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: 25
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: 793
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
  • 1
  • 4
  • 5
  • 6
  • 7
  • 8

Who is online

Users browsing this forum: No registered users and 2 guests