Which file system do you use for your thumb drives? Maybe this makes a different.
Posts by HarryH
-
-
this will not fix the cause, but you can prevent the problem by bypassing gpiozero and using lgpio directly.
lg libraryPS: Your add-on project is currently not set to public.
-
-
I already posted the commands to collect some information. The last 3 lines of my previous post contains the commands to use via SSH console.
- lsblb -> list block devices
- lsusb -> list USB devices
- dmesg ... -> search for specific entries in the kernel message log
If it sounds like rocket science for you, then we will go beyond the scope of this thread.
Sorry, if I distracted you. I wanted to make sure that both physical drives are recognized correctly. Because this is important regardless of whether you use 2 individual drives or the spanned volume. But if you have created a spanned volume using the Windows functions, as chewitt has assumed, then you need all the things he has already described to get access to the whole volume. -
chewitt,
it looks to me, that the D4-320 works like a USB->SATA adapter with SATA port multiplier or something like that. Not as the "usual" JBOD volumes of simple software raid adapters. Maybe Gar90 should look for kernel messages regarding the USB devices first?lsusb
lsblk
dmesg | egrep -i "usb|ata|seagate" -
Please try this: Move the import line for os module upwards before you import from gpiozero and insert that line.
LibreELEC 12 has been hardened. The lgpio module (used by gpiozero) needs a working directory path which isn't write protected: https://github.com/gpiozero/gpiozero/issues/1106
-
There are 2 things to note in your screenshots:
- You hasn't used the official supported power supply -> recommended: 5.1V / 5A via Power Delivery protocol
Other PSU can be unstable, because not ready for the fast load switches of the RPi5. - The bootloader is one of the first and outdated 2023-10-18 (current: 2024-09-10)
It's also important to know if you use a case like the Argon ONE V3, because this needs special handling.
But in general, please follow chewitt recommendation and try a new SD card first. - You hasn't used the official supported power supply -> recommended: 5.1V / 5A via Power Delivery protocol
-
According to this (2.6 Simultaneous Access):
Differences — rpi-lgpio 0.6 Documentation
https://rpi-lgpio.readthedocs.io/_/downloads/en/latest/pdf/the error messages indicate that the GPIO is already in use. Seems not a fault of the rpi-tools add-on.
-
Normal behavior of ntpd is to ignore time servers which are more than 1000 seconds away from the current time, maybe this has some influence in your situation.
-
If you have a RPi5 in use, please be aware that the gpiochip has been reordered back to gpiochip 0 with kernel version 6.6.45 and following.
Use gpiochip0 for the user-facing GPIOs on Pi 5 by pelwell · Pull Request #6144 · raspberrypi/linuxPi 5 contains multiple GPIO controllers; running gpiodetect shows that there are five. Prior to this patch set, they appear like this: gpiochip0…github.comlgpio pin factory is broken on RPi5 since kernel 6.6.45 · Issue #1166 · gpiozero/gpiozeroOperating system: e.g. RPiOS Bookworm Python version: 3.11.2 Pi model: Pi 5 GPIO Zero version: 2.0.1 Pin factory used: lgpio A recent change in the RPi kernel…github.comMaybe this is the issue for not working with 12.0.1.
-
Your configuration looks to me like common practice and in my opinion it normally should work.
I grabbed this from the known issues part of the GC110 firmware changelog:- Loop protection might not work between two Insight-managed switches.
Workaround: Disable IGMP snooping on at last one the switches. - When IGMP snooping or MLD snooping is globally enabled or enabled on a VLAN, unknown multicast packets are dropped for both IPv4 and IPv6 traffic.
Workaround: Disable both IGMP snooping and MLD snooping.
If you doesn't have the DHCP L2 Relay / DHCP snooping enabled and accidentally misconfigured, then there seems to be some other "features" available that can be trigger such issues too...
- Loop protection might not work between two Insight-managed switches.
-
You are right, my question was not without a troubleshooting background.
In the past, I had a long term NFS troubleshooting with a network newbie as a communication partner. He was using the SG200-08P managed switch, but he didn't mention it. The network had been producing strange problems. NFS connections were not possible between the satellite receiver and the NAS. We spent ages trying out the settings on both the receiver and the NAS. In the end, I was able to convince him to install the latest (also end-of-life for several years) firmware, and voila - the error was gone.I also know of some old changelogs for enterprise switches that had problems with DHCP relay. So maybe you should look for a changelog for the switch you are using and try to get a newer firmware.
Of course it could also be a problem on the kernel side, but I suspect the number of home users with managed switches is not very large, to get a valid feedback from others.
EDIT:
Depending on the switch vendor you use, "trunk" implies that all traffic at this port is tagged. That means, you must ensure that the client (RPi) know about it and configure the corresponding VLAN ID there too. -
-
Version 1.1.2 released:
- a few dormant small errors corrected, wasn't functionally relevant currently
- option to reassign the double tap to shutdown added
-
For the parameter „enable_uart=1“ is documented that this locks the clock rate as fixed, but as far as I know this is not true.
enable_uart=1 NOT fixing core_freq to 250MHz · Issue #4123 · raspberrypi/linuxIs this the right place for my bug report? I hope so, apologies if that's not the case. I've also posted on the RPi forum (See…github.com
So since beginning I expected that the I2C speed could make trouble too, because of dynamic clocking. Perhaps this is unfounded for the I2C and only the RPi clock-stretching bug is an issue. Until now I couldn‘t verify that case.
If you can catch a bad case again, please provide the full log, not only snippets. If my suspicion is right, then we will doesn‘t find a difference in the logs, because the issue exists only during transfer of the message at the I2C bus.
To rule out this possible trouble maker we can try to set the clock rate manually. This will have some restrictions like:- higher power consumption, no clock down during idle
- maybe shortening lifespan of the RPi4, because the clock should be set to 550Mhz to be fast enough for 4K
By the way: I have also been trying out a different configuration without "enable_uart=1" for several months in order to use a different UART and not restrict dynamic clocking (if it after an kernel/firmware update accidentally works like designed
). This works too, if you can live without the integrated bluetooth adapter.
I doesn‘t have a oscilloscope to see what happens at the I2C bus so I‘m not 💯 sure that could be the solution for the bad case scenario. For the I2C clock stretching bug, maybe slow down the I2C speed helps to mitigate the issue. -
I can’t imagine that the firmware has been corrected by Argon40. Also the shutdown should work, after you has confirmed via power menu. If there is no power cut after you triggered the shutdown via remote control, could also be an indication that the MCU is stuck.
I know such behavior if there was send some (un)specific I2C messages for example with i2cdump command to the MCU before. If the MCU is stuck, mostly the fan runs permanently and long press (<= 5 seconds) of the power button doesn‘t work, only unplug of the PSU. <- this matches more to your description.
Do you have some kind of overclocking active? Also other I2C devices/drivers maybe trigger this. -
It looks to me, that you are using LibreELEC 11. For RPi5 support, LE12 and the corresponding rpi-tools are needed. With a recent version of gpiozero the SoC detection should work automatically, but you can force that:
Python# workaround for lgpio issue # https://github.com/gpiozero/gpiozero/issues/1106 os.environ['LG_WD'] = '/tmp' from gpiozero.pins.lgpio import LGPIOFactory from gpiozero import Device, LED Device.pin_factory = LGPIOFactory(chip=4)
Alternatively, this should do the same, like your python script.
-
The bad case matches to: „Known Issues“ and „Workaround after improperly shutdown“
GitHub - HungerHa/libreelec_package_argonforty-device: ArgonForty Device Configuration Add-On for LibreELECArgonForty Device Configuration Add-On for LibreELEC - HungerHa/libreelec_package_argonforty-devicegithub.comBecause the remote control sends „KEY_POWER“ command, sometimes this key is passthrough fast enough, to open the power menu of KODI, before the background service signals the KODI shutdown. But the shutdown should already initiated. KODI 21 takes time…
If without your confirmation, the system doesn‘t shutdown hard (power cut) after 10+ seconds, then it‘s a „new“ behavior of the MCU firmware to me.
Do you have the SD card removed? I‘m asking to exclude that the system sometimes was accidentally booted from SD card with the settings/add-ons from there.If you enable debug logging you should find Argon40 messages in the kodi.log (kodi.old.log after next boot). If you find an exception message instead of the Argon40 debug messages there, then possibly an bug exists.