From owner-freebsd-arm@freebsd.org Sun Dec 17 19:34:39 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 1E09CE92E06 for ; Sun, 17 Dec 2017 19:34:39 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (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 019697B2D3 for ; Sun, 17 Dec 2017 19:34:38 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 26161c75-e361-11e7-8486-0934409070aa 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 outbound1.ore.mailhop.org (Halon) with ESMTPSA id 26161c75-e361-11e7-8486-0934409070aa; Sun, 17 Dec 2017 19:33:25 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id vBHJXUtr003661; Sun, 17 Dec 2017 12:33:30 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1513539210.95072.31.camel@freebsd.org> Subject: Re: ubldr question From: Ian Lepore To: Daniel Braniss Cc: freebsd-arm@freebsd.org Date: Sun, 17 Dec 2017 12:33:30 -0700 In-Reply-To: References: <0844C635-7FA6-4684-92F5-4C1AAC8EFB95@cs.huji.ac.il> <1513530125.95072.27.camel@freebsd.org> Content-Type: text/plain; charset="windows-1251" 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.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:34:39 -0000 On Sun, 2017-12-17 at 21:19 +0200, Daniel Braniss wrote: > > > > > On 17 Dec 2017, at 19:02, Ian Lepore wrote: > > > > 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. > > > > > > So, apart from stoping the loader, and typing ‘env set fdtfile > > > xxx.dtb’ > > > is there another way? > > > > > > cheers, > > > danny > > > > > You should be able to "saveenv" after making your change. > > > > 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. > > > > — 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 > I'm not sure why it's not doing so, but you can work around it by manually doing "setenv fdt_file yourfilename.dtb" then saveenv. -- Ian