FreeBSD + Zephyr RTOS + ESP32

FreeBSD can natively emulate Linux ELF binaries. You can now bootstrap Linux espressif xtensa toolchain for ESP32 on FreeBSD under The Zephyr Project with west espressif install :-)
https://github.com/espressif/esp-idf/pull/7226#event-5064755416

ZEPHYR RTOS ROX!

If you never heard about Free-and-Open-Source ZEPHYR RTOS [1] (Apache 2.0 licensed) then it will make your day as the best platform out there for your new embedded electronics design :-) It works on anything.. even on Open-Source-Hardware RISC-V CPU [2] :-)

[1] https://zephyrproject.org/
[2] https://riscv.org/