From owner-freebsd-arm@freebsd.org Mon Dec 18 16:34:13 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 2317EE98CB2 for ; Mon, 18 Dec 2017 16:34:13 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-pl0-x22e.google.com (mail-pl0-x22e.google.com [IPv6:2607:f8b0:400e:c01::22e]) (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 E384E2D59; Mon, 18 Dec 2017 16:34:12 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-pl0-x22e.google.com with SMTP id i6so5124597plt.13; Mon, 18 Dec 2017 08:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:message-id:date:subject:from :in-reply-to:references:to:cc; bh=QaJL49Gcod7Fy3DayJkFCqaCsPROVJqbURFTTlvC7f8=; b=hQT0lgXCVKxMPLSY+/ErmxOhwTtAa+2dDhNiNCRszYPImQSkKPWcJO2Y56kkhdgQRl BB2jCEsPI3NwPKQJGCSxkfvCzfmW57Ko8+zPbQhtUej7xd7Jwcdk2sVTaE1eOAtKYMaS rCAIOtmozBaPKVXIR2E4Hrlk8awrjxB7PEfBJSUau92AYoDUakByLj1NN5XCP/Lev3CB o+2qmOgJZcnyzpGOa+BHyr9/opVD23CghtxztBAN+AmdEbN7QFQVrBQ6fDCOLbDUtma9 GChwoHd5+Sh35f6UmGarOSs3SQvJs+Wu5slrj5zZtpJ3gHzcCmv4NbHhM6nNBmgU/2WO CbVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :message-id:date:subject:from:in-reply-to:references:to:cc; bh=QaJL49Gcod7Fy3DayJkFCqaCsPROVJqbURFTTlvC7f8=; b=t04+s4LUKcfMysabj7uU1uV4PHV13F6cxmK1xrVmE3n/vKz2PKzSLsfAb0+l9g1EJV nW5vjVHa4Yds7pZSaQb7c3My1zUmBG9pDkN+WyTc/B/h0QYMHIx6d6SeSMWZhS4C6urp wdIWeA2ZfKSGQku54ACYYIcl3SjZwQg2/inex+BBDgR9rMnlWHqYgvhB0fEEGYuaa18u q3lhHCUyQG/GHwKXn/vSL4NoR3DUAGrOeaSloTzSzvqwImFSHNRCAJi0pw4GZQa4Yh/w iTbp2LUSGBiiqqCveNcQohdk/NioYTj5olKTA/K12UnOTjKs/bEbMshLr3G0dafpCiq+ OyPA== X-Gm-Message-State: AKGB3mKu7nj/KqW2lojPOXOTVkNse5UMd2J+6breTY6AhlNCOGokABp+ PwQ0ABtyhHcmDXSZi9C2/WVqTe1f X-Google-Smtp-Source: ACJfBotI9neb3d/lHQ2LuzZg9oOULRCFp3hHfKX9xMdljXXbk536o55fcCBf4OBLp1fl/wP86oLpuQ== X-Received: by 10.84.197.3 with SMTP id m3mr297698pld.264.1513614852270; Mon, 18 Dec 2017 08:34:12 -0800 (PST) Received: from [127.0.0.1] ([184.151.231.133]) by smtp.gmail.com with ESMTPSA id p19sm29512133pfj.140.2017.12.18.08.34.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Dec 2017 08:34:10 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: BlackBerry Email (10.3.3.2163) Message-ID: <20171218163409.6914130.29031.36691@gmail.com> Date: Mon, 18 Dec 2017 08:34:09 -0800 Subject: Re: ubldr question From: Russell Haley In-Reply-To: <20171218104824.a4e656687a9121aa256b094c@bidouilliste.com> References: <0844C635-7FA6-4684-92F5-4C1AAC8EFB95@cs.huji.ac.il> <1513530125.95072.27.camel@freebsd.org> <20171218104824.a4e656687a9121aa256b094c@bidouilliste.com> To: Emmanuel Vadot , Ian Lepore Cc: freebsd-arm@freebsd.org 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: Mon, 18 Dec 2017 16:34:13 -0000 Sorry for the top post. So it's just a matter of updating the define/variable noted below=E2=80=8E = to restore that functionality on previously supported platforms? Russ Sent=C2=A0from=C2=A0my=C2=A0BlackBerry=C2=A010=C2=A0smartphone=C2=A0on=C2= =A0the=C2=A0Virgin=C2=A0Mobile=C2=A0network. =C2=A0 Original Message =C2=A0 From: Emmanuel Vadot Sent: Monday, December 18, 2017 1:48 AM To: Ian Lepore Cc: freebsd-arm@freebsd.org Subject: Re: ubldr question On Sun, 17 Dec 2017 10:02:05 -0700 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. > >=20 > > So, apart from stoping the loader, and typing ?env set fdtfile > > xxx.dtb? > > 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. =C2=A0That > 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. =C2=A0It's a lot less work for the > port maintainers, but we lost some functionality along the way. >=20 > -- Ian We currently use the default for the boards for the env, the default value for most of the board is to put the env in the mmc (in the space reserved for u-boot) and not in the fat. There is some discussion to move the env in the fat by default for allwinner boards as u-boot is getting too big now. One of the reason I didn't put back ENV_IS_IN_FAT is that our u-boot port is currently lacking of a proper way to customize the defconfigs (I'm currently working on this part) and I don't want to have too many patches (one for each board/soc). As of functionality, I'm not sure we lost something, one can still create a u-boot script (u-boot.scr) and do everything he needs for a custom boot. (Also setenv/saveenv works as Ian said). --=20 Emmanuel Vadot _______________________________________________ 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"