Go to advanced search

by PhilE
Mon Dec 11, 2023 10:08 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 16
Views: 874

Re: Moving Linux Kernel to 6.6

Sorry, I should have made it clear - negative answers/apologies/guilt not required.
by PhilE
Mon Dec 11, 2023 9:56 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 16
Views: 874

Re: Moving Linux Kernel to 6.6

Is there anyone here who's building their own rpi-6.6.y kernel? If so, have you had boot problems on Pis 1, 2 and Zero? I'm having difficulty reproducing the sdhost logging crash - I can see what might be happening and how to guard against it (more defensive programming), but the cause (the lack of ...
by PhilE
Fri Dec 08, 2023 3:15 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 16
Views: 874

Re: Moving Linux Kernel to 6.6

Apart from the rpi-poe overlay that I've just spotted.
by PhilE
Fri Dec 08, 2023 3:13 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 16
Views: 874

Re: Moving Linux Kernel to 6.6

Yes - polarity is expected. Shout if you see an unpatched overlay.
by PhilE
Fri Dec 08, 2023 3:08 pm
Forum: Device Tree
Topic: Goodix GT9271 fails with -22 (EINVAL) when using a PCA9685 GPIO
Replies: 8
Views: 662

Re: Goodix GT9271 fails with -22 (EINVAL) when using a PCA9685 GPIO

I'll hold off on merging the patch in case further changes are needed.
by PhilE
Fri Dec 08, 2023 2:51 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 16
Views: 874

Re: Moving Linux Kernel to 6.6

One clear change with the move to the 6.6 kernel is the removal of the downstream patch that has been pinning the base of the GPIO controller on older Pis (Zero to 4) at global GPIO 0. The effect of this is that you will no longer be able to write things like (with appropriate sudoing): $ echo 4 > /...
by PhilE
Fri Dec 08, 2023 12:19 pm
Forum: Device Tree
Topic: Goodix GT9271 fails with -22 (EINVAL) when using a PCA9685 GPIO
Replies: 8
Views: 662

Re: Goodix GT9271 fails with -22 (EINVAL) when using a PCA9685 GPIO

Yes, with the names I specified: Duh, yes. Ah, I see the problem: static int goodix_get_gpio_config(struct goodix_ts_data *ts) { ... /* * By default we request the reset pin as input, leaving it in * high-impedance when not resetting the controller to save power. */ ts->gpiod_rst_flags = GPIOD_IN; ...
by PhilE
Fri Dec 08, 2023 12:05 pm
Forum: Device Tree
Topic: Goodix GT9271 fails with -22 (EINVAL) when using a PCA9685 GPIO
Replies: 8
Views: 662

Re: Goodix GT9271 fails with -22 (EINVAL) when using a PCA9685 GPIO

Does the PCA9685 appear in the output of gpioinfo?
by PhilE
Fri Dec 08, 2023 9:27 am
Forum: Compute Module
Topic: IMX378-190 CAMERA + CM4?
Replies: 6
Views: 499

Re: IMXE78-190 CAMERA + CM4?

Follow their instructions and the OS will support it. CM4 and Pi 4 are running exactly the same kernel.
by PhilE
Fri Dec 08, 2023 9:23 am
Forum: MicroPython
Topic: RP Pico SPI Master/Slave Communication
Replies: 2
Views: 321

Re: RP Pico SPI Master/Slave Communication

[ Moved to Pico / MicroPython, where it should get more attention ]
by PhilE
Fri Dec 08, 2023 9:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

Corrected.
by PhilE
Fri Dec 08, 2023 9:17 am
Forum: Compute Module
Topic: IMX378-190 CAMERA + CM4?
Replies: 6
Views: 499

Re: IMXE78-190 CAMERA + CM4?

That's a better question than the first, which was too general, but you are still using a mixture of Pi 4 and CM4 - which is it you have? If it's a CM4 then it is the carrier that matters. The official CM4IO has the same connectors as the Zero and Zero 2 W, but other carriers may differ.
by PhilE
Thu Dec 07, 2023 8:37 pm
Forum: Compute Module
Topic: IMX378-190 CAMERA + CM4?
Replies: 6
Views: 499

Re: IMX378-190 CAMERA + CM4?

Did you read the instructions on their Wiki?
by PhilE
Thu Dec 07, 2023 8:22 pm
Forum: Raspberry Pi OS
Topic: Pi 5 Bookworm - Disable Wifi, Bluetooth, Audio
Replies: 3
Views: 263

Re: Pi 5 Bookworm - Disable Wifi, Bluetooth, Audio

Pi 5 has no analogue audio output...
by PhilE
Thu Dec 07, 2023 6:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

Found it - Ubuntu haven't enabled the DMA driver:

Code: Select all

$ sudo modprobe configs
$ zcat /proc/config.gz | grep DW_AXI_DMAC
# CONFIG_DW_AXI_DMAC is not set
You should report it to them officially (but I'll ping someone I know there).
by PhilE
Thu Dec 07, 2023 5:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

ubuntu@ubuntu:~/utils$ sudo cat /sys/kernel/debug/devices_deferred 1f00050000.spi Bingo - we're getting somewhere. Unfortunately it could take quite a while to work out why the probe is deferring, and it would involve installing a custom kernel, so to save time I'm installing an Ubuntu image I've j...
by PhilE
Thu Dec 07, 2023 4:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

Does "/sys/devices/platform/1f00050000.spi" exist as a directory?
by PhilE
Thu Dec 07, 2023 3:56 pm
Forum: Raspberry Pi OS
Topic: Pi 5 Bookworm - Disable Wifi, Bluetooth, Audio
Replies: 3
Views: 263

Re: Pi 5 Bookworm - Disable Wifi, Bluetooth, Audio

Same idea, different location - the configuration file is now /boot/firmware/config.txt. There are symbolic links, but it's easy to accidentally overwrite them with the file contents, after which point you can end up writing into the wrong file and having it ignored. Try (in /boot/firmware/config.tx...
by PhilE
Thu Dec 07, 2023 3:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

That looks very much like mine - you can see the "snps,dw-apb-ssi" compatible string for the controller, then the module names ("spi_dw" and "spi_dw_mmio "), and yet it doesn't enter the probe function... Ah, yes, perhaps one of its dependencies is missing. What do you ...
by PhilE
Thu Dec 07, 2023 10:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

That's better - but it shows no attempt to probe the driver for the user-facing SPI interfaces. Does /sys/kernel/config/device-tree/overlays exist in your image? If you do, we can try to see what is going wrong by applying the dtparam at runtime while watching the udev events. 1. Remove/comment out ...
by PhilE
Thu Dec 07, 2023 7:09 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

I think it's split over multiple lines, which doesn't work - the kernel will ignore the additions.
by PhilE
Wed Dec 06, 2023 8:42 pm
Forum: Advanced users
Topic: Question about model specific vc4-kms-v3d drivers
Replies: 3
Views: 371

Re: Question about model specific vc4-kms-v3d drivers

Correct - overlay_map.dtb contains the exclusions and exceptions.
by PhilE
Wed Dec 06, 2023 8:05 pm
Forum: Advanced users
Topic: Disabling LED on ICE tower cooler
Replies: 6
Views: 469

Re: Disabling LED on ICE tower cooler

That's to be expected: $ pinctrl FAN_PWM op dh # Make FAN_PWM an output, driving high - fan should stop $ pinctrl FAN_PWM op dl # Make it an output, driving low - fan should run at full speed $ pinctrl FAN_PWM ip # Make it an input - not sure $ pinctrl FAN_PWM a0 # Restore the normal (PWM) state $ p...
by PhilE
Wed Dec 06, 2023 2:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO Sysfs Interface for Userspace GPIO on the Raspberry Pi 5
Replies: 13
Views: 1420

Re: GPIO Sysfs Interface for Userspace GPIO on the Raspberry Pi 5

For years now, fixing the base GPIO number to zero has been frowned upon by the kernel devs. In the next kernels we release (6.6) there will be an error message at boot up about it. At the same time, the sysfs interface to the GPIOs has been deprecated - some distributions have already disabled it a...
by PhilE
Wed Dec 06, 2023 2:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI speed locked on rpi5
Replies: 45
Views: 2077

Re: SPI speed locked on rpi5

I find it hard to believe that that output is with "initcall_debug" in cmdline.txt (N.B. not config.txt). Are you sure it was?

Go to advanced search