User Tools

Site Tools


add_a_network_interface_without_using_usb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
add_a_network_interface_without_using_usb [2016/08/27 22:28] walkeradminadd_a_network_interface_without_using_usb [2017/02/01 16:19] – [Updates] walkeradmin
Line 12: Line 12:
 \\  \\ 
 What they have done is used a network module that runs on the SPI bus. Its a cheap unit that you can get from ebay for around £3, and while they are cheap, they are reliable, albeit a little slow, but not so slow that they are unusable. I will take reliability over speed any day. What they have done is used a network module that runs on the SPI bus. Its a cheap unit that you can get from ebay for around £3, and while they are cheap, they are reliable, albeit a little slow, but not so slow that they are unusable. I will take reliability over speed any day.
 +\\ 
 +\\ 
 +Here is the unit I purchased from eBay for £2.07p\\ 
 +{{:s-l1600.jpg?300|}}
 +\\ 
 +The seller on eBay is <color Orange>chips-fans</color> and while it has the same part number as the one used on raspi.tv, the pins are different, which is a bit annoying, but it wasn't to hard to work out.
 +\\ 
 +\\
 +===== Connecting the NIC ======
 +\\ 
 +Here are the connections I used for this board:
 +\\ 
 +    GPIO     RPi Pin    Nic PNo    Nic Func
 +    
 +    n/c                          CLK
 +    n/c                          WOL
 +    GPIO10   19                  SI
 +    GPIO08   24                  CS
 +    3v3      17                  Vcc
 +    GPIO25   22                  NT
 +    GPIO09   21                  SO
 +    GPIO11   23                  SCK
 +    n/c                          RST
 +    GND      20         10         GND
 +\\ 
 +===== Configuration =====
 +\\ 
 +Enable the SPI Pins:
 +\\ 
 +    From the command line
 +    
 +    sudo raspi-config
 +    
 +    Advanced Options - SPI - Yes to Enable
 +\\ 
 +Add the following to your <color Orange>/boot/config.txt</color>
 +\\ 
 +    dtoverlay=enc28j60
 +\\ 
 +Now <color red>reboot</color> the Pi
 +\\ 
 +\\ 
 +===== Updates =====
 +\\ 
 +<color Red>WARNING!!! - </color>I initially got kernel panics when I tested this unit, so using a standard USB nic, you need to do the following:
 +\\ 
 +    sudo apt-get upgrade
 +    sudo apt-get update
 +    sudo rpi-update (this forces a kernel update)
 +\\ 
 +===== Testing =====
 +\\ 
 +You can use a command line version of speedtest.net if you install it…
 +\\ 
 +    sudo apt-get install python-pip
 +    sudo easy_install speedtest-cli
 +    
 +    Run it with speedtest-cli
 +\\ 
 +I am currently getting:\\ 
 +\\ 
 +<color orange>4Mb/s Download</color>\\ 
 +<color orange>3Mb/s Upload</color>\\ 
 +\\ 
 +The best part is that it is super reliable (and cheap) and we can still use the USB port for something else :)
 +\\ 
 +\\ 
 +{{:gpio_spi_nic.jpg?400|}}{{:gpio_spi_nic_2.jpg?400|}}
 \\  \\ 
 \\  \\ 
 +
 +
  
add_a_network_interface_without_using_usb.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1