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 ACF13C433EF for ; Wed, 20 Apr 2022 22:15:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E4AD83D44; Thu, 21 Apr 2022 00:15:53 +0200 (CEST) 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=1650492953; bh=yKcxo2t64EWcJkis42RSiC3Q8FSqvqXSps7ypQN5pmo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=s1Bexk16Yi87wR2naDjtUCHhi9d5GlQhrt6P9KtI4F4vo+X8IOTVA8QdbKJF26oCu AtmBEXZuA+kkzZPb7RyDvhSd1+smI4heqhVPNF+lZX4p7l4JU4THG97nF6i5eUgOOi mokRWMcgSzJAZFfVcbNGDtzEXjyXkk9RSNVplBWgw8gNgasSusdGHrsCleDuAcLmw7 Fax1ju5o9wtNGDdkVLkGhrmHw2S/GH1BlsGeRj13Z3Yl9gU+6WwfTazKTyop8BrFHm N0RUNTgchaH06vUW2tnxeQCTDBFITRzHLNlwB3AFib653IJ7TuDwkLUubCl9KZJKhs s1P00I5O+2Oeg== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id B667F83AD0; Thu, 21 Apr 2022 00:15:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1650492951; bh=yKcxo2t64EWcJkis42RSiC3Q8FSqvqXSps7ypQN5pmo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=rLefZH+PhhVWNkV8o4SRzqLAr7+plkv8bdskZtjGQaHmz1P71QhKXfJOFAWW8KuuC 4Xl71TgGCWHFZ9bJpUMONVa9oy30/80mUJnRnowhRCFtL+YDRr4p7bSFwH/R1ulm8Q F8tmP+Nv6FWJuOSQmfSINCYRxbaKfFZFdgMt7XotxJF3u0SPv2pItG5HWhtDyDkh0n xesTFIRpOwvf3ICYnScsuLTLgQYnnlO4eELCXmLlzXVtxYvKx2hxW39XdYTxq1E12G qN5KaW+8oy9r4XDlUcBkaUES4OFMR07IqgXRAKeJDjIb9Wyf/v3EStMEOgEypaHkEL fA+m4efNN1nMg== Message-ID: Date: Thu, 21 Apr 2022 00:15:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 2/2] imx8mn/8mp: Select ENV_IS_NOWHERE Content-Language: en-US To: Fabio Estevam Cc: Stefano Babic , Peng Fan , U-Boot-Denx , Adam Ford , Michael Trimarchi , Fabio Estevam References: <20220420210757.1184891-1-festevam@gmail.com> <20220420210757.1184891-2-festevam@gmail.com> From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 4/21/22 00:03, Fabio Estevam wrote: > Hi Marek, Hi, > On Wed, Apr 20, 2022 at 6:42 PM Marek Vasut wrote: > >> I suspect this happens because >> >> arch/arm/mach-imx/imx8m/soc.c env_get_location() >> >> contains >> " >> ... >> default: >> return ENVL_NOWHERE; >> " >> >> right ? >> >> I wonder what would happen if you were to add: >> >> case USB_BOOT: >> return ENVL_UNKNOWN; >> >> Maybe that would even work without CONFIG_ENV_IS_NOWHERE=y ? > > Unfortunately, with this change the boot via SDP does not complete: Did you actually hit the USB_BOOT case or did you fall into the default: case ?