IoT Base Platform With RaspberryPi, WIZ850io : Ethernet Module Driver

Introduction: IoT Base Platform With RaspberryPi, WIZ850io : Ethernet Module Driver

About: S/W Engineer for Open Source Platform.

I know RaspberryPi platform for IoT. Recently WIZ850io is announced by WIZnet. So I implemented a RaspberryPi application by Ethernet SW modification because I can handle a source code easily. You can test Ethernet Module Driver through RaspberryPi and WIZ850io. Please refer to the following step.

Step 1: Prepare Materials

Please refer to the following.

1. Raspberry Pi 3 Starter Kit

2. WIZ850io

3. UART2USB adapter

4. LAN cable

5. USB cable

Step 2: Hardware Connection

Please connect an USB, LAN cable, WIZ850io and UART2USB adapter.

You can get more HW info by the following site.

https://pinout.xyz/pinout/spi

http://wizwiki.net/wiki/doku.php?id=products:wiz850io:start

Step 3: Prepare Development Environment

Step 4: Software

Linux Kernel : WIZnet Ethernet Module Driver for W5500

https://github.com/borg42/w5x00

Step 5: How to Run : Modification

I modified the source code to fit Raspberry Pi.

Step 6: How to Run : Result

I copied w5x00 module into Raspberry Pi.

Be the First to Share

    Recommendations

    • Toys & Games Contest

      Toys & Games Contest
    • Big vs Small Challenge

      Big vs Small Challenge
    • Fix It Challenge

      Fix It Challenge

    7 Comments

    1
    SchmidtR
    SchmidtR

    2 years ago

    Can you guide me to connect Raspberry and W5500, I have tried many times, but I don't know what connected to CS, RST, INT( on W5500), Is it CE0, BCM24 , BCM22 ?

    0
    Carbon64
    Carbon64

    10 months ago

    Could you please help to run the driver. I've successfully compiled it for Raspberry Pi 3, uname 4.14.50-v7+.
    insmod do say nothing, lsmode shows w5x00 module. But there is no wiznet interface in ifconfig. There are only 2 strings in dmesg:
    [ 1976.627171] w5x00: 2.0.0
    [ 1976.627218] w5x00 spi register succeed.
    And I see no new devices in /dev.
    Could you please tell, what shall I check?

    0
    sergi_jini
    sergi_jini

    1 year ago

    Hello. thanks for the post.
    I am afraid I am missing some piece, which is not mentioned here. I am trying these steps on RPI zero and W5500.

    When trying to compile getting below error:

    ~/w5x00-master $ sudo ./compile.sh
    make -C /home/pi/w5x00-master SUBDIRS=/home/pi/w5x00-master modules
    make[1]: Entering directory '/home/pi/w5x00-master'
    make[1]: *** No rule to make target 'modules'. Stop.
    make[1]: Leaving directory '/home/pi/w5x00-master'
    Makefile:12: recipe for target 'default' failed
    make: *** [default] Error 2

    Looking inside the Make file (I replaced your folder tree with mine)
    obj-m := w5x00.o
    w5x00-objs := module.o netdrv.o dev.o queue.o

    #KDIR := /usr/src/linux-panda
    #KDIR := /home/olaf/ee/red-brick/image/source/red-brick-linux-sunxi
    #KDIR := /home/bingdo/project/raspberrypi_linux
    KDIR := /home/pi/w5x00-master
    PWD := $(shell pwd)

    default :
    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

    clean :
    rm -rf *.o
    rm -rf *.ko
    rm -rf *.mod.*
    rm -rf .w5x00*
    rm -rf Module.symvers
    rm -rf modules.order
    rm -rf .tmp_versions

    and the target folder itself:
    -rwxr-xr-x 1 pi pi 168 Sep 29 2017 compile.sh
    -rw-r--r-- 1 pi pi 33723 Oct 10 2017 dev.c
    -rw-r--r-- 1 pi pi 449 Sep 8 17:58 Makefile
    -rw-r--r-- 1 pi pi 3013 Oct 10 2017 module.c
    -rw-r--r-- 1 pi pi 5890 Oct 10 2017 netdrv.c
    -rw-r--r-- 1 pi pi 550 Oct 10 2017 queue.c
    -rw-r--r-- 1 pi pi 254 Oct 10 2017 queue.h
    -rw-r--r-- 1 pi pi 658 Oct 1 2014 README.rst
    -rw-r--r-- 1 pi pi 8267 Oct 10 2017 regs.h
    -rw-r--r-- 1 pi pi 3398 Oct 25 2017 w5x00.h

    0
    VictorS264
    VictorS264

    2 years ago on Introduction

    can you share result .ko file and insruction to deploy? thx

    0
    bingdo72
    bingdo72

    Reply 2 years ago

    I'm sorry. Currently I am not in charge of this job.

    You can ask WIZnet about your needs. Refer to support@wiznet.io

    Thank you.