Go to advanced search

by PhilE
Thu Oct 18, 2018 2:15 pm
Forum: Compute Module
Topic: ENC28J60 on others SPIs
Replies: 4
Views: 79

Re: ENC28J60 on others SPIs

Since this is attached hardware people also need to know about the wiring used in each case.

You really didn't make it easier by starting a new topic, and it is in no way specific to the Compute Module.
by PhilE
Thu Oct 18, 2018 2:00 pm
Forum: Compute Module
Topic: ENC28J60 on others SPIs
Replies: 4
Views: 79

Re: ENC28J60 on others SPIs

When you create a post like this, try and anticipate what the first questions might be and provide the information upfront. Anyone hoping to help you will need to know how you configured the device - hardware and software - on spi0, and what you changed to try to use spi2 instead.
by PhilE
Thu Oct 18, 2018 7:57 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

That's not surprising unless your PC is running a DHCP server. Try giving the Pi and PC static IP addresses, or configure the PC to bridge the Ethernet port to WiFi to allow the Pi to share it (depending on your requirements).
by PhilE
Wed Oct 17, 2018 3:51 pm
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

You'll need to enable DHCP on that interface (in whatever distribution you are using).
by PhilE
Wed Oct 17, 2018 2:33 pm
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

You shouldn't need to change anything else in Raspbian.
by PhilE
Wed Oct 17, 2018 1:31 pm
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

Then I am out of ideas for now - sorry.
by PhilE
Wed Oct 17, 2018 11:55 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

Have you had the enc28j60 working on SPI0, or did you just mean the SPI0 is working for something else?
by PhilE
Wed Oct 17, 2018 11:46 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

If you have had the enc28j60 on SPI0 then you may not need it, but I think you might.

The dmesg output shows the driver being loaded and registering, so I'm surprised it didn't show up in the lsmod output. Have you changed something else?
by PhilE
Wed Oct 17, 2018 11:33 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

Did you change the interrupt pin assignment?

What does "dmesg" report?
by PhilE
Wed Oct 17, 2018 11:15 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

You may need to disable spidev on spi1.0 because the enc28j60 has a kernel driver - use "dtoverlay=spi1-1cs,cs0_spidev=off".
by PhilE
Wed Oct 17, 2018 10:19 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

I suspect your overlay is failing to load. "sudo vcdbg log msg" will show you the log messages from the firmware - they are sent to stderr, so if you want to put them in a file you will need "sudo vcdbg log msg >& vcdbg.txt" (or "sudo vcdbg log msg > vcdbg.txt 2>&1" for a simpler shell).
by PhilE
Wed Oct 17, 2018 10:16 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

Code: Select all

 sudo apt-get install raspi-gpio
by PhilE
Wed Oct 17, 2018 10:10 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

Show the output of "raspi-gpio get 18-21" and "lsmod" when using the enc28j60-spi1 overlay.
by PhilE
Wed Oct 17, 2018 9:22 am
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

No, the command is correct: # Copy spi2 overlay source to a new file, changing spi2 to spi1 along the way [email protected]:~$ sed -e 's/spi2/spi1/' enc28j60-spi2-overlay.dts > enc28j60-spi1-overlay.dts # Now compile it [email protected]:~$ dtc [email protected] -I dts -O dtb -o enc28j60-spi1.dtbo enc28j60-spi1-overlay....
by PhilE
Tue Oct 16, 2018 5:17 pm
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

Yes - that looks good so far. Now change the default interrupt pin if you want to, compile it, copy it to /boot/overlays and add dtoverlay=enc28j60-spi1 to config.txt.
by PhilE
Tue Oct 16, 2018 4:18 pm
Forum: Compute Module
Topic: [SOLVED] ENC28J60 on SPI1
Replies: 28
Views: 353

Re: ENC28J60 on SPI1

