gargolye v1.12 status overview, missing lan port connections speed

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

ActionHenk
Posts: 20
Joined: Sun Jun 09, 2019 11:05 am

gargolye v1.12 status overview, missing lan port connections speed

Post by ActionHenk »

Hi,

I have 2 routers running gargolye 1.10,

My main router is the archer c7 v2 (actually it was a c5 v1.2 but since they share the same hardware, i flash upgraded it to a archer c7 v2)

My second router is the WR1043ND v2, i use this one as a UTP switch on another floor and to extend the wifi network.



So since the wr1043nd v2 has all services disabled and almost no settings are required i thought this to be a good candidate to test the 1.12 firmware.

It's running 1.12 now, and i notice some things,

i'm missing the port connections on the status overview, i really liked it since i could see if the ports where in 1000mbit modus or 100 mbit modus.


And (not that important but) gargolye v1.12 is installed with almost no plugins/packages, i also noticed there isn't free space on my WR1043ND v2 to install any packege (712KB free)

Is gargoyle v1.12 so big that i can't install almost any packages on my old WR1043ND v2 ? I don't need any, but i was just wondering.

Image

Can i bring this port speed modus overview back with a plugin or is it gone in v1.12?

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by Lantis »

ActionHenk wrote:i'm missing the port connections on the status overview, i really liked it since i could see if the ports where in 1000mbit modus or 100 mbit modus.
Can you please post back the contents of your /etc/board.json file?
And also the output of

Code: Select all

sh /usr/lib/gargoyle/switchinfo.sh
ActionHenk wrote:And (not that important but) gargolye v1.12 is installed with almost no plugins/packages, i also noticed there isn't free space on my WR1043ND v2 to install any packege (712KB free)

Is gargoyle v1.12 so big that i can't install almost any packages on my old WR1043ND v2 ? I don't need any, but i was just wondering.
The linux kernel, as well as the underlying software behind Gargoyle has grown. In order to continue to support some devices, we have had to remove some aspects of the firmware to maximize available space.
You can reinstall this functionality through the plugins page.
If your router does not have enough space to reinstall something, you should consider adding a USB stick to give yourself more space. That is the only available solution.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by RomanHK »

ActionHenk wrote:And (not that important but) gargolye v1.12 is installed with almost no plugins/packages, i also noticed there isn't free space on my WR1043ND v2 to install any packege (712KB free)
It has been discussed many times here. Gargoyle 1.10 (OpenWrt 15.05 Chaos Calmer) vs. Gargoyle 1.12 (OpenWrt 18.06 LEDE) are very different. There is no more space in Flash for your router (TL-WR1043ND). I also had problems with this and I stayed with Gargoyle v. 1.10.0 - also Gargoyle 1.12 puts more CPU demands and someone will not be able to use LAN@WAN full speed anymore.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

ActionHenk
Posts: 20
Joined: Sun Jun 09, 2019 11:05 am

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by ActionHenk »

RomanHK wrote:
ActionHenk wrote:And (not that important but) gargolye v1.12 is installed with almost no plugins/packages, i also noticed there isn't free space on my WR1043ND v2 to install any packege (712KB free)
It has been discussed many times here. Gargoyle 1.10 (OpenWrt 15.05 Chaos Calmer) vs. Gargoyle 1.12 (OpenWrt 18.06 LEDE) are very different. There is no more space in Flash for your router (TL-WR1043ND). I also had problems with this and I stayed with Gargoyle v. 1.10.0 - also Gargoyle 1.12 puts more CPU demands and someone will not be able to use LAN@WAN full speed anymore.
No problem, i don't use the wan port on the wr1043nd.

ActionHenk
Posts: 20
Joined: Sun Jun 09, 2019 11:05 am

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by ActionHenk »

Lantis wrote: Can you please post back the contents of your /etc/board.json file?
And also the output of

Code: Select all

sh /usr/lib/gargoyle/switchinfo.sh
board.json:
{
"model": {
"id": "tl-wr1043nd-v2",
"name": "TP-Link TL-WR1043N\/ND v2"
},
"led": {
"usb": {
"name": "USB",
"sysfs": "tp-link:green:usb",
"type": "usb",
"device": "1-1"
},
"wlan": {
"name": "WLAN",
"sysfs": "tp-link:green:wlan",
"trigger": "phy0tpt"
}
},
"network": {
"lan": {
"ifname": "eth1.1",
"protocol": "static"
},
"wan": {
"ifname": "eth0.2",
"protocol": "dhcp"
}
},
"switch": {
"switch0": {
"enable": true,
"reset": true,
"ports": [
{
"num": 0,
"device": "eth1",
"need_tag": false,
"want_untag": false
},
{
"num": 1,
"role": "lan",
"index": 4
},
{
"num": 2,
"role": "lan",
"index": 3
},
{
"num": 3,
"role": "lan",
"index": 2
},
{
"num": 4,
"role": "lan",
"index": 1
},
{
"num": 5,
"role": "wan"
},
{
"num": 6,
"device": "eth0",
"need_tag": false,
"want_untag": false
}
],
"roles": [
{
"role": "lan",
"ports": "1 2 3 4 0t",
"device": "eth1.1"
},
{
"role": "wan",
"ports": "5 6t",
"device": "eth0.2"
}
]
}
}
}

