built gargoyle from trunk

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

unevox
Posts: 10
Joined: Tue Feb 07, 2012 3:08 pm

built gargoyle from trunk

Post by unevox »

hello.

built gargoyle from the trunk without qos_gargoyle as it gave me problems when compiling , resolving detailed gargoyle_header_footer and libuci, the web interface works half as it only allows me to see the design of the Webif but no data, all fields are left empty.

Part of me always says Invalid login password "password" default and others when they change from ssh, the same message Invalid Password

so edit / etc / conf / gargoyle

Code: Select all

require_web_password option '0 '
Now I have access to overview.sh Webif and shows

Code: Select all

Device Name:
Gargoyle Version:
Device Configuration:
Memory Usage:
Swap Memory Usage:
Connections:
CPU Load Averages:  (1/5/15 minutes)
Uptime:
Current Date & Time:
Bridge IP Address:
Bridge Netmask:
Bridge MAC Address:
LAN Gateway IP:
Connected Via:
Bridge SSID:
LAN IP Address:
LAN Netmask:
LAN MAC Address:
WAN IP Address:
WAN Netmask:
WAN MAC Address:
WAN Gateway IP:
WAN DNS Server(s):
Signal Strength:
Wireless Mode:
Wireless MAC Address:
Access Point SSID:
5GHz Access Point SSID:
SSID Joined By Client:
QoS Upload:
QoS Download:

all empty fields

I will show some directories

/usr/bin/

