Page 1 of 3

Anybody built gargoyle on OpenWrt trunk recently?

Posted: Mon Jul 25, 2011 7:50 am
by frederikv
Did anybody succeed in building the gargoyle packages on OpenWrt's trunk recently? In order to install IPSec, I need a few extra kernel packages (see https://forum.openwrt.org/viewtopic.php?id=30982) Those are only being built in trunk at the moment, not in the Backfire branch.

Alternatively, can someone help me understand how I can apply the patches that enable these extra kernel modules to be built on Gargoyle's source?

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Tue Jul 26, 2011 8:23 am
by frederikv
Two problems building gargoyle on trunk at the moment:

1. The first cyassl patch appears to be no longer necessary.
2. gargoyle_header_footer.c doesn't build, because uci_add_history_path isn't in uci.h anymore. Not sure what the purpose of that function was - it was used twice only. The package builds after commenting out those 2 lines.

Haven't tested whether the resulting build works...

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Tue Jul 26, 2011 11:03 am
by DoesItMatter
I just did a build this weekend of the latest Gargoyle git
and also used the latest trunk version
(blanked out the version # in the config file)

Seemed to compile fine for me without any issues.

I only compiled the AR71xx branch though.

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Tue Jul 26, 2011 12:23 pm
by frederikv
Building things that way actually still results in kernel .32 being used - because that's the current one in the backfire branch, which doesn't have the ipsec patches referenced in the original post. Checking out trunk OpenWrt & building gargoyle on top of that does build both with those patches applied (using kernel 2.6.39) - but there's 2 problems doing the build.

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Wed Jul 27, 2011 10:41 am
by DoesItMatter
If you build the Atheros AR71xx builds, send me the 2 files for
the WZR-HP-G300NH. I'll try and test them out because if it goes bad,
I can do a serial recovery on mine, I already have the serial cable.

Not sure if you can send attachments here via PM, but I believe you
can add an attachment to the post, or upload it to some type
of Media fire location.

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Thu Jul 28, 2011 1:58 am
by frederikv
Thanks for the offer! I uploaded the factory.bin and the sysupgrade.bin for the G300NH to mediafire.

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Thu Jul 28, 2011 2:54 am
by DoesItMatter
frederikv wrote:Thanks for the offer! I uploaded the factory.bin and the sysupgrade.bin for the G300NH to mediafire.
OK...

Before I even download these things and try them, I notice something.

Every build I have compiled (and tested working)
as well as every build I've downloaded from here,
has been right at 5MB for the file, either sysupgrade or factory.

Your files are 3.88MB and I don't see any compression.

Have you changed anything else on the builds?
Thats a lot of stuff missing for a firmware build.

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Thu Jul 28, 2011 4:59 am
by frederikv
I'm not 100% sure the image actually includes the gargoyle interface. I know the packages have been built. I started of from OpenWrt trunk, and don't know whether I did things right to also include them in the image. Main thing to verify first is that this image actually boots into OpenWrt... If it has the gargoyle interface immediately, that's a nice-to-have.

Attached the .config for reference.

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Thu Jul 28, 2011 11:08 am
by DoesItMatter
OK - yea, I see OpenWRT Backfire RC5

The WZR-HP-G300NH files are at 3.4MB

Your version is 3.8MB - so yea, most likely does not have
the Gargoyle interface included.

I will do this on Friday - won't have time until then.

Will flash it Friday night and post the results.

Re: Anybody built gargoyle on OpenWrt trunk recently?

Posted: Fri Jul 29, 2011 1:43 am
by DoesItMatter
Frederikv,

I'm still learning the compiling, etc.

I have Ubuntu 10.10 - 64bit installed and can compile the basic
Gargoyle packages, but what I'm looking for is

1) Backfire RC5 or latest trunk for ADM8668 + Luci web gui
2) Gargoyle compiled with that same architecture.

I've tried compiling OpenWRT backfire RC5 from source and got
an image that flashes, but it doesn't include the Luci interface.

Do you know how to compile that in?