WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Extension requests / Re: Update gdb
« Last post by Sashank999 on April 17, 2024, 02:13:19 AM »
Thank you.
12
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by Paul_123 on April 16, 2024, 07:56:37 PM »
Looking at that dmesg from your 13.x system, perhaps we never did fix that kernel.  Just upgrade to 14.1

But the old vc stuff is going away fast.  Raspi wants to get away from the closed source code.
13
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by zharr on April 16, 2024, 05:30:36 PM »
Thanks, I'll look into that tomorrow.

But so far, I've tried to get vcsm to work on 14.x with some success by making a merged 13.x - 14.x rpi-vc (and rpi-vc-dev) version.
Sadly, the camera does not work anymore, but I have an emulation mode that uses VCSM buffers instead of camera frames (which were also allocated with VCSM just the same), and that does work on 14.1.

I can also confirm the same wifi driver crash does not seem to occur on that 14.1 frankenstein system, so far got wlan0 device working on every boot.

So now I just need to get /dev/camera0 to work and then I can switch to 14.x with old vcsm. I'll do that tomorrow along with an attempt to get rng fixed on 13.x
14
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by Rich on April 16, 2024, 05:17:05 PM »
Hi zharr
Possibly a timing issue that's right on the edge.
Maybe the RNG isn't initializing fast enough?

A couple of threads on RNG:
https://forum.tinycorelinux.net/index.php/topic,26385.0.html
https://forum.tinycorelinux.net/index.php/topic,23917.0.html
15
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by zharr on April 16, 2024, 04:37:00 PM »
You're right, I made a wrong connection seeing rsa in the crash.
But I can confirm the wifi device driver still crashes every second boot, with no wifi connected, no openssh running, no nothing.
Bare system set up with wifi packages, no wifi-related commands in boot*.sh.
After boot I checked iwconfig as to whether wlan0 was there or not, then I've written dmesg to file and backed up the file.
Around half the time, the wifi device driver crashed.
1 good
2 crash
3 good
4 crash
5 good
6 crash
7 crash
8 good (no log + back up)
9 good (no log + back up)
10 crash

So it appears to be random and not dependant on any files I backed up, since between the 9th and 10th try nothing should've written to the SD card but it still flipped from a working wifi device to a crashing one.
I'll do more tests tomorrow, but I attached the first crash (second boot) dmesg log which includes the error stack:
Code: [Select]
[   11.118580] WARNING: CPU: 0 PID: 582 at crypto/rsa-pkcs1pad.c:540 pkcs1pad_verify+0x14c/0x174
...
[   11.120209] cfg80211: Problem loading in-kernel X.509 certificate (-22)
16
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by Paul_123 on April 16, 2024, 04:10:27 PM »
as long as you save the keys, but running a backup, then they dont regenerate.  But as I said, that has nothing to do with wifi.
17
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by zharr on April 16, 2024, 03:03:32 PM »
Thanks for the reply!

I do indeed use the rpi-vc package, but now I checked them and in 13.x, it contains 23 libraries (in /usr/local/lib), including libvcsm, but in 14.x it only contains libbcm_host, libdebug_sym, libdtovl, libvchiq_arm and libvcos.
I can try to copy it from 13.x to see if it still works. I don't think libvcsm should be deprecated, in contrast to MMAL I don't know what it would be replaced with.
Though seeing how in this issue, VCSM had to be fixed for MMAL 64bit support, it does seem that VCSM and MMAL support is intrinsically linked. Which would be super unfortunate because I actually require VCSM+DMABUF even while using V4L2 instead of MMAL. So maybe it is "correct" that it's gone from aarch64, but I'm not sure about the 32bit OS yet. Maybe I'll check if the current 32Bit Rasberry Pi OS still has libvcsm.so.

EDIT: Can confirm, it doesn't, libraspberrypi installs libbcm_host.so but not mmal nor vcsm. Very unfortunate. Will try old libvcsm

As for the wireless crash, the device driver crashes and does not show up even when never connecting to any access point, so that's not it.
Boot once, let openssh create the host keys, reboot and dmesg has the crash in RSA key check, and wlan0 is not there. Maybe I am missing sha256sum or something similar as the issue suggests.
Alternatively, do you know of a way to prevent openssh from generating the RSA key on boot (or any key at all - can do manually)? Then it should respect that there's no RSA key and it should just work afaik.
Or maybe I'll just delete the RSA key after openssh starts and hope it's ok even when client wants to use RSA.
18
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by Paul_123 on April 16, 2024, 10:43:53 AM »
The rpi-vc package should be available in 14.x, but yes all of that stuff is obsolete going forward.

The linked issue was resolved on our end before we released, so I've never seen the issue on piCore 12,13 or 14.   The crash would have nothing to do with ssh keys vs wifi, and is more likely something with your access points you are connecting to.
19
piCore Final Releases / Re: piCore 14.1 (32 and 64 bit) release
« Last post by zharr on April 16, 2024, 04:38:49 AM »
Hey, thanks for the updates!
I'm wondering in what extension I can find libvcsm.so with 14.x?
From 13.x to 14.x it seems to be gone from the package that previously had it.
libatomic was also missing but found in gcc_libs.tcz thanks to the forum.
libmmal and it's related libraries are also gone, though with MMAL being deprecated that is not too surprising.
But VCSM is still a crucial element of interacting with the hardware

The reason I'm trying to upgrade in the first place is because I'm facing a kernel wifi driver crash while checking the RSA SSH host keys that openssh generated itself on first boot - about half the time, my Pi Zero 2 boots without the wlan0 device because it's driver crashed (OpenSSH would then regenerate the RSA key on next boot, so I assume that's why it didn't crash).
FYI, it's the same error message+code on the same code line as this issue).

Any help finding libvcsm or resolving the crash is appreciated.
(Note I'm using armv6/v7 not aarch64 since I need compatibility with the Zero 1)
Thanks!
20
TCB News / ON LTT
« Last post by patrikg on April 15, 2024, 12:29:08 PM »
Pages: 1 [2] 3 4 ... 10