From owner-freebsd-arm@freebsd.org Wed Aug 10 08:26:31 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 DBF25BB4A5F for ; Wed, 10 Aug 2016 08:26:31 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 941941952 for ; Wed, 10 Aug 2016 08:26:31 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.81.13]) by kabab.cs.huji.ac.il with esmtp id 1bXOqI-0009iA-1K; Wed, 10 Aug 2016 11:26:26 +0300 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Allwinner H3 - OrangePi Plus Status From: Daniel Braniss In-Reply-To: <3454388a-02bc-8dbe-4f8f-c33a726e406c@gmail.com> Date: Wed, 10 Aug 2016 11:26:25 +0300 Cc: freebsd-arm , Emmanuel Vadot Content-Transfer-Encoding: quoted-printable Message-Id: References: <64ad8272-a97f-e51f-19f1-d37e12c4e4bf@gmail.com> <868ae805-bf93-50f9-e22c-1d2ea13f8555@gmail.com> <8FDE95E3-C66E-40D5-8133-67FD987BE729@cs.huji.ac.il> <3454388a-02bc-8dbe-4f8f-c33a726e406c@gmail.com> To: mattia.rossi.mailinglists@gmail.com X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 08:26:32 -0000 > On 10 Aug 2016, at 11:21, Mattia Rossi = wrote: >=20 > Hi all again, >=20 > I've managed to build everything, and to create the image etc., but = I'm having troubble with the .dtb file >>=20 >> the .dtb file goes in /boot/dtb >> Also realised that my attachments did not go through, in case their = air needed >> let me know. >>=20 >>=20 >=20 > So, I've added sun8i-h3-orangepi-plus.dts to the dtb/allwinner = Makefile, so that it gets built with the MODULES_EXTRAS option in the = kernel config file. >=20 > So far so good, the .dtb exists as sun8i-h3-orangepi-plus.dtb and is = installed in /boot/dtb which is placed on the ufs filesystem (2nd = partition of the SD card). >=20 > When I switch on the device, u-boot and ubldr start fine, but ubldr = complains about the missing .dtb - So obviously it's confused by = something. I guess the .dtb is either in the wrong place or it has the = worng name. In either way, I need to tell ubldr what to look for. How do = I do that? >=20 > On my dreamplug I don't use ubldr, but boot kernel.bin directly from = u-boot. There I use the following kernel config options: >=20 > options FDT_DTB_STATIC > makeoptions FDT_DTS_FILE=3Ddreamplug-1001.dts >=20 > which cause the .dtb to be built into the kernel. Would that work with = ubldr as well? (I don't need a separate .dtb, so whatever works is fine = with me.. >=20 > Do you have any hints? >=20 you will have to either compile u-boot for the orange-plus so that it will look for the = correct dab file depending which one you are using, it=92s probably looking for = orange-pc (do a grep dtb of the u-boot - which should be in the fat = partition) or figure out how to set/create the txt file u-boot is supposed to = read, and what is the correct magic syntax to set the dub file name > Thanks, >=20 > Mat