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 1E5CAC433F5 for ; Fri, 11 Feb 2022 15:07:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 23B0A83B72; Fri, 11 Feb 2022 16:06:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="Lk9n3aHL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5538583B72; Fri, 11 Feb 2022 16:06:46 +0100 (CET) Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) (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 C6BA283B75 for ; Fri, 11 Feb 2022 16:06:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ot1-x330.google.com with SMTP id g19-20020a9d6213000000b005ab7489371aso6283263otj.6 for ; Fri, 11 Feb 2022 07:06:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WCsVV6PYvpmzW27tyzDHP+li3Hhyye0aOS1i6sNnbRQ=; b=Lk9n3aHLlegM1o/Ici1JQ7CJPrDm8lsDcpyx5DPXWHaJWYadCTvaKt6vn72pCM43/4 xn+QUf6bLIkkBUhOYRm4QaRsLvM5FX+6DeQyq79yTUlIiXSXouXY1aAVBHsjT+7GCL3a qh759QI6pSZFxvKQiNL4BK5l9otwiTva+U7DQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WCsVV6PYvpmzW27tyzDHP+li3Hhyye0aOS1i6sNnbRQ=; b=matIC6mekuCEYMmfr+NOv43/70od40Ah4XT1Iv+M5WGHAYDzSVX5yj9uWW5DYhCVvb lPfFR6e92vf2DzAgQFCQ5efvIyp/h6VJ/3W/kbAt4g4VaP9FpOe0GWp8sp9+hf9cgORn hEWsFlb+hyMIn12D8rx4PLcLepYiKUNY+gRYuRpmv/6DqfnMCYiVvnStGTcuNFwusMVp mdGNLGxy5OiZhKWGRtKJMyOi4N16mTXbMZ/MvPgyMAPZI08Uqv8o8or8HNaeT8C5jKyS 56Obfdp8hZs8Y4+nMpWvaYTWmFGJngnU+aURckJL9iWmJhpbHu0CrKSB1XEigTq95Pia JEGw== X-Gm-Message-State: AOAM531O2moPCGkM8PnbABd9neA6UU66lLTRao2JnaCO5pcazP7zLzAf 22VGUhb5Id2M9itihPPnHaMKgSyucBWwFV9V8Vr5lg== X-Google-Smtp-Source: ABdhPJxsCDYxLe5kSBwcf+u4XiV3AThrZqYFWAwFamFu4GAWxqBMQCY3QUSzX6VAJCjzkoROFyxQxhwMdo97330WAto= X-Received: by 2002:a9d:6a42:: with SMTP id h2mr737627otn.269.1644591999117; Fri, 11 Feb 2022 07:06:39 -0800 (PST) MIME-Version: 1.0 References: <20211230145026.5592-1-hyyoxhk@163.com> <2f83b48f.20f0.17ea4f13291.Coremail.hyyoxhk@163.com> In-Reply-To: <2f83b48f.20f0.17ea4f13291.Coremail.hyyoxhk@163.com> From: Simon Glass Date: Fri, 11 Feb 2022 08:05:47 -0700 Message-ID: Subject: Re: Re: [PATCH v1 1/1] env: fat: Allow overriding interface, device and partition To: =?UTF-8?B?5L2V5YuH?= Cc: U-Boot Mailing List , Joe Hershberger , Wolfgang Denk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Hi, On Sat, 29 Jan 2022 at 01:26, =E4=BD=95=E5=8B=87 wrote: > > Hi: > Override the env_fat_get_dev_part function in the board file, you can > load env from sdcard or emmc without modifying any configuration > of u-boot, it is very useful for building wic firmware by yocto. > > it has been done under env/ext4.c I cannot see it. Can you please point me to the line number in that file? Do you have an English-text name you could use for the patch? Regards, Simon > > > > > > > > At 2022-01-27 23:05:57, "Simon Glass" wrote: > >Hi, > > > >On Thu, 30 Dec 2021 at 07:50, hyyxohk wrote: > >> > >> For platform which can boot on different device, this allows > >> to override interface, device and partition from board code. > >> > >> Signed-off-by: hyyxohk > >> --- > >> env/fat.c | 30 +++++++++++++++++------------- > >> include/env_internal.h | 20 ++++++++++++++++++++ > >> 2 files changed, 37 insertions(+), 13 deletions(-) > >> > > > >What is this feature used for? > > > >Regards, > >Simon > >[..]