From owner-freebsd-arm@freebsd.org Wed Aug 10 08:41:46 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 69330BB0088 for ; Wed, 10 Aug 2016 08:41:46 +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 C86AE125D for ; Wed, 10 Aug 2016 08:41:45 +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 4d34f528; Wed, 10 Aug 2016 10:35:02 +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=hXunUi7LNNglDhx/bYvMacOLTB0=; b=ord8CJrs4qwLVdX50BdOvr/96aXo vLOOduQDy6e+zUehcPJNsv7su2Vcj2c/425CD49Pa/L3WrPSsuSJwd4pUOm8Smwq 9Kd3LXz6XgXLdQaZSkEcTOyAQ7N2SvekKTEEhm0CT86fTNvuGVpagcL0GK9PqtQC N7fysfjGK+LUwZQ= 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=fY+w9kmaR+u7m1zxOsPDPEXnz0gl5QUBFNAD/XKF1evvLt9NUTIf1+qX HzNhcuCyyCvxNey8v2qnqcpijwpRCMH5Vuc6KkajGqpO9w+DYaa5ax5cdnQ5GuqU t+lKucP5+/szioxiynS4BY6GdNfttV2RVTo6+OxucrrdvHkfJqU= Received: from atlantis.staff.bocal.org (163.5.250.21 [163.5.250.21]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 0cfe1951 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 10 Aug 2016 10:35:02 +0200 (CEST) Date: Wed, 10 Aug 2016 10:35:01 +0200 From: Emmanuel Vadot To: mattia.rossi.mailinglists@gmail.com Cc: freebsd-arm@freebsd.org Subject: Re: Allwinner H3 - OrangePi Plus Status Message-Id: <20160810103501.0aef31d4c27cf08b6e54d20f@bidouilliste.com> In-Reply-To: <3454388a-02bc-8dbe-4f8f-c33a726e406c@gmail.com> 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> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:41:46 -0000 On Wed, 10 Aug 2016 10:21:12 +0200 Mattia Rossi wrote: > Hi all again, > > I've managed to build everything, and to create the image etc., but I'm > having troubble with the .dtb file > > > > the .dtb file goes in /boot/dtb > > Also realised that my attachments did not go through, in case their > > air needed > > let me know. > > > > > > 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. > > 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). > > 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? ubldr will load the file described by the "fdtfile" u-boot variable (ubldr import the needed uboot variables). The uboot variable is hardcoded in the uboot port patch (https://svnweb.freebsd.org/ports/head/sysutils/u-boot-olimex-a20-som-evb/files/patch-include_configs_sunxi-common.h?revision=418446&view=markup#l44). Alternativelly you can do from ubldr prompt : load -t dtb filename It will search for the file in /boot/dtb (or you can use the fullpath if it's elsewhere) > On my dreamplug I don't use ubldr, but boot kernel.bin directly from > u-boot. There I use the following kernel config options: > > options FDT_DTB_STATIC > makeoptions FDT_DTS_FILE=dreamplug-1001.dts > > 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.. > > Do you have any hints? > > Thanks, > > Mat > _______________________________________________ > 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" -- Emmanuel Vadot