---
title: "SPI to Ethernet Communication on Forlinx OK-MX9352-C Board: W5500 Driver Setup & Debug Guide"
url: "https://maker.wiznet.io/mason/projects/pi-to-ethernet-communication-on-forlinx-ok-mx9352-c-board-w5500-driver-setup-amp-debug-guide/"
markdown_url: "https://maker.wiznet.io/mason/projects/pi-to-ethernet-communication-on-forlinx-ok-mx9352-c-board-w5500-driver-setup-amp-debug-guide/md"
type: "UCC: User Created Content"
author: "forlinx embedded"
author_url: "https://hackaday.io/page/399362-spi-to-ethernet-communication-on-forlinx-ok-mx9352-c-board-w5500-driver-setup-amp-debug-guide"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "forlinx embedded"
original_url: "https://hackaday.io/page/399362-spi-to-ethernet-communication-on-forlinx-ok-mx9352-c-board-w5500-driver-setup-amp-debug-guide"
published: "2025-05-26"
language: "en"
tags: ["W5500", "Linux"]
hardware: ["WIZnet W5500"]
likes: 0
views: 2237
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# SPI to Ethernet Communication on Forlinx OK-MX9352-C Board: W5500 Driver Setup & Debug Guide

> SPI to Ethernet Communication on Forlinx OK-MX9352-C Board: W5500 Driver Setup & Debug Guide

Original author: forlinx embedded (source: https://hackaday.io/page/399362-spi-to-ethernet-communication-on-forlinx-ok-mx9352-c-board-w5500-driver-setup-amp-debug-guide)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

This article explains how to implement Ethernet communication using the W5500 SPI-to-Ethernet module on the Forlinx OK-MX9352-C development board. The W5500 is an SPI-based Ethernet controller that supports 100Mbps Ethernet and up to 80Mbps SPI data rates.

The content includes:

**Hardware Connection:** Pin mapping between W5500 and OK-MX9352-C (LPSPI3 and GPIO).

**Kernel Configuration:** Enabling WIZnet SPI Ethernet drivers in the kernel menuconfig.

**Device Tree Settings:** Adding W5500 configuration under the SPI3 node, including GPIO for chip-select, interrupt, and reset.

**Driver Build and Deployment:** Compiling `w5100.ko` and `w5100-spi.ko`, updating the device tree, and copying files to the board.

**Driver Loading:** Inserting modules and checking for a new network interface (eth2).

**Network Test:** Assigning IP address and verifying Ethernet communication with `ping`.

The article provides the necessary steps to enable and verify SPI-based Ethernet using the W5500 on this board.

---

Source: https://maker.wiznet.io/mason/projects/pi-to-ethernet-communication-on-forlinx-ok-mx9352-c-board-w5500-driver-setup-amp-debug-guide/
