From owner-freebsd-arm@freebsd.org Sun Dec 17 19:25:12 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 C4EA2E92B58 for ; Sun, 17 Dec 2017 19:25:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 846C97AFAF for ; Sun, 17 Dec 2017 19:25:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x234.google.com with SMTP id f190so25279487ita.5 for ; Sun, 17 Dec 2017 11:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=CX0TGCrWxnhvMgrbCmqimuVrmlc4Im419od4jLuPT50=; b=k5ZRj3woY5Dpthph0AeUiisPC/U9WSUU7CW6dfzLJ/S99THI0iEsW1LlJhCOfgE0ne XecXYDyo78L/AYaOYET6e56v2bINJV7dH28t0drkURgCCDBt+Eq6a7UbkNIpAO8x3Gf5 jtarYGUkP1dRCBgK4cLKP/UtdNqf2vsNj3XfTLX3CmTJ+mCHOHBKQJREDMJL1GXcbCO5 +jm11ruOMkjpa3DDebtsm2kpdbzXiwxVo7xCbargw1oreGW4kR5Ea4E/2YYLtVph2dh+ PP4RfUOapVx6JeB9Mj19UtWYdfR1bqaKh7ePOUiigJPPF1o+o39/yL5iVXGoEjiNndSa 5F0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=CX0TGCrWxnhvMgrbCmqimuVrmlc4Im419od4jLuPT50=; b=BHn6k1LNI/7cck6YgUn/KGl7r1G4G+aI3U5gvo1l43SGASTkE+dSHxXa5uqNC2+02S sDSsyVUhayg+bypdlt2V4niLqhZgcxz9fs+odCN36DZgprKNynLtxVx/W4sLsPAzdEe+ LQSx4ve5h084gwbzZz5V9LHF3+TjZG+JDZ4qgufd8LdrWgSHYIK3fCnJmhaAiBP10r1d 5jH2AGnawfp4774DYwWegXTKNPJqV8q6yGQr8EfAhUroZwh9ChV8kYlKYCmhqDj4kIQ2 Yx7hjJYep5FTAtGwmjUo7uuZ1M5zK0w++u4fFzng7Jfv2HXe43rQRrvie/KNWIbIzvTH xLXA== X-Gm-Message-State: AKGB3mIrzBQccA7MUQ/3CU4BzgxKg83rrVcs8eSWAyqFYMgD+3Zt2q+1 rSQxH0a9Jae1PHR90gjubpGuwhDOF4/j+4Ts/+45nw== X-Google-Smtp-Source: ACJfBouiqC6SqLz2zO0MbdEKSfKlp1cAL/uHtWJNfajXGkmqiZmIDoaaa2fZGgP1hHP8T4vvItUCOk16w9zNfuUgzps= X-Received: by 10.36.131.200 with SMTP id d191mr17153964ite.97.1513538711660; Sun, 17 Dec 2017 11:25:11 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Sun, 17 Dec 2017 11:25:10 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: <0844C635-7FA6-4684-92F5-4C1AAC8EFB95@cs.huji.ac.il> <1513530125.95072.27.camel@freebsd.org> From: Warner Losh Date: Sun, 17 Dec 2017 12:25:10 -0700 X-Google-Sender-Auth: j9MdxQbMQ1-jT69qvWJ6ubYC6AQ Message-ID: Subject: Re: ubldr question To: Daniel Braniss Cc: Ian Lepore , "freebsd-arm@freebsd.org" 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:25:12 -0000 On Sun, Dec 17, 2017 at 12:19 PM, 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 =E2=80=98env set fdtfile > >> xxx.dtb=E2=80=99 > >> 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. > > > > =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! > It's already supposed to do that since we have a different u-boot for each board (or in some cases family of boards). The SoC is insufficient to know which DTB to load (otherwise we'd just have the tables in the kernel and not bother with the added complication). Warner