From owner-freebsd-arm@FreeBSD.ORG Tue Apr 16 21:50:09 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2EE8C657 for ; Tue, 16 Apr 2013 21:50:09 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from mail109.syd.optusnet.com.au (mail109.syd.optusnet.com.au [211.29.132.80]) by mx1.freebsd.org (Postfix) with ESMTP id EBB501A56 for ; Tue, 16 Apr 2013 21:50:08 +0000 (UTC) Received: from bender (unknown [49.176.34.193]) by mail109.syd.optusnet.com.au (Postfix) with ESMTP id 341DB12313F; Wed, 17 Apr 2013 07:49:59 +1000 (EST) Date: Wed, 17 Apr 2013 07:49:55 +1000 From: Andrew Turner To: Yan Morozz Subject: Re: buildkernel for cubieboard failed Message-ID: <20130417074955.47f982e0@bender> In-Reply-To: <1366141061.32460.YahooMailNeo@web172705.mail.ir2.yahoo.com> References: <1366141061.32460.YahooMailNeo@web172705.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=Ov0XUFDt c=1 sm=1 a=RFn8nVt1kj2zIRlarSMiXw==:17 a=ATIaWaFf7mkA:10 a=8nJEP1OIZ-IA:10 a=mAxsfWm2x-oA:10 a=4AE_WbKxSQbOpFfhEwQA:9 a=wPNLvfGTeEIA:10 a=6UCq8DqREAUA:10 a=RFn8nVt1kj2zIRlarSMiXw==:117 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 21:50:09 -0000 On Tue, 16 Apr 2013 20:37:41 +0100 (BST) Yan Morozz wrote: > Hi,=A0 > i =A0tried to build a kernel for cubieboard. > it failed. What do i wrong? >=20 > me# cd /usr/src > me# =A0make TARGET_ARCH=3Darmv6 KERNCONF=3DCUBIEBOARD buildkernel > . . . . . . . . . . . . . . . > . . . . . . . . . . . . . .. . > /usr/src/sys/dev/random/probe.c:32:10: fatal error: 'opt_cpu.h' file > not found #include "opt_cpu.h" This error is because you are trying to build for armv6 using an i386 or amd64 compiler. You need to build one of the kernel-toolchain, toolchain or buildworld targets before trying to run buildkernel. Andrew