From owner-freebsd-arm@freebsd.org Sun Dec 17 19:19:55 2017 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 870C2E9290A for ; Sun, 17 Dec 2017 19:19:55 +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 40FD17ABC7; Sun, 17 Dec 2017 19:19:54 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from imac.bk.cs.huji.ac.il ([132.65.179.42]) by kabab.cs.huji.ac.il with esmtp id 1eQeTT-0005H8-Us; Sun, 17 Dec 2017 21:19:48 +0200 From: Daniel Braniss Message-Id: Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: ubldr question Date: Sun, 17 Dec 2017 21:19:23 +0200 In-Reply-To: <1513530125.95072.27.camel@freebsd.org> Cc: freebsd-arm@freebsd.org To: Ian Lepore References: <0844C635-7FA6-4684-92F5-4C1AAC8EFB95@cs.huji.ac.il> <1513530125.95072.27.camel@freebsd.org> X-Mailer: Apple Mail (2.3445.4.7) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2017 19:19:55 -0000 > On 17 Dec 2017, at 19:02, Ian Lepore wrote: >=20 > On Sun, 2017-12-17 at 17:03 +0200, Daniel Braniss wrote: >> Hi, >> in the past there was CONFIG.TXT and/or UENV.TXT where I could >> override the >> default .dtb file set by uboot, but now it seems these files are >> either not read, or the >> command has changed. >>=20 >> So, apart from stoping the loader, and typing =E2=80=98env set = fdtfile >> xxx.dtb=E2=80=99 >> is there another way? >>=20 >> cheers, >> danny >>=20 >=20 > You should be able to "saveenv" after making your change. >=20 > The uEnv.txt that used to be supported was to make it possible to > programatically change the boot behavior from freebsd userland. That > feature got lost when the uboot ports were all rewritten to use a > default environment (boot scripts and all) for freebsd that is > basically identical to what linux uses. It's a lot less work for the > port maintainers, but we lost some functionality along the way. >=20 > =E2=80=94 Ian thank sIan, that did it, now if uboot could figure out what SOC it booted from and = choose the appropriate dtb file would be great! cheers, danny