From owner-freebsd-arm@freebsd.org Thu Apr 25 14:50:57 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F7EF159940A for ; Thu, 25 Apr 2019 14:50:57 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DC2E885A0; Thu, 25 Apr 2019 14:50:56 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: by mail-ed1-x543.google.com with SMTP id k45so138605edb.6; Thu, 25 Apr 2019 07:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FE7QH34nnva6axhf99zHhueK/QAt/P8YkU8bXi4DXc8=; b=eQvN1kRxtndEGz9iRiyeoqPYyJYyQ3s2zSu2/+iOtnQNPNPuTWggvHAg3BhocLruTO bhpYHKW19vcTuASXjFtBHwFV+v/w3yu2oq3+ZjN4d9ptKiYBnHv8wJ9JifIB3ZuDOAdg w48S1LcB7mVJEdnUEwqqn710ZdCC7KoRq8t7hFSq3wA/MxLyERQa0mOFFBEbBuqBcS/Y 7jFkMK37NLY8KAv/pqrOJfyeeSiLaQfMcMK7nc6vNlTsbYn+SOeGUUAKvly4WkeBBojJ A4supbKKtVgp2KW+U0K6D8VGWL/LnLWCNbYJM0Yi6pbnU5r4qgP+++RolC8m6916Janq hJxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FE7QH34nnva6axhf99zHhueK/QAt/P8YkU8bXi4DXc8=; b=kWgRuQhcqtl0Nl1JJ/HuSpihRspsS6zTEQcqXAmMnDuFP/ZxBqb7Dm0NpbacVCL5WI dODkiV4CVoDJL/P8NWoECF8gjCmTyT95D0KMGBFQNuc05FEeNySSlYW2A8b1yFLXowCt +P8Gblaqg0k7xngqDfzj5QcOxSsHnRlvoLHBv9hCefXoA/5pM1ZBQAxQu8iw5J7iOYEo UOh9tLqDLAAD6t0QCckbmxbgC8f/jX/Lu+WKFE7+QC0cOEyMjnFjokX5S9tSAlVfk56p nLbz+0wJWoELe6mZIDkMAIzmE9DoCjXUrUUp4ytZiGF2Oj3+EE9aRTaB+brAFXfpx0Q4 SEWA== X-Gm-Message-State: APjAAAVZLXKZxpbBag5k0ReA2BQerSpO+Sw6OlmP769xg/TaXRH1HGnN WnXHVK7vuj8iYtJpQVGgO51rERv3U5mOMYpEGwWZPEaN X-Google-Smtp-Source: APXvYqxIMq27e/qaIFrKG1mHA/MYtNYXTxR8U+irWLWNu/S5l4KxXKlfhS7VrNzAkHv6h8C+o1cz43v4zf9Hesq7Wzg= X-Received: by 2002:a50:b3a7:: with SMTP id s36mr24185618edd.4.1556203854968; Thu, 25 Apr 2019 07:50:54 -0700 (PDT) MIME-Version: 1.0 References: <26ead64e0e79f5d8f9c882273142dc09d95417a7.camel@freebsd.org> In-Reply-To: From: Balanga Bar Date: Thu, 25 Apr 2019 16:50:38 +0100 Message-ID: Subject: Re: loaderdev To: Ian Lepore Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 4DC2E885A0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=eQvN1kRx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of balangabar@gmail.com designates 2a00:1450:4864:20::543 as permitted sender) smtp.mailfrom=balangabar@gmail.com X-Spamd-Result: default: False [-4.93 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(-0.95)[ip: (-0.11), ipnet: 2a00:1450::/32(-2.32), asn: 15169(-2.24), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.97)[-0.968,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Apr 2019 14:50:57 -0000 Is it possible to used loaderdev or uEnv.txt to boot different versions of FreeBSD from different slices, ie /dev/da0s2 /dev/da0s3 etc. I'm trying to compare different builds and having them all on one USB stick would be convenient. On Sat, Apr 20, 2019 at 9:22 AM Balanga Bar wrote: > I wondered about FreeBSD being able to access uBoot environment > variables... fw_printenv and fw_setenv are available on Linux, so are > equivalent programs available on FreeBSD? > > On Thu, Apr 18, 2019 at 3:25 PM Ian Lepore wrote: > >> On Thu, 2019-04-18 at 09:30 +0100, Balanga Bar wrote: >> > How does uBoot know how to load ubldr? Is this specific to a particular >> > version of uBoot? I'm using a customised uBoot which lets me boot >> OpenWrt, >> > Debian, Arch Linux or FreeBSD depending on the contents of a USB stick. >> > >> > Currently I have a /boot/uEnv.txt file on a FAT partition which includes >> > >> > bootfile=ubldr >> > >> > Will I no longer need a FAT partition? >> > >> > If loaderdev is set to disk, then where is ubldr loaded from since, >> AFAIK, >> > uBoot can only read FAT or EXT3 partitions? >> > >> >> The convention for freebsd mailing lists is to bottom-post replies, >> mixed top and bottom posting makes for unreadable threads. >> >> The loaderdev variable is not used by uboot at all, it is read from the >> uboot environment by ubldr. Basically, loaderdev just gives you a way >> to control where ubldr finds the kernel by setting a uboot env var >> (interactively or via uenv.txt). >> >> You arrange to have uboot load ubldr in whatever way you're currently >> doing, so you will still need a FAT partition, because uboot can't read >> UFS filesystems. >> >> -- Ian >> >>