From owner-freebsd-arm@freebsd.org Sat Apr 20 07:22:37 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 D8BA91585BB5 for ; Sat, 20 Apr 2019 07:22:36 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) (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 B6EBC863FD; Sat, 20 Apr 2019 07:22:35 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: by mail-ed1-x542.google.com with SMTP id d55so6002659ede.0; Sat, 20 Apr 2019 00:22:35 -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=q5CMUG+2uQmsIQx1NVBdnIMFU1zezyFk3UEWMdBYQrA=; b=rH2Z3ijqrdy/DYogipmDMxF0xOhK4MuVE9/mQPDQjKnUyytCMdYhe/ijZqevsxNvrl NqbCyPqAyHVAsX9kuZtmICuQJN0tMEk3g0HroZbqgIbZKTkrfgRQA3Dio4Ygu5EApVX9 lHO/ArDrrtWLMzze5/wx1e51d/RlwhUqft6RJlMKXWKlu33eVopzQvFjzoKLZejrvfL1 wDwjcNFwcDmgg6SVQDrMjV+h2bpd1FviwK0sGtChmczuNuxsIjcLjkX6MeQp9mWTHTE7 +1kMPuC53yR7oTGw7VSZp4phUUEjwRYxoilLOYr8Yui+32ssbiGX/YLH38KOzi5pFJP9 b5bg== 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=q5CMUG+2uQmsIQx1NVBdnIMFU1zezyFk3UEWMdBYQrA=; b=OWd2dRL/WlXe4Unq4fcHqqdDinfC+b/7sM9AKMpruu9k+VOX2cTsSC4UrSBzrv/IbB tS1+xgjdHNTH4qhwKKHCzdne1/vuMEmMGnkbARQyjzJH2Z2f/Y7owtIhBgMqBgmDqPFc lEI02EZY5la0YRKt2MfygpwDZA2kUxYGfPydcYV/WLWR8h7aJE91V3sPXBArdG0hG/rO IZz84N7CBA5JH8wTo55Ix3UbTf5vB/MrTqZKulRMrn6Xr3VXJ7VCtw24cN0LlEIBG511 sL6gCIwnDdEqmnukcy/6BIfknhzm6TK425SbhxFRa0zvAKxt5m3yYjHpYEu1fmSgWgdx lZDQ== X-Gm-Message-State: APjAAAUjHN1vOdug2l4wOmshzDeKHpfRQQ3x7+x+xhVNCMTUbcwf/Eo1 TT8YksTJr4xgd6jodeiaEF0v2hkv1kgYCdmn9rLmCHRy X-Google-Smtp-Source: APXvYqyyJNtxRMb3NEOkPKuIj/kt4zx1xWAQnViA7s/ONU/mZR6n9/Jgx/+x5SMeal+gzKfgVxQ8/9XjgXj99YGeqL0= X-Received: by 2002:a50:b3a7:: with SMTP id s36mr4409282edd.4.1555744954558; Sat, 20 Apr 2019 00:22:34 -0700 (PDT) MIME-Version: 1.0 References: <26ead64e0e79f5d8f9c882273142dc09d95417a7.camel@freebsd.org> In-Reply-To: <26ead64e0e79f5d8f9c882273142dc09d95417a7.camel@freebsd.org> From: Balanga Bar Date: Sat, 20 Apr 2019 09:22:09 +0100 Message-ID: Subject: Re: loaderdev To: Ian Lepore Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: B6EBC863FD X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=rH2Z3ijq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of balangabar@gmail.com designates 2a00:1450:4864:20::542 as permitted sender) smtp.mailfrom=balangabar@gmail.com X-Spamd-Result: default: False [-4.91 / 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]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[2.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]; NEURAL_HAM_SHORT(-0.92)[-0.925,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)[]; IP_SCORE(-0.98)[ip: (-0.19), ipnet: 2a00:1450::/32(-2.38), asn: 15169(-2.26), country: US(-0.06)]; 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: Sat, 20 Apr 2019 07:22:37 -0000 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 > >