arch/esp32 add openeth mac driver

This driver is used with QEMU, to make it possible
to use networking.

This is not the MAC in ESP32, however, it can be used with QEMU.

The code was shamelessly copied from https://github.com/espressif/esp-idf/commit/31dac92e5f0daac98190fd603df213a0a25a3807
This commit is contained in:
Marco Casaroli
2024-03-11 18:30:05 +00:00
committed by Alan Carvalho de Assis
parent 768c5a28a1
commit d048caf1d2
5 changed files with 913 additions and 0 deletions
@@ -405,6 +405,13 @@ A QEMU-compatible ``nuttx.merged.bin`` binary image will be created. It can be r
$ qemu-system-xtensa -nographic -machine esp32 -drive file=nuttx.merged.bin,if=mtd,format=raw
QEMU Networking
---------------
Networking is possible using the openeth MAC driver. Enable ``ESP32_OPENETH`` option and set the nic in QEMU:
$ qemu-system-xtensa -nographic -machine esp32 -drive file=nuttx.merged.bin,if=mtd,format=raw -nic user,model=open_eth
Secure Boot and Flash Encryption
================================