Hi, I installed OpenWrt 24.10.2 (r28739-d9340319c6) on one of my GS310TP switches. Most things seem to work very well but I still have some questions about POE. I have a POE accesspoint and that receives power without any any issues. I'm very happy with that because the OEM is not providing any firmware updates any more.
Question: Is there any way to view the currently used POE power amount per port?
- I tried
ubus call poe info
but that just returned 0s. Also the available POE budget was wrong, it said something like 130W instead of 55W. - I tried upgrading
realtek-poe
to 1.2-r1 but that did not make any difference. - I tried generating a /etc/config/poe using https://github.com/Hurricos/realtek-poe/commit/2df137ee45715533c1aae81ccc41e5eb8fb763f6 and that improved the poe info output a little because it now shows the correct available POE budget. But still not the actual consumption; not the total nor the per-port info.
Any suggestions what to try next?
/etc/config/poe
config global
option budget '55'
config port
option name 'lan1'
option id '1'
option enable '1'
config port
option name 'lan2'
option id '2'
option enable '1'
config port
option name 'lan3'
option id '3'
option enable '1'
config port
option name 'lan4'
option id '4'
option enable '1'
config port
option name 'lan5'
option id '5'
option enable '1'
config port
option name 'lan6'
option id '6'
option enable '1'
config port
option name 'lan7'
option id '7'
option enable '1'
config port
option name 'lan8'
option id '8'
option enable '1'
Sample poe info output with AP receiving power on second port
# ubus call poe info
{
"firmware": "v0.0",
"budget": 55.000000,
"consumption": 0.000000,
"ports": {
"lan1": {
"priority": 0,
"status": "unknown"
},
"lan2": {
"priority": 0,
"status": "unknown"
},
"lan3": {
"priority": 0,
"status": "unknown"
},
"lan4": {
"priority": 0,
"status": "unknown"
},
"lan5": {
"priority": 0,
"status": "unknown"
},
"lan6": {
"priority": 0,
"status": "unknown"
},
"lan7": {
"priority": 0,
"status": "unknown"
},
"lan8": {
"priority": 0,
"status": "unknown"
}
}
}
Installation details:
- There was no device information page for my model so I did some searching in the forum first.
- I used the OEM UI to first install the latest OEM firmware in the second bank and then the openwrt 'ramfs' image to the first bank and configured it to use the first bank on next boot.
- Clicked 'Reboot' from OEM UI and then the switch became unresponsive.
- After power cycle fortunately I could access luci and install the sysupgrade image.
- LEDs did not work until I found the wiki page for the GS308T: https://openwrt.org/toh/netgear/gs308t_1#rclocal_method and patched
/etc/rc.local
. - I'm using one optical SFP and that works well. (Although the luci Status page seems to think that the empty SFP slot is active (green) as well instead of saying 'no link'.)
/etc/rc.local
# enable energy-efficient ethernet if the other end supports it
for i in 1 2 3 4 5 6 7 8
do
ethtool --set-eee lan$i eee on
done
# enable lights, see https://openwrt.org/toh/netgear/gs308t_1
echo 0x2f396a1b > /sys/kernel/debug/rtl838x/led/led_glb_ctrl
echo 0x3e007dea > /sys/kernel/debug/rtl838x/led/led_mode_ctrl
echo 0x00000004 > /sys/kernel/debug/rtl838x/led/led_mode_sel
echo 0x0000ff00 > /sys/kernel/debug/rtl838x/led/led_p_en_ctrl
exit 0