"custom-src/.config" needed

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

"custom-src/.config" needed

Post by pwcpp »

I'm going to build my own Gargoyle firmware for Netgear WNDR4300 router, cause some kmod-* files are missing in the original one.

I'm a newbie for building OpenWrt. Could anyone provide the "custom-src/.config" file when building the original Gargoyle ( I wanna make some changes based on it) ?

Many thx in adv. :D

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

You can do this all by yourself. I assume you are running some linux or OSX and you have set up your system to be able to build Gargoyle?

Tip 1: make sure you have installed the tool "bzr", or you might get a build-error.

First you clone Gargoyle to your system:

"git clone http://gargoyle-router.com/git/gargoyle.git"

After that do:

"make custom"

Let it run for a while and after some time, the Openwrt configuration tool comes up and you can make the changes you want to your configuration. After you close the configuration tool, the building of the image will continue.

Tip 2: make a copy the .config file created in the custom-src directory during or after the build. You can reused it again for a next build via the Load-button in the configuration tool.

Tip 3: when you run into an error during the build process, issue the command "make clean" and then again "make custom" for a new buildrun.

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

bouwew,

thx for your reply.

I'm building Gargoyle for my WNDR4300 on Ubuntu 12.04 x64, following the wiki.
https://www.gargoyle-router.com/wiki/do ... umentation

But some packages checked in menuconfig do not exist which results to compile failure.

For example:
Download failed.
--2015-02-16 10:57:18-- http://downloads.openwrt.org/sources/libexif-0.6.21.tar.bz2
...
make[4]: *** [/home/pwcpp/gargoyle/custom-src/dl/libexif-0.6.21.tar.bz2] Error 2


There is only http://downloads.openwrt.org/sources/libexif-0.6.19.tar.bz2

I've checked "gargoyle/build.sh" and found the svn revision is 43694. How can I fix it ?
Last edited by pwcpp on Mon Feb 16, 2015 3:56 pm, edited 2 times in total.

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

another problem:
ERROR: module '/home/pwcpp/gargoyle/custom-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx/linux-3.10.49/net/ipv4/netfilter/*weburl*.ko' is missing.
make[4]: *** [/home/pwcpp/gargoyle/custom-src/bin/ar71xx/packages/base/kmod-ipt-weburl_3.10.49-1-0061a6b1cbb3de3557b8a0c3fc2a3846_ar71xx.ipk] Error 1
...


According to the post http://www.gargoyle-router.com/phpbb/vi ... 1&start=60
After unchecked the "Advanced configuration options - Target Options" in menuconfig, the above problem seems to disappear.

And so on..

I get dizzy by these parameters in menuconfig. I just wanna add some files based on the original Gargoyle firmware. So I think a "custom-src/.config" file for building the original Gargoyle should help me avoid a lot of troubles (lost some files which Gargoyle owned originally, or add some unnecessary ones which Gargoyle doesn't need, or incompatible functions result to compile failure) to success in building.

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

Hi pwcpp,

First, dowload problems, I had them as well. I fixed them by downloading the file manually, checking the MD5 signature for correctness and moving it to the dowloaded subdirectory in the gargoyle directory. Or rebuilding during another part of the day.

Second, the *weburl*.ko-error, I got that one as well a few times. Haven't really figured out how to avoid that one.
I think I have manage to avoid it by loading an already existing ar71xx-config into the Openwrt configuration tool and then making my modifications, saving it and continuing the buildprocess.

Last, the Openwrt revision, you can change the number in the build.sh file.
You can find the latest revision number here: http://git.openwrt.org/?p=14.07/openwrt.git;a=log
The latest build nr is 44441 at the time of writing this post.

Good luck!

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

hi, bouwew,

thx for your instructions.

I downloaded libexif-0.6.21.tar.bz2 from other website and moved it to the directory of "gargoyle/custom-src/dl", and then recompiled. Now it is OK.

But one more problem encountered. :(

...
checking for LIBNFNETLINK... yes
checking for LIBMNL... no
configure: error: Package requirements (libmnl >= 1.0.3) were not met:

Requested 'libmnl >= 1.0.3' but version of libmnl is 1.0.1
You may find new versions of libmnl at http://netfilter.org/projects/libmnl/

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBMNL_CFLAGS
and LIBMNL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make[4]: *** [/home/pwcpp/gargoyle/custom-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/libnetfilter_conntrack-1.0.3/.configured_] Error 1
make[4]: Leaving directory `/home/pwcpp/gargoyle/custom-src/package/libs/libnetfilter-conntrack'
make[3]: *** [package/libs/libnetfilter-conntrack/compile] Error 2
make[3]: Leaving directory `/home/pwcpp/gargoyle/custom-src'
make[2]: *** [/home/pwcpp/gargoyle/custom-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/pwcpp/gargoyle/custom-src'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/pwcpp/gargoyle/custom-src'


I've downloaded libmnl-1.0.3.tar.bz2 manually and put it in "gargoyle/custom-src/dl", but the same problem. It seems libmnl v1.0.1 instead of v1.0.3 was applied when compiling.

And also I found libnetfilter-conntrack (which Gargoyle doesn't own originally) can not be unchecked in menuconfig.

After running

Code: Select all

export PKG_CONFIG_PATH=/usr/lib/pkgconfig
echo $PKG_CONFIG_PATH
sudo vi /usr/lib/pkgconfig/libmnl.pc
# libmnl pkg-config file

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libmnl
Description: Minimalistic Netlink communication library
URL: http://netfilter.org/projects/libmnl/
Version: 1.0.3
Requires:
Conflicts:
Libs: -L${libdir} -lmnl
Cflags: -I${includedir}
Then recompile, but still the same problem.

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

Regarding libmnl, you can replace the Makefile in your gargoyle/.../libmnl directory by the Makefile of libmnl 1.0.3.
Start from here, it's updated in Openwrt trunk: https://dev.openwrt.org/browser/trunk/p ... ?rev=36398

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

thx.

Replaced
"~/gargoyle/custom-src/package/libmnl/Makefile" with the one you provided.

Finally I found the Makefile from you is the same one as "~/gargoyle/downloaded/barrier_breaker-43694/package/libs/libmnl/Makefile" actually, just don't know why it would be changed to 1.0.1 when compiling. :?:

bouwew
Posts: 30
Joined: Sat Aug 25, 2012 6:24 am

Re: "custom-src/.config" needed

Post by bouwew »

Because there is one in gargoyle as well: /gargoyle/package/libmnl/Makefile

pwcpp
Posts: 22
Joined: Sun Feb 15, 2015 2:12 pm

Re: "custom-src/.config" needed

Post by pwcpp »

Got it!

That means the packages from Gargoyle is prior to the ones from OpenWrt.

THX again.

Post Reply