I seem to have seen this at some point, but do not actually recall what it was and how I fixed it.
I suspect that it is not a problem with libgcrypt, and you can probably check your filesystem and see that it is present.
It is just a confusing error message, I would check the wpa_supplication logs (maybe increase verbosity), and I suspect that that there is something else going wrong before this is shown.
I just ran this from scratch using the exact instructions in the hub post. The only change I made was to add the meta-mender-raspberrypi-demo layer.
I don’t have a /var/log/user.log file. I’m not sure what would be creating that. Do you have any extra software installed?
I do see the “dead” status of the wpa_supplicant service but wpa_supplicant-nl80211@wlan0 shows as live. And as far as I know this is expected when using systemd-networkd.
The /var/log/user.log will generated when use core-image-full-cmdline, but I found the problem seems not related this error message.
My wpa_supplicant-nl80211@wlan0 is dead and unable to connect the network even I just add mender-mender-raspberrypi-demo-layer with their dependencies.
Hi @mirzak,
Sorry if I’m wrongly posting in this old topic, but it’s related so I figured I wouldn’t start a new one.
I encountered similar issue, however not causing a complete wpa_supplicant fail and for newer yocto brach.
libgcyrpt files in rootfs: /usr/lib/libgcrypt.so.20 and /usr/lib/libgcrypt.so.20.2.4
When I run wpa_passphrase or wpa_supplicant (with parameters -i wlan0 - B -Dnl80211 -P /var/run/wpa_supplicant.wlan0.pid) in syslog I get following warnings:
This also happens when wpa_supplicant is started with the same parameters by the /etc/network/if-pre-up.d/wpa_supplicant script.
Generally the device connects to the access point, receives a network address and further communication is possible (e.g. access to the Internet)
Running wpa without running in the background and with increased logging - I did not notice any warnings in wpa output.
Do you know what could be causing this warning to be generated? Could it cause a potential risk for communications security?
I have seen this issue for a long time now on my projects, while not observing any side affects by it. I have used wpa_supplicant 2.6 thru to 2.9 and the warning still exists. It very much looks like the wpa_supplicant code is not initializing the libgrcrypt library as per the requirements.