Go to advanced search

by PhilE
Thu Nov 08, 2018 3:11 pm
Forum: Troubleshooting
Topic: Only the red LED is active, Pins don't work
Replies: 3
Views: 75

Re: Only the red LED is active, Pins don't work

a few minutes ago my raspberry suddenly stopped working. Can you briefly outline the timeline, listing the major operations - hardware being attached/detached, power being applied/removed, the point of failure, etc.? Examples would be: * Installed 3B+ with keyboard, mouse and monitor * Used it for ...
by PhilE
Wed Nov 07, 2018 5:53 pm
Forum: Compute Module
Topic: Please help to Remap pin Uart 0
Replies: 33
Views: 3590

Re: Please help to Remap pin Uart 0

Do you push this patch into the kernel? No I hadn't, but I have now. Can you post the patched uart0-overlay.dts here? Better yet, you can get it here: https://github.com/raspberrypi/linux/blob/rpi-4.14.y/arch/arm/boot/dts/overlays/uart0-overlay.dts And why do we have to write pin_func=7 on UART0......
by PhilE
Sun Nov 04, 2018 9:54 pm
Forum: Device Tree
Topic: Building a dtoverlay for MCP342x ADCs
Replies: 6
Views: 165

Re: Building a dtoverlay for MCP342x ADCs

Only remaining problem is my devices don't appear until I modprobe the driver. Assuming you have all the usual Raspbian udev rules, the only explanationI can think of for the lack of auto-loading is that the module is blacklisted. Is that possible? If not, for diagnostic purposes you could try the ...
by PhilE
Sun Nov 04, 2018 9:05 pm
Forum: Device Tree
Topic: STICKY: Device Tree Forum Area README
Replies: 9
Views: 8180

Re: STICKY: Device Tree Forum Area README

Please start a new topic for your question, where I'll happily answer it.
by PhilE
Sun Nov 04, 2018 5:02 pm
Forum: Device Tree
Topic: Building a dtoverlay for MCP342x ADCs
Replies: 6
Views: 165

Re: Building a dtoverlay for MCP342x ADCs

OK - let's start with the simplest overlay, one dedicated to the MCP3427 at address 0x69. An overlay is a container of patches (fragments) to a base DTB. Each fragment has a target (a location to apply it) and a group of properties and subnodes to put there. Properties can overwrite existing propert...
by PhilE
Sun Nov 04, 2018 3:23 pm
Forum: Device Tree
Topic: Building a dtoverlay for MCP342x ADCs
Replies: 6
Views: 165

Re: Building a dtoverlay for MCP342x ADCs

The boiler plate for such simple overlays dwarfs the actual DT changes, so it makes sense group them into collections like i2c-rtc and i2c-sensor. Having said that, I'm not sure an ADC is strictly a sensor, and there are 8 variants of the MCP342x, so perhaps a standalone overlay is reasonable. Besid...
by PhilE
Sun Oct 21, 2018 4:07 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 46
Views: 2943

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: 46
Views: 2943

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: 2
Views: 401

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: 46
Views: 2943

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: 46
Views: 2943

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: 46
Views: 2943

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: 46
Views: 2943

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

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

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

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

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

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

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

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

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

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

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

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

Re: ENC28J60 on SPI1

Code: Select all

 sudo apt-get install raspi-gpio

Go to advanced search