Community discussions

MikroTik App
 
User avatar
normis
MikroTik Support
MikroTik Support
Topic Author
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Metarouter images

Tue May 26, 2009 3:37 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.

The first image is already made - run your own OpenWRT inside a RouterOS machine:

* In our Wiki: http://wiki.mikrotik.com/wiki/Metaroute ... al_machine
* In our Newsletter: http://www.mikrotik.com/pdf/news18.pdf

A list of different distributions is here:

* http://en.wikipedia.org/wiki/List_of_Li ... ons#Others

Note that RB450G has 256MB of RAM, which is perfect for this kind of application.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Metarouter images

Tue May 26, 2009 4:00 pm

Other interesting ideas would be:
*) linux image running squid proxy server (for those who don't like Mikrotik proxy)
*) linux image running intrusion detection system (snort).
I have seen several requests to integrate IDS into RouterOS. Now it is possible by using metarouter or xen.
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Fri Jun 05, 2009 4:01 pm

I tried this first image of OpenWRT on RB450G and after install have next comments:

1) I can't change password for root:

BusyBox v1.11.3 (2009-05-22 14:09:05 EEST) 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
KAMIKAZE (bleeding edge, r15956) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/# passwd
Changing password for root
New password:
Retype password:
passwd: warning: cannot create backup copy '/etc/passwd-': Operation not permitted
passwd: cannot update password file /etc/passwd
root@OpenWrt:/#

2) may be problem with fs metafs? output of mount:

rootfs on / type rootfs (rw)
/dev/root on / type metafs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=6948k)
tmpfs on /dev type tmpfs (rw,size=512k)
devpts on /dev/pts type devpts (rw,mode=600)

3) after it I recompile OpenWRT to latest trunk (r16316) with many extra packages (like asterisk14, asterisk16, snort, nmap, openser, X-wrt, tcpdump and many other - about 150), but with same result: 8-(

BusyBox v1.13.4 (2009-06-04 08:24:42 EEST) 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
KAMIKAZE (bleeding edge, r16316) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/# device eth0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Plase use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
IMQ driver loaded successfully.
Hooking IMQ before NAT on PREROUTING.
Hooking IMQ after NAT on POSTROUTING.
root@OpenWrt:/# passwd
Changing password for root
New password:
Retype password:
passwd: warning: cannot create backup copy '/etc/passwd-': Operation not permitted
passwd: cannot update password file /etc/passwd
root@OpenWrt:/#
Last edited by nik247 on Fri Jun 05, 2009 5:37 pm, edited 1 time in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Metarouter images

Fri Jun 05, 2009 4:17 pm

v3.24 has some file problems. Wait for v3.25 where this bug is fixed.
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Fri Jun 05, 2009 5:56 pm

I installed ROS 3.25 (temp version) on RB450G - error is the same.
May be need new patch for OpenWRT and rebuild image?
You do not have the required permissions to view the files attached to this post.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Metarouter images

Fri Jun 05, 2009 6:20 pm

this should be the latest patch. Try to rebuild, if not working contact support.
http://www.mikrotik.com/download/openwr ... uter.patch
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Fri Jun 05, 2009 6:44 pm

Yes - it was last patch - now I download patch again and:
[nik@vm0 trunk]#diff openwrt-metarouter-old.patch openwrt-metarouter.patch
[nik@vm0 trunk]

same files... 8-(
May be need try build not trunk - 2 day ago released OpenWRT 8.09.1?
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Tue Jun 09, 2009 1:26 pm

send supout.rif to support@mikrotik.com
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Metarouter images

Fri Jun 12, 2009 2:50 pm

Anyone who had problems with file permissions and other similar problems,
*) upgrade to latest version v3.25
*) co latest openwrt trunk
*) patch and rebuild openwrt
Link to new patch:
http://www.mikrotik.com/download/openwr ... -1.1.patch
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: Metarouter images

Fri Jun 12, 2009 3:09 pm

when will be 3.25?
 
User avatar
normis
MikroTik Support
MikroTik Support
Topic Author
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Metarouter images

Fri Jun 12, 2009 3:12 pm

later today
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: Metarouter images

Fri Jun 12, 2009 4:46 pm

when trying to patch openwrt:
patching file target/linux/metarouter/base-files/etc/inittab
(Stripping trailing CRs from patch.)
patching file target/linux/metarouter/base-files/etc/hotplug2-init.rules
(Stripping trailing CRs from patch.)
patching file target/linux/metarouter/Makefile
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 2245:
md5sum of openwrt.patch
c78b9248feb09c1e8870f2ea9af6924a openwrt-metarouter-1.1.patch
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Fri Jun 12, 2009 11:30 pm

Thanks to support Mikrotik.
I rebuild OpenWRT to latest trunk with new patch and wait final v.3.25
I try this image in v.3.24 and v.3.25 beta - passwd doesn't work - wait final.

to ayufan and support Mikrotik.
Error apply patch: last patch not finish with empty string (CR-LF after prelast string).
After it patch was successfully apply.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Metarouter images

Sat Jun 13, 2009 7:32 pm

later today
:(
 
QpoX
Member
Member
Posts: 385
Joined: Mon Mar 24, 2008 7:42 pm
Location: Lemvig, Denmark

Re: Metarouter images

Sat Jun 13, 2009 8:54 pm

later today
:(
Don't worry, Normis has a timemachine...
When he finds out that he forgot it, he will go back in time and upload :)
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Sun Jun 14, 2009 12:08 pm

I builded latest trunk image OpenWRT (r16437) for Metarouter with new patch.
And wait final v.3.25, with doesn't has bug with hardlinks:
MT support writed me:
here was a problem with hardlinks. It will be fixed in v3.25 also
to fix the problem you will need to rebuild latest trunk with new patch.


My image contains base files and 2 extra packages: mc(with subshell support) and bash:
root@OpenWrt:~# opkg list_installed
base-files-metarouter - 22-r16437 -
bash - 3.2-2 -
busybox - 1.13.4-1 -
dnsmasq - 2.49-1 -
dropbear - 0.52-2 -
dropbearconvert - 0.52-2 -
firewall - 1-3 -
glib1 - 1.2.10-1 -
hotplug2 - 1.0-beta-3 -
iptables - 1.4.3.2-1 -
iptables-mod-conntrack - 1.4.3.2-1 -
iptables-mod-nat - 1.4.3.2-1 -
kernel - 2.6.27.21-metarouter-1 -
kmod-crc-ccitt - 2.6.27.21-metarouter-1 -
kmod-ipt-conntrack - 2.6.27.21-metarouter-1 -
kmod-ipt-core - 2.6.27.21-metarouter-1 -
kmod-ipt-nat - 2.6.27.21-metarouter-1 -
kmod-ipt-nathelper - 2.6.27.21-metarouter-1 -
kmod-ppp - 2.6.27.21-metarouter-1 -
kmod-pppoe - 2.6.27.21-metarouter-1 -
libc - 0.9.30.1-22 -
libgcc - 4.1.2-22 -
libiptc - 1.4.3.2-1 -
liblua - 5.1.4-3 -
libncurses - 5.7-1 -
libpthread - 0.9.30.1-22 -
librt - 0.9.30.1-22 -
libuci - 0.7.5-1 -
libuci-lua - 0.7.5-1 -
libxtables - 1.4.3.2-1 -
mc - 4.6.1-2 -
mtd - 8 -
opkg - 4993-4 -
ppp - 2.4.4-1 -
ppp-mod-pppoe - 2.4.4-1 -
uci - 0.7.5-1 -
ucitrigger - 0.7.5-1 -
udevtrigger - 106-1 -
root@OpenWrt:~#

You can try this image.
Many extra packages here

Basic setting – network:

Use openwrt tool UCI or you can manual edit file /etc/config/network

Prepare: don’t forget setup correct interface to current system in metarouter setting (look wiki),
for check try:

root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 02:7F:3D:7B:EA:22
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:577 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:100557 (98.2 KiB) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 02:7F:3D:7B:EA:22
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:833 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:118339 (115.5 KiB) 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:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1632 (1.5 KiB) TX bytes:1632 (1.5 KiB)

If you see it – you can start next step.

1) show current setting:
root@OpenWrt:/# uci show network.lan
network.lan=interface
network.lan.ifname=eth0
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.ipaddr=192.168.1.1

