Go to advanced search

by PhilE
Sun Oct 21, 2018 4:07 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 23
Views: 660

Re: Moving Linux kernel to 4.19

When we first started using Device Tree for pin configuration we found an oddity - that GPIOs and pinctrl (pin function selection) intentionally use orthogonal "name spaces"; it is perfectly permissible to use the same pin from both worlds without generating an error. They later added an option to m...
by PhilE
Sun Oct 21, 2018 3:52 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 23
Views: 660

Re: Moving Linux kernel to 4.19

The driver treats the GPIO allocation failure as a fatal error. The Voice HAT only uses a single GPIO - GPIO 16 - and I can't think what else would be using it, but you can probably find out with:

Code: Select all

$ raspi-gpio get 16
$ sudo grep 16 /sys/kernel/debug/pinctrl/3f200000.gpio/{pinmux-,}pins
by PhilE
Sun Oct 21, 2018 3:35 pm
Forum: Device Tree
Topic: SPI device node: 2 chip selects on same device + kernel driver
Replies: 1
Views: 39

Re: SPI device node: 2 chip selects on same device + kernel driver

I'm not aware of any drivers that drive multiple SPI devices but present a single interface in that way, which makes this an interesting problem. The primary question has to be: does this have to be done as a device driver, or can you use spidev with a user-mode library to manage the two devices? Yo...
by PhilE
Sun Oct 21, 2018 3:07 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 23
Views: 660

Re: Moving Linux kernel to 4.19

Here's the problem:

Code: Select all

018880.176: dterror: not a valid FDT - err -9
018880.188: Failed to load HAT overlay
The HAT EEPROM is corrupt or not programmed. Try with "dtoverlay=googlevoicehat-soundcard" instead.
by PhilE
Sun Oct 21, 2018 11:35 am
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 23
Views: 660

Re: Moving Linux kernel to 4.19

@Dougie Add "dtdebug=1" to your config.txt, reboot, then post the output of:

Code: Select all

$ sudo vcdbg log msg |& grep -iv hdmi
by PhilE
Fri Oct 19, 2018 4:38 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 23
Views: 660

Re: Moving Linux kernel to 4.19

Click on the green button labelled "New issue".
by PhilE
Fri Oct 19, 2018 5:48 am
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 23
Views: 660

Re: Moving Linux kernel to 4.19

ejolson wrote:
Thu Oct 18, 2018 11:22 pm
Between the 4.9.x series and the 4.14.x series there was a regression that prevented the USB Ethernet Gadget from using jumbo packets.
Opening an issue in our GitHub Linux repo is the best way to report regressions like this.
by PhilE
Thu Oct 18, 2018 2:15 pm
Forum: Compute Module
Topic: ENC28J60 on others SPIs
Replies: 4
Views: 96

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: 96

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 412

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: 146

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: 245

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.

Go to advanced search