Is CPUTYPE=cortex-A7 supposed to work?

Andrew Gierth andrew at tao11.riddles.org.uk
Sat Mar 4 21:47:44 UTC 2017


>>>>> "Warner" == Warner Losh <imp at bsdimp.com> writes:

 >> Is building with CPUTYPE=cortex-A7 (this is on an RPI2) known to
 >> work, known to not work, or of unknown working status?

 Warner> I've not had good luck getting it to work. (cortex-a7 is the
 Warner> proper type name, btw). It kinda works, but ports are kinda
 Warner> wonky.

My findings so far:

1. openssl speed (base system's openssl, not a port) produces a bunch of
errors, such as:

542635024:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01:/home/FreeBSD/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_pk1.c:103:
542635024:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check failed:/home/FreeBSD/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rsa/rsa_eay.c:705:

2. git fails with semi-random sha1 failures when cloning a repo of any
size; these failures go away if you make it use its internal sha1 rather
than the openssl one it defaults to. HOWEVER, testing in a world build
without CPUTYPE and shoehorning the vectorized sha1 from openssl back in
does not reproduce the failure. Also, extensive testing with "openssl
dgst -sha1" did not produce any failure.

(I've confirmed that both the above go away from recompiling without
CPUTYPE.)

I've also noticed some breakage probably not related to openssl for
which I'm still waiting on recompilations in order to definitively test.

-- 
Andrew.


More information about the freebsd-arm mailing list