2) setting your define IP setting:
uci set network.lan.ipaddr="192.168.1.3"
uci set network.lan.netmask="255.255.255.0"
uci set network.lan.gateway="192.168.1.254"
uci set network.lan.dns="192.168.1.254"
uci commit

3) fixed DNS for static IP setup
default install file /etc/resolv.conf has symlink to /tmp/resolv.conf
root@OpenWrt:/# cat /etc/resolv.conf
nameserver 127.0.0.1
we need to stop and disable dnsmasq demon
root@OpenWrt:/# /etc/init.d/dnsmasq stop
root@OpenWrt:/# /etc/init.d/dnsmasq disable
After it will be create symlink from /tmp/resolv.conf to /tmp/resolv.conf.auto

4) set define hostname:
root@OpenWrt:/# uci show system
system.@system[0]=system
system.@system[0].timezone=UTC
system.@system[0].hostname=OpenWrt
root@OpenWrt:/# uci set system.@system[0].hostname="Metarouter"
root@OpenWrt:/# uci commit
root@OpenWrt:/etc# uci show system
system.@system[0]=system
system.@system[0].timezone=UTC
system.@system[0].hostname=Metarouter

5) Now we have correct LAN setting: ip address, default gw, DNS, hostname


Basic setting – change root password:

As command “passwd” doesn’t work correct yet – manual edit file /etc/password to setup password “123”
before edit:
root@OpenWrt:~# cat /etc/passwd
root:!:0:0:root:/root:/bin/bash
nobody:*:65534:65534:nobody:/var:/bin/false
daemon:*:65534:65534:daemon:/var:/bin/false
after edit:
root@OpenWrt:~# cat /etc/passwd
root:$1$8PdvdwlZ$NfvLlnxRnNpf9GkAH4ajU1:0:0:root:/root:/bin/bash
nobody:*:65534:65534:nobody:/var:/bin/false
daemon:*:65534:65534:daemon:/var:/bin/false

Now time take reboot and apply all new setting:
- enable ssh access
- disable telnet access
- activated your define LAN setting

root@OpenWrt:~# reboot

Now we have remote ssh access with login “root” and password “123” and working LAN setting:
root@Metarouter:~# ping google.com -c 3
PING google.com (74.125.127.100): 56 data bytes
64 bytes from 74.125.127.100: seq=0 ttl=239 time=191.389 ms
64 bytes from 74.125.127.100: seq=1 ttl=239 time=191.942 ms
64 bytes from 74.125.127.100: seq=2 ttl=239 time=195.998 ms

--- google.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 191.389/193.109/195.998 ms

Basic setting – packages system:

Now you can install manual any packages:
root@Metarouter:~# opkg install http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
screen_4.0.3-1_mips. 100% |****************************************************************************| 154k --:--:-- ETA
Installing screen (4.0.3-1) to root...
Configuring screen
root@Metarouter:~#

But for resolve many dependences recommend setup correct repo:
1) add to /etc/opkg.conf
root@Metarouter:~#echo "src/gz metarouter http://openwrt.pantele.com.ua/trunk/metarouter/packages" >> /etc/opkg.conf
2) comment not working repo in file /etc/opkg.conf:
#src/gz snapshots http://downloads.openwrt.org/snapshots/ ... r/packages

after it look your /etc/opkg.conf:
root@Metarouter:~# cat /etc/opkg.conf
#src/gz snapshots http://downloads.openwrt.org/snapshots/ ... r/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /jffs
src/gz metarouter http://openwrt.pantele.com.ua/trunk/metarouter/packages

3) update packages list first:
root@Metarouter:~# opkg update
Downloading http://openwrt.pantele.com.ua/trunk/met ... ackages.gz
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
Packages.gz 100% |****************************************************************************| 29394 --:--:-- ETA
Inflating http://openwrt.pantele.com.ua/trunk/met ... ackages.gz
Updated list of available packages in /var/opkg-lists/metarouter
root@Metarouter:~#

4) look available packages for install:
root@Metarouter:~# opkg list
apache - 2.2.9-2 - The Apache Web Server is a powerful and flexible HTTP/1.1 compliant
apache-icons - 2.2.9-2 - The Apache Web Server is a powerful and flexible HTTP/1.1 compliant
asterisk14 - 1.4.25.1-1 - Asterisk is a complete PBX in software. It provides all of the features
.
.
5) now you can install any available packages (nmap for exp.):
root@Metarouter:~# opkg install nmap
Installing nmap (4.20-1) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
nmap_4.20-1_mips.ipk 100% |****************************************************************************| 565k --:--:-- ETA
Installing libdnet (1.10-2) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 2_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libdnet_1.10-2_mips. 100% |****************************************************************************| 24308 --:--:-- ETA
Installing libpcap (1.0.0-1) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libpcap_1.0.0-1_mips 100% |****************************************************************************| 74679 --:--:-- ETA
Installing libpcre (7.9-1) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libpcre_7.9-1_mips.i 100% |****************************************************************************| 51675 --:--:-- ETA
Installing uclibcxx (0.2.2-1) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
uclibcxx_0.2.2-1_mip 100% |****************************************************************************| 59989 --:--:-- ETA
Configuring libdnet
Configuring libpcap
Configuring libpcre
Configuring nmap
Configuring uclibcxx
root@Metarouter:~#

root@Metarouter:~# nmap localhost

Starting Nmap 4.20 ( http://insecure.org ) at 1970-01-01 00:06 UTC
Interesting ports on localhost. (127.0.0.1):
Not shown: 1694 closed ports
PORT STATE SERVICE
22/tcp open ssh
53/tcp open domain
80/tcp open http

Nmap finished: 1 IP address (1 host up) scanned in 2.050 seconds
root@Metarouter:~#

6) example installation X-WRT to Metarouter:
root@Metarouter:~# opkg install webif
Installing webif (0.3-4754) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 4_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
webif_0.3-4754_mips. 100% |****************************************************************************| 164k --:--:-- ETA
Installing haserl (0.9.25-1) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
haserl_0.9.25-1_mips 100% |****************************************************************************| 12132 --:--:-- ETA
Configuring haserl
Configuring webif
cat: can't open '/proc/mtd': No such file or directory
Collected errors:
* Could not obtain administrative lock
Committing new firmware id ...
SUCCESS! Webif^2 installation appears OK. Welcome to X-Wrt!
You may need to do a hard REFRESH to clear old CSS style from your browser.
Reinitializing httpd ...
root@Metarouter:~#

