Custom kernel for RPi2 and 3
bob prohaska
fbsd at www.zefox.net
Tue Feb 27 23:41:37 UTC 2018
Recent tries at a custom kernel for Pi2 and Pi3 are mixed. Pi2 seems to
work fairly well, but the size reduction isn't impressive.
The latest try with a Pi3 kernel stopped with
--- all_subdir_armv8crypto ---
In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46:
In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31:
/usr/lib/clang/6.0.0/include/stdint.h:228:25: error: typedef redefinition with d
ifferent types ('int16_t' (aka 'short') vs '__int_fast16_t' (aka 'int'))
typedef __int_least16_t int_fast16_t;
^
/usr/src/sys/sys/stdint.h:51:25: note: previous definition is here
typedef __int_fast16_t int_fast16_t;
^
In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46:
In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31:
/usr/lib/clang/6.0.0/include/stdint.h:229:26: error: typedef redefinition with different types ('uint16_t' (aka 'unsigned short') vs '__uint_fast16_t' (aka 'unsigned int'))
typedef __uint_least16_t uint_fast16_t;
^
/usr/src/sys/sys/stdint.h:56:26: note: previous definition is here
typedef __uint_fast16_t uint_fast16_t;
^
In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46:
In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31:
/usr/lib/clang/6.0.0/include/stdint.h:245:24: error: typedef redefinition with different types ('int8_t' (aka 'signed char') vs '__int_fast8_t' (aka 'int'))
typedef __int_least8_t int_fast8_t;
^
/usr/src/sys/sys/stdint.h:50:24: note: previous definition is here
typedef __int_fast8_t int_fast8_t;
^
In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46:
In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31:
/usr/lib/clang/6.0.0/include/stdint.h:246:25: error: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs '__uint_fast8_t' (aka 'unsigned int'))
typedef __uint_least8_t uint_fast8_t;
^
/usr/src/sys/sys/stdint.h:55:25: note: previous definition is here
typedef __uint_fast8_t uint_fast8_t;
^
--- cam_queue.o ---
Compilation was from a clean start, beginning with make -j1 kernel-toolchain.
I re-ran svnlite update but didn't see any relevant changes and a retry
failed as before. I also tried, on a whim
cp /usr/lib/include/stdint.h /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/
just in case it might help, no difference (not surprising, the file, which
used to be missing after make kernl-toolchain, apparently wasn't).
The kernel config is at
http://www.zefox.net/~fbsd/rpi3/kernel_config/ZEFOX
if anybody would take a look for errors. It was ok as of
r329893
Thanks for reading!
bob prohaska
More information about the freebsd-arm
mailing list