Go to advanced search

by PhilE
Fri Sep 24, 2021 6:13 pm
Forum: Device Tree
Topic: [Solved] mcp2515-can0 fails to setup interrupt pin
Replies: 3
Views: 104

Re: [Solved] mcp2515-can0 fails to setup interrupt pin

Hardware controlled chip select lines would be more efficient, but there are bugs and limitations in the BCM283x implementation that make it easier, safer and more flexible to use software driven GPIOs.
by PhilE
Fri Sep 24, 2021 12:21 pm
Forum: Device Tree
Topic: [Solved] mcp2515-can0 fails to setup interrupt pin
Replies: 3
Views: 104

Re: mcp2515-can0 fails to setup interrupt pin

As root(*) (unless /sys/kernel/debug is accessible to user pi), run: # cat /sys/kernel/debug/pinctrl/*/pins # cat /proc/interrupts # vcdbg log msg Report the output. (*) sudo cat... won't work because the shell expansion runs before the sudo - use "sudo su" or "sudo -i" to get an...
by PhilE
Thu Sep 23, 2021 8:47 pm
Forum: Compute Module
Topic: CM4 - OTG Mass Storage Help
Replies: 6
Views: 162

Re: CM4 - OTG Mass Storage Help

You would need to use the mass storage gadget driver - there's a guide here (the first hit from Google): https://linuxlink.timesys.com/docs/wiki ... le_Storage
by PhilE
Thu Sep 23, 2021 8:18 pm
Forum: Compute Module
Topic: CM4 - OTG Mass Storage Help
Replies: 6
Views: 162

Re: CM4 - OTG Mass Storage Help

The g_ether module is to create a network link between the guest and the CM4, so you probably don't need that. Unfortunately Linux doesn't allow direct access to the main filling system in that way - imagine the problems that could arise if two hosts were trying to use the same EMMC device. Instead ...
by PhilE
Thu Sep 23, 2021 7:52 pm
Forum: Compute Module
Topic: CM4 - OTG Mass Storage Help
Replies: 6
Views: 162

Re: CM4 - OTG Mass Storage Help

What exactly are you trying to achieve? To use the CM4 storage as a USB MSD from Windows?
by PhilE
Wed Sep 22, 2021 9:42 am
Forum: Compute Module
Topic: CAN I USE SI-51005-F FOR RASPBERRY PI COMPUTE MODULE 4
Replies: 1
Views: 117

Re: CAN I USE SI-51005-F FOR RASPBERRY PI COMPUTE MODULE 4

Go easy with the ALL CAPS - there's no need to shout.
by PhilE
Tue Sep 21, 2021 12:43 pm
Forum: Device Tree
Topic: Pi-4 Activating additional UART ports
Replies: 85
Views: 76633

Re: Pi-4 Activating additional UART ports

I suppose I can make the change permanent by dropping the dtbo in the boot partition!?
If you mean adding "dtoverlay=uart5" to config.txt in the boot partition, then yes.
I suppose a fragment like so would work?
Yes - that should work nicely.
by PhilE
Tue Sep 21, 2021 9:52 am
Forum: Compute Module
Topic: Nvme and asm1164e
Replies: 7
Views: 228

Re: Nvme and asm1164e

The Root Complex in 2711 supports 32 MSIs, so even with 5 drives there should be some spare, but there is clearly a hard limit of some kind there. If you are serious about trying to debug this then I would recommend acquiring a serial port adaptor to capture the early kernel output - FTDI TTL 232 RG...
by PhilE
Tue Sep 21, 2021 9:02 am
Forum: Device Tree
Topic: Pi-4 Activating additional UART ports
Replies: 85
Views: 76633

Re: Pi-4 Activating additional UART ports

is it possible to tell the linux uart driver *not* to set the alternate function of GPIO14/15 to CTS5/RTS5? Yes (ish - it isn't the driver that configures the pins, it's the pinctrl framework): $ dtoverlay -h uart5 Name: uart5 Info: Enable uart 5 on GPIOs 12-15. BCM2711 only. Usage: dtoverlay=uart5...
by PhilE
Mon Sep 20, 2021 4:21 pm
Forum: Compute Module
Topic: Nvme and asm1164e
Replies: 7
Views: 228

Re: Nvme and asm1164e

Hmm - even with just(!) those 4 drives, that's a lot of MSIs: Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+ Ca...
by PhilE
Mon Sep 20, 2021 12:50 pm
Forum: Compute Module
Topic: Nvme and asm1164e
Replies: 7
Views: 228

Re: Nvme and asm1164e

There's a suggestion here that you might be running out of MSI interrupts. What does "sudo lspci -vvv" report for a working system with 4 NVME drives attached?
by PhilE
Mon Sep 20, 2021 11:14 am
Forum: Troubleshooting
Topic: Pi B booting with only 3 berry on boot screen sporadically
Replies: 10
Views: 408

Re: Pi B booting with only 3 berry on boot screen sporadically