7) Don’t forget install ntpclient – doesn’t include in def.image
root@Metarouter:/etc/config# opkg update
Downloading http://openwrt.pantele.com.ua/trunk/met ... ackages.gz
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
Packages.gz 100% |****************************************************************************| 29394 --:--:-- ETA
Inflating http://openwrt.pantele.com.ua/trunk/met ... ackages.gz
Updated list of available packages in /var/opkg-lists/metarouter
root@Metarouter:/etc/config#


root@Metarouter:~# opkg install ntpclient
WARNING: Ignoring unknown configuration parameter: trunk/trunk
Installing ntpclient (2007_365-1) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
ntpclient_2007_365-1 100% |****************************************************************************| 11493 --:--:-- ETA
Configuring ntpclient
root@Metarouter:~#

8 ) I want test VoIP and I installed asterisk 1.4 too:

root@Metarouter:/etc/config# opkg install asterisk14
Installing asterisk14 (1.4.25.1-1) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
asterisk14_1.4.25.1- 100% |****************************************************************************| 1291k --:--:-- ETA
Installing libpopt (1.7-4) to root...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 4_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libpopt_1.7-4_mips.i 100% |****************************************************************************| 12773 --:--:-- ETA
Configuring asterisk14
Configuring libpopt
root@Metarouter:/etc/config#
root@Metarouter:/etc/config# /etc/init.d/asterisk enable
root@Metarouter:/etc/config# /etc/init.d/asterisk start
root@Metarouter:/etc/config# asterisk -vrc
Asterisk 1.4.25.1, Copyright (C) 1999 - 2008 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.
=========================================================================
Connected to Asterisk 1.4.25.1 currently running on Metarouter (pid = 2357)
Verbosity was 0 and is now 1
Metarouter*CLI> iax2 show peers
Name/Username Host Mask Port Status
demo/asterisk 216.207.245.47 (S) 255.255.255.255 4569 Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
Metarouter*CLI>

Now we have correct setup LAN setting, time, X-WRT, packages system, same tools (nmap, screen) and VoIP server (asterisk 1.4)

Good luck.

Update:
15.06.2009 – rebuild to latest trunk r16453, ntpclient now in default image, add more packages.
24.06.2009 - rebuild to latest trunk r16549 and tree of packages too.
02.09.2009 - rebuild to latest trunk r17456 and tree of packages too.
Last edited by nik247 on Wed Sep 02, 2009 5:02 pm, edited 2 times in total.
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images - ROS 3.25 delayed

Mon Jun 15, 2009 11:16 am

later today
:(
From: MikroTik Support Sent: Monday, June 15, 2009 9:31 AM

Hello,
We had some problems with metarouters on RB1000, so release of version will be delayed until mentioned problems are fixed.

Regards
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Mon Jun 15, 2009 3:43 pm

Now Mikrotik released ROS v.3.25
Bug with passwd fixed!!!!

BusyBox v1.13.4 (2009-06-13 19:49:09 EEST) 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
KAMIKAZE (bleeding edge, r16453) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@Metarouter:/# passwd
Changing password for root
New password:
Retype password:
Password for root changed by root
root@Metarouter:/#
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Fri Jun 26, 2009 6:16 pm

Updated my repo for Metarouter to latest trunk r.16564 and packages tree too.

Last image locate here
Packages repo here.

Instruction for update to latest trunk:

1) update to latest packages list:

| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge, r16453) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@Metarouter:~#
root@Metarouter:~# opkg update
Downloading http://openwrt.pantele.com.ua/trunk/met ... ackages.gz
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
Packages.gz 100% |************************************************************************************************************| 59240 --:--:-- ETA
Inflating http://openwrt.pantele.com.ua/trunk/met ... ackages.gz
Updated list of available packages in /var/opkg-lists/metarouter
root@Metarouter:~#

2) upgrade to latest packages (all answer N (default), but only for banner - Y )

root@Metarouter:~# opkg upgrade
Upgrading base-files-metarouter on root from 22-r16480 to 23-r16564...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 4_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
base-files-metaroute 100% |************************************************************************************************************| 28393 --:--:-- ETA
Configuration file '/etc/banner'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** banner (Y/I/N/O/D) [default=N] ?y
Configuration file '/etc/hosts'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** hosts (Y/I/N/O/D) [default=N] ?
Configuration file '/etc/passwd'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** passwd (Y/I/N/O/D) [default=N] ?
Configuration file '/etc/shells'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** shells (Y/I/N/O/D) [default=N] ?
Configuration file '/etc/sysctl.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** sysctl.conf (Y/I/N/O/D) [default=N] ?
Configuration file '/etc/config/network'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** network (Y/I/N/O/D) [default=N] ?
Configuration file '/etc/config/system'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** system (Y/I/N/O/D) [default=N] ?
Upgrading libc on root from 0.9.30.1-22 to 0.9.30.1-23...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 3_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libc_0.9.30.1-23_mip 100% |************************************************************************************************************| 203k --:--:-- ETA
Upgrading libdnet on root from 1.10-2 to 1.11-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libdnet_1.11-1_mips. 100% |************************************************************************************************************| 25097 --:--:-- ETA
Upgrading libgcc on root from 4.1.2-22 to 4.1.2-23...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 3_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libgcc_4.1.2-23_mips 100% |************************************************************************************************************| 24593 --:--:-- ETA
Upgrading libpthread on root from 0.9.30.1-22 to 0.9.30.1-23...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 3_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
libpthread_0.9.30.1- 100% |************************************************************************************************************| 19187 --:--:-- ETA
Upgrading librt on root from 0.9.30.1-22 to 0.9.30.1-23...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 3_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
librt_0.9.30.1-23_mi 100% |************************************************************************************************************| 2092 --:--:-- ETA
Upgrading luci-admin-core on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-admin-core_0.9+ 100% |************************************************************************************************************| 11100 --:--:-- ETA
Upgrading luci-admin-full on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-admin-full_0.9+ 100% |************************************************************************************************************| 25104 --:--:-- ETA
Upgrading luci-cbi on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-cbi_0.9+svn4929 100% |************************************************************************************************************| 22490 --:--:-- ETA
Upgrading luci-core on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... uci-core_0.
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-core_0.9+svn492 100% |*****************************************************
Upgrading luci-http on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... uci-http_0.
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-http_0.9+svn492 100% |*****************************************************
Upgrading luci-i18n-english on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... ci-i18n-en
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-i18n-english_0. 100% |*****************************************************
Upgrading luci-i18n-russian on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... ci-i18n-ru
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-i18n-russian_0. 100% |*****************************************************
Upgrading luci-ipkg on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... uci-ipkg_0.
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-ipkg_0.9+svn492 100% |*****************************************************
Upgrading luci-lucid on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... ci-lucid_0
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-lucid_0.9+svn49 100% |*****************************************************
Upgrading luci-nixio on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-nixio_0.9+svn49 100% |************************************************************************************************************| 63605 --:--:-- ETA
Upgrading luci-px5g on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-px5g_0.9+svn492 100% |************************************************************************************************************| 31934 --:--:-- ETA
Upgrading luci-sgi-cgi on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-sgi-cgi_0.9+svn 100% |************************************************************************************************************| 2272 --:--:-- ETA
Upgrading luci-sys on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-sys_0.9+svn4929 100% |************************************************************************************************************| 15031 --:--:-- ETA
Upgrading luci-theme-base on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-theme-base_0.9+ 100% |************************************************************************************************************| 3858 --:--:-- ETA
Upgrading luci-theme-fledermaus on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-theme-fledermau 100% |************************************************************************************************************| 17649 --:--:-- ETA
Upgrading luci-theme-freifunk on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-theme-freifunk_ 100% |************************************************************************************************************| 20693 --:--:-- ETA
Upgrading luci-theme-openwrt on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-theme-openwrt_0 100% |************************************************************************************************************| 73428 --:--:-- ETA
Upgrading luci-uci on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-uci_0.9+svn4929 100% |************************************************************************************************************| 3860 --:--:-- ETA
Upgrading luci-uvl on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-uvl_0.9+svn4929 100% |************************************************************************************************************| 17388 --:--:-- ETA
Upgrading luci-web on root from 0.9+svn4847-1 to 0.9+svn4929-1...
Downloading http://openwrt.pantele.com.ua/trunk/met ... 1_mips.ipk
Connecting to openwrt.pantele.com.ua (91.206.252.20:80)
luci-web_0.9+svn4929 100% |************************************************************************************************************| 12199 --:--:-- ETA
Configuration file '/etc/config/luci'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** luci (Y/I/N/O/D) [default=N] ?
Configuring base-files-metarouter
Configuring libc
Configuring libdnet
Configuring libgcc
Configuring libpthread
Configuring librt
Configuring luci-admin-core
Configuring luci-admin-full
Configuring luci-cbi
Configuring luci-core
Configuring luci-http
Configuring luci-i18n-english
Configuring luci-i18n-russian
Configuring luci-ipkg
Configuring luci-lucid
Configuring luci-nixio
Configuring luci-px5g
Configuring luci-sgi-cgi
Configuring luci-sys
Configuring luci-theme-base
Configuring luci-theme-fledermaus
Configuring luci-theme-freifunk
Configuring luci-theme-openwrt
Configuring luci-uci
Configuring luci-uvl
Configuring luci-web
root@Metarouter:~#

