From mboxrd@z Thu Jan 1 00:00:00 1970 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 DF68AC433EF for ; Wed, 20 Apr 2022 21:08:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4E98483E9D; Wed, 20 Apr 2022 23:08:22 +0200 (CEST) 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="Tkd5qhUJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E807683E9B; Wed, 20 Apr 2022 23:08:18 +0200 (CEST) Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (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 F2C6783E9B for ; Wed, 20 Apr 2022 23:08:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-oi1-x232.google.com with SMTP id a10so3478642oif.9 for ; Wed, 20 Apr 2022 14:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QzV1B/GqpO4kUnJh00jyH4L6m0HnoTM1Ljfkb8G5LF0=; b=Tkd5qhUJPFZn2dtf4Q/qdPejb+OBhL4nchesbLhvw3FkpON5OnmRx3IRwBRmpXHTzX Y/ucTJ7POJBFvOFeuJmpHDilfC2yOFiDVKP+1mG0ZZ+CuAKPzbXmZrwF90gzkfYFzpJE 7hD5cW2JIbXWet8ghxdmXCwcoJKavcVLvGBfMRq/VzR3Izo7pGj3t6gSaiwzTa+YOdY6 6rPXYVEXBAO0VY2arhDsiEWgPZOq7v7x2tqTh2jYTggOr03XMsyC8E6hs0OnoNoeJ66g gP7BBvFtWdJQNot6acFnD0BhglX2wB9p3ozqa+eBy7lJJ9Wdp/rEwcmhgjo5E5MkUleF JBgw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=QzV1B/GqpO4kUnJh00jyH4L6m0HnoTM1Ljfkb8G5LF0=; b=wZHlGp+OT+TzS9QBtHemQC6GCpQ5JtGwPBQrkerJoOtId0Y1olrpoAxKGjgzztHuH7 3uzQDkKxpS0A/JjjmXycKu8CFleQCAr214GAZ9ES2RWyVW8uYQBFsgybqsOAIauKSEw+ 2Tm/6l6X50W5d/JXpZbZDji1OaeuComM2U4Mej2naI/Nv/WLaJScxD1Foc68MlimEwC6 egGmrDVSMd6PCI7q0c0vp2LPXuzofWt66irzfU5lX5Pw+64G8gZN703dkThkjBCt+yks gx80w0jmAMAaaMwVl+4KfcFToA6u6wc43p/3idw/nbqsOjAqMLqOotxXUFABN7KzIM+Y ny9Q== X-Gm-Message-State: AOAM532LsPF/uy7VtgnGmchsa/DTYh0NEyc0Hxwhn8dI9unvqsJxAPVO cRr+j6lqqpG2KNAZj16q5EM= X-Google-Smtp-Source: ABdhPJzzOHchUARUAnDICEQtoVENi+63GsEtD9TTDK4gNlX1fgsa6q1ViiIuH6HGy37ZF8jaMx0CxQ== X-Received: by 2002:a05:6808:23c1:b0:2da:30fd:34d9 with SMTP id bq1-20020a05680823c100b002da30fd34d9mr2679871oib.203.1650488894579; Wed, 20 Apr 2022 14:08:14 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:485:4b69:3ce1:a87b:51c0:189d]) by smtp.gmail.com with ESMTPSA id s6-20020a4ae546000000b0032480834193sm7116411oot.46.2022.04.20.14.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 14:08:14 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: peng.fan@nxp.com, u-boot@lists.denx.de, aford173@gmail.com, michael@amarulasolutions.com, marex@denx.de, Fabio Estevam Subject: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE Date: Wed, 20 Apr 2022 18:07:57 -0300 Message-Id: <20220420210757.1184891-2-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220420210757.1184891-1-festevam@gmail.com> References: <20220420210757.1184891-1-festevam@gmail.com> 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 From: Fabio Estevam Currently, on i.MX8MN/i.MX8MP (Bootrom version 2) it is not possible to load U-Boot via serial download mode, unless CONFIG_ENV_IS_NOWHERE is selected. This was noticed before by Adam Ford and fixed on the imx8mn beacon board in commit 2c7ebf7778cf ("imx: imx8mn_beacon: Fix USB booting"). Such commit log states: "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." Select ENV_IS_NOWHERE globally when i.MX8MN or i.MX8MP are used, so that serial download mode can be used by default on these SoCs. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/imx8m/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 55db25062a9b..ba7328aec8a1 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -16,10 +16,12 @@ config IMX8MM config IMX8MN bool select IMX8M + select ENV_IS_NOWHERE config IMX8MP bool select IMX8M + select ENV_IS_NOWHERE config SYS_SOC default "imx8m" -- 2.25.1