Code: Select all

     0 [                              9 lua
     0 [[                            12 luci-bwc
     0 arping                        15 make_iptables_rules
     0 awk                            0 md5sum
     4 backup_quotas                  0 mkfifo
     0 basename                       0 nc
     0 bunzip2                        0 nslookup
     4 bw_convert                     0 passwd
     5 bw_get                         0 pgrep
     2 bw_print_history_file          0 pkill
     5 bw_set                         8 print_quotas
     0 bzcat                          0 printf
     0 clear                          0 reset
     0 cmp                           20 restore_quotas
     0 crontab                        0 scp
     0 cut                            0 seq
     0 dbclient                       2 set_kernel_timezone
    26 ddns_gargoyle                  8 sha1sum
     3 delete_chain_from_table        0 sort
     0 dirname                        0 ssh
     0 dropbearkey                    0 strings
     0 du                             0 tail
     0 env                            0 tee
     3 ewget                          0 telnet
     0 expr                           0 test
     0 find                           0 time
     0 free                           0 top
    20 gargoyle_header_footer         0 tr
     7 gargoyle_session_validator       0 traceroute
    19 haserl                         0 uniq
     0 head                           0 uptime
     0 hexdump                        0 wc
     0 hostid                         0 wget
     0 id                             0 which
     0 killall                       11 wol
     0 less                           0 xargs
     0 logger                         0 yes
/etc/config/

Code: Select all

ddns_gargoyle    gargoyle         ntpclient        upnpd
dhcp             httpd_gargoyle   system           webmon_gargoyle
dropbear         luci             ubootenv         wireless
firewall         network          ucitrack         wo
/www/

Code: Select all

about.sh                   identification.sh          quotas_edit.sh
access.sh                  index.html                 reboot.sh
backup.sh                  js                         restriction.sh
bandwidth.csv              login.sh                   restriction_edit_rule.sh
bandwidth.sh               logout.sh                  routing.sh
bandwidth.svg              luci-static                single_forward_edit.sh
bandwidth_distribution.sh  multi_forward_edit.sh      static_ip_edit.sh
bandwidth_expand.sh        multi_pie.svg              static_route_edit.sh
basic.sh                   no_ajax.sh                 templates
basic_edit_mac.sh          overview.sh                themes
cgi-bin                    password_confirm.sh        themes.sh
connlimits.sh              pie.svg                    time.sh
conntrack.sh               port_forwarding.sh         update.sh
data                       qos_distribution.sh        utility
ddns.sh                    qos_download.sh            webmon.sh
ddns_edit_service.sh       qos_edit_class.sh          webmon_domains.csv
dhcp.sh                    qos_edit_rule.sh           webmon_searches.csv
dump_backup_tarball.sh     qos_upload.sh              whitelist_edit_rule.sh
firstboot.sh               quota_usage.sh             wol.sh
hosts.sh                   quotas.sh
/www/js/

Code: Select all

access.js            firstboot.js         reboot.js
backup.js            hosts.js             restrictions.js
bandwidth.js         identification.js    routing.js
basic.js             login.js             table.js
bdist.js             overview.js          themes.js
common.js            port_forwarding.js   time.js
connlimits.js        qos.js               update.js
conntrack.js         qos_distribution.js  webmon.js
ddns.js              quota_usage.js       wol.js
dhcp.js              quotas.js
/lib/

Code: Select all

ar71xx.sh             libcrypt.so.0         libuci.so
config                libdl-0.9.33.so       libutil-0.9.33.so
firewall              libdl.so.0            libutil.so.0
firmware              libgcc_s.so.1         modules
firstboot             libm-0.9.33.so        network
functions             libm.so.0             preinit
functions.sh          libpthread-0.9.33.so  uci
ld-uClibc-0.9.33.so   libpthread.so.0       upgrade
ld-uClibc.so.0        librt-0.9.33.so       wifi
libc.so.0             librt.so.0
libcrypt-0.9.33.so    libuClibc-0.9.33.so
gargoyle_header_footer found show

Code: Select all

root@Gargoyle:/usr/bin# gargoyle_header_footer
Content-type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <title>Gargoyle Router Management Utility</title>
        <link rel="stylesheet" href="/themes/default/common.css?default" type="text/css" />
        <script language="javascript" type="text/javascript" src="/js/common.js?default"></script>
</head>
<body>
        <div id="darken" ><iframe id="d_iframe" class="select_free"></iframe></div>
        <div id="wait_msg">
                <div id="wait_txt">
                        Please Wait While Settings Are Applied
                </div>
                <div id="wait_icon">
                        <img src="/themes/default/images/wait_icon.gif" />
                </div>
                <iframe id="m_iframe" class="select_free"></iframe>
        </div>
        <div id="outer_logo">
                <div id="inner_logo">
                        <div id="garg_title">Gargoyle</div>
                        <div id="garg_desc">Router<br />Management<br />Utility</div>
                        <div id="garg_host">Device Name: OpenWrt</div>
                </div>
        </div>
        <div id="outer_header"></div>
        <div id="outer_container">
                <div id="main_external_container">
                        <div id="main_top"></div>
                        <div id="main_internal_container">


<script>
<!--
        var gargoyleBinRoot = "/www/.";

        setBrowserTimeCookie();

        var testAjax = getRequestObj();
        if(!testAjax) { window.location = "no_ajax.sh"; }
//-->
</script>
and proccess command ps show

Code: Select all

root@Gargoyle:/usr/bin# ps
  PID USER       VSZ STAT COMMAND
    1 root      1500 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
    7 root         0 SW   [kworker/u:1]
   49 root         0 SW   [sync_supers]
   51 root         0 SW   [bdi-default]
   53 root         0 SW<  [kblockd]
   81 root         0 SW   [kswapd0]
  130 root         0 SW   [fsnotify_mark]
  142 root         0 SW<  [ath79-spi]
  153 root         0 SW   [mtdblock0]
  158 root         0 SW   [mtdblock1]
  163 root         0 SW   [mtdblock2]
  168 root         0 SW   [mtdblock3]
  173 root         0 SW   [mtdblock4]
  178 root         0 SW   [mtdblock5]
  221 root         0 SW   [kworker/0:1]
  363 root         0 SW   [kworker/0:2]
  465 root         0 SW<  [cfg80211]
  885 root      1508 S    /bin/ash --login
  964 root      1504 S    /sbin/syslogd -C16
  966 root      1484 S    /sbin/klogd
  968 root       848 S    /sbin/hotplug2 --override --persistent --set-rules-f
 1040 root      1496 S    /sbin/watchdog -t 5 /dev/watchdog
 1751 root      1096 S    /usr/sbin/ntpclient -i 600 -s -l -D -p 123 -h 0.open
 1779 nobody     944 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
 1854 root      1488 S    /usr/sbin/telnetd -l /bin/login.sh
 1875 root      1344 S    httpd_gargoyle -c cgi-bin/**|**.sh|**.cgi|**.csv -d
 1931 root         0 SW   [kworker/0:3]
 2358 root         0 SWN  [jffs2_gcd_mtd3]
 2437 root      1496 S    /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope
 2449 root      1500 S    /usr/sbin/crond -c /etc/crontabs -l 9
 2470 root      1152 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 2482 root      1504 S    /sbin/udhcpc -t 0 -i eth1 -b -p /var/run/dhcp-eth1.p
 2903 root         0 SW   [kworker/0:4]
 2930 root         0 SW   [kworker/0:0]
 2931 root      1492 R    ps
I should do to work gargoyle

linux_pro
Posts: 10
Joined: Thu Oct 21, 2010 9:58 pm

Re: built gargoyle from trunk

Post by linux_pro »

did you remove gargoyle-qos depend ?
D-LINK 825 B1 gargoyle 1.5.5
TP-LINK 841nd v7.1 gargoyle 1.5.5
RouterStationPro gargoyle 1.5.5
other route
MI424 Ver.A IXP425 533Mhz
DDNAS V1 1.2G, 512MB,5 prot 1000M. marvell 88F6281 + 88E6171R
MI424 Ver.F CN5020. 500Mhz MIPS 64bit SoC.

unevox
Posts: 10
Joined: Tue Feb 07, 2012 3:08 pm

Re: built gargoyle from trunk

Post by unevox »

Yes o remove qos package from /package/ folder and fix gargoyle_header_footer.c make fine gargoyle_header_footer work fine o show in previous post

Webif not show info the fields show empty

Help

linux_pro
Posts: 10
Joined: Thu Oct 21, 2010 9:58 pm

Re: built gargoyle from trunk

Post by linux_pro »

did you post you fixed gargoyle_header_footer.c?

:)
D-LINK 825 B1 gargoyle 1.5.5
TP-LINK 841nd v7.1 gargoyle 1.5.5
RouterStationPro gargoyle 1.5.5
other route
MI424 Ver.A IXP425 533Mhz
DDNAS V1 1.2G, 512MB,5 prot 1000M. marvell 88F6281 + 88E6171R
MI424 Ver.F CN5020. 500Mhz MIPS 64bit SoC.

unevox
Posts: 10
Joined: Tue Feb 07, 2012 3:08 pm

Re: built gargoyle from trunk

Post by unevox »

this error

Code: Select all

gargoyle_header_footer.c:(.text+0xcac): undefined reference to `[b]uci_add_history_path[/b]'
gargoyle_header_footer.o: In function `print_interface_vars':
gargoyle_header_footer.c:(.text+0x1184): undefined reference to `[b]uci_add_history_path[/b]'
collect2: ld returned 1 exit status
make[4]: *** [gargoyle_header_footer] Error 1
make[4]: Leaving directory `/root/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/gargoyle'
make[3]: *** [/root/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/gargoyle/.built] Error 2
make[3]: Leaving directory `/root/trunk/package/gargoyle'
make[2]: *** [package/gargoyle/compile] Error 2
make[2]: Leaving directory `/root/trunk'
make[1]: *** [/root/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/root/trunk'
make: *** [world] Error 2
yes to bult whit fixed gargoyle_header_footer.c

Fix
fix: edit gargoyle_header_footer.c
replace uci_add_history_path to uci_add_delta_path

and remove qos-gargoyle from package :mrgreen:

in uci.h from trunk

Code: Select all

extern int uci_add_delta_path(struct uci_context *ctx, const char *dir);

/**
 * uci_revert: revert all changes to a config item
 * @ctx: uci context
 * @ptr: uci pointer
 */
uci.h from backfire

Code: Select all

extern int uci_add_history_path(struct uci_context *ctx, const char *dir);	
/**
 * uci_revert: revert all changes to a config item
 * @ctx: uci context
 * @ptr: uci pointer
 */
it same whit different name ;)

linux_pro
Posts: 10
Joined: Thu Oct 21, 2010 9:58 pm

Re: built gargoyle from trunk

Post by linux_pro »

thank you!! :mrgreen:
D-LINK 825 B1 gargoyle 1.5.5
TP-LINK 841nd v7.1 gargoyle 1.5.5
RouterStationPro gargoyle 1.5.5
other route
MI424 Ver.A IXP425 533Mhz
DDNAS V1 1.2G, 512MB,5 prot 1000M. marvell 88F6281 + 88E6171R
MI424 Ver.F CN5020. 500Mhz MIPS 64bit SoC.

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: built gargoyle from trunk

Post by pbix »

I modified qosmon in the GIT such that it will now compile OK with iproute2 v3.30 which is what OpenWRT trunk is currently using. So package qos_gargoyle should build correctly at least with OpenWRT trunk.

I would like to see the complete list of changes you made to compile the above. Clearly you made some changes to full-build.sh not listed above.

Any other changes other than the gargoyle_header_footer change?
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

unevox
Posts: 10
Joined: Tue Feb 07, 2012 3:08 pm

Re: built gargoyle from trunk

Post by unevox »

I no based on git from gargoyle, im download source code from gargoyle
download openwrt

Code: Select all

svn co svn://svn.openwrt.org/openwrt/trunk/
and download sourcecode from gargoyle, gargoyle add packages to the trunk and, modify gargoyle_header_footer.c /gargoyle/package/gargoyle/source/gargoyle_header_footer.c as I said earlier
remove qos package from packages

in the console
make menuconfig --
Select target system an package, tarjet AR7xxx-AR9xxx - Administration Gargoyle web interface. "y" on gargoyle (set gargoyle this add gargoyle web interface to openwrt)

im not build whit full-build.sh

you understand :?: :?:

together we can compile and run on new devices supported by the trunk

i

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: built gargoyle from trunk

Post by Eric »

Thanks for posting your work on this.

Looks like Attitude Adjustment (OpenWrt 12.08) will branch from trunk in the very near future : https://lists.openwrt.org/pipermail/ope ... 16411.html

I plan to start work on support for current trunk (which will become the new attitude adjustment branch) in preparation for this very soon.

linux_pro
Posts: 10
Joined: Thu Oct 21, 2010 9:58 pm

Re: built gargoyle from trunk

Post by linux_pro »

thank you all
D-LINK 825 B1 gargoyle 1.5.5
TP-LINK 841nd v7.1 gargoyle 1.5.5
RouterStationPro gargoyle 1.5.5
other route
MI424 Ver.A IXP425 533Mhz
DDNAS V1 1.2G, 512MB,5 prot 1000M. marvell 88F6281 + 88E6171R
MI424 Ver.F CN5020. 500Mhz MIPS 64bit SoC.

Post Reply