From owner-freebsd-arm@freebsd.org Tue Apr 21 17:26:52 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 1851D2B1682 for ; Tue, 21 Apr 2020 17:26:52 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4969V25rcZz3DTs for ; Tue, 21 Apr 2020 17:26:50 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id 03LHQiVh097176 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 21 Apr 2020 10:26:45 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 03LHQig9097175; Tue, 21 Apr 2020 10:26:44 -0700 (PDT) (envelope-from fbsd) Date: Tue, 21 Apr 2020 10:26:44 -0700 From: bob prohaska To: Jonathan Chen Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Booting from USB on RPi3 Message-ID: <20200421172644.GA96994@www.zefox.net> References: <20200420172512.GA94315@www.zefox.net> <20200420220756.GC94315@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4969V25rcZz3DTs X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [1.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.30)[-0.302,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(0.05)[ip: (0.23), ipnet: 50.1.16.0/20(0.12), asn: 7065(-0.03), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.05)[0.052,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MID_RHS_WWW(0.50)[]; RCVD_COUNT_TWO(0.00)[2] 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 17:26:52 -0000 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? Thank you! bob prohaska