3)reboot
root@Metarouter:~# reboot

4)result:

| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge, r16564) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@Metarouter:~#
 
andreacoppini
Trainer
Trainer
Posts: 498
Joined: Wed Apr 13, 2005 11:51 pm
Location: Malta, Europe

Re: Metarouter images

Sun Aug 30, 2009 5:20 am

I tried downloading your image at http://openwrt.pantele.com.ua/trunk/met ... rootfs.tgz but when I copy it to my RB433UAH and import it in MetaROUTER, I immediately get an error saying "Couldn't continue - import failed: could not extract: archive is too short (6)"

Any idea why this is happening? fix?
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Wed Sep 02, 2009 5:08 pm

Updated my repo for Metarouter to latest OpenWRT trunk r.17468 and packages tree too.

Last image locate here
Packages repo here.

BusyBox v1.13.4 (2009-09-01 14:09:36 EEST) 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
KAMIKAZE (bleeding edge, r17468) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
---------------------------------------------------
root@Metarouter:/#
 
canopa
just joined
Posts: 5
Joined: Wed Sep 02, 2009 1:26 pm

Re: Metarouter images

Thu Sep 03, 2009 12:26 pm

Hi nik247,
i have small request. Please, would you compile next image Metarouter with pppoe-relay or add package pppoe-relay?
Thank you,
P.
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Fri Sep 04, 2009 7:30 am

Updated my repo for Metarouter to latest OpenWRT trunk r.17511 and packages tree too.

Last image locate here
Packages repo here.

to canopa - package rp-pppoe-relay was add to repo.
 
gcakici
Frequent Visitor
Frequent Visitor
Posts: 60
Joined: Thu Feb 23, 2006 11:44 am

Re: Metarouter images

Sun Oct 18, 2009 4:32 pm

Hi nik247,

Is it possible to add rsyslog and related packages to the package repository? Especially the relp and tls packages.

Thanks
Gokalp
 
User avatar
soho
newbie
Posts: 30
Joined: Sat Sep 09, 2006 3:05 am
Location: Brazil

Re: Metarouter images

Tue Oct 20, 2009 2:51 am

Updated my repo for Metarouter to latest OpenWRT trunk r.17511 and packages tree too.

Last image locate here
Packages repo here.

to canopa - package rp-pppoe-relay was add to repo.
hi nik247.


which the parameters that I use to compile some modules of freeradius 2 to install this version of OpenWRT compiled by you?
 
canopa
just joined
Posts: 5
Joined: Wed Sep 02, 2009 1:26 pm

Re: Metarouter images

Fri Oct 23, 2009 11:25 am

Hi nik247,
i have small request. Please, would you compile next image Metarouter with fprobe or add package fprobe?
Thank you,
P.


PS:Thank you for rp-pppoe-relay -- work very best!! Thank You!!
 
andreacoppini
Trainer
Trainer
Posts: 498
Joined: Wed Apr 13, 2005 11:51 pm
Location: Malta, Europe

Re: Metarouter images

Fri Oct 23, 2009 12:16 pm

Anybody managed to get an Asterisk running with a nice web GUI and care to share? I know there's loads of stuff on the internet, but I'm a total noob when it comes to OpenWRT.. or basically anything Linux.
 
User avatar
normis
MikroTik Support
MikroTik Support
Topic Author
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Metarouter images

Fri Oct 23, 2009 12:23 pm

Brian had Metarouter with Asterisk running in his MUM demo:
http://mum.mikrotik.com/presentations/US09/vargyas.pdf
http://www.tiktube.com/?video=244
 
andreacoppini
Trainer
Trainer
Posts: 498
Joined: Wed Apr 13, 2005 11:51 pm
Location: Malta, Europe

Re: Metarouter images

Fri Oct 23, 2009 12:34 pm

bah.. all the cool stuff is always at the US MUMs... in the EU ones all you get is some dork talking about rebooting routers via SNMP! :)

Thanks.
 
User avatar
normis
MikroTik Support
MikroTik Support
Topic Author
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Metarouter images

Fri Oct 23, 2009 12:38 pm

bah.. all the cool stuff is always at the US MUMs... in the EU ones all you get is some dork talking about rebooting routers via SNMP! :)

Thanks.
Your presentation was great, don't even say anything like that :) I recommend it to people who write to support about certain things
 
gcakici
Frequent Visitor
Frequent Visitor
Posts: 60
Joined: Thu Feb 23, 2006 11:44 am

Re: Metarouter images

Fri Nov 20, 2009 3:41 pm

Original image repository not reachable anymore.

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/ ... ackages.gz
Connecting to downloads.openwrt.org (78.24.191.177:80)
wget: server returned error: HTTP/1.1 404 Not Found
Collected errors:
* opkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -P /tmp/opkg-sf9ALg http://downloa
ds.openwrt.org/snapshots/trunk/metarouter/packages/Packages.gz'

Any suggestions?

Thanks
Gokalp
 
dalejoyce
Frequent Visitor
Frequent Visitor
Posts: 51
Joined: Mon May 05, 2008 1:39 pm

Re: Metarouter images

Sat Dec 05, 2009 2:27 pm

nik247 - You seem to know what your are doing when it comes to compiling Packages. Is there any chance of compling wifidog 1.1.5 to work with the metarouter patched OpenWRT. i am having terrible trouble compiling this and all packages avaliable throw the following error:

Collected errors:
* Packages were found, but none compatible with the architectures configured

Cheers

Dale
 
dalejoyce
Frequent Visitor
Frequent Visitor
Posts: 51
Joined: Mon May 05, 2008 1:39 pm

