Post Go back to editing

Linux Add-in 1.3.0 Released

Thread Summary

The user encountered compilation errors with the 1.3.0 release of the Linux add-in for ADSP-SC589, ADSP-SC584, and ADSP-SC573 EZ-KITs on Ubuntu 18.04, specifically with the automake and pound packages. The solution involved applying the patch 0001-fix-openssl-1.0.2.patch from the buildroot repo and manually adding the `DH_set0_pqg` function to resolve undefined references. The issue is expected to be addressed in the upcoming 1.4.0 release.
AI Generated Content

Hi all,

we are pleased to announce that the 1.3.0 release of the Linux add-in is now available on analog.com.

The add-in can be downloaded from the following page: https://www.analog.com/en/design-center/processors-and-dsp/evaluation-and-development-software/linuxaddin.html

The update contains the following key changes:

  • Support for newer revision ADSP-SC589, ADSP-SC584, ADSP-SC573 EZ-KITs
  • Improved support for USB

Please note:

  • This release does not contain updates to the u-Boot, Buildroot and Linux kernel components
  • This update removes support for some earlier revisions of the ADSP-SC573 EZ-KITs
  • Newer revision ADSP-SC573 and ADSP-SC589 EZ-KITs contain different Ethernet PHY parts on the EZ-KIT.
    This may require you to rebuild the out-of-the-box examples in order to use them.

For more details please refer to the Release Note  for the release.

Regards,

Dave

Edit Notes

Removed priority.
[edited by: daveG at 2:19 PM (GMT 0) on 24 Jun 2020]
Parents Reply Children
  • Thank you for fast reply - I am running  Ubuntu 18.04 at a board similar to sc589-ezkit with DP83867 PHY.

    I try this patch and give response immediately after main run is completed.

  • next stop at make was there:

    /home/peter/pmg/buildroot/output/host/usr/bin/arm-linux-gnueabi-gcc -pthread -o pound pound.o http.o config.o svc.o -lssl -lcrypto -lresolv -ldl -lz -lm

    svc.o: In function `get_dh512':

    svc.c:(.text+0x1edc): undefined reference to `DH_set0_pqg'

    svc.o: In function `get_dh2048':

    svc.c:(.text+0x1f70): undefined reference to `DH_set0_pqg'

    collect2: Fehler: ld gab 1 als Ende-Status zurück

    Makefile:43: recipe for target 'pound' failed

    make[1]: *** [pound] Error 1

    make[1]: Verzeichnis „/home/peter/pmg/buildroot/output/build/pound-2.7“ wird verlassen

    package/pkg-generic.mk:184: recipe for target '/home/peter/pmg/buildroot/output/build/pound-2.7/.stamp_built' failed

    make: *** [/home/peter/pmg/buildroot/output/build/pound-2.7/.stamp_built] Error 2

    the function 'DH_set0_pqg' was at no file inside of buildroot

  • investigations guided me to changes from openssl1.0.2  --> openssl1.1.0 

    I could resolve the problem by editing downloaded files during first run, but I think this is not the way for future.

  • Thanks for your reply, Yes you are right. Actually we are updating the Linux kernel/uboot in our Linux-addin 1.4.0 release, so we would solve this issue in the next release.

    So you edit the download version from 1.0.2 to 1.1.0 in buildroot/package/openssl/openssl.mk and then the error disappears? Since we didn't meet this error when we build the linux addin in Ubuntu 18.04.

    Thanks,

    HuanFeng

  • After error stop I added the missing function to dh512.h and dh.h  from wiki.openssl.org / openSSL1.1.0 changes

    I know, that this is not the best way, but my app doesn't need an openssl application and any way, which helps to got forward shoukd be used

    from wiki.openssl.org:

    int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
     {
        /* If the fields p and g in d are NULL, the corresponding input
         * parameters MUST be non-NULL.  q may remain NULL.
         */
        if ((dh->p == NULL && p == NULL)
            || (dh->g == NULL && g == NULL))
            return 0;
    
        if (p != NULL) {
            BN_free(dh->p);
            dh->p = p;
        }
        if (q != NULL) {
            BN_free(dh->q);
            dh->q = q;
        }
        if (g != NULL) {
            BN_free(dh->g);
            dh->g = g;
        }
    
        if (q != NULL) {
            dh->length = BN_num_bits(q);
        }
    
        return 1;
     }
    
  • I didn't edit the openssl.mk file. I tried today without success .

    I satisfied only the C-language error check.

  • A fix for this error is present as patch 0001-fix-openssl-1.0.2.patch on the buildroot repo under package/pound/