From owner-freebsd-ppc@freebsd.org Mon Jul 11 13:49:50 2016 Return-Path: Delivered-To: freebsd-ppc@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 7103FB84716; Mon, 11 Jul 2016 13:49:50 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5EA6E1DBC; Mon, 11 Jul 2016 13:49:50 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (75-101-50-44.static.sonic.net [75.101.50.44]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u6BDnfp1026711 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 11 Jul 2016 06:49:41 -0700 Subject: Re: stable/11 question: kboot vs. powerpc: only powerpc64? To: Mark Millard , FreeBSD PowerPC ML , freebsd-stable@freebsd.org, FreeBSD Current References: <07312336-F627-4372-AEF2-5FA93CF6E4CD@dsl-only.net> From: Nathan Whitehorn Message-ID: <5783A3F5.2030301@freebsd.org> Date: Mon, 11 Jul 2016 06:49:41 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <07312336-F627-4372-AEF2-5FA93CF6E4CD@dsl-only.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVb0oc0MfEW05YlVH6NTuJCMpUbxrsZPGN8pd4QQ90yYPS7xaD1qQlHlsd7x8CmG0g+mXz+KCSe6qIEaKtptK34dbDNLg8HRjvY= X-Sonic-ID: C;po4YUW5H5hG9V5NwxPCmMQ== M;8PxVUW5H5hG9V5NwxPCmMQ== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2016 13:49:50 -0000 It is not 64-bit only; like the normal loader, it can load both 32-bit and 64-bit kernels. Those two flags are probably obsolete at this point and were for compatibility with pre-2.17.5 versions of binutils. Can you do a test build with the -CFLAGS+= -Wa,-mppc64bridge line removed? -Nathan On 07/11/16 03:55, Mark Millard wrote: > Is the following something that should be updated something like is indicated below for 11.0-BETA1? Is kboot powerpc64 specific? > > # svnlite diff /usr/src/sys/boot/powerpc/Makefile > Index: /usr/src/sys/boot/powerpc/Makefile > =================================================================== > --- /usr/src/sys/boot/powerpc/Makefile (revision 302457) > +++ /usr/src/sys/boot/powerpc/Makefile (working copy) > @@ -1,5 +1,9 @@ > # $FreeBSD$ > > -SUBDIR= boot1.chrp kboot ofw ps3 uboot > +SUBDIR= boot1.chrp > +.if ${MACHINE_ARCH} == "powerpc64" > +SUBDIR+= kboot > +.endif > +SUBDIR+= ofw ps3 uboot > > .include > > > > I ask because I'd submitted 206303 back on 2016-jan-16 reporting that TARGET_ARCH=powerpc WITH_BOOT= was stopped by getting a -Wc,-mppc64bride and a -mcpu=powerpc64 (one of the base/head/sys/boot/powerpc/kboot/Makefile SRCS being ppc64_elf_freebsd.c). > > === > Mark Millard > markmi at dsl-only.net > >