Re: Metarouter images

Sun Dec 06, 2009 8:55 pm

Does anyone have any sugestions?
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Mon Dec 07, 2009 11:07 am

After update to latest trunk last week I can't build any image any packages for Metarouter - in menu config "Metarouter" not avalible as build system. 8-(
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: Metarouter images

Mon Dec 07, 2009 9:32 pm

nik247: you were our last hope!

Well this is actually good news. At least we are all seeing the same error.

Metarouter does not show up due to an error in the Makefile, from what I can see.

I played with the Makefile and I get metarouter to show up as an option, but then other errors occur.

It seems none of us can build the latest Openwrt.

It would be nice to simply draw a line at an Openwrt revision and claim support at that revision.
At present, the instructions say to download the latest trunk, which does not build.

Is metarouter a priority at all for Mikrotik support?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Metarouter images

Tue Dec 08, 2009 7:40 am

OpenWRT removed kernel support that RouterOS is using, you will have to use older OpenWRT untill we upgrade kernel.
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Tue Dec 08, 2009 12:09 pm

OpenWRT removed kernel support that RouterOS is using, you will have to use older OpenWRT untill we upgrade kernel.
Normis answered me in other post about new kernel in ROS - "When RouterOS gets newer kernel? - Probably in RouterOS v5"

For using Metarouter now we should:
1) Try find correct last trunk revision OpenWRT (I chouse this way)
2) Wait release ROS 5.0
 
gcakici
Frequent Visitor
Frequent Visitor
Posts: 60
Joined: Thu Feb 23, 2006 11:44 am

Re: Metarouter images

Tue Dec 08, 2009 9:33 pm

We can compile 17511 revision of Openwrt trunk.

Openwrt does not support 2.6.27.21 kernel revision in new trunk releases and i think that's where we all stuck compiling the new trunks. Go with the 17511.
svn -r 17511 co svn://svn.openwrt.org/openwrt/trunk
Regards
Gokalp
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Wed Dec 09, 2009 7:05 am

We can compile 17511 revision of Openwrt trunk.

Openwrt does not support 2.6.27.21 kernel revision in new trunk releases and i think that's where we all stuck compiling the new trunks. Go with the 17511.
svn -r 17511 co svn://svn.openwrt.org/openwrt/trunk
Regards
Gokalp
I checked trunk history -> last revision with support kernel 2.6.27 is 18200 and Metarouter. Starting from r.18201 support kernel 2.6.27 was removed.

svn co svn://svn.openwrt.org/openwrt/trunk --revision 18200

Today I am going rebuild my repo to trunk r.18200 of OpenWRT and packages to latest revision (18701)
Last edited by nik247 on Wed Dec 09, 2009 11:48 am, edited 2 times in total.
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: Metarouter images

Wed Dec 09, 2009 11:06 am

Thanks nik247!

I'm going to give 18200 a try.
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: Metarouter images

Thu Dec 10, 2009 9:33 am

OK, 18200 fails:
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
make[3]: *** [/Volumes/openwrt2/metarouter/trunk_18200/build_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3/.prepared] Error 1
make[2]: *** [toolchain/gcc/prepare] Error 2
make[1]: *** [/Volumes/openwrt2/metarouter/trunk_18200/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.toolchain_install] Error 2
make: *** [world] Error 2
It's strange, because the version of mpfr that comes with Openwrt (2.4.1) is failing when compared against 2.3.0 by openwrt during the build. This may be a simple path or config setting, I'll figure it out when I get some time.

The good news is 17511 does build (thanks for the tip, Gokalp) after deleting the patch file as described here:

http://forum.mikrotik.com/viewtopic.php ... 49#p170349

Thanks for all the help. If there is interest, I can make a repository public.
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Thu Dec 10, 2009 12:23 pm

Today (10.12.2009) I updated my repo to latest possible OpenWRT trunk r.18199 and packages tree to r.181727.
Image tested on RB450G with ROS 4.3

Last image locate here
Packages repo here.

BusyBox v1.14.4 (2009-12-08 22:28:36 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
KAMIKAZE (bleeding edge, r18199) ------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@Metarouter:

In new packages tree may forgot yo build same packages. If you need specific packages - write pls. here or PM.
P.S. Package wifidog present in repo:
root@Metarouter:~# opkg list wifi\*
wifidog - 20090925-1 - The Wifidog project is a complete and embeddable captive
root@Metarouter:~#
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: Metarouter images

Thu Dec 10, 2009 10:45 pm

nik247,

Wonderful!!

I am in need of the openrrcp package. Please and thank you.

What OS are you using for your devel system?

------------------------------------------------------------
P.S.
To add to my saga, I was able to build 17511, and it runs. However, I cannot build packages, nor can I rebuild 17511.
If I type >make V=99 I get an error early on.

I have to delete everything, re-svn it, re-patch it and then it builds again! Really strange. I'm doing this on Darwin (OS X) so maybe that has something to do with it.
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images

Thu Dec 10, 2009 11:23 pm

nik247,

Wonderful!!

I am in need of the openrrcp package. Please and thank you.

What OS are you using for your devel system?
My repo packages updated to r.18734 (OpenWRT still r.18199)
Openrrcp was add to repo.
My devel system is CentOS 5.4.
Last edited by nik247 on Fri Dec 11, 2009 5:35 am, edited 1 time in total.
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: Metarouter images

Fri Dec 11, 2009 12:06 am

Thank You!
 
midsizewisp
Frequent Visitor
Frequent Visitor
Posts: 55
Joined: Tue Dec 08, 2009 10:34 pm

Re: Metarouter images

Thu Dec 31, 2009 4:11 am

How do you see a second interface? I added two interfaces (vif1, vif2) but I can only see a single eth1.
 
jdcook
just joined
Posts: 1
Joined: Thu Mar 11, 2010 12:22 am

Re: Metarouter images

Thu Mar 11, 2010 12:26 am

Hello, nik247,

You seem to know what you are doing. Could you compile and make a package of the emailrelay program for openwrt? It is at http://emailrelay.sourceforge.net/ I found a possible patch file for it at http://seiner.com/openwrt/kamikaze_8.09 ... mailrelay/ that might be helpful.

Thanks for your consideration.
 
BMWGuinness
newbie
Posts: 25
Joined: Wed Mar 17, 2010 4:29 pm

Re: Metarouter images

Fri Mar 26, 2010 1:24 pm

Does anyone have a library of known good images for Metarouter?

I came across such library last week, but didn't bookmark it unfortunately.

Thank you!
 
User avatar
THG
Member
Member
Posts: 472
Joined: Thu Oct 15, 2009 1:05 am

Re: Metarouter images

Mon Apr 19, 2010 10:38 am

I will give you a Level6 license for an article in the Wiki and the Image.
Does this offer only apply to MetaRouter images?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Apr 19, 2010 2:38 pm

yes, that applies to MetaROUTER images that will work on mipsbe (MIPS) or PPC (powerpc) architecture. What makes this quite a challenge.
 
User avatar
THG
Member
Member
Posts: 472
Joined: Thu Oct 15, 2009 1:05 am

Re: Metarouter images

Mon Apr 19, 2010 3:06 pm

yes, that applies to MetaROUTER images that will work on mipsbe (MIPS) or PPC (powerpc) architecture. What makes this quite a challenge.
I don't have access to routers with MIPS and PPC architectures, only X86 for the moment.
 
adrianatkins
Long time Member
Long time Member
Posts: 556
Joined: Wed Sep 05, 2007 10:34 am
Location: Spain
Contact:

Re: Metarouter images

Thu Jul 01, 2010 2:21 am

I can't see the point of a Meta Router.

I've tried, and just do not get it.

The main thing is lack of control of anything.

I might be a bit dense, but what is it for ?

If i flashed my cut of OpenWRT onto the board, then i can do what i like.

What use is a half-arsed version that can control almost nothing ?

ROS does almost all of what i can imagine a Router doing already.

For anything else, ROS isn't the platform.
Might as well bypass ROS's own Skewed OpenWRT platform and use the Original.

(use the Source Luke ! Use the Source !)
 
adrianatkins
Long time Member
Long time Member
Posts: 556
Joined: Wed Sep 05, 2007 10:34 am
Location: Spain
Contact:

Re: Metarouter images

Thu Jul 01, 2010 2:34 am

What i mean is that if i do not like ROS for a certain application, then i would use OpenWRT, like MT do.

I would not abbrogate any kind of responsibility to somebody else's OpenWRT-based OS at all.

I'd rather control the board from the start and make it do what i want.

If there is a wishlist anywhere, add 8x user controllable (thru ROS/scripts) GPIO ports.

Dump MetaRouter in favour of that. You'll sell more units
 
User avatar
normis
MikroTik Support
MikroTik Support
Topic Author
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Metarouter images

Thu Jul 01, 2010 9:30 am

you can also run RouterOS inside metarouter. For example give your customers a separate router (virtual) with full access so they can configure their own firewalls without messing up the main router which makes the wireless connection. just one idea.
 
User avatar
webasdf
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Jan 26, 2009 6:37 pm

Re: Metarouter images

Wed Aug 18, 2010 6:22 am

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.
 
User avatar
normis
MikroTik Support
MikroTik Support
Topic Author
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Metarouter images

Wed Aug 18, 2010 8:13 am

Yes, I already saw it, great article, thanks!
 
adrianatkins
Long time Member
Long time Member
Posts: 556
Joined: Wed Sep 05, 2007 10:34 am
Location: Spain
Contact:

Re: Metarouter images

Fri Aug 20, 2010 11:03 pm

How do you know who said that ? ;)
 
