From owner-freebsd-arm@freebsd.org Tue Feb 27 23:41:37 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9087F34B5D for ; Tue, 27 Feb 2018 23:41:37 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0ACA777487 for ; Tue, 27 Feb 2018 23:41:36 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w1RNfTLQ026049 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 27 Feb 2018 15:41:30 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w1RNfTgS026048; Tue, 27 Feb 2018 15:41:29 -0800 (PST) (envelope-from fbsd) Date: Tue, 27 Feb 2018 15:41:29 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Re: Custom kernel for RPi2 and 3 Message-ID: <20180227234129.GA25710@www.zefox.net> References: <20180220161900.GA2345@www.zefox.net> <20180221051801.GA73510@www.zefox.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180224165945.GA12197@www.zefox.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 23:41:37 -0000 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