From owner-freebsd-arm@freebsd.org Thu Dec 15 16:03:17 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 380BFC8188C for ; Thu, 15 Dec 2016 16:03:17 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (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 1ACA4181D for ; Thu, 15 Dec 2016 16:03:16 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: f588be20-c2df-11e6-9ec7-5d8fa496b077 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id f588be20-c2df-11e6-9ec7-5d8fa496b077; Thu, 15 Dec 2016 16:03:04 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id uBFG3DAC001357; Thu, 15 Dec 2016 09:03:14 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1481817793.1972.2.camel@freebsd.org> Subject: Re: Cubieboard2 with custom bootloader From: Ian Lepore To: Emmanuel Vadot , Nicolae-Alexandru Ivan Cc: freebsd-arm@freebsd.org Date: Thu, 15 Dec 2016 09:03:13 -0700 In-Reply-To: <20161215133505.a7ffa64924f3be052840b828@bidouilliste.com> References: <20161212160553.dee9d435125f9c6b67355d21@bidouilliste.com> <20161215123900.f141d13bd9814d43feb3f736@bidouilliste.com> <20161215133505.a7ffa64924f3be052840b828@bidouilliste.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 16:03:17 -0000 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: > > > > > > > > >  For 1 and 2, as Ganbold said ubldr is broken since clang 3.9 > > > import > > > (well only ubldr.bin for me ...) > > >  For 3 and 4 I've never tested booting kernel directly, I'll try > > > that. > > >  Does 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. > > > > #FDT > > options FDT > > options FDT_DTB_STATIC > > makeoptions FDT_DTS_FILE=cubieboard2.dts >  Oh I might now, my patches introduce a FreeBSD option for uboot that > disable the dcache while it's strictly disable in the ports. >  Do a gmake menuconfig in uboot before compiling but after gmake > cubieboard2_defconfig to enable this. > 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.  The 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).  For freebsd the needed cache ops must be patched into two places, the bootelf path and the go path. -- Ian