Custom Ethernet driver and IPv4 #ethernet #networking #ipv4


Maik Vermeulen
 

I am working to implement a driver for a SPI Ethernet controller.

The code is being called at initialization, but I am stuck at testing the driver. I would like to use the Net Shell, so net ping xxx.xxx.xxx.xxx for example. Unfortunately, I notice that the code fails in net_icmpv4_send_echo_request() when checking iface->config.ip.ipv4.

Do I need to take extra steps to use IPv4 over my custom ethernet driver, beside enabling the driver and net shell? I could image I would have to bind my ethernet interface to the network stack somewhere, but I haven't found exactly where.

Join users@lists.zephyrproject.org to automatically receive all group messages.