牛卧堂MCU技术交流

标题: [NUC980] Enabling OpenSSL Hardware Acceleration on NUC980 with Buildroot 2024 [打印本页]

作者: admin    时间: 昨天 13:07
标题: [NUC980] Enabling OpenSSL Hardware Acceleration on NUC980 with Buildroot 2024

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.



Step-by-Step Fix for buildroot_20241. Enable OpenSSL and Engines in Buildroot

Launch menuconfig and ensure both OpenSSL binary and engine support are selected:


Navigate to:



Target packages ---> Libraries ---> Crypto ---> -*- openssl support --->
  • openssl binary and
  • openssl additional engines

    2. Patch OpenSSL Build to Enable AF_ALG

    Open the OpenSSL build rule file:

    buildroot_2024/package/libopenssl/libopenssl.mk

    Find line 86 and remove the no-afalgeng \ option.

    This enables the AF_ALG engine (afalg.so) during the build.

    3. Rebuild OpenSSL$ make libopenssl-rebuild

    4. Verify Output Files

    Confirm the following files are generated:

    5. Rebuild the Final Image$ make

    You can now use OpenSSL on the NUC980 platform with or without hardware acceleration.

    Benchmark Test

    Software-only AES-128-CBC:




    # openssl speed -evp aes-128-cbc -elapsed

    Using NUC980 Crypto Engine (via afalg):




    # openssl speed -evp aes-128-cbc -elapsed -engine 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