I try to run Mongoose OS on an ESP32 from Olimex with PoE (ISO). I simply followed the Quick Start which worked fine. When I enabled eth I am ending up in a boot loop and eth is failing to initialise.
[Aug 2 10:37:14.071] e[0;31mE (1826) emac_esp32: emac_esp32_init(307): reset timeoute[0m
[Aug 2 10:37:14.071] e[0;31mE (1836) esp_eth: esp_eth_driver_install(198): init mac failede[0m
[Aug 2 10:37:14.071] esp32_eth.c:118 Ethernet driver init failed: -1
[Aug 2 10:37:14.086] mgos_deps_init.c:490 ethernet init failed
[Aug 2 10:37:14.086] mgos_freertos.c:184 MGOS init failed: -32
I guess there is some missing settings or config which needs to be set but I can not figure out how this is done properly. How can I fix this issue?
I found out how to set the config and I changed them to be as follows:
- ["eth.dhcp_hostname", "s", {title: "Host name to include in DHCP requests"}]
- ["eth.clk_mode", "i", 3, {title: "50 MHz clock source: 0 in <- GPIO0, 1 out -> GPIO0, 2 out -> GPIO16, 3 out -> GPIO17 (inverted)"}]
- ["eth.mdc_gpio", "i", 23, {title: "GPIO to use for RMII MDC signal"}]
- ["eth.mdio_gpio", "i", 18, {title: "GPIO to use for RMII MDIO signal"}]
- ["eth.phy_pwr_gpio", "i", 12, {title: "GPIO to use for PHY PWR control signal"}]
that fixed the issue
Yes, usually systems suck at guessing in what hardware you want to make them work.
BTW, searching for something like that will make you see the adventures of many like you that have been there before.
Now I have a similar issue with the ESP32-WROVER. My config from before works for the WROOM but not for the WROVER anymore.
[Aug 23 14:36:24.810] I (67) boot: ## Label Usage Type ST Offset Length
[Aug 23 14:36:24.810] I (74) boot: 0 nvs WiFi data 01 02 00009000 00004000 00000000
[Aug 23 14:36:24.810] I (83) boot: 1 otadata OTA data 01 00 0000d000 00002000 00000001
[Aug 23 14:36:24.810] I (91) boot: 2 app_0 OTA app 00 10 00010000 00190000 00000001
[Aug 23 14:36:24.810] I (99) boot: 3 fs_0 FS 01 82 001a0000 00040000 00000000
[Aug 23 14:36:24.841] I (107) boot: 4 app_1 OTA app 00 11 001e0000 00190000 00000001
[Aug 23 14:36:24.841] I (116) boot: 5 fs_1 FS 01 82 00370000 00040000 00000000
[Aug 23 14:36:24.841] I (124) boot: End of partition table
[Aug 23 14:36:24.841] I (128) boot: OTA data 0: seq 0x00000001, st 0x10, CRC 0x157a2b85, valid? 1
[Aug 23 14:36:24.857] I (136) boot: OTA data 1: seq 0x00000000, st 0x00, CRC 0x00000000, valid? 0
[Aug 23 14:36:24.857] I (144) boot_comm: chip revision: 3, min. application chip revision: 0
[Aug 23 14:36:24.873] I (151) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2ee38 (192056) map
[Aug 23 14:36:24.936] I (216) esp_image: segment 1: paddr=0x0003ee60 vaddr=0x3ffbdb60 size=0x011b8 ( 4536) load
[Aug 23 14:36:24.936] I (217) esp_image: segment 2: paddr=0x00040020 vaddr=0x400d0020 size=0xe1704 (923396) map
[Aug 23 14:36:25.219] I (491) esp_image: segment 3: paddr=0x0012172c vaddr=0x3ffbed18 size=0x02a30 ( 10800) load
[Aug 23 14:36:25.219] I (495) esp_image: segment 4: paddr=0x00124164 vaddr=0x40080000 size=0x1fb10 (129808) load
[Aug 23 14:36:25.251] I (543) esp_image: segment 5: paddr=0x00143c7c vaddr=0x400c0000 size=0x00034 ( 52) load
[Aug 23 14:36:25.282] I (560) boot: Loaded app from partition at offset 0x10000
[Aug 23 14:36:25.282] I (560) boot: Disabling RNG early entropy source...
[Aug 23 14:36:25.282] I (561) cpu_start: Pro cpu up.
[Aug 23 14:36:25.282] I (564) cpu_start: Application information:
[Aug 23 14:36:25.282] I (569) cpu_start: Project name: esp32-ble-connector-v2
[Aug 23 14:36:25.329] I (576) cpu_start: App version: 2.20.0
[Aug 23 14:36:25.329] I (580) cpu_start: Compile time: Aug 23 2024 12:35:46
[Aug 23 14:36:25.329] I (586) cpu_start: ELF file SHA256: b09cbb8b3444c88e...
[Aug 23 14:36:25.329] I (592) cpu_start: ESP-IDF: 4.2-r8
[Aug 23 14:36:25.329] I (597) cpu_start: Starting app cpu, entry point is 0x400807ac
[Aug 23 14:36:25.329] I (0) cpu_start: App cpu up.
[Aug 23 14:36:25.329] I (608) heap_init: Initializing. RAM available for dynamic allocation:
[Aug 23 14:36:25.329] I (615) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
[Aug 23 14:36:25.329] I (621) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
[Aug 23 14:36:25.344] I (627) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
[Aug 23 14:36:25.344] I (633) heap_init: At 3FFCAA90 len 00015570 (85 KiB): DRAM
[Aug 23 14:36:25.375] I (639) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
[Aug 23 14:36:25.375] I (645) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
[Aug 23 14:36:25.375] I (652) heap_init: At 4009FB10 len 000004F0 (1 KiB): IRAM
[Aug 23 14:36:25.375] I (658) cpu_start: Pro cpu start user code
[Aug 23 14:36:25.375] I (675) spi_flash: detected chip: generic
[Aug 23 14:36:25.391] I (676) spi_flash: flash io: dio
[Aug 23 14:36:25.391] I (676) cpu_start: Starting scheduler on PRO CPU.
[Aug 23 14:36:25.391] I (0) cpu_start: Starting scheduler on APP CPU.
[Aug 23 14:36:25.407]
[Aug 23 14:36:25.407]
[Aug 23 14:36:25.407] mgos_freertos.c:155 esp32-ble-connector-v2 1.0 (20240823-123606)
[Aug 23 14:36:25.410] mgos_freertos.c:157 Mongoose OS 2.20.0 (20240823-123606/2.20.0-g1885c0f)
[Aug 23 14:36:25.423] mgos_freertos.c:161 CPU: 160 MHz, FreeRTOS 8.2.0, heap: 239892 total, 207872 free
[Aug 23 14:36:25.423] mgos_freertos.c:163 Newlib 3.0.0
[Aug 23 14:36:25.453] esp32_main.c:65 ESP-IDF 4.2-r8
[Aug 23 14:36:25.453] esp32_main.c:68 Boot partition: app_0; flash: 4M
[Aug 23 14:36:25.453] mongoose.c:15766 Mongoose 6.18, LwIP 2.1.3
[Aug 23 14:36:25.453] mongoose.c:4932 mbed TLS 2.16.11-cesanta1
[Aug 23 14:36:25.453] mgos_vfs_dev.c:73 nvs: esp32part ({"label": "nvs"}), size 16384
[Aug 23 14:36:25.453] mgos_vfs_dev.c:73 otadata: esp32part ({"label": "otadata"}), size 8192
[Aug 23 14:36:25.485] mgos_vfs_dev.c:73 fs_0: esp32part ({"label": "fs_0"}), size 262144
[Aug 23 14:36:25.485] mgos_vfs_dev.c:73 fs_1: esp32part ({"label": "fs_1"}), size 262144
[Aug 23 14:36:25.485] mgos_vfs.c:174 /: SPIFFS @ fs_0, opts {"bs":4096,"ps":256,"es":4096}
[Aug 23 14:36:25.957] mgos_vfs.c:347 /: size 233681, used: 104667, free: 129014
[Aug 23 14:36:26.255] mgos_sys_config.c:470 MAC: a8:03:2a:f6:fe:0c
[Aug 23 14:36:26.255] mgos_sys_config.c:478 WDT: 30 seconds
[Aug 23 14:36:26.255] I (1531) BTDM_INIT: BT controller compile version [960576d]
[Aug 23 14:36:26.255] I (1541) phy_init: phy_version 4660,0162888,Dec 23 2020
[Aug 23 14:36:26.255] W (1551) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
[Aug 23 14:36:26.428] esp32_bt.c:328 Bluetooth init ok, MTU 500, pairing enabled, 0 paired devices
[Aug 23 14:36:26.571] E (1841) lan8720: lan8720_pwrctl(349): power up timeout
[Aug 23 14:36:26.571] E (1851) lan8720: lan8720_init(389): power control failed
[Aug 23 14:36:26.571] E (1851) esp_eth: esp_eth_driver_install(199): init phy failed
[Aug 23 14:36:26.571] esp32_eth.c:118 Ethernet driver init failed: -1
[Aug 23 14:36:26.571] mgos_deps_init.c:243 ethernet init failed
[Aug 23 14:36:26.571] mgos_freertos.c:184 MGOS init failed: -32
[Aug 23 14:36:27.073] mgos_vfs.c:1026 Unmounting filesystems
[Aug 23 14:36:27.073] mgos_system.c:43 Restarting
[Aug 23 14:36:27.073] ets Jul 29 2019 12:21:46