User avatar
leemans
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Thu Apr 07, 2005 12:55 am
Location: Belgium
Contact:

Re: Metarouter images - Asterisk - FreePBX Gui

Fri Oct 15, 2010 10:40 am

Hi nik247
is it possible to add the FreePBX Gui in your package list.
Thanks in advance.
P
 
User avatar
NetworkPro
Forum Guru
Forum Guru
Posts: 1376
Joined: Mon Jan 05, 2009 6:23 pm
Location: bit.ly/the-qos
Contact:

Re: Metarouter images

Sun Nov 14, 2010 11:08 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.

Thank you.

I also was curious and saw http://www.youtube.com/watch?v=J-7iNS0VzGU

I have 100 ideas of how to fix the performance issues mentioned.

Some of my ideas:
-More caching, as an option. Similar to Squid configured to cache as much as possible (reload-into-ims etc). Each client caching what he has used and serving to other in p2p manner...
-Forget about TCP at all, don't even put TCP on the TOR network. Translate web requests to other protocol. Don't encapsulate packets, rather make own optimized packet to put out on physical network.
-Multiple UDP links possible? Instead of just one TCP based encrypted tunnel..
-Utilising DSCP standards? Marking encapsulated packets per priority, packet classification before encryption.. similar to what cFosSpeed does?
-etc etc torrenting over tor should be banned. uTorrent has good enough encryption already!
-What about IPv6 and utilizing what that standard already has to offer?!?!
-How about a new network: "optimized tor" - for browsing only. And keep the old one to encapsulate all type of packets over it. The new one - only very optimized web browsing and light communications.

:)
 
nik247
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Jan 16, 2009 1:00 pm
Location: Ukraine, Kyiv

Re: Metarouter images - Asterisk - FreePBX Gui

Mon Nov 15, 2010 10:10 am

Hi nik247
is it possible to add the FreePBX Gui in your package list.
Thanks in advance.
P
I can't stability of metarouter on RB450G and on this moment I don't generate any new images and packages.
I wait ROS 5.
 
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 22, 2010 4:09 pm

as a "workaround" you could have a stab at RB433AH to host a metarouter. That is very pussing that RB450G and RB433AH share same CPU first is crashing while second is working and working.

I know it is not a solution to the problem, but it is still something.
 
User avatar
leemans
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Thu Apr 07, 2005 12:55 am
Location: Belgium
Contact:

Re: Metarouter images

Tue Nov 23, 2010 12:11 pm

Hi Nick247,
Ok thx, will wait for v5 and hopefully stable on RB450G.
Hope you will integrate then te FreePBX Gui in your package list.
Thx in advance.
Patrick
 
boretto
newbie
Posts: 29
Joined: Sat Oct 24, 2009 12:25 pm

Re: Metarouter images

Tue Nov 23, 2010 5:55 pm

Hi Nick247, I'm waiting for ROS5 to have FreePBX GUI too. You are becoming a metarouter Guru. Mikrotik may contract you as a metarouter engineer :)

Cheers! :lol:
 
User avatar
otgooneo
Trainer
Trainer
Posts: 587
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Fri Dec 03, 2010 12:01 pm

Hello,

Sorry, I`m a new for OpenWRT and Metarouter.
I just imported image file: openwrt-metarouter-rootfs.tgz. But It doesn`t start, status is always "booting". I`m using RB1000U V5.0rc4.

Where can I start? Has any one got Guide for dummies? (step-by-step) :-)
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Metarouter images

Fri Dec 03, 2010 12:05 pm

For RB1000 you need PPC image, prebuilt images are found here
http://wiki.mikrotik.com/wiki/Metaroute ... al_machine
 
User avatar
otgooneo
Trainer
Trainer
Posts: 587
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Fri Dec 03, 2010 6:08 pm

Thanks mrz.

Where can I find packages for PPC?
http://openwrt.pantele.com.ua/trunk/met ... /packages/ - Those packages compatible with RB1000 (ppc)?
Where can I find /opkg install for PPC?

I want to load asterisk and snort on my metarouter of RB1000.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Metarouter images

Fri Dec 03, 2010 11:49 pm

Most likely those packages are for MIPS and will not work with PPC.
You will have to compile your own packages.
 
mdaitc
newbie
Posts: 34
Joined: Mon Mar 22, 2010 5:18 am

Re: Metarouter images

Mon Dec 06, 2010 12:20 am

Hi Nick247,

how have you been generating the MIPS packages? is this some script you've written? or is it fairly easy to accomplish?

thanks
 
User avatar
otgooneo
Trainer
Trainer
Posts: 587
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: Metarouter images

Mon Dec 06, 2010 3:10 am

I have changed my root password. But I can`t access by SSH. When I type wrong password, it shows me password not right. But when I type good password, SSH just disconnects.

Also please post your experience, who has routerboard power pc.
 
User avatar
engiman
just joined
Posts: 14
Joined: Tue Nov 02, 2010 7:35 pm
Location: Budapest

Re: Metarouter images

Sat Mar 26, 2011 12:27 am

I tried the OpenWRT image on RB493G, and it won't work. (ROS 4.16 and then 4.17)

Import is ok, it seems running, but the console freeze in 2 minutes.
I can't reconfigure the default network settings.

