Page 1 of 1
OpenWRT building
Posted: Mon Nov 23, 2009 12:42 am
by dalejoyce
Hi All,
I am working on a custom build of OpenWRT. I have the Trunk folder with patch -p0 <openwrt-metarouter-1.1.patch and no errors appear but when I "make menuconfig" Metarouter does not appear in the list under "Target System". After exiting the configuration the following message is left on the screen:
---------------------------------------------------------------------
master@nexus-desktop:/home/trunk$ make menuconfig
ERROR: please fix target/linux/metarouter/Makefile
Collecting target info: done
Your configuration changes were NOT saved.
master@nexus-desktop:/home/trunk$
----------------------------------------------------------------------
Does anyone have any suggestions?
Also am i right in thinking that OpenWRT can have access to the Wireless as well as Ethernet ports when virtualized in Metarouter?
Cheers
Re: OpenWRT building
Posted: Mon Nov 23, 2009 4:59 am
by reverged
Hi All,
I am working on a custom build of OpenWRT. I have the Trunk folder with patch -p0 <openwrt-metarouter-1.1.patch and no errors appear but when I "make menuconfig" Metarouter does not appear in the list under "Target System". After exiting the configuration the following message is left on the screen:
---------------------------------------------------------------------
master@nexus-desktop:/home/trunk$ make menuconfig
ERROR: please fix target/linux/metarouter/Makefile
Collecting target info: done
Your configuration changes were NOT saved.
master@nexus-desktop:/home/trunk$
----------------------------------------------------------------------
Does anyone have any suggestions?
Also am i right in thinking that OpenWRT can have access to the Wireless as well as Ethernet ports when virtualized in Metarouter?
Cheers
Weird, I am having the same problem just now and looked here for an answer.
I've built OpenWRT for all sorts of devices, this is the first time I had a problem.
It looks like the latest trunk and 8.09.1 do not work with the metarouter kconfig.
So I svn'd version 17511, which looks to be the latest rev that nik247 built in this post
http://forum.mikrotik.com/viewtopic.php?f=15&t=32187 and it is compiling as I write this.
I'll let you know if it works.
EDIT: error was a kconfig.pl parse error on line 699. I deleted the files so I cannot reproduce it.
Re: OpenWRT building
Posted: Mon Nov 23, 2009 5:47 am
by reverged
No luck.
Let me explain a little better. If I download the latest trunk, I cannot selet Metarouter in the menuconfig. No metarouter option is presented.
If I download any older version, I get a parse error like this:
$ make V=99
kamikaze_8.09_17511/scripts/kconfig.pl + kamikaze_8.09_17511/target/linux/metarouter/config-2.6.27 > kamikaze_8.09_17511/build_dir/linux-metarouter/linux-2.6.27.21/.config.target
Parse error at kamikaze_8.09_17511/scripts/kconfig.pl line 119, <FILE> line 233.
make[4]: *** [kamikaze_8.09_17511/build_dir/linux-metarouter/linux-2.6.27.21/.configured] Error 255
make[3]: *** [compile] Error 2
make[2]: *** [target/linux/compile] Error 2
make[1]: *** [kamikaze_8.09_17511/staging_dir/mips/stamp/.target_compile] Error 2
make: *** [world] Error 2
Line 233 has:
CONFIG_CMDLINE="init=/etc/preinit"
If I comment that line out, I get the same error. Strange.
Re: OpenWRT building
Posted: Tue Nov 24, 2009 12:23 am
by dalejoyce
reverged: I am still having no luck building my own firmware. Will wait for Support, hopefully
Re: OpenWRT building
Posted: Tue Nov 24, 2009 6:03 am
by reverged
Ditto here. I can't get any version of OpenWRT to build for metarouter.
Anyone have ideas or patch files to try?
Anyone?
Anyone?
I have a specific need for the openrrcp package. It is not included in any of the repositories.
Re: OpenWRT building
Posted: Tue Nov 24, 2009 11:05 am
by dalejoyce
hi reverged, what repositories are you using? i need to an OpenVPN package for Openwrt metarouter
Thanks
Re: OpenWRT building
Posted: Tue Nov 24, 2009 6:35 pm
by reverged
nik247 posted some images and a repository link in this post:
http://forum.mikrotik.com/viewtopic.php?f=15&t=32187
Edit your /etc/opkg.conf to comment out the broken openwrt rep and make it look like this:
#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
Then run opkg update which will pull down the new repository information. Then opkg list will show them all.
You can also just http to openwrt.pantele.com.ua/metarouter and browse what is there.
I used these images, but the packages I need are not built.
Re: OpenWRT building
Posted: Fri Dec 04, 2009 11:57 am
by dalejoyce
Thanks reverged!
I have found out that there is no SDK for Wifidog and have to compile OpenWRT with Wifidog inside as a package. The compling is causing issues which i am working on
How are you getting on? There hasnt been to many replys on the topic here
Re: OpenWRT building
Posted: Fri Dec 04, 2009 11:59 am
by dalejoyce
reverged: just looking at your previous post I am having the exact same issue as you now! There is no IPK for the package and have to build OpenWRT. I am now getting the same errors as you.
Re: OpenWRT building
Posted: Fri Dec 04, 2009 12:25 pm
by dalejoyce
This is the error:
xxxxx@xxxxx-desktop:~/8.09$ make V=99
make[1]: Entering directory `/home/8.09'
make[2]: Entering directory `/home/8.09'
make[3]: Entering directory `/home/8.09/target/linux'
make[4]: Entering directory `/home/8.09/target/linux/metarouter'
/home/8.09/scripts/kconfig.pl + /home//8.09/target/linux/metarouter/config-2.6.27 > /home/8.09/build_dir/linux-metarouter/linux-2.6.27.21/.config.target
Parse error at /home/8.09/scripts/kconfig.pl line 119, <FILE> line 233.
make[4]: *** [/home/8.09/build_dir/linux-metarouter/linux-2.6.27.21/.configured] Error 255
make[4]: Leaving directory `/home/8.09/target/linux/metarouter'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/8.09/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/8.09'
make[1]: *** [/home/8.09/staging_dir/mips/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/8.09'
make: *** [world] Error 2
Re: OpenWRT building
Posted: Fri Mar 05, 2010 12:08 am
by webasdf
This is probably a few months late, but I just tried compiling the latest trunk this afternoon. I had the same error "ERROR: please fix target/linux/metarouter/Makefile" I read a little bit further in the wiki article at
http://wiki.mikrotik.com/wiki/Metarouter and it states, "Note: OpenWRT in latest revision removed kernel support that RouterOS is using. To compile metarouter image, use --revision 18200 or older".
I checked out version 18199 (svn co -r 18199 svn://svn.openwrt.org/openwrt/trunk) from the openwrt svn trunk and I was able to select Mikrotik Metarouter as my target machine.
I also had to remove the following file: target/linux/generic-2.6/patches-2.6.27/208-rtl8110sb_fix.patch per this post in the forum:
http://forum.mikrotik.com/viewtopic.php ... 49#p170349
I was then able to successfully compile 18199.