There isn't an overlay that supports this yet, but there is one for spi2: https://github.com/raspberrypi/linux/blob/rpi-4.14.y/arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts A simple search and replace of spi2 to spi1, and a change of the default irq pin (I'm guessing), and you should have a f...
by PhilE
Sun Oct 14, 2018 6:40 pm
Forum: Compute Module
Topic: [SOLVED] Can't detect i2c device
Replies: 3
Views: 135

Re: Can't detect i2c device

GPIOs 0&1 are I2C0 - you want 2&3 for I2C1.
by PhilE
Thu Oct 11, 2018 4:28 pm
Forum: Advanced users
Topic: motioneye on a raspberry pi CM3
Replies: 8
Views: 232

Re: motioneye on a raspberry pi CM3

Moved to the Advanced Users board, where you're more likely to get some help with what is unlikely to be a Compute Module-specific issue.
by PhilE
Thu Oct 11, 2018 9:35 am
Forum: Troubleshooting
Topic: PI 3B+ not booting. Act led not blinking
Replies: 25
Views: 1968

Re: PI 3B+ not booting. Act led not blinking

@Burngate - as I understand it, a very small number of units have been affected by this problem, and we are trying to both diagnose and quantify the issue. I suggest you return the unit to the retailer, who will replace it for you.
by PhilE
Thu Oct 11, 2018 8:55 am
Forum: Device Tree
Topic: GPCLK1 at GPIO42
Replies: 3
Views: 322

Re: GPCLK1 at GPIO42

The USB hub+Ethernet devices on most Pis use a 24/25MHz clock from GPCLK1 via GPIO 42, so the outputs are definitely capable of generating a usable clock. The dt-blob.dts format defines a "drive_strength_mA" property for each pin - you can see it being used in the default dt-blob source . However, t...
by PhilE
Mon Oct 08, 2018 2:26 pm
Forum: Troubleshooting
Topic: SOLVED - Pi3B Rev1.2 - Boot Problems with Stretch
Replies: 23
Views: 585

Re: Pi3B Rev1.2 - Boot Problems with Stretch

The "4 long, 4 short" pattern of flashes indicates that the device is "Not supported". The only explanation that I can think of is that the OTP has one or more bit errors. The fuses that implement OTP are made from weird analogue electronics and there is a small but finite possibility of failure. So...
by PhilE
Mon Oct 08, 2018 2:01 pm
Forum: General discussion
Topic: Pi Zero W has no pullups on I2C pins, but the Zero does?
Replies: 10
Views: 467

Re: Pi Zero W has no pullups on I2C pins, but the Zero does?

The handling of GPIO2 and GPIO3 is the same (and correct) on both devices. The two extracts you post are from opposite ends of the GPIO2 trace. The Zero 1.3 schematic includes both ends, whereas the Zero W 1.1 schematic omits the BCM2835 end, which is where the pull-ups are.
by PhilE
Mon Oct 08, 2018 11:16 am
Forum: Compute Module
Topic: [SOLVED} what is the Compute Module's pin_config section?
Replies: 8
Views: 281

Re: what is the Compute Module's pin_config section?

You'll find the information you need in the Pin Configuration documentation.
by PhilE
Fri Oct 05, 2018 7:45 am
Forum: Advanced users
Topic: Microphone input to Raspberry Pi3 Model B
Replies: 3
Views: 93

Re: Microphone input to Raspberry Pi3 Model B

Moved to Advanced Users, since this I not Compute Module-related.
by PhilE
Thu Oct 04, 2018 9:47 am
Forum: Device Tree
Topic: Overlay for TSC2007 Touch controller
Replies: 5
Views: 144

Re: Overlay for TSC2007 Touch controller

That's a good attempt, but you were misled by the GPIO and interrupt declarations in the example - "<&gpio4 0 0>". The "4" in "gpio4" is presumably GPIO controller number 4, rather than GPIO 4. The two integers after that are the index of the GPIO on that controller and the flags - 0 means active hi...

Go to advanced search