From nobody Sat Sep 24 02:29:33 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MZCf22M8nz4dXtJ for ; Sat, 24 Sep 2022 02:29:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MZCf14rm8z3FDj for ; Sat, 24 Sep 2022 02:29:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe31.google.com with SMTP id m66so1607623vsm.12 for ; Fri, 23 Sep 2022 19:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=0/AluCsE2CJ8xV81aDrvH4mP771VMA3mhblUpWZ9Q5w=; b=XgAoQSgeSL5mDyqYFdlNVs9ZCU1iewtVUduROszNhy52RSTMi/VgziY3Tyz8RuG7nm Eqn8lw2Yuoyj9mx7ArMm0m0JHaOyBdMXobE0jD7ncRqbuFytaOqlUDzTmaUcfjk6Tqqz es+eBFoKxwuNrNQO2wC+nDtJeDmjo73o8Wnw/L8jIRpRMpXZi07dvc60kkINR8plqd3/ eOGSBBTncNL1UgUPZFItxErbtbl7QzAoOYDXlyRYZrjN7We+faHZ7vk2naRV9CAL4rsV 3G8CPwIENBr2+TDtbPAQ8iD4uCi8hUKwxJd8zWnoIoPQlgzNiwsKImdwhbyQ7HHEcuiB TNWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=0/AluCsE2CJ8xV81aDrvH4mP771VMA3mhblUpWZ9Q5w=; b=SAZaaXLKuuT48od9syIVly8Ddvvz097sJ/5leQHMijecKYqHFyNjw/hHuo4+PpZ99V d5dXzBqoI8em5PmoVTfVT/59iCL+iKVENf9CVj71cAL//zF4tnuA+2jY4/aGulWoEIBu 7Pi0cqBiMn4RkVb/yjGb0n7nlS3SOoNIBsBiLtocjpJ1eJxPIypXHLVVK+YnMWrVUSRV I4hMKMQ4DAmLTObcC1H2Q2GjENAMcOTc23tkUoXby72XjddlUEx9/VD6Q4m1Ok9AI1A7 uQRQGj6vdsLEJ43slgMNoxnNKPxqvDxSPMYjw5Bkm+yO10xwc5nazofw/N+fbdYYjkob Re0g== X-Gm-Message-State: ACrzQf0yAauUvff9wxEFSGnsKyw48KZa1SbaD3mdNjEViI9IgtESY9jj DKAZDrEIRAWvH010n1HWQauLvrVW8B+o6FvIjC/DEb/g6gE= X-Google-Smtp-Source: AMsMyM4/aQgp+VGSqxl2VgIjTNa7D49nn1is0mxgKFur1nE4fIxGZ8Fdh/s8eKILHgVx0xlrnFZOJ6Rxwu9hKA1UOT8= X-Received: by 2002:a67:3c7:0:b0:39b:45c2:6875 with SMTP id 190-20020a6703c7000000b0039b45c26875mr4352390vsd.6.1663986584545; Fri, 23 Sep 2022 19:29:44 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Fri, 23 Sep 2022 20:29:33 -0600 Message-ID: Subject: Re: following -current on rpi4 with zfs-on-root To: "freebsd-arm@freebsd.org" Content-Type: multipart/alternative; boundary="00000000000048829505e9631107" X-Rspamd-Queue-Id: 4MZCf14rm8z3FDj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=XgAoQSge; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::e31) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_DN_EQ_ADDR_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e31:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --00000000000048829505e9631107 Content-Type: text/plain; charset="UTF-8" On Fri, Sep 23, 2022 at 5:32 PM void wrote: > On Tue, Sep 20, 2022 at 02:36:02PM -0600, Warner Losh wrote: > >> > > >> >> For EFI, there are many choices. The default installation places > >> >> loader.efi into the ESP in EFI\FREEBSD\LOADER.EFI. The following > >> >> updates it (assuming the ESP is on p1, and isn't already mounted): > >> >> mount -t msdos /dev/ada0p1 /boot/efi > >> >> cp /boot/efi/loader.efi /boot/efi/efi/freebsd > >> >> If you have a non-standard setup, please see the EFI notes section. > > Hi Warner, > > On a freshly rebuilt system after make installworld (but before anything > else), > > # mount | grep msdos > > /dev/da0p1 on /boot/efi (msdosfs, local) > > There is no loader.efi in /boot/efi on arm64.aarch64 for raspberry pi 4 > Doh! I let an extra '/efi' slip into my directions. /boot/loader.efi is where it lives on the host. > bootaa64.efi is in /boot/efi/EFI/BOOT, so I followed Marek's > instructions and copied loader_lua.efi to bootaa64.efi from > /usr/obj/usr/src/arm64.aarch64/stand/efi/loader_lua/ > Yea. that's what gets installed into /boot/loader.efi Warner --00000000000048829505e9631107 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Sep 23, 2022 at 5:32 PM void = <void@f-m.fm> wrote:
On Tue, Sep 20, 2022 at 02:36= :02PM -0600, Warner Losh wrote:
>> >
>> >> For EFI, there are many choices. The default installation= places
>> >> loader.efi into the ESP in EFI\FREEBSD\LOADER.EFI. The fo= llowing
>> >> updates it (assuming the ESP is on p1, and isn't alre= ady mounted):
>> >> mount -t msdos /dev/ada0p1 /boot/efi
>> >> cp /boot/efi/loader.efi /boot/efi/efi/freebsd
>> >> If you have a non-standard setup, please see the EFI note= s section.

Hi Warner,

On a freshly rebuilt system after make installworld (but before anything el= se),

# mount | grep msdos

/dev/da0p1 on /boot/efi (msdosfs, local)

There is no loader.efi in /boot/efi on arm64.aarch64 for raspberry pi 4
=

Doh! I let an extra '/efi'=C2=A0 s= lip into my directions. /boot/loader.efi is where it
lives on the= host.
=C2=A0
bootaa64.efi is in /boot/efi/EFI/BOOT, so I followed Marek's
instructions and copied loader_lua.efi to bootaa64.efi from
/usr/obj/usr/src/arm64.aarch64/stand/efi/loader_lua/
<= br>
Yea. that's what gets installed into /boot/loader.efi

Warner
--00000000000048829505e9631107--