From nobody Sat Jul 3 10:11:35 2021 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 5D62411FFB7A for ; Sat, 3 Jul 2021 10:11:41 +0000 (UTC) (envelope-from jordan@jbass.io) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GH75m6Qhnz4nNX for ; Sat, 3 Jul 2021 10:11:40 +0000 (UTC) (envelope-from jordan@jbass.io) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A36BF32000CC for ; Sat, 3 Jul 2021 06:11:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 03 Jul 2021 06:11:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jbass.io; h=from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; s=fm2; bh=70JHRfucbYJS8pu6DQu9/wSm//tqz42wY Gaw0236k7w=; b=Joew6zEC7Fju3rkAnrF2SCPzODDaWvMYcMQANJHK9oPA8iVi8 KhPyrrGIPxN6NO2F9sxV967UjxNw6+42fPztyceVtwkO5pqCRcttlw6lEjl7s7R8 2PrIfPrVihrcq3siteloooan/3eSnZyI16Ujtk2kYD6dF1vsWXPy+ICnBqXolkKF SdQR4Bq93wEWEyMUnsAsgcbUgfXwbO2nhgjaCU5y5TGFwXHcvsdj+URtGNK+7lds QPCs8CqrhqjwUElPKRzTETQItvFfhOL+N0iwRAuGGNTHje/7zNh7XDBnn06VhMuf PMYrErpWAizuRnhTX6x5Hy/DIVhULTMtF20uQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=70JHRf ucbYJS8pu6DQu9/wSm//tqz42wYGaw0236k7w=; b=Uc5cgl4BY1/ydBNhfq7JAc WCaWyVJ5JzwMIxr2qpFhYzCiXPz08O0D6PMDSGBjItDAvVwtLQUjJDCOM9TiDimj bOnkM0sSw4YAAF4k3ASmYXwW2urYzxTaSNZmrYrX9OvfqAoQBjYw0DqvEiA+02lh iSLTNNlUFaLQVH1ZQjRR2GHHMcDUqTDG+/atz9DvT/UMsLxOdWX+uEFhzFW8NyPB cluOXKzyfX0L94yGz5tAD5l5dXDon3S0TdebY2SW4g6cBvDzHwJ+3E7dvBNietON 5Ef8nm5cXT+xZgzxLuZNd6plpHH2HTQ9cnQZkYKrdwop+l4F8UcfhR1a/OLZsHlw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeejtddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhtgfgggfukfffvffosehtqhhmtd hhtddvnecuhfhrohhmpeflohhruggrnhcuuegrshhsuceojhhorhgurghnsehjsggrshhs rdhioheqnecuggftrfgrthhtvghrnhephfehheejffevuddvkeekgefftdetjeffvddtie egieejjedtkeduueeffeffleelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepjhhorhgurghnsehjsggrshhsrdhioh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 3 Jul 2021 06:11:38 -0400 (EDT) From: Jordan Bass Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: RPi4 - Booting from mSD with USB storage Message-Id: <0309ED7D-32C9-4A5A-A867-5C4CA454212B@jbass.io> Date: Sat, 3 Jul 2021 11:11:35 +0100 To: "freebsd-arm@freebsd.org" X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4GH75m6Qhnz4nNX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=jbass.io header.s=fm2 header.b=Joew6zEC; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=Uc5cgl4B; dmarc=none; spf=pass (mx1.freebsd.org: domain of jordan@jbass.io designates 64.147.123.21 as permitted sender) smtp.mailfrom=jordan@jbass.io X-Spamd-Result: default: False [-3.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21:c]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[jbass.io:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.21:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[jbass.io:s=fm2,messagingengine.com:s=fm3]; FREEFALL_USER(0.00)[jordan]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[jbass.io]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[64.147.123.21:from]; MAILMAN_DEST(0.00)[freebsd-arm] X-ThisMailContainsUnwantedMimeParts: N Hi, I've installed 13.0-RELEASE on a micro SD card to use on a 8GB Raspberry = Pi 4. The Raspberry Pi 4 launches u-boot from the mSD card successfully. = Without any USB devices attached, u-boot will boot FreeBSD from the mSD = card successfully. When I attach an externally powered USB SDD enclosure = containing 2 drives and try to boot, u-boot will fail to boot FreeBSD = from the micro SD card. It will then try to boot from USB and fail = because they are just ZFS storage. Finally, u-boot will endlessly try to = boot over the network. To work around the problem, I can detach the USB drives, power on the = Pi, wait a few seconds, and then attach the USB drives. I've tried the 2021-04 build of u-boot, and that will boot from mSD with = the USB drives attached, but only because it fails to detect the USB = devices, and the ZFS pools will not be imported on boot. Does anyone have any suggestions for configuring u-boot to behave in the = way I expect? I want to boot from mSD, even when USB drives are = attached. Thanks, Jordan=