Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 15:41:29 -0800
From:      bob prohaska <fbsd@www.zefox.net>
To:        freebsd-arm@freebsd.org
Subject:   Re: Custom kernel for RPi2 and 3
Message-ID:  <20180227234129.GA25710@www.zefox.net>
In-Reply-To: <20180224165945.GA12197@www.zefox.net>
References:  <20180220161900.GA2345@www.zefox.net> <c1a82728-a6cd-c972-9b54-73baca644528@zyxst.net> <20180221051801.GA73510@www.zefox.net> <d1e2036f-fb9e-71fa-0918-8b904f16a807@ceetonetechnology.com> <1519229812.91697.61.camel@freebsd.org> <20180221181518.GA696@www.zefox.net> <1519242042.91697.116.camel@freebsd.org> <20180222012501.GA1313@www.zefox.net> <20180224165945.GA12197@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180227234129.GA25710>