Closed steveiliop56 closed 1 year ago
Thanks - we're aware of this, and actively working on it. Something strange is happening with deferred IO mechanism...
Thank you very much for your help! For now I am cross compiling the 6.0 kernel, is this kernel working with the sense hat?
Yes - Sense HAT works with rpi-6.0.y.
Cool! Suddenly the sense hat worked for a second with 6.1 but only for a second and it does not work again...
Yes - the symptom is that the very first update, the one that clears the rainbow pattern, succeeds, but then nothing else.
Can I download a prebuild 6.0 kernel from somewhere because cross compiling it on my i7-7500U inside windows subsystem for linux version 2 and with 8gb ram takes a long time.
You may want to hold off a while - I'm close to a solution.
Ok I will wait! Thanks for your time!!!
The problem is cause by a bug-fix patch that discards pending changes when the file handle is closed. If you keep the file handle open a bit longer you'll see the display does update - try running cat > /dev/fb1
(or whatever the correct number is) and hitting Return a few times.
sudo rpi-update pulls/5399
.Thank you very much for your help! I will try it as soon as it's ready and I will post any updates!
Update! I am trying to install the new firmware with the command you provided but I get this error:
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
FW_REV:
*** We're running for the first time
*** Backing up files (this will take a few minutes)
*** Remove old firmware backup
*** Backing up firmware
*** Remove old modules backup
*** Backing up modules 6.1.19-v8+
WANT_32BIT:0 WANT_64BIT:1 WANT_PI4:1
*** Downloading specific artifact revision (this will take a few minutes)
curl -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcmrpi | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 16.7M 0 16.7M 0 0 881k 0 --:--:-- 0:00:19 --:--:-- 773k
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 16.4M 0 16.4M 0 0 730k 0 --:--:-- 0:00:23 --:--:-- 990k
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
Invalid artifact specified. Response: 200.
It just worked for me. Can you try again in case there was an intermittent network issue?
pi@pi4:~ $ sudo rpi-update pulls/5399
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
*** Performing self-update
*** Relaunching after update
*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
FW_REV:
WANT_32BIT:1 WANT_64BIT:1 WANT_PI4:1
*** Downloading specific artifact revision (this will take a few minutes)
curl -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcmrpi | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 23.5M 0 23.5M 0 0 2055k 0 --:--:-- 0:00:11 --:--:-- 1915k
curl -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcm2709 | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 24.1M 0 24.1M 0 0 2202k 0 --:--:-- 0:00:11 --:--:-- 2790k
curl -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcm2711 | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 24.8M 0 24.8M 0 0 1951k 0 --:--:-- 0:00:13 --:--:-- 2448k
curl -L https://builds.raspberrypi.com/github/linux/b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c/bcm2711_arm64 | zcat | tar xf - -C //root/.rpi-firmware --strip-components=2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 25.8M 0 25.8M 0 0 2115k 0 --:--:-- 0:00:12 --:--:-- 2581k
*** Updating kernel modules
*** depmod 6.1.21+
*** depmod 6.1.21-v7l+
*** depmod 6.1.21-v7+
*** depmod 6.1.21-v8+
*** As requested, not updating VideoCore libraries
*** As requested, not updating SDK
*** Running ldconfig
*** Storing current firmware revision
*** Deleting downloaded files
*** Syncing changes to disk
*** If no errors appeared, your firmware was successfully updated to b4f293cd0a2e8c3d02eff6f95c9f98cdd446086c
*** A reboot is needed to activate the new firmware
Ok, I will try again...
I tried again after a reboot and it worked successfully. I can confirm that the sense hat works perfectly fine now! Again thanks a lot for your help and your time pelwell!!
There's an alternative implementation that should avoid the horrendous slowdown seen by the inefficient SenseHAT Python library. It's available in #5413, and a test build can be installed with sudo rpi-update pulls/5413
.
So... the matrix is going to be faster with this kernel?
So... the matrix is going to be faster with this kernel?
The linked PR says:
This alternative patch avoids the horrendous slowdown seen with the sense_hat.py library, which opens and closes the framebuffer, incurring an 18ms delay while the data is pushed over I2C, for every get_pixel and set_pixel call.
so yes - should be faster than without the PR.
Not faster, but also not significantly slower - about the same. Unless you are using the Python library you probably won't notice any difference.
Whether it's faster with this PR depends on what you are comparing it to. Using the Python library, 6.1 with this PR is much faster than 6.1 without it, but 6.1 with this PR is about the same as 5.15.
Ok, I use python in a small program so I will use the updated kernel because why not?
Please do - I would appreciate confirmation that it is working for you.
I added the new kernel! The sense hat still works ok... Do you want me to run any tests?
Realistically it should only affect the display, so I'm happy enough with your feedback to merge it.
I don't know about the display because I am only using a dfrobot dsi display.
Describe the bug
After upgrading the raspberry pi kernel to 6.1 the sense hat matrix does no longer work. Thonny and python report that they can communicate with it and seem like they are trying to use the matrix but without dropping any error. I can confirm that the gyro, accelerometer, temperature, humidity and joystick work fine.
Steps to reproduce the behaviour
You can check it by yourself by just upgrading the pi to the newest 6.1 kernel.
Device (s)
Raspberry Pi 4 Mod. B, Sense Hat V1.0
System
The
rpi-issue
file:Firmware version:
Kernel version:
Logs
Here are the dmesg logs, if needed:
Additional context
The
i2cdetect -y 1
command output:And the
raspi-gpio get
gives me this:Info: I also have a pimoroni fanshim attached so you may see it in the i2c and gpio command outputs.