Posts

Showing posts with the label ENC28J60

Documentation is bad sometimes.

Image
Sometimes you just want to tear your hair out when the documentation of a product is WRONG. Something I ran into recently when trying to attach an enc28j60 from Hanrun to my genuine Arduino. I have used the ethernet shield on the Arduino without a hitch. So I supposed there would be no problem again... So I thought. Followed the map for hooking the two devices together as follows: VCC -   3.3V GND -    GND SCK - Pin 13 SO  - Pin 12 SI  - Pin 11 CS  - Pin  8 Downloaded the latest Arduino and Ethercard software. Loaded both of them on the computer. Imported code for a simple web server. // Present a "Will be back soon web page", as stand-in webserver. // 2011-01-30 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php #include <EtherCard.h> #define STATIC 0  // set to 1 to disable DHCP (adjust myip/gwip values below) #if STATIC // ethernet interface ip address static byte myip[] = { 192,168,1,2...

RPi-A to ethernet

Image
  Use the following at your own risk --------------------------------------  ENC28J60 SPI Ethernet Selected comments: Hi everyone, I want to use a ENC28J60 SPI ethernet board with the latest Raspbian. It's possible, the driver exists in the kernel source code, and Chris Boot already did-it before. Can anyone give me some hints on how i can accomplish this ? Do i need to recompile the whole kernel or just the enc28j60.c kernel module ? Any pointers on the kernel source (shall i use the kernel.org image or shall i download a RPi-speciffic one, from where) ? Thanks a lot. sudo apt-get update && sudo apt-get upgrade -y reboot git clone --depth 1 https://github.com/raspberrypi/linux.git cd linux zcat /proc/config.gz >.config edit .config and enable CONFIG_ENC28J6 make modules sudo make modules_install sacrifice 1st born reboot YMMV http://www.catb.org/esr/faqs/smart-questions.html Ask Questions http://www.raspberry...