That's a long thread - this is the salient comment: https://github.com/Hexxeh/rpi-firmware/issues/232#issuecomment-666221012 It's worth noting that the problem seemed to go away after a patch that prevented a critical address on the stack from being aligned to a cache line boundary (or some other re...
by PhilE
Mon Sep 20, 2021 10:11 am
Forum: Troubleshooting
Topic: R-Pi 2B: "CPU3: failed to come online"
Replies: 2
Views: 112

Re: R-Pi 2B: "CPU3: failed to come online"

Duplicate of viewtopic.php?f=28&t=319777 - please continue any discussion there.
by PhilE
Mon Sep 20, 2021 10:10 am
Forum: Troubleshooting
Topic: Pi B booting with only 3 berry on boot screen sporadically
Replies: 10
Views: 408

Re: Pi B booting with only 3 berry on boot screen sporadically

This sounds like something first reported in 2020: an ongoing issue with some cores not coming up - usually CPU1. See https://github.com/Hexxeh/rpi-firmware/issues/232 for back story and speculation. I believe this is due to a bug in the Broadcom architecture that only appears when the ARM cache is ...
by PhilE
Mon Sep 20, 2021 9:40 am
Forum: Compute Module
Topic: CM4: GPIO's, pull, and shutdown
Replies: 6
Views: 303

Re: CM4: GPIO's, pull, and shutdown

The documentation will be based on the overall chip information from Broadcom, which has been known to diverge from reality - this is one of those cases. I've just (with dp11 looking over my shoulder) reset the SoC, preventing it from executing any instructions, and read the 2711 GP_PUP_PDN_CTRL reg...
by PhilE
Sun Sep 19, 2021 11:01 am
Forum: Device Tree
Topic: how to bind a clock source to cpufreq
Replies: 2
Views: 169

Re: how to bind a clock source to cpufreq

From what I remember there is no explicit link from cpufreq to the relevant clock. Instead, cpufreq knows how to locate the CPUs and their clock(s).
by PhilE
Fri Sep 17, 2021 3:29 pm
Forum: Networking and servers
Topic: CYW43455 (3B+, 4B, CM4) WiFi feedback thread
Replies: 58
Views: 7057

Re: CYW43455 (3B+, 4B, CM4) WiFi feedback thread

Thanks, Dougie. I would expect changes due to a new clm_blob to take effect immediately (after a reboot) - channels appearing or disappearing, power levels changing etc. - so if it's working for you now it should continue to do so.
by PhilE
Fri Sep 17, 2021 1:46 pm
Forum: Troubleshooting
Topic: Wrong WiFi Channel lists for China (when setting WiFi Country Code as CN)
Replies: 6
Views: 534

Re: Wrong WiFi Channel lists for China (when setting WiFi Country Code as CN)

I haven't succeed in unlocking this thread, so please add any comments to this topic:viewtopic.php?p=1914620#p1914620
by PhilE
Fri Sep 17, 2021 1:28 pm
Forum: Compute Module
Topic: CM4: GPIO's, pull, and shutdown
Replies: 6
Views: 303

Re: CM4: GPIO's, pull, and shutdown

The default pulls are hardwired, i.e. these are the values of the pulls asserted at reset, but they can obviously be changed subsequently. Following the default pulls is useful if trying to avoid glitches on a line, e.g. for the gpio-poweroff signal.
by PhilE
Fri Sep 17, 2021 12:57 pm
Forum: Troubleshooting
Topic: Wrong WiFi Channel lists for China (when setting WiFi Country Code as CN)
Replies: 6
Views: 534

Re: Wrong WiFi Channel lists for China (when setting WiFi Country Code as CN)

Cypress have released a new clm_blob file as an official fix for the problem of missing channels in certain CCs. The new file is available to download here: https://drive.google.com/file/d/1Isp7iLgM1rmydWPeRST2BfoPCOPSL_r3/view?usp=sharing It will download as brcmfmac43455-sdio.clm_blob.210917, and ...
by PhilE
Fri Sep 17, 2021 11:13 am
Forum: Networking and servers
Topic: CYW43455 (3B+, 4B, CM4) WiFi feedback thread
Replies: 58
Views: 7057

Re: CYW43455 (3B+, 4B, CM4) WiFi feedback thread

Cypress have released a new clm_blob file as an official fix for the problem of missing channels in certain CCs. The new file is available to download here: https://drive.google.com/file/d/1Isp7iLgM1rmydWPeRST2BfoPCOPSL_r3/view?usp=sharing It will download as brcmfmac43455-sdio.clm_blob.210917, and ...
by PhilE
Wed Sep 15, 2021 2:12 pm
Forum: Device Tree
Topic: [Solved] Overlay with PCA9538 and PCA9632
Replies: 15
Views: 897

Re: Overlay with PCA9538 - looking for advice how to initialize/configure I/O

"nxp,inverted-out" just sets the INVRT bit of the MODE2 register, so it is a device-wide setting.
by PhilE
Wed Sep 15, 2021 1:23 pm
Forum: Compute Module
Topic: WAKE_ON_GPIO change on CM4
Replies: 1
Views: 138

Re: WAKE_ON_GPIO change on CM4

To update the EEPROM config on a CM4: 1. Put a jumper on pin 1 of J2 to disable the EMMC (and/or remove the SD card), and apply the power. 2. Add a USB A<->microUSB cable between the slave port and your chosen usbboot host computer (I'm using a 4B). 3. On the host computer, change directory to the r...

Go to advanced search