arch/risc-v: Support the ethernet driver on ESP32-P4#18827
Conversation
09cdbe1 to
47fd70e
Compare
47fd70e to
b844164
Compare
There was a problem hiding this comment.
Thank you @tmedicci :-)
I understand this is initial implementation and will change in future, also will change because esp-sdk will change.
I agree with @xiaoxiang781216 to be as aligned with existing NuttX architecture as possible :-)
I do not have this board to test sorry.
b844164 to
43414c1
Compare
|
Please Rebase your PR with the Master Branch, we just fixed weact-stm32h750 thanks :-) |
This commit enables the ethernet driver support on ESP32-P4 based on a common-source implementation. This required a set of changes regargind the event handler for the Wi-Fi driver (which is now shared with the ethernet driver). Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
After recent changes on the event handler for the RISC-V-based Espressif SoCs, the same set of changes were ported back to xtensa devices. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit simply enables the ethernet support for the ESP32-P4's Function EV board. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit describes ethernet support on ESP32-P4 SoC and its ESP32-P4-Function-EV-Board v1.5.2. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
43414c1 to
5193394
Compare
|
@tmedicci this patch generate ci error, could you fix it: |
I'll check it. Probably just pending normalizing. |
|
@tmedicci This has been fixed thanks :-) |
|
Just got the https://www.waveshare.com/esp32-p4-nano.htm it has the ETH port will play in a moment :-) |
Summary
Enables the ethernet driver support on ESP32-P4 based on a common-source implementation. This required a set of changes regarding the event handler for the Wi-Fi driver (which is now shared with the ethernet driver).
Impact
Impact on user: Yes. Users can now use Ethernet on ESP32-P4.
Impact on build: No.
Impact on hardware: Yes. Mostly ESP32-P4, but all the supported SoCs from Espressif required small changes and optimization.
Impact on documentation: Yes. Documentation for the Ethernet network was properly added to ESP32-P4 chip its Functio EV board.
Impact on security: No.
Impact on compatibility: No.
Testing
esp32p4-function-ev-board:ethernetdefconfig can be used to test Ethernet on ESP32-P4.iperftesting is also possible. Please note that for v1.5.2 of the board, it's easier to flash using the USB-Serial/JTAG port (usually/dev/ttyACM) and use an externally connected USB-to-serial converter attached to UART0.Building
Running
Checking
eth0with DHCP client enabled:Attach the ethernet cable to the board and check the interface status and its IP address (please ensure that the cable is connected to a network with a DHCP server enabled):
iperftesting:Both UDP and TCP modes can be tested.
UDP
On the host PC, run the
iperfserver:On the device, run the
iperfclient:TCP
On the host PC, run the
iperfserver:On the device, run the
iperfclient:Results
For
ifconfig, the network's status should beRUNNINGand it should acquire a valid IP address.iperf's results are the following. Both are closed to the port's bandwidth limit of 100Mbits/sec.UDP
TCP