cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Mentor
Mentor
471 Views
Registered: ‎06-10-2008

Petalinux OpenSSL incompatible with desktop

Hi,

 

When I enable openssl (1.0.2l) in the petalinux 2018.2 rootfs configuration, it seems incompatible with any other openssl (1.0.2*) I have (linux, windows). Files encrypted with aes256 on the desktop, the Zynq discards with a 'bad decrypt' message. And vice versa. It can decrypt its own encrypted files though.

 

When I get the latest 1.0.2p sources from git and cross-compile them I do get a compatible version. So, what is wrong with how petalinux / yocto builds openssl?

 

Maarten

0 Kudos
Reply
1 Reply
Mentor
Mentor
427 Views
Registered: ‎06-10-2008

It appears this problem stems from a change in binutils 2.29 that breaks linking thumb2 code. It will even make the kernel crash if compiled in thumb2 mode. Luckily this is deselected by default.

 

The problem might be fixed in binutils 2.31 (see here) which was released this month.

 

OpenSSL 1.0.2n has a workaround.

And Yocto 2.4.2 Rocko 18.0.2 has OpenSSL 1.0.2m with the workaround patch applied.

 

But in the end I can only suggest not to use Petalinux 2018.2 (or 2018.1) at all since it comes with a broken toolchain.

0 Kudos
Reply