From owner-freebsd-arm@freebsd.org Wed Sep 20 08:00:06 2017 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 B015CE013B7 for ; Wed, 20 Sep 2017 08:00:06 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-66.reflexion.net [208.70.210.66]) (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 6E3D816CC for ; Wed, 20 Sep 2017 08:00:05 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 20599 invoked from network); 20 Sep 2017 08:00:04 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 20 Sep 2017 08:00:04 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Wed, 20 Sep 2017 04:00:04 -0400 (EDT) Received: (qmail 8254 invoked from network); 20 Sep 2017 08:00:03 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 20 Sep 2017 08:00:03 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 3DB60EC7925; Wed, 20 Sep 2017 01:00:03 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: how to build GENERIC kernel for orange pi Date: Wed, 20 Sep 2017 01:00:02 -0700 References: <20170914134321.9873e02f3d9937e0a6fe4b46@bidouilliste.com> To: =?utf-8?B?6Zi/6YeR?= , "freebsd-arm@freebsd.org" In-Reply-To: Message-Id: <945AE03C-69A9-4ABD-98EB-78CF3A599D63@dsl-only.net> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2017 08:00:06 -0000 On 2017-Sep-20, at 12:32 AM, =E9=98=BF=E9=87=91 = wrote: > Hi everybody, >=20 > According to https://www.bsdcan.org/2017/schedule/events/833.en.html, > seem need a specific source to compile GENERIC arm kernel?(if that's > true,where could I download those specific sources?) > I fetch source from here > fetch http://ftp.freebsd.org/pub/FreeBSD/releases/i386/11.1-RELEASE/ >=20 > make TARGET=3Darm TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null = __MAKE_CONF=3D/dev/null > buildworld <---ok >=20 > make TARGET=3Darm TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null = __MAKE_CONF=3D/dev/null > KERNCONF=3DALLWINNER buildkernel <--ok >=20 > but > make TARGET=3Darm TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null = __MAKE_CONF=3D/dev/null > KERNCONF=3DGENERIC buildkernel > make[1]: "/opt/11stable/usr/src/Makefile.inc1" line 158: = SYSTEM_COMPILER: > Determined that CC=3Dcc matches the source tree. Not bootstrapping a > cross-compiler. > ERROR: Missing kernel configuration file(s) (GENERIC). > *** Error code 1 >=20 > Stop. > make[1]: stopped in /opt/11stable/usr/src > *** Error code 1 >=20 > Stop. > make: stopped in /opt/11stable/usr/src https://svnweb.freebsd.org/base/release/11.1.0/sys/arm/conf/ does not have a GENERIC configuration file. Nor does: https://svnweb.freebsd.org/base/stable/11/sys/arm/conf/ GENERIC for TARGET_ARCH=3Darmv6 is newer and is only in/for: https://svnweb.freebsd.org/base/head/ so far. I do not know if it will ever be merged back to stable/11 or not. > my compile environment > uname -v > FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 04:10:47 UTC 2017 > root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC >=20 > Unto >=20 > thanks help >=20 > 2017-09-14 19:43 GMT+08:00 Emmanuel Vadot : >=20 >> On Thu, 14 Sep 2017 14:45:28 +0800 >> ?? wrote: >>=20 >>> Date: Sun, 25 Jun 2017 13:21:06 +0200 >>> From: Emmanuel Vadot >>> To: Johnny Sorocil >>> Cc: freebsd-arm@freebsd.org >>>=20 >>>> Steps to reproduce: >>>> rm -rf /usr/obj >>>> make -j4 TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null = __MAKE_CONF=3D/dev/null >>>> buildworld >>>> make -j4 TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null = __MAKE_CONF=3D/dev/null >>>> KERNCONF=3DALLWINNER buildkernel >>>> make -j4 TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null = __MAKE_CONF=3D/dev/null >>>> KERNCONF=3DALLWINNER DESTDIR=3D/mnt/sd2/ installkernel >>>> make -j4 TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null = __MAKE_CONF=3D/dev/null >>>> KERNCONF=3DALLWINNER DESTDIR=3D/mnt/sd2/ installworld >>>=20 >>> You should use the GENERIC kernel, I'll remove ALLWINNER as it's not >>> needed anymore. I think that the above reply was implicitly referencing head (12) only for GENERIC, not even stable/11 . So source code based on: https://svnweb.freebsd.org/base/head/ >>> ------------------------------------------------------------ >> --------------------- >>> But I use GENERIC kernel config get errors below >>>=20 >>> #make TARGET_ARCH=3Darmv6 SRCCONF=3D/dev/null __MAKE_CONF=3D/dev/null >>> KERNCONF=3DGENERIC buildkernel >>>=20 >>> make[1]: "/usr/src/Makefile.inc1" line 158: SYSTEM_COMPILER: = Determined >>> that CC=3Dcc matches the source tree. Not bootstrapping a = cross-compiler. >>> ERROR: Missing kernel configuration file(s) (GENERIC). >>> *** Error code 1 >>>=20 >>> Stop. >>> make[1]: stopped in /usr/src >>> *** Error code 1 >>>=20 >>> Stop. >>> make: stopped in /usr/src >>>=20 >>> Thanks help. >>=20 >> Hello, >>=20 >> You need to set TARGET=3Darm too. >> The real target for armv6 is arm.armv6. =3D=3D=3D Mark Millard markmi at dsl-only.net