Go to advanced search

by PhilE
Mon Jun 21, 2021 10:20 am
Forum: Compute Module
Topic: [SOLVED]Can't get NVMe working, it worked until a reboot and now says I need updated software!
Replies: 12
Views: 422

Re: [SOLVED]Can't get NVMe working, it worked until a reboot and now says I need updated software!

Users of Compute Modules are expected to be a bit more resourceful than the average user. That goes doubly so for users of beta features like NVME. Using unsupported software as well is asking for trouble.
by PhilE
Thu Jun 17, 2021 9:26 pm
Forum: Device Tree
Topic: [SOLVED] SC16IS752 attachment as serial
Replies: 3
Views: 152

Re: SC16IS752 attachment as serial

The i2c_gpio parameters are wrong and unnecessary, but otherwise it looks good.
by PhilE
Thu Jun 17, 2021 8:36 pm
Forum: Device Tree
Topic: [SOLVED] SC16IS752 attachment as serial
Replies: 3
Views: 152

Re: SC16IS752 attachment as serial

Post the output of "sudo vcdbg log msg", "dmesg" and "lsmod".
by PhilE
Thu Jun 17, 2021 7:44 am
Forum: Networking and servers
Topic: BCM43456 (Pi 400) WiFi feedback thread
Replies: 29
Views: 3677

Re: BCM43456 (Pi 400) WiFi feedback thread

It's always wise to read the recipe through before starting to cook.
by PhilE
Tue Jun 15, 2021 7:31 am
Forum: Device Tree
Topic: Help with gpio-fsm state machine
Replies: 60
Views: 4453

Re: Help with gpio-fsm state machine

If you are happy with the updated state machine I'll publish the change so it can be incorporated into new kernel builds.
by PhilE
Mon Jun 14, 2021 7:26 pm
Forum: Device Tree
Topic: Help with gpio-fsm state machine
Replies: 60
Views: 4453

Re: Help with gpio-fsm state machine

This (completely untested) version of the script should make the LED flash red if the fault condition occurs. import time,os,datetime,subprocess,signal,sys,gpiozero,argparse version=0.3 def debugPrint(s): if debug: print(time.strftime('%H:%M:%S',time.localtime())+' '+s) def signal_handler(sig,frame)...
by PhilE
Mon Jun 14, 2021 1:46 pm
Forum: Device Tree
Topic: Help with gpio-fsm state machine
Replies: 60
Views: 4453

Re: Help with gpio-fsm state machine

I've prepared a trial version of the overlay that implements the alternative state transitions I outlined above. You can download it from here: https://drive.google.com/file/d/16DDQkkzPGQw5J49y3flLc5n6xmyxU9Cu/view?usp=sharing The trial version is called "new-ghost-amp.dtbo", which you can...
by PhilE
Mon Jun 14, 2021 1:17 pm
Forum: Device Tree
Topic: Help with gpio-fsm state machine
Replies: 60
Views: 4453

Re: Help with gpio-fsm state machine

I think that's behaving how I intended, but perhaps not as you expected. After the ENABLE signal is received from the codec (what used to be hardware GPIO 22) RELAY1 is enabled. After a 1000ms delay, RELAY2 and RELAYSSR are enabled. Currently, if ENABLE is deasserted before that 1000ms has elapsed t...
by PhilE
Thu Jun 10, 2021 8:47 am
Forum: Compute Module
Topic: CM3+ lite not booting
Replies: 3
Views: 205

Re: CM3+ lite not booting

Looking at the history (but without actually trying it) I think that 1.20181112 is probably the first release with CM3+ support, so any release dated 2019 or later should be fine. I suggest you clone your image (or have some way of reverting if it all goes wrong), boot it on a CM3 and run "sudo...
by PhilE
Tue Jun 08, 2021 12:04 pm
Forum: Compute Module
Topic: Update CM3 firmware without updating kernel
Replies: 3
Views: 143

Re: Update CM3 firmware without updating kernel

FYI "sudo SKIP_KERNEL=1 rpi-update" is another way to achieve the same thing, although it will pull in firmware variants that aren't relevant on a CM3.
by PhilE
Mon Jun 07, 2021 8:54 am
Forum: Compute Module
Topic: [SOLVED] WL_nDisable and BT_nDisable with wireless option, GND or float it?
Replies: 5
Views: 195

Re: WL_nDisable and BT_nDisable with wireless option, GND or float it?

I think the answer is that you can leave it floating - that fits with my understanding and my reading of the datasheet - but can you clarify your use of "wireless", which sometimes appears to mean "WiFi-less"? Compare I am planning on using the wireless version and if one later c...
by PhilE
Mon Jun 07, 2021 7:40 am
Forum: Compute Module
Topic: CM3, HDMI clashing with GPIO
Replies: 4
Views: 190

Re: CM3, HDMI clashing with GPIO

Which carrier is this? You really need to say for CMs.

What is the nature of the interference? Occasional glitches, constant analogue ripple, or something else?

