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 26A65C28CF5 for ; Wed, 26 Jan 2022 18:25:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 09B8A83214; Wed, 26 Jan 2022 19:25:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GIUQf8es"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AACDF830AD; Wed, 26 Jan 2022 19:25:37 +0100 (CET) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 09DBA83214 for ; Wed, 26 Jan 2022 19:25:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-il1-x130.google.com with SMTP id z4so443269ilz.4 for ; Wed, 26 Jan 2022 10:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UuCOXMnoEBp3cc2nfUAu7EJtCL5oNCdPyD/qchx4C30=; b=GIUQf8esiuXW9Dyp7++rOLFLOQh1fqY6WwCSjN3Krr56TGQcM7ecTxkGSodmxMdha/ yZ2Tj955hqwMsZhCY7lz0Dt6bdblqnvjwfSiebJr2B0/lhLUXy/AVbJi3Mx7WEAzjyhw ELfcOWaIah2vuXNBinmjyj78HBCJvBtLjRBsio//Mq0+JcsbSJZ2NF1DyGiLUhJnZz9i p4sJvCt42D2gfnV/Huaaf58S2KfSez+NCYwKG2H0yUuWNM5xc9RvqF6KeMiLdUb5GwWj XwOJ/Wbjo6r9aywjSh4Jy+N9A3bQ+jbPwwknvXl7BPOipFlMzfpjYatYsO4xWoIFZOaV Gk9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UuCOXMnoEBp3cc2nfUAu7EJtCL5oNCdPyD/qchx4C30=; b=eVTJro818Ru4hvt3tjceF6pIGHmgSwZiPoz9DqAkx8hD70//bTVpbunPlW7SrE7aZv YdOXavTxsr4uFzNNwZXYgehv7qouANQ3NyFhP3QSGB3CdsT/TTD1jbVoBmLHymLTH5hA YXWk5quVa4An/PMi3TGFPDAK7KixpqCv+FAkE2S+D/kw6ew2uEAM1eFXbhbRXIxs0hTv XMy0/IXOo4CNwCM1OVX+KWHYhvL4sAilOQowMTzIq9XYmtcVW6Kv6/FpOXZiu0wsKPIe Lg/7YFDHoZ2ORLRAJgHC5ODWnchByfpr2odeR9fUmSgbstNe/jjZLVvKKgjAkrToxDTm 4TDw== X-Gm-Message-State: AOAM532mO3Yq9PqarZkqB2Ajy/HnhGlNaQ8quqaVoWm205PZPGss8qmp IzHIbFuiy7rFuGHVFLP5oZ2EvMt0fz8= X-Google-Smtp-Source: ABdhPJzOcqloxEc1HL0aYeKnk+XHjyvS2+OsFfA0qP/yhXNLTpTJaMAJI48XuD2xx1kUo+7CxKxwRw== X-Received: by 2002:a05:6e02:1845:: with SMTP id b5mr235443ilv.91.1643221533253; Wed, 26 Jan 2022 10:25:33 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:4c2:ec1d:c1e:9ed1]) by smtp.gmail.com with ESMTPSA id e8sm10730240iow.53.2022.01.26.10.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 10:25:32 -0800 (PST) From: Adam Ford To: u-boot@lists.denx.de Cc: sbabic@denx.de, tharvey@gateworks.com, trini@konsulko.com, Adam Ford , Michael Nazzareno Trimarchi Subject: [PATCH] imx: imx8mn_beacon: Fix USB booting Date: Wed, 26 Jan 2022 12:25:23 -0600 Message-Id: <20220126182523.58575-1-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=y. 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 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=y CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="interrupt-parent interrupts" CONFIG_ENV_OVERWRITE=y +CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SYS_MMC_ENV_DEV=2 diff --git a/configs/imx8mn_beacon_defconfig b/configs/imx8mn_beacon_defconfig index a707ee664e..8ac36121aa 100644 --- a/configs/imx8mn_beacon_defconfig +++ b/configs/imx8mn_beacon_defconfig @@ -66,6 +66,7 @@ CONFIG_CMD_FAT=y CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y CONFIG_ENV_OVERWRITE=y +CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SYS_MMC_ENV_DEV=2 -- 2.32.0