From owner-freebsd-arm@freebsd.org Tue Sep 26 18:11:09 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 B9957E12D91 for ; Tue, 26 Sep 2017 18:11:09 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 298E770249 for ; Tue, 26 Sep 2017 18:11:08 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 067ebb42; Tue, 26 Sep 2017 20:11:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=Rba0aajsBnlT1Wb7L/h6jbSEW08=; b=JhoxW/EB7jeuY8dOj/l/trzeqPZl au8WrZaEQnWnxYWMemEoFmmzN0f3HJi4SRZJWDIM8sa2SxhKhfH5UrKj4S4Lfei8 q33dm8mj3nd0q8NdDUkUVpPKH/0aJQ4+WRcM0V0FNdnvr4B2FBmzVYNBpLm64NYN slKBMslDplgN6dI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=hDj1QhA9xJ62vrwU/3Mb6UPTgdBXlpIWiAfMTW54s43U66l3wxvQr5Ja YaZprqg+TyAsjvnXOajTyPpzuKV40McCdKrUFH9uIaPENSvb8XRUsOBATpG0mt1e ejaUmBSphXzt0i5iNysFkADpEHuUy15oKF58rusvJ5hCCNwkpDw= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 602c30c4 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 26 Sep 2017 20:11:05 +0200 (CEST) Date: Tue, 26 Sep 2017 20:11:04 +0200 From: Emmanuel Vadot To: Mark Millard Cc: =?ISO-8859-1?Q?=3F=3F?= , "freebsd-arm@freebsd.org" Subject: Re: how to build GENERIC kernel for orange pi Message-Id: <20170926201104.a937b45e09f41eac62fc7f05@bidouilliste.com> In-Reply-To: <945AE03C-69A9-4ABD-98EB-78CF3A599D63@dsl-only.net> References: <20170914134321.9873e02f3d9937e0a6fe4b46@bidouilliste.com> <945AE03C-69A9-4ABD-98EB-78CF3A599D63@dsl-only.net> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 26 Sep 2017 18:11:09 -0000 On Wed, 20 Sep 2017 01:00:02 -0700 Mark Millard wrote: >=20 > On 2017-Sep-20, at 12:32 AM, ?? wrote: >=20 > > 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_COMPILE= R: > > 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 >=20 > https://svnweb.freebsd.org/base/release/11.1.0/sys/arm/conf/ >=20 > does not have a GENERIC configuration file. Nor does: >=20 > https://svnweb.freebsd.org/base/stable/11/sys/arm/conf/ >=20 > GENERIC for TARGET_ARCH=3Darmv6 is newer and is only in/for: >=20 > https://svnweb.freebsd.org/base/head/ >=20 > so far. I do not know if it will ever be merged back to > stable/11 or not. Some bits could be merged but for Allwinner we cannot as we changed some clock api and we cannot break api on stable release. Also this would require DTS merge and this would be a pain to handle. > > 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. >=20 > I think that the above reply was implicitly referencing > head (12) only for GENERIC, not even stable/11 . So > source code based on: >=20 > https://svnweb.freebsd.org/base/head/ >=20 > >>> ------------------------------------------------------------ > >> --------------------- > >>> 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: Determin= ed > >>> that CC=3Dcc matches the source tree. Not bootstrapping a cross-comp= iler. > >>> 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. >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" --=20 Emmanuel Vadot