From owner-freebsd-arm@freebsd.org Tue Jan 12 21:22:21 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95ADBA80BB0 for ; Tue, 12 Jan 2016 21:22:21 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from olinguito.schwarzes.net (olinguito.schwarzes.net [IPv6:2a01:4f8:7d:1b5::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39C2B119C for ; Tue, 12 Jan 2016 21:22:20 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from [62.109.78.35] (mosquito.schwarzes.net [62.109.78.35]) (authenticated bits=0) by olinguito.schwarzes.net (8.15.2/8.15.2) with ESMTPA id u0CLMHUU009253 for ; Tue, 12 Jan 2016 22:22:18 +0100 (CET) (envelope-from freebsd.asc@strcmp.org) From: Andreas Schwarz To: freebsd-arm@FreeBSD.org Mail-Reply-To: Andreas Schwarz Mail-Followup-To: freebsd-arm@FreeBSD.org Date: Tue, 12 Jan 2016 22:22:17 +0100 (CET) Message-ID: <47893d8835f.5a36239a@mail.schwarzes.net> In-Reply-To: <56949397.6010906@fsck.ch> References: <567718A1.7040900@fsck.ch> <56949397.6010906@fsck.ch> User-Agent: YAM/2.9p1 (MorphOS; PPC; rv:20140418r7798) Subject: Re: Cannot build RBPI2 kernel on pi MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (olinguito.schwarzes.net [78.47.41.143]); Tue, 12 Jan 2016 22:22:18 +0100 (CET) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2016 21:22:21 -0000 On 12.01.16, Toby wrote: > On 20/12/15 22:07, Toby wrote: Hi Toby, >> make buildkernel KENRCONF=RPI2 fails with the following error: >> >> >> ERROR: ctfmerge: No ctf sections found to merge >> :> export_syms >> awk -f /usr/src/sys/conf/kmod_syms.awk if_de.kld export_syms | xargs >> -J% objcopy % if_de.kld >> ld -Bshareable -d -warn-common -o if_de.ko if_de.kld >> objcopy --strip-debug if_de.ko >> ===> dtb/rpi (all) >> Generating rpi.dtb from rpi.dts >> converting rpi.dts -> >> /usr/obj/usr/src/sys/RPI2/modules/usr/src/sys/modules/dtb/rpi/rpi.dtb >> Unable to open file ./bcm2835.dtsi >> Segmentation fault (core dumped) >> *** Error code 139 > > So, am I the only one with this problem? I just tried again with a new > checkout and still the same error when building the kernel on my pi. Is > this supposed to work, or am I forced to cross-compile? I remember > having read on the list that some people compile the kernel with success > directly on their pi. I just build a new world (r293653) at my RPI2, all is working like expected. Is your source tree complete and up to date? You can check this with "svnlite status". And what is your building procedure? The proper procedure is to build the kernel-toolchain before building the kernel (this is needed when the build tools changing). -asc