From owner-freebsd-arm@freebsd.org Tue Apr 21 19:01:00 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1619A2B55C1 for ; Tue, 21 Apr 2020 19:01:00 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) (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 496CZg0lrsz3MWR for ; Tue, 21 Apr 2020 19:00:58 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-ot1-x341.google.com with SMTP id g19so1994738otk.5 for ; Tue, 21 Apr 2020 12:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3NJ5ulicK+ldsP3tSOgCGtHapC1gGrDAXhT2ENWG/QE=; b=ybK2BjoHJBsYAWGNKEoQZYxd3ucyus7+3AHWY9mXOf14LcH6l+O5QXS1u5z1YUc9vQ V0rbYedpARj/TyVOiheuAu6bVqmoBZx79g8KAjkVT/H0ciWZxr1VjHzyaDtMjCP46FQ5 JaVWQvCde5jEbtQhbfMoXZOLOpD9fqPErTunOBNHwdgj0wBDs9HG7GPTSyphp+KiQE2y kyFKIq4Gsc4DJz5IVfov0zy8x/XvOGshyGmN+XLC1yPqNnTONYrd3D5BRIT0osKlXGMk H88/3IgZHf8d0kEnSexTu4FzEeRvo86XwgYeMyPPZlK00k4bMPNYjtZv2rhwZwEfTssr OkdA== 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=3NJ5ulicK+ldsP3tSOgCGtHapC1gGrDAXhT2ENWG/QE=; b=eaQUIh24mOvZOo5fZz1Wo3sNKT5Cb5iiIGrHpDgFOa7vhsd90VHaw5+KpqSjwJOIRp PorHegmRIqM5T2Q4667pG/pnPGx4Q+0Vptmw2RJwKKbhHe7Zoh68ww3XHHVI+2yqIe57 BW7JnSIGr7tJShtmserC9fwjiGw99BKmbfpP2vG2KZuDHuACRvojyt1Vo+r/x+kKRqxs mbFYeiK0xlell4G1JPkTSLgj5Y3ZU9RJeQ1BkATyi6qO8qOhiQ+pntnULWO10bd6A3J5 GDwXhxbQHK6bwIgH88/zyzPEG72o90W6IZr8dHd9SxIu4Lv7sS/ORWicMrQcetBI9dCR wqmA== X-Gm-Message-State: AGi0PuZI3cOMFMZvRUjUkhhOBHJkLlp2ecn/J0qVOsdkkKrnGPxwYOJi ABKpXvla6INAOoJh/1bBTHktrWxoHGCM46TBeynBtPIB X-Google-Smtp-Source: APiQypKlaTRCI2rtrMxN5PR8e0K1HfXkMMq8ty6DPAo2LibzwcNHMelJh5oXb5PdKupt40cIM+I1Bu1OCaHOpU+Kjm0= X-Received: by 2002:a9d:202:: with SMTP id 2mr15594003otb.255.1587495656860; Tue, 21 Apr 2020 12:00:56 -0700 (PDT) MIME-Version: 1.0 References: <20200420172512.GA94315@www.zefox.net> <20200420220756.GC94315@www.zefox.net> <20200421172644.GA96994@www.zefox.net> In-Reply-To: <20200421172644.GA96994@www.zefox.net> From: Jonathan Chen Date: Wed, 22 Apr 2020 07:00:40 +1200 Message-ID: Subject: Re: Booting from USB on RPi3 To: bob prohaska Cc: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 496CZg0lrsz3MWR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=ybK2BjoH; dmarc=none; spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::341 is neither permitted nor denied by domain of jonc@chen.org.nz) smtp.mailfrom=jonc@chen.org.nz X-Spamd-Result: default: False [-2.38 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[chen.org.nz]; R_SPF_SOFTFAIL(0.00)[~all]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.08)[ip: (0.42), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: Tue, 21 Apr 2020 19:01:00 -0000 On Wed, 22 Apr 2020 at 05:26, bob prohaska wrote: > > On Tue, Apr 21, 2020 at 10:32:03AM +1200, Jonathan Chen wrote: > > On Tue, 21 Apr 2020 at 10:30, Jonathan Chen wrote: > > [...] > > > > Where is the kernel loading from? I gather it's been long-time > > > > practice to load the kernel from microSD and then mount the USB > > > > device as root; it that what you're doing? It appears that using > > > > usbboot (correctly!) would eliminate that extra step. > > > > > > The kernel loads from the external USB drive. The only thing on the > > > microSD card is the renamed loader.efi and the loader.env file. > > > > And the u-boot, of course. > > You're doing what I'd like to accomplish. However, I take it the > chain of events is that the Pi's GPU starts u-boot on the microSD, > that starts FreeBSD's loader on the microSD card then FreeBSD's > loader acceses the USB drive. I gather there is no bootable FAT32 > partition on the USB drive. > > Have I got that right? Yes. -- Jonathan Chen