Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3DBAC433EF for ; Sat, 5 Feb 2022 16:41:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8351B83BA0; Sat, 5 Feb 2022 17:39:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1644079190; bh=sUJGaAk+Iq8XS4nkeXTGLlBKcn2POnoe+qw71Szmqgc=; h=From:To:Subject:In-reply-to:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=Q4yHgaVOUh0/g7FQZtIxNCOrs3Iqlr+s4aGsSKMontzR9MBmSuvzi+95BonJt5N7f 21XB493cF6AiRJmymLHxeRusXgVo71tNyv6RSm1kBozYh9nFAeXxuFnNexoU1Q9Nji E0af7xIDuP2s1ihnIVswfyjT0m23UDV1C16dgTYGRkQd9lsP3ffQMz+bGS6NfT9iIL 3kZinScqvY+SKOznhhxzuP7cUs/oA+B+6czbvANFVehIMo1IoZ4nMfkD4zM7s2qVDl 1e8bBadk3g8X/i+Gtjzgq7vjw1zlmGaEDwLk6iGW/20Vwp/QR6viO1fNrDrEPpV52A 8e50H8Bb92uMg== Received: by phobos.denx.de (Postfix, from userid 109) id 392A983B96; Sat, 5 Feb 2022 17:39:48 +0100 (CET) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9CB1083B4D for ; Sat, 5 Feb 2022 17:39:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sbabic@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4JrdRP2Bcwz1sYfM; Sat, 5 Feb 2022 17:39:45 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4JrdRP22Jbz1qqkC; Sat, 5 Feb 2022 17:39:45 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date" Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Jm_zWbHa0ADT; Sat, 5 Feb 2022 17:39:44 +0100 (CET) Received: from papero (host-88-217-136-221.customer.m-online.net [88.217.136.221]) by mail.mnet-online.de (Postfix) with ESMTP; Sat, 5 Feb 2022 17:39:44 +0100 (CET) From: sbabic@denx.de X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1584620 X-Patchwork-Delegate: sbabic@denx.de To: Adam Ford ,u-boot@lists.denx.de Subject: [PATCH] imx: imx8mn_beacon: Fix USB booting In-reply-to: <20220126182523.58575-1-aford173@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Message-Id: <20220205163948.392A983B96@phobos.denx.de> Date: Sat, 5 Feb 2022 17:39:45 +0100 (CET) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean > The i.MX8M Nano can boot over USB using the boot ROM instead of > adding extra code to SPL to support USB drivers, etc. However, > when booting from USB, the environment doesnt' know where to load > and causes a hang. Fix this hang by supporting CONFIG_ENV_IS_NOWHERE=3Dy. > It only falls back to this condition when booting from USB, so it > does not impact MMC booting. > Suggested-by: Michael Nazzareno Trimarchi > Signed-off-by: Adam Ford > Reviewed-by: Fabio Estevam > diff --git a/configs/imx8mn_beacon_2g_defconfig b/configs/imx8mn_beacon_2g_= defconfig > index 8b98d687ec..1766a43cce 100644 > --- a/configs/imx8mn_beacon_2g_defconfig > +++ b/configs/imx8mn_beacon_2g_defconfig > @@ -66,6 +66,7 @@ CONFIG_OF_CONTROL=3Dy > CONFIG_SPL_OF_CONTROL=3Dy > CONFIG_OF_SPL_REMOVE_PROPS=3D"interrupt-parent interrupts" > CONFIG_ENV_OVERWRITE=3Dy > +CONFIG_ENV_IS_NOWHERE=3Dy > CONFIG_ENV_IS_IN_MMC=3Dy > CONFIG_SYS_RELOC_GD_ENV_ADDR=3Dy > CONFIG_SYS_MMC_ENV_DEV=3D2 > diff --git a/configs/imx8mn_beacon_defconfig b/configs/imx8mn_beacon_defcon= fig > index a707ee664e..8ac36121aa 100644 > --- a/configs/imx8mn_beacon_defconfig > +++ b/configs/imx8mn_beacon_defconfig > @@ -66,6 +66,7 @@ CONFIG_CMD_FAT=3Dy > CONFIG_OF_CONTROL=3Dy > CONFIG_SPL_OF_CONTROL=3Dy > CONFIG_ENV_OVERWRITE=3Dy > +CONFIG_ENV_IS_NOWHERE=3Dy > CONFIG_ENV_IS_IN_MMC=3Dy > CONFIG_SYS_RELOC_GD_ENV_ADDR=3Dy > CONFIG_SYS_MMC_ENV_DEV=3D2 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D