How does the interference manifest, and with what severity?
by PhilE
Sun Jun 06, 2021 4:31 pm
Forum: Device Tree
Topic: [SOLVED] Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays
Replies: 3
Views: 274

Re: Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays

The firmware logging can be displayed using ”sudo vcdbg log msg". The output goes to the stderr channel, so to capture it to a file you will need something like:

Code: Select all

$ sudo vcdbg log msg >& firmware.txt
by PhilE
Sun Jun 06, 2021 1:15 pm
Forum: Device Tree
Topic: [SOLVED] Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays
Replies: 3
Views: 274

Re: Conflict bewteen gpio-ir and allo-boss-dac-pcm512x-audio overlays

Can you try with the overlays loaded by the firmware from config.txt instead? I think you may get better error messages, or it might just work.

You can also check the kernel log (run the command "dmesg") where they may be clues about the failure.
by PhilE
Fri Jun 04, 2021 7:09 am
Forum: Device Tree
Topic: Help with gpio-fsm state machine
Replies: 60
Views: 4453

Re: Help with gpio-fsm state machine

If you were to add ",fsm_debug" to the dtoverlay line ("dtoverlay=ghost-amp,fsm_debug") it would add diagnostics to the kernel log. To run a test, boot the amp as normal, then at a console shell (probably over ssh in your case) run "sudo dmesg -C" to clean out the norma...
by PhilE
Wed Jun 02, 2021 7:52 pm
Forum: Device Tree
Topic: Add spidev0.2 device
Replies: 11
Views: 2943

Re: Add spidev0.2 device

The chip select limit has been increased to 24 in kernels built since April 30th, and will likely be removed altogether in a future kernel release.
by PhilE
Wed Jun 02, 2021 7:10 pm
Forum: Device Tree
Topic: Help with gpio-fsm state machine
Replies: 60
Views: 4453

Re: Help with gpio-fsm state machine

Sorry, Scott - I must have uploaded the modified version i used for testing, in which the 30 minute delay had been reduced to 10 seconds. I've re-uploaded the standard version (https://drive.google.com/file/d/1tYMZemCm3JkOqUeNhhfMpQB9dBVyu6aL/view) and double-checked that it is the correct one (whic...
by PhilE
Fri May 28, 2021 7:57 pm
Forum: Compute Module
Topic: [CM4] Permanently changing MAC address
Replies: 8
Views: 383

Re: [CM4] Permanently changing MAC address

Pi 4B, Pi 400 and CM4 are commonly referred to (by us, at least) as the Pi 4 family (being built around the BCM2711 SoC).
by PhilE
Fri May 28, 2021 3:30 pm
Forum: Compute Module
Topic: Why does the function of the pin change after the screen sleeps?
Replies: 6
Views: 412

Re: Why does the function of the pin change after the screen sleeps?

That's true, for any even vaguely recent firmware, and yet it must be that mechanism which is causing the interference. Which usage of I2C0 by the firmware do you think is problematic?
by PhilE
Fri May 28, 2021 2:40 pm
Forum: Compute Module
Topic: [CM4] Permanently changing MAC address
Replies: 8
Views: 383

Re: [CM4] Permanently changing MAC address

Older Pis algorithmically generate a MAC address based on the serial number, but members of the Pi 4 family have MAC addresses pre-programmed into the OTP. The fact that things written to OTP can't be changed (unless you are very lucky with the bit flips) means you can't program your own MAC address.
by PhilE
Fri May 28, 2021 8:44 am
Forum: Compute Module
Topic: Why does the function of the pin change after the screen sleeps?
Replies: 6
Views: 412

Re: Why does the function of the pin change after the screen sleeps?

As it says in the Compute Module Attaching and Enabling Peripherals Guide : For example, the Raspberry Pi Camera peripheral is managed by the GPU, and the GPU needs exclusive access to an I2C interface to talk to it, as well as a couple of control pins. I2C0 on most Pi Boards and Compute Modules is ...
by PhilE
Mon May 24, 2021 7:40 pm
Forum: Compute Module
Topic: Alternative function on CM4
Replies: 3
Views: 179

Re: Alternative function on CM4

You can quickly experiment with alternate functions using the 'raspi-gpio' utility. 'raspi-gpio -h displays usage information.
by PhilE
Sat May 22, 2021 10:31 am
Forum: Device Tree
Topic: PCAL6416 GPIO Expander with Interrupts
Replies: 2
Views: 459

Re: PCAL6416 GPIO Expander with Interrupts

You will need to rebuild that module with an additional kernel config setting: CONFIG_GPIO_PCA953X_IRQ=y However, you may find that doing so makes that module incompatible with the rest of the kernel, so I advise you to rebuild everything. There is now a commit in the current kernel tree that adds t...
by PhilE
Fri May 21, 2021 1:28 pm
Forum: Compute Module
Topic: CM3+ lowering SDIO clock
Replies: 1
Views: 96

Re: CM3+ lowering SDIO clock

CM3 and CM3+ are identical in this regard (and virtually everything else). Post your two config.txt files.

Go to advanced search