Go to advanced search

by PhilE
Sun May 28, 2023 5:15 pm
Forum: Compute Module
Topic: CM4: Mismatched revision code from bootloader vs cpuinfo
Replies: 7
Views: 275

Re: CM4: Mismatched revision code from bootloader vs cpuinfo

What is in boot.scr? Any references to fdt are particularly relevant.
by PhilE
Fri May 26, 2023 3:04 pm
Forum: Device Tree
Topic: Setting mmc0 4-bit mode actual clock speed on rpi4b
Replies: 3
Views: 165

Re: Setting mmc0 4-bit mode actual clock speed on rpi4b

I made a mistake - the sd_overclock parameter is currently only supported on the older Pis, and was intended to boost the clock as well as reduce it. Something similar could probably added to the sdhci-iproc driver used by BCM2711, but it isn't there yet. And you're right about the sdhci-iproc drive...
by PhilE
Thu May 25, 2023 9:40 pm
Forum: Device Tree
Topic: Setting mmc0 4-bit mode actual clock speed on rpi4b
Replies: 3
Views: 165

Re: Setting mmc0 4-bit mode actual clock speed on rpi4b

SD cards are meant to run as fast as they can, which for that interface is 50MHz. Linux has no standard way to change that. However, the Pi MMC/SD drivers have an extra setting that allows the clock to be changed. To run the interface at 20MHz, add "dtparam=sd_overclock=20" to confíg.txt. ...
by PhilE
Thu May 25, 2023 2:21 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CTS RTS Pin enable
Replies: 10
Views: 242

Re: CTS RTS Pin enable

> how i can enable the flow control of uart5? You've done enough to enable the flow control signals from the UART to appear on the 40-pin header, but: 1. The UART may not be configured to use them. RTS (strictly, nRTS) is driven low when the UART is ready to receive data. Similarly, it looks for low...
by PhilE
Thu May 25, 2023 1:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CTS RTS Pin enable
Replies: 10
Views: 242

Re: CTS RTS Pin enable

> in which version of kernel shows ttyAMA5?

The patch appeared in 6.1.26, so it should be included in yours. "ls /dev/ttyAMA*" if you're in doubt. Note that you might get different results if the Device Tree (dtb) files weren't also updated.
by PhilE
Thu May 25, 2023 1:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CTS RTS Pin enable
Replies: 10
Views: 242

Re: CTS RTS Pin enable

To see if the overlay has been applied correctly and is being used by the kernel, what does "raspi-gpio get 12-15" show?

Note that with one of the latest kernels, enabling UART5 results in /dev/ttyAMA5 appearing, not /dev/ttyAMA1.
by PhilE
Thu May 25, 2023 8:04 am
Forum: Compute Module
Topic: CM4: Mismatched revision code from bootloader vs cpuinfo
Replies: 7
Views: 275

Re: CM4: Mismatched revision code from bootloader vs cpuinfo

Did you run both of those images on the same board? Did you notice that the serial number also changed? My guess is that U-boot has been configured to use a pre-canned, pre-patched DTB, rather than inherit one from the firmware (which U-boot can easily do).
by PhilE
Wed May 24, 2023 8:22 pm
Forum: Compute Module
Topic: CM4: Mismatched revision code from bootloader vs cpuinfo
Replies: 7
Views: 275

Re: CM4: Mismatched revision code from bootloader vs cpuinfo

It's certainly nothing to worry about, provided the cpuinfo value matches the device you paid for. I don't know how the value programmed into the OTP is obtained - whether it is supposed to change when the RAM size on the production line is changed, whether they all get the same fixed value, or some...
by PhilE
Tue May 23, 2023 9:38 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.1
Replies: 389
Views: 56408

Re: Moving Linux Kernel to 6.1

I can see something similar with an SPI display. I think it's caused by something in this PR: https://github.com/raspberrypi/linux/pull/5458
by PhilE
Fri May 19, 2023 4:49 pm
Forum: Compute Module
Topic: Connecting to CM4 via usb-serial (Linux host)
Replies: 4
Views: 237

Re: Connecting to CM4 via usb-serial (Linux host)

I couldn't say - I'm not an electronics engineer. It's also possible that the RX input on the CM4 is damaged.
by PhilE
Fri May 19, 2023 4:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 391

Re: SPI Clock speed jumping

