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 97063E92724 for ; Thu, 5 Oct 2023 17:16:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D2DE486B67; Thu, 5 Oct 2023 19:16:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="ThT/5AiT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E85386C6B; Thu, 5 Oct 2023 19:16:27 +0200 (CEST) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 2F00686B3B for ; Thu, 5 Oct 2023 19:16:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=nm@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 395HGFGL063036; Thu, 5 Oct 2023 12:16:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696526175; bh=xgon0EAlh5mEC5J5LoSlVUL9cxtp0wpvE1Pz0w70em8=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ThT/5AiTG0GZ3UGXbz0UbT9FJjMLMGBhGeeIJu+s9r+X5gXqtn0AmV8tlrz2qLKSk 6q+bwFPBvdNMGI7WOK867o00kiFZ5C2kjjHQjD6azRH1e/5Qkjo5zQWFFioxpcd6Qe +NnjJ878AVVFJyrjZOu8ODAQXmVE5Dbq98KSmu8U= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 395HGEqL011553 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 5 Oct 2023 12:16:15 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 5 Oct 2023 12:16:14 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 5 Oct 2023 12:16:14 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 395HGE16010775; Thu, 5 Oct 2023 12:16:14 -0500 Date: Thu, 5 Oct 2023 12:16:14 -0500 From: Nishanth Menon To: Tom Rini CC: Andrew Davis , Roger Quadros , , , , , , , , Subject: Re: [PATCH 1/2] board: ti: am62x: am62x.env: Fix boot_targets Message-ID: <20231005171614.yiatmyczip2jnmf4@surround> References: <20231004132324.44198-1-rogerq@kernel.org> <20231004132324.44198-2-rogerq@kernel.org> <26457fd1-439d-fb87-52cc-350a884a8dcd@ti.com> <20231004135436.ihofrxutzcdefica@audacious> <895a5d8f-1d5f-4f90-90a1-ca75bc1ff54f@ti.com> <20231005163645.GS8465@bill-the-cat> <20231005171010.zvza7uqyn4mcgp5g@handsaw> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231005171010.zvza7uqyn4mcgp5g@handsaw> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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.8 at phobos.denx.de X-Virus-Status: Clean On 12:10-20231005, Nishanth Menon wrote: > On 12:36-20231005, Tom Rini wrote: > > On Thu, Oct 05, 2023 at 09:19:48AM -0500, Andrew Davis wrote: > > > On 10/4/23 8:54 AM, Nishanth Menon wrote: > > > > On 08:48-20231004, Andrew Davis wrote: > > > > > On 10/4/23 8:23 AM, Roger Quadros wrote: > > > > > > ti_mmc is not a valid boot_target for standard boot flow so > > > > > > > > > > Is there some way to make it into a valid boot_target? Otherwise > > > > > how do we use uEnv.txt files, or boot from FIT images with overlays? > > > > > > > > envboot takes care of uEnv.txt file (see > > > > https://lore.kernel.org/all/20231004132324.44198-3-rogerq@kernel.org/) > > > > > > > > Early remote proc loading and FIT image is a question for stdboot itself. > > > > > > > > > > If stdboot is missing these features then we shouldn't switch until it > > > has them. I'm all for switching to this, but only if it is complete. > > > > Depends on what you mean? Did you mean an option to run scripts > > (exists) or an option to do what TI needs done, via > > boot/bootmeth_something.c ? If the latter, someone from TI needs to > > figure out what that should be and do (but plumbing-wise everything it > > needs should exist). > > Andrew is generalizing here (on the wrong patch though). > > On am62x platforms, there is nothing regressing with this series. The > challenge is early remote_proc loading which is done for J7* platforms. > > How that is initiated as part of bootmethods is something of a gap. > > The other gap has been support for uEnv.txt -> which we can workaround > at the moment by using CONFIG_BOOTCOMMAND="run envboot; bootflow scan > -lb" in defconfig (This series from Roger already does that - hence I am > saying that Andrew is complaining on the wrong series). > > Ideally, we should just have CONFIG_BOOTCOMMAND="bootflow scan -lb" and > uEnv.txt remoteproc loads and the various standard bootmethods should > "just work". I forgot to add: FIT image authenticated boot flow. That is really what ti_mmc distroboot method was trying to solve. Maybe Simon or someone know how the stdboot flow handles authenticated kernel image and dtb boot flow with FIT image? -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D