I tried the same image on a RB450G and it works ok.
I can reconfigure, change root passwd, etc..

I also tried other older images, but same behavior.
 
User avatar
engiman
just joined
Posts: 14
Joined: Tue Nov 02, 2010 7:35 pm
Location: Budapest

Re: Metarouter images

Fri Apr 01, 2011 12:08 pm

I have just upgraded routerOS ver 5 final on my 493G, and then tried the metarouter image.

Import was ok.

At first it seemed better, the console was responsive, so I started reconfigure.
after I typed "uci set network...." it freezes, then the router suddenly restarted itself twice.

Does anybody have a solution?
 
wpeople
Member
Member
Posts: 380
Joined: Sat May 26, 2007 6:36 pm

Re: Metarouter images

Sun Apr 10, 2011 2:30 pm

I've just tried to create a RouterOS metarouter on my RB493AH, but it's restarting when i try to start to boot the metarouter.
Unhandled kernel unaligned access[#1]:
Cpu 0
$ 0 : 00000000 c03b0000 00000010 b804000c
$ 4 : 00000000 00000000 ffffffff c03bcbac
$ 8 : c03c0c6d 00000000 00000001 c030cc70
$12 : ffffff81 00000000 7fc8b358 0a000446
$16 : c7e39cf8 c7e39d18 80000000 c61c0c4a
$20 : c6172000 00000080 c61c0c40 c617200c
$24 : 00000000 c010d1c0
$28 : c7e38000 c7e39cd0 c0370000 c010b880
Hi : 0ddde000
Lo : 00000008
epc : c010ba0c do_ade+0x2bc/0x410
Tainted: P
ra : c010b880 do_ade+0x130/0x410
Status: 1000f603 KERNEL EXL IE
Cause : 00000014
BadVA : b804000c
PrId : 0001800a (MIPS 24Kc)
Process discover (pid: 212, threadinfo=c7e38000, task=c7daf3c0, tls=00000000)
Stack : 00000040 c0265740 b804000c 00000051 00000008 c0389ae8 00000004 c6abc4c8
c61c0c4a c01046c0 c6adb340 c7e1eba0 c6adb340 c02c9280 c7e39c60 c019b290
00000000 c03b0000 00000010 b8040000 c0389aac 00000004 ffffb448 00000051
00000000 00000003 00000028 c0370000 ffffff81 00000000 7fc8b358 0a000446
c0389ae8 00000004 c6abc4c8 c61c0c4a c6172000 00000080 c61c0c40 c617200c
...
Call Trace:
[<c010ba0c>] do_ade+0x2bc/0x410
[<c01046c0>] ret_from_exception+0x0/0xc
[<c0265740>] rb_led_set_gpo+0xc/0x28
[<c0264f54>] led_trigger_event+0x5c/0x84
[<c6ac9b98>] sta_rx+0x348/0x8f0 [ath]
[<c6ac0fa4>] ath_hw_reset+0x2d8/0x6a0 [ath]


Code: 00118880 02118821 8e220000 <a8620000> b8620003 24030000 1460001a 00000000 8e0200a8
---[ end trace f47a588bc637185a ]---
Kernel panic - not syncing: Fatal exception in interrupt
Same with 5.0 and 5.1

Any ideas anyone?
 
wpeople
Member
Member
Posts: 380
Joined: Sat May 26, 2007 6:36 pm

Re: Metarouter images

Sun Apr 10, 2011 2:50 pm

What is strange: doing exactly the same on a RB450G and there works!
 
Vaelen
just joined
Posts: 18
Joined: Fri Aug 24, 2007 3:35 am

Re: Metarouter images

Fri May 27, 2011 3:33 pm

I have just upgraded routerOS ver 5 final on my 493G, and then tried the metarouter image.

Import was ok.

At first it seemed better, the console was responsive, so I started reconfigure.
after I typed "uci set network...." it freezes, then the router suddenly restarted itself twice.

Does anybody have a solution?
Same problem with RB493G ROS v5.3, though it doesn't seem to matter if you are doing anything, it could be a fresh image just sitting there and it would crash after ~2mins
 
xdemon
just joined
Posts: 7
Joined: Thu Sep 23, 2010 5:03 pm

Re: Metarouter images

Fri Oct 21, 2011 5:03 pm

Can confirm with rb493g (5.7)
 
crean
just joined
Posts: 5
Joined: Tue Feb 23, 2010 11:26 am

Re: Metarouter images

Thu Dec 01, 2011 10:30 am

Can confirm that it freezes on RB450G too -- last version tried were 5.6 using prebuilt images as well as an own one.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Thu Dec 01, 2011 2:18 pm

try some board without switching feature.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Jan 18, 2012 9:26 pm

Hi, i just create my own trunk OpenWrt images PPC and MIPS with many useful packages (repo) and i decided to make it public.

http://openwrt.wk.cz

Actual build is 29684.

Enjoy!
 
napismizpravu
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Apr 09, 2011 1:27 pm
Location: czech

Re: Metarouter images

Tue Jan 24, 2012 4:50 pm

Chěl bych pro RB433UAH metarouter balíček, který udělá z routerboardu miniserver a bude obsahovat přednastavený služby: www,email IMAP(s)+SMTP(s),VOIP PBX,direct connect hub, torrent tracker...na nějaký demo účet pro jeho snadnou změnu na vlastní

Nedaří se mi rozchodit Dovecot a Asterisk.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Jan 25, 2012 8:56 am

I just upload new image build from trunk 29884, also repo tree. Added Squid proxy package to the repo.

http://openwrt.wk.cz/trunk/
http://openwrt.wk.cz/trunk/mr-mips/open ... 884.tar.gz
http://openwrt.wk.cz/trunk/mr-mips/packages/
http://openwrt.wk.cz/trunk/mr-ppc/openw ... 884.tar.gz
http://openwrt.wk.cz/trunk/mr-ppc/packages/

What is included in image?
base-files 103-r29884
base-files-network 3
bash 4.2-1
blkid 1.41.12-2
bridge 1.4-1
busybox 1.19.3-9
cfdisk 2.13.0.1-4
crda 1.1.1-1
glib2 2.26.1-2
haserl 0.9.27-1
hotplug2 1.0-beta-4
htop 1.0-2
iptables 1.4.10-4
iptables-mod-conntrack 1.4.10-4
iptables-mod-nat 1.4.10-4
iputils-ping 20101006-1
iputils-ping6 20101006-1
iw 3.1-2
kernel 2.6.31.10-1-1157b40dbcf6142d89c403a6efd7949c
kmod-ipt-conntrack 2.6.31.10-1
kmod-ipt-core 2.6.31.10-1
kmod-ipt-nat 2.6.31.10-1
kmod-ipt-nathelper 2.6.31.10-1
kmod-ppp 2.6.31.10-1
kmod-pppoe 2.6.31.10-1
libblkid 1.41.12-2
libc 0.9.32-103
libcap 2.22-1
libcom_err 1.41.12-2
libext2fs 1.41.12-2
libgcc 4.5-linaro-103
libiconv 5
libip4tc 1.4.10-4
libncurses 5.7-5
libnl-tiny 0.1-2
libopenssl 1.0.0g-1
libpthread 0.9.32-103
librt 0.9.32-103
libuci 2011-11-14.1-1
libuuid 1.41.12-2
libxtables 1.4.10-4
mc 4.7.5.3-1
nano 2.2.6-1
ntpclient 2007_365-4
openssh-client 5.9p1-4
openssh-keygen 5.9p1-4
openssh-server 5.9p1-4
opkg 618-2
ppp 2.4.5-4
ppp-mod-pppoe 2.4.5-4
swap-utils 2.13.0.1-4
terminfo 5.7-5
uci 2011-11-14.1-1
udev 173-1
uhttpd 30
webif 0.3-4986
zlib 1.2.5-1
BusyBox v1.19.3 (2012-01-24 14:32:31 MST) 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
 ATTITUDE ADJUSTMENT (bleeding edge, r29884) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/#
 
napismizpravu
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Apr 09, 2011 1:27 pm
Location: czech

Re: Metarouter images

Wed Jan 25, 2012 2:27 pm

I just upload new image build from trunk 29884, also repo tree. Added Squid proxy package to the repo........
Nezveřejnil si balíčky opendchub (direct connect hub) a cbtt (Bittorrent tracker) pro RB433UAH...proč ?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Wed Jan 25, 2012 2:30 pm


Nezveřejnil si balíčky opendchub (direct connect hub) a cbtt (Bittorrent tracker) pro RB433UAH...proč ?
English speaking forum :)
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Jan 25, 2012 3:00 pm

