Community discussions

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

OpenWRT building

Mon Nov 23, 2009 12:42 am

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
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: OpenWRT building

Mon Nov 23, 2009 4:59 am

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.
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: OpenWRT building

Mon Nov 23, 2009 5:47 am

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.
 
dalejoyce
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Mon May 05, 2008 1:39 pm

Re: OpenWRT building

Tue Nov 24, 2009 12:23 am

reverged: I am still having no luck building my own firmware. Will wait for Support, hopefully
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: OpenWRT building

Tue Nov 24, 2009 6:03 am

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.
 
dalejoyce
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Mon May 05, 2008 1:39 pm

Re: OpenWRT building

Tue Nov 24, 2009 11:05 am

hi reverged, what repositories are you using? i need to an OpenVPN package for Openwrt metarouter

Thanks
 
reverged
Member Candidate
Member Candidate
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: OpenWRT building

Tue Nov 24, 2009 6:35 pm

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.
 
dalejoyce
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Mon May 05, 2008 1:39 pm

Re: OpenWRT building

Fri Dec 04, 2009 11:57 am

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
 
dalejoyce
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Mon May 05, 2008 1:39 pm

Re: OpenWRT building

Fri Dec 04, 2009 11:59 am

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.
 
dalejoyce
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Mon May 05, 2008 1:39 pm

Re: OpenWRT building

Fri Dec 04, 2009 12:25 pm

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
 
User avatar
webasdf
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Mon Jan 26, 2009 6:37 pm

Re: OpenWRT building

Fri Mar 05, 2010 12:08 am

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.

Who is online

Users browsing this forum: No registered users and 4 guests