I figured out the problem why boardmodel was not properly filled in fw_printenv, https://github.com/openwrt/openwrt/pull/17920 // ZyXEL GS1900-10HP revision B1 support OpenWrt firmware? - #32 by mirkovogt
I am guessing /etc/config/poe should look like this for the gs1900-24ep:
config global
option budget '130'
config port
option enable '1'
option id '1'
option name 'lan1'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '2'
option name 'lan2'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '3'
option name 'lan3'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '4'
option name 'lan4'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '5'
option name 'lan5'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '6'
option name 'lan6'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '7'
option name 'lan7'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '8'
option name 'lan8'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '9'
option name 'lan9'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '10'
option name 'lan10'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '11'
option name 'lan11'
option poe_plus '1'
option priority '2'
config port
option enable '1'
option id '12'
option name 'lan12'
option poe_plus '1'
option priority '2'
It seems to work poe works on the ports I tested.
$ ubus call poe info
{
"ports": [
{
"enabled": "yes",
"priority": 2,
"name": "lan1",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan2",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan3",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan4",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan5",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan6",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan7",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan8",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan9",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan10",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan11",
"consumption": "0.0"
},
{
"enabled": "yes",
"priority": 2,
"name": "lan12",
"consumption": "4.0"
}
],
"pse": "Nuvoton NUC029ZAN",
"consumption": "15.4",
"budget": "130.0",
"poe_ports": 16,
"mcu": "Realtek RTL8238",
"guard": "11.0"
}
shows 16 ports though, is that an error?
I added the RTL8238B datasheet to our collection. https://github.com/plappermaul/realtek-doc/blob/main/RTL8238B%20Datasheet.pdf
Plus the host command guide https://github.com/plappermaul/realtek-doc/blob/main/RTL8238B%20Host%20Command%20Guide.pdf
lua uloop missing. where do i find this lib?