I just upload new image build from trunk 29884, also repo tree. Added Squid proxy package to the repo........
Nezveřejnil si balíčky opendchub (direct connect hub) a cbtt (Bittorrent tracker) pro RB433UAH...proč ?
Because i never needed packages opendchub or cbtt. But i can try to build them. :-)
 
neticted
Member Candidate
Member Candidate
Posts: 137
Joined: Wed Jan 04, 2012 10:36 am

Re: Metarouter images

Wed Jan 25, 2012 3:07 pm

liquidcz, what is your recomendation for openwrt configuration that can run http server with some scripting that can access Mikrotik API?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Jan 25, 2012 3:21 pm

liquidcz, what is your recomendation for openwrt configuration that can run http server with some scripting that can access Mikrotik API?
Im not shure what are you exactly asking for. Do you need recomendation of amout of RAM for OpenWrt Metarouter, or type of webserver and scripting language?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Jan 25, 2012 4:04 pm

to napismizpravu:

I just upload requested packages to my repo + some others.

New packages:

opendchub
cbtt
cbtt-mysql
transmission-daemon
transmission-remote
transmission-web
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Wed Jan 25, 2012 4:21 pm

liquidcz, what is your recomendation for openwrt configuration that can run http server with some scripting that can access Mikrotik API?
you can see in API manual on wiki what languages are available, for web deployment ruby and php could be very useful, so in turn, any web-server that support either of these and are supported by openWRT
 
neticted
Member Candidate
Member Candidate
Posts: 137
Joined: Wed Jan 04, 2012 10:36 am

Re: Metarouter images

Thu Jan 26, 2012 2:47 am

liquidcz, what is your recomendation for openwrt configuration that can run http server with some scripting that can access Mikrotik API?
Im not shure what are you exactly asking for. Do you need recomendation of amout of RAM for OpenWrt Metarouter, or type of webserver and scripting language?
I meant openwrt software (which http and which script). I did not see php in packages you prepared, I guess it is ressoure hungry, so you avoided it.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Jan 26, 2012 7:59 pm

liquidcz, what is your recomendation for openwrt configuration that can run http server with some scripting that can access Mikrotik API?
Im not shure what are you exactly asking for. Do you need recomendation of amout of RAM for OpenWrt Metarouter, or type of webserver and scripting language?
I meant openwrt software (which http and which script). I did not see php in packages you prepared, I guess it is ressoure hungry, so you avoided it.
I see. Well, type of httpd and scripting language depends on your scripting knowladge.

So, if i can afford some recomendation, im going to recomed to you to go by the simplest way. It means use default http web server (uHTTPd) which is used in my image for Webif, and try to use PHP.

Here are detailed manual how to configure it.
uHTTPd
- http://wiki.openwrt.org/doc/howto/lamp § Installing and configuring a web server and § Configuring PHP
PHP for uHTTPd
- http://wiki.openwrt.org/doc/howto/php

Well, im going to build php and ruby packages for my repositories soon.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Jan 26, 2012 10:40 pm

I just uploaded new packages to my repo.

New packages:

php-pear*
php5-cgi
php5-cli
php5-fastcgi
php5-mod*
ruby-*
 
neticted
Member Candidate
Member Candidate
Posts: 137
Joined: Wed Jan 04, 2012 10:36 am

Re: Metarouter images

Fri Jan 27, 2012 6:14 pm

Great! PHP will be my weapon of choice if RB does not die when it runs :)
I guess your build is more stable than one provided by Mikrotik.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Jan 30, 2012 9:12 am

it is just few years younger, more problems fixed. Hope it works well for you.
 
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

Wed Feb 01, 2012 6:03 am

what is the password for autentication in the webif??
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Wed Feb 01, 2012 9:39 am

if you mean webfig, than that is same as for other services - default being - admin with blank password.
 
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

Wed Feb 01, 2012 4:15 pm

webif of the distro openwrt for the administration
 
lexsi
just joined
Posts: 2
Joined: Thu Feb 02, 2012 7:08 pm

Re: Metarouter images

Fri Feb 03, 2012 9:13 am

Hello,
liquidcz, thanks for the work done.
You can compile the package udpxy (http://sourceforge.net/projects/udpxy/) by mips?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sun Feb 05, 2012 1:13 pm

what is the password for autentication in the webif??
I think, that you have to set up root password from console first, reboot second, and after that you can login as root with your password.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sun Feb 05, 2012 1:14 pm

Hello,
liquidcz, thanks for the work done.
You can compile the package udpxy (http://sourceforge.net/projects/udpxy/) by mips?
Done. Just uploaded new image, package and config.
 
lexsi
just joined
Posts: 2
Joined: Thu Feb 02, 2012 7:08 pm

Re: Metarouter images

Wed Feb 08, 2012 3:26 pm

Done. Just uploaded new image, package and config.
Thank you very much.
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Fri Feb 17, 2012 6:44 pm

I just upload new image build from trunk 29884, also repo tree. Added Squid proxy package to the repo.
I used your build for mips on my RB450G(using ROS v5.13), the result is every 6 or 12 minutes my RB450G continually reboot itself.
But thank you, because with this problem i search another openwrt-metarouter build and then i found openwrt running fine for at least 1 day since importing to metarouter yesterday with http://openwrt.pantele.com.ua/trunk/met ... rootfs.tgz

For anyone in this conversation,
I wonder what's the different between openwrt-metarouter patch v1.1 and v1.2, since i couldn't find openwrt-metarouter patch v 1.1 anywhere, i can't see the diff's. Is it really v1.2 just add ppc support ?
Maybe mrz can provide v1.1 again ?
Or it's about kernel version? between 2.6.27 and 2.6.31 ?

Counting the time and still solid with nik mips image, almost 2 days. No RB450G reboot itself, no OpenWRT network up and down itself again.

I hope will last forever :)
 
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: 203
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: 8712
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: 587
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: 587
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: 587
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: 587
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: 587
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: 587
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: 587
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: 587
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: 587
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: 270
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: 587
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: 270
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: 224
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: 224
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: 224
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
Frequent Visitor
Frequent Visitor
Posts: 50
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
Frequent Visitor
Frequent Visitor
Posts: 50
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

Who is online

Users browsing this forum: No registered users and 8 guests