NUC980 platform supports two Buildroot distributions based on Linux kernel 5.10:
These two Buildroot versions use different OpenSSL versions:
On MA35D1_Buildroot, OpenSSL works correctly with either software-only computation or hardware acceleration.
However, on buildroot_2024, enabling OpenSSL hardware acceleration causes runtime errors. This is because AF_ALG support is disabled in the OpenSSL build, resulting in the absence of afalg.so, which is required to interface with the NUC980 Crypto Engine.
Launch menuconfig and ensure both OpenSSL binary and engine support are selected:
Navigate to:
Open the OpenSSL build rule file:
buildroot_2024/package/libopenssl/libopenssl.mkFind line 86 and remove the no-afalgeng \ option.
This enables the AF_ALG engine (afalg.so) during the build.
3. Rebuild OpenSSL$ make libopenssl-rebuildConfirm the following files are generated:
You can now use OpenSSL on the NUC980 platform with or without hardware acceleration.
Benchmark TestSoftware-only AES-128-CBC:
Using NUC980 Crypto Engine (via afalg):
This resolves the issue of missing AF_ALG hardware acceleration support in the newer Buildroot.
欢迎光临 牛卧堂MCU技术交流 (http://www.nuvoton-mcu.com/) | Powered by Discuz! X3.2 |