Go to advanced search

by PhilE
Mon Jun 05, 2023 2:28 pm
Forum: Compute Module
Topic: Adding wifi/ethernet to compute module 3+
Replies: 5
Views: 141

Re: Adding wifi/ethernet to compute module 3+

That's going to be tricky then, unless you can hook up a UART.

Have you tried asking the designer of the board? https://github.com/NebraLtd/nebra-lora-hardware/issues
by PhilE
Mon Jun 05, 2023 1:30 pm
Forum: Compute Module
Topic: Adding wifi/ethernet to compute module 3+
Replies: 5
Views: 141

Re: Adding wifi/ethernet to compute module 3+

What does "lsusb" show?
by PhilE
Mon Jun 05, 2023 11:53 am
Forum: Compute Module
Topic: Adding wifi/ethernet to compute module 3+
Replies: 5
Views: 141

Re: Adding wifi/ethernet to compute module 3+

Have you tried:

Code: Select all

dtoverlay=dwc2,dr_mode=host
?
by PhilE
Sat Jun 03, 2023 12:56 pm
Forum: Advanced users
Topic: Issue to power my Raspberry Pi 4 with GPIO
Replies: 2
Views: 360

Re: Issue to power my Raspberry Pi 4 with GPIO

Deleted strange rant/possible AI spam (and well-reasoned responses to it).
by PhilE
Fri Jun 02, 2023 5:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c-fan,
Replies: 7
Views: 295

Re: i2c-fan,

That patch was merged late April, so your current kernel (Tue May 30) includes it.
by PhilE
Fri Jun 02, 2023 10:48 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Non Conflicting I2C device not working together (Pi Zero W)
Replies: 11
Views: 330

Re: Non Conflicting I2C device not working together (Pi Zero W)

As there should only be one set of pull-ups per bus, unless Grove are completely clueless (which seems unlikely), the devices will have no pull-ups.
by PhilE
Thu Jun 01, 2023 9:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Non Conflicting I2C device not working together (Pi Zero W)
Replies: 11
Views: 330

Re: Non Conflicting I2C device not working together (Pi Zero W)

GPIO 8 and 9
Which pin/GPIO numbering scheme are you using? The I2C bus with the pull-ups is on SoC/Broadcom GPIOs 2 & 3, which are on header pins 3 & 5.
by PhilE
Thu Jun 01, 2023 7:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Non Conflicting I2C device not working together (Pi Zero W)
Replies: 11
Views: 330

Re: Non Conflicting I2C device not working together (Pi Zero W)

Are the other devices all being powered from the Pi via the 4-pin connectors? The Zero W isn't capable of powering much in the way of external peripherals. Do you have a way to give at least one an independent power supply?
by PhilE
Wed May 31, 2023 1:51 pm
Forum: Compute Module
Topic: Invalid GPIO command 2=op,dl
Replies: 3
Views: 134

Re: Invalid GPIO command 2=op,dl

And the early bootloader does also parse it, hence the diagnostic messages above.
by PhilE
Wed May 31, 2023 1:50 pm
Forum: Compute Module
Topic: Invalid GPIO command 2=op,dl
Replies: 3
Views: 134

Re: Invalid GPIO command 2=op,dl

It looks fine to me: $ grep gpio /boot/config.txt #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 gpio=2=op,dl which leads to: RPi: BOOTLOADER release VERSION:8ba17717 DATE: 2023/01/11 TIME: 17:40:52 ... FAT32 clusters 130554 Read config.txt bytes 2130 hnd 0x6702 gpio_cmd: '2=op,dl'...
by PhilE
Sun May 28, 2023 5:15 pm
Forum: Compute Module
Topic: CM4: Mismatched revision code from bootloader vs cpuinfo [SOLVED]
Replies: 9
Views: 505

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

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

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: 17
Views: 545

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: 17
Views: 545

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: 17
Views: 545

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 [SOLVED]
Replies: 9
Views: 505

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 [SOLVED]
Replies: 9
Views: 505

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: 390
Views: 58232

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

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

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

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

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

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

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=...

Go to advanced search