I’ve purchased an Olimex ESP32-POE board.
After digging around on the schematics I realized the clock circuit is different between ESP32-EVB (which works ok with MGOS, apparently) and ESP32-POE. I was not aware of that difference before purchasing.
Can someone please advise on the proper way to activate the PHY interface on the ESP32-POE board?
After cloning an empty JS app and adding the ethernet lib as an Origin, I’m running the following RPC command:
mos config-set eth.enable=true
When the board reboots, I get:
[Jan 13 00:39:28.967] mgos_ethernet_init ETH: MAC 3c:71:bf:0c:8b:27; PHY: LAN87x0 @ 0; IP: DHCP
[Jan 13 00:39:29.968] [0;31mE (2189) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0x0000[0m
[Jan 13 00:39:30.978] [0;31mE (3199) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0x0000[0m
[Jan 13 00:39:30.987] [0;31mE (3209) emac: Initialise PHY device Timeout[0m
[Jan 13 00:39:30.992] mgos_deps_init ethernet init failed
[Jan 13 00:39:30.997] mgos_task MGOS init failed: -32
[Jan 13 00:39:31.504] mgos_vfs_umount_all Unmounting filesystems
[Jan 13 00:39:31.508] mgos_system_restart Restarting
This repeats indefinitely.