The firmware has always reserved the right to control the core clock without any form of handshake with or limitation by the ARM, as a way of preventing thermal runaway. If ARM performance is not a limitation for you then you may find that switching the powersave governor is a suitable way to preven...
by PhilE
Fri May 19, 2023 4:26 pm
Forum: Compute Module
Topic: Connecting to CM4 via usb-serial (Linux host)
Replies: 4
Views: 237

Re: Connecting to CM4 via usb-serial (Linux host)

Code: Select all

pin 1(5V) --> 5V
That's a bit alarming - the GPIOs are 3.3V, and may explain why you can't get a response.
by PhilE
Fri May 19, 2023 12:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 391

Re: SPI Clock speed jumping

It's a subject that's come up more than once, and there should probably be a more portable way to achieve the same effect. "core_freq=max" or "core_freq=min" appeals, but the parser is expecting integers so that doesn't work. Magic values signifying max and min would be easy to a...
by PhilE
Fri May 19, 2023 10:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 391

Re: SPI Clock speed jumping

Doh - corrected. I wish I could say it was the first time I've got that wrong.
by PhilE
Fri May 19, 2023 10:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Clock speed jumping
Replies: 8
Views: 391

Re: SPI Clock speed jumping

Unfortunately the SPI clock is derived from the core clock, and with the default configuration the core clock varies with load. On any Pi you can lock the core lock by giving the config.txt settings "core_freq" and "core_freq_min" the same value, e.g. 500 on a Pi 4. `force_turbo=...
by PhilE
Fri May 19, 2023 8:18 am
Forum: Compute Module
Topic: CM4 seems burnt with no reason
Replies: 1
Views: 216

Re: CM4 seems burnt with no reason

> The heat sink on the module Which heat sink is this? They aren't standard equipment. > I use PD charger which for my cell phone to supply this board, is it possible that it(charger) source more than 5V?? I genuine PD charger shouldn't offer higher current or voltages to a non-PD device, but you se...
by PhilE
Wed May 17, 2023 4:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MAX3107 Won't appear in /dev [SOLVED]
Replies: 4
Views: 351

Re: MAX3107 Won't appear in /dev

Hmm - I wonder if your embedded clock declaration has confused the kernel into thinking you want it to be something other than a tty; that's how the kernel-configured Bluetooth support works. Try moving it into a fragment of its own, using a target-path (not a target) of "/" or ("/clo...
by PhilE
Wed May 17, 2023 8:05 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.1
Replies: 389
Views: 56408

Re: Moving Linux Kernel to 6.1

Because the new way is logical and what upstream do. We've been reverting a patch for years now, but apart from the fact that it is a change it is hard to justify not doing so.
by PhilE
Tue May 16, 2023 5:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MAX3107 Won't appear in /dev [SOLVED]
Replies: 4
Views: 351

Re: MAX3107 Won't appear in /dev

Your overlay doesn't appear to disable spidev0.0. Are you using another overlay for that, or is the clash the cause of your problem?
by PhilE
Tue May 16, 2023 12:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Show all GPIOs in use
Replies: 1
Views: 228

Re: Show all GPIOs in use

This should do what you want:

Code: Select all

$ sudo cat /sys/kernel/debug/gpio
by PhilE
Tue May 16, 2023 10:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Thermal printer with parallel port
Replies: 6
Views: 408

Re: Thermal printer with parallel port

Searching for "raspberry pi thermal printer cups driver" finds quite a few tutorials that may be relevant.
by PhilE
Tue May 16, 2023 10:29 am
Forum: Compute Module
Topic: Kernel panic / boot with SSD not possible
Replies: 3
Views: 271

Re: Kernel panic / boot with SSD not possible

What's in your cmdline.txt? You should see the command line fairly early in the kernel log.
by PhilE
Tue May 16, 2023 9:44 am
Forum: Compute Module
Topic: NDA Contact [SOLVED]
Replies: 7
Views: 676

Re: NDA Contact

I've been informed that you have access to the portal, and have done since the end of March...
by PhilE
Mon May 15, 2023 9:42 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.1
Replies: 389
Views: 56408

Re: Moving Linux Kernel to 6.1

Good.
by PhilE
Mon May 15, 2023 8:23 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.1
Replies: 389
Views: 56408

Re: Moving Linux Kernel to 6.1

The current rpi-6.1.y top-of-tree (1229967a3ab8) includes the missing line. And the test Pi with the broken SDIO interface (and therefore no error messages) is now in the e-waste bin.

Go to advanced search