As for the command

Code: Select all

sh /usr/lib/gargoyle/switchinfo.sh
, i tried it with putty and with the webshell plugin in v1.12 itself but i think i'm missing something here, i don't get any output sorry.

ActionHenk
Posts: 20
Joined: Sun Jun 09, 2019 11:05 am

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by ActionHenk »

I opent the file

Code: Select all

sh /usr/lib/gargoyle/switchinfo.sh
in your code with winSCP, is this what you want?





#!/bin/sh

#
# (c) 2013 Cezary Jackiewicz, http://eko.one.pl
# (c) 2018 Michael Gray
#

[ -e /sbin/swconfig ] || exit 0
[ -e /usr/share/libubox/jshn.sh ] || exit 0
[ -e /etc/board.json ] || exit 0

. /usr/share/libubox/jshn.sh

# ports.push(["LAN#","STATUS"]);

json_load_file "/etc/board.json"
json_get_keys BOARDKEYS
SWITCHTEST=$(echo $BOARDKEYS | grep "\"switch\":")
[ -n "$SWITCHTEST" ] || exit 0

json_select switch
json_get_keys SWITCHKEYS
#handle only a single switch for now
SWITCHID=$(echo $SWITCHKEYS | grep "switch" | cut -d " " -f1)
[ -n "$SWITCHID" ] || exit 0

json_select $SWITCHID
json_select ports
json_get_keys PORTS
[ -n "$PORTS" ] || exit 0

IFLAN=$(awk '/default_lan_if/ {print $2}' /etc/gargoyle_default_ifs)
VLAN=$(echo $IFLAN | cut -f2 -d.)
[ "$VLAN" = "$IFLAN" ] && VLAN=""

for PORT in $PORTS; do
json_select $PORT
json_get_var PHYSICAL index
json_get_var LOGICAL num
json_select ..
if [ -n "$PHYSICAL" ] && [ -n "$LOGICAL" ] ; then
[ "$P" = "-1" ] && continue
[ -n "$VLAN" ] && {
PVID=$(swconfig dev $SWITCHID port $LOGICAL get pvid)
[ "$PVID" != "$VLAN" ] && continue
}
LINK=$(swconfig dev switch0 port $LOGICAL get link | cut -f2,3 -d" ")
case "$LINK" in
"link:down") STATUS="-";;
"link:up speed:1000baseT") STATUS="1Gbps";;
"link:up speed:100baseT") STATUS="100Mbps";;
"link:up speed:10baseT") STATUS="10Mbps";;
"1000") STATUS="1Gbps";;
"100") STATUS="100Mbps";;
"10") STATUS="10Mbps";;
"0") STATUS="-";;
"1") STATUS=$(i18n conn);;
*) STATUS="?";;
esac
echo "ports.push([\"LAN$PHYSICAL\",\"$STATUS\"]);"
fi
done

exit 0

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by Lantis »

Please change the line

Code: Select all

SWITCHTEST=$(echo $BOARDKEYS | grep "\"switch\":")
to

Code: Select all

SWITCHTEST=$(echo $BOARDKEYS | grep "switch")
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ActionHenk
Posts: 20
Joined: Sun Jun 09, 2019 11:05 am

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by ActionHenk »

Thank you very much, i got the port status back in the overview!

:)

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by RomanHK »

The same problem I have on Linksys WRT3200ACM. I accepted that I will never see it again, good idea :roll: !!!

EDIT: I don't want to slander anyone, yes, everyone makes mistakes - ok ;) .

Also thank you for the idea, works after editing ... ;)
Last edited by RomanHK on Sun Feb 02, 2020 4:41 pm, edited 1 time in total.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

Lantis
Moderator
Posts: 6721
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: gargolye v1.12 status overview, missing lan port connections speed

Post by Lantis »

Everyone makes mistakes.
I reviewed the change and I still didn't spot the issue.

It will be fixed soon.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply