From owner-freebsd-arm@freebsd.org Thu Dec 15 18:48:51 2016 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 9B602C81E3A for ; Thu, 15 Dec 2016 18:48:51 +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 DC3851519; Thu, 15 Dec 2016 18:48:50 +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 c14c2f5f; Thu, 15 Dec 2016 19:48:47 +0100 (CET) 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=wpZ7n36XWEreR/Fp/E7twgXtYdU=; b=sPE+fP3g8b4AuDTsIBlFqrlOeSFr akzWH1nMlXZ+5OdBUe1cbYbNOOQQW4UeLHBeSB/UtHfNgYhdyAo7vL4MnMZnIb0k UBZhRz+iNPv1AjSLheVgvYdAXu1sKgl8uQulrqs1kUTiXdEY7NSXXQHWYEeko6Xr 6KfOrRl08W01G6o= 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=DdI0YJ/aqecSQpIhQGzQFiXYOxUbslZrffUpg+R7c8lctZ6vgxSEc7MK Ovgq9a16LOGTrteJZWZgBhTzFqSLa7Eo2rkTOdNeckk2eCpXG54Wuqbv/sIjQ/hW kfQmXUwSzH0CCLoXFUC3AAEIvDXV+lc5yIG5DG8QD+/cSHPirP0= 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 fdaa15d8 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 15 Dec 2016 19:48:47 +0100 (CET) Date: Thu, 15 Dec 2016 19:48:47 +0100 From: Emmanuel Vadot To: Ian Lepore Cc: Nicolae-Alexandru Ivan , freebsd-arm@freebsd.org Subject: Re: Cubieboard2 with custom bootloader Message-Id: <20161215194847.efbfcd94694e6c71dacdc16a@bidouilliste.com> In-Reply-To: <1481817793.1972.2.camel@freebsd.org> References: <20161212160553.dee9d435125f9c6b67355d21@bidouilliste.com> <20161215123900.f141d13bd9814d43feb3f736@bidouilliste.com> <20161215133505.a7ffa64924f3be052840b828@bidouilliste.com> <1481817793.1972.2.camel@freebsd.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; 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: Thu, 15 Dec 2016 18:48:51 -0000 On Thu, 15 Dec 2016 09:03:13 -0700 Ian Lepore wrote: > On Thu, 2016-12-15 at 13:35 +0100, Emmanuel Vadot wrote: > > On Thu, 15 Dec 2016 14:26:48 +0200 > > Nicolae-Alexandru Ivan wrote: > >=20 > > >=20 > > > >=20 > > > > =A0For 1 and 2, as Ganbold said ubldr is broken since clang 3.9 > > > > import > > > > (well only ubldr.bin for me ...) > > > > =A0For 3 and 4 I've never tested booting kernel directly, I'll try > > > > that. > > > > =A0Does your kernel have a static dtb compiled in ? > > > Yes, we included the device tree in the kernel binary. > > > The options below are included in our conf. > > >=20 > > > #FDT > > > options FDT > > > options FDT_DTB_STATIC > > > makeoptions FDT_DTS_FILE=3Dcubieboard2.dts > > =A0Oh I might now, my patches introduce a FreeBSD option for uboot that > > disable the dcache while it's strictly disable in the ports. > > =A0Do a gmake menuconfig in uboot before compiling but after gmake > > cubieboard2_defconfig to enable this. > >=20 >=20 > It shouldn't be necessary to disable dcache, but it does need to be > flushed before launching ubldr or the kernel; especially, it needs the > icache sync'd. =A0The stock uboot does the needed cache work only in the > path that launches linux that has been packaged as an image file (and > before launching vxworks I think). =A0For freebsd the needed cache ops > must be patched into two places, the bootelf path and the go path. >=20 > -- Ian Well the dcache has been strictly disabled in most of our port for quite some times now. I'll run some test so see if it's still needed and update the port if it's not. And it raise a question: Why couldn't we flush the dcache at the start of ubldr for arm if it's needed ? I'm gonna try to upstream by "FreeBSD config" v2 patches soon so I want to do it right. --=20 Emmanuel Vadot