Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2016 22:22:17 +0100 (CET)
From:      Andreas Schwarz <freebsd.asc@strcmp.org>
To:        freebsd-arm@FreeBSD.org
Subject:   Re: Cannot build RBPI2 kernel on pi
Message-ID:  <47893d8835f.5a36239a@mail.schwarzes.net>
In-Reply-To: <56949397.6010906@fsck.ch>
References:  <567718A1.7040900@fsck.ch> <56949397.6010906@fsck.ch>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47893d8835f.5a36239a>