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 70C8BC4332F for ; Thu, 15 Dec 2022 21:25:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2AD6485355; Thu, 15 Dec 2022 22:25:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=cern.ch 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=cern.ch header.i=@cern.ch header.b="iEbyMkU6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 64BBF84EC2; Thu, 15 Dec 2022 15:41:17 +0100 (CET) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01on2068.outbound.protection.outlook.com [40.107.24.68]) (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 01C5985279 for ; Thu, 15 Dec 2022 15:41:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=cern.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=valerio.nappi@cern.ch ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OYaJCO8LOn7It/M4afIf5aN9BqWTYqkJRqHElPWDedfttQuovN6rxXxSsn/MxKzDuNNdQIdCrDCkrD+fuunqBlmZKCrbkQnLi4kK5Wf74/99Cwwz9Fucp61V+l7dcwz8qh7r3i2qAWN/ow4QEIBAzyY6XGUiSnsd9onfJBVbsZ+TIBaX+N/kfooRmo/EoHfcTbAqA1dfAUSnSnYdlKurdZcOMU2ZWO/b6CwrBYrj5FNFAUc7UNF/lXZe8e0/pczU5ss189lMOzgk5XfAcTmMW85jzgDMigZ8k9Xg75Sf3crOy8SnHmyAsIWdKdkl2GFdp69Tfm/4cWQsbEEy3fi2Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/1KwU1mD8AGQPvVLnbavGTg47GyEjYHW4pR80ZNOCBU=; b=FxTA4wSUpXP+uiEtnM3U7wytSqHR0vNHVlmBqGe2B6hjHVcLDhwRpYkMBKs/H8whQV1bvZCVwWUpKEsH9LwmznCcHuACSe0hnKFjgZWuvaKWUGMg4g9wJrpyXItPDlATER2ppuPTA7j0l5Ka2mtjvQ7lTj622Fb8YzMtZx8xTMXna493seRu21ZmnGNqf48F+YJqcO+cEIVRELeqZ/1hHWA0w88VDbSeIbgldDYBHISIK/ehowNJ7KHFKXfXzLdkdXUydMmkXd05KM/YWSfr0Ymr3ePRyBT5qUczKPE6pjKWyyKV7bmwoVqa90M/XWqHEvJFd3mxLIh0tutsUiD9HQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 188.184.36.48) smtp.rcpttodomain=denx.de smtp.mailfrom=cern.ch; dmarc=bestguesspass action=none header.from=cern.ch; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cern.ch; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/1KwU1mD8AGQPvVLnbavGTg47GyEjYHW4pR80ZNOCBU=; b=iEbyMkU6MNXoEPuXQ+mUubmU21zUJhGTFWT3h65xnB5n4brv2F66iNFu4+lhgYsRJNWxULmrsuZEPjSPYnUFximhoiGkMktXYIxyp7Ga0uKzIqmjreOQd59rLGrVec/awX+jjpR+E9xNm9EYgz21cNaHoqMAOARTgKMNrc4Bbnc= Received: from DUZPR01CA0062.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c2::15) by ZRAP278MB0756.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:4c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Thu, 15 Dec 2022 14:41:13 +0000 Received: from DB5EUR02FT041.eop-EUR02.prod.protection.outlook.com (2603:10a6:10:3c2:cafe::9f) by DUZPR01CA0062.outlook.office365.com (2603:10a6:10:3c2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.12 via Frontend Transport; Thu, 15 Dec 2022 14:41:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 188.184.36.48) smtp.mailfrom=cern.ch; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=cern.ch; Received-SPF: Pass (protection.outlook.com: domain of cern.ch designates 188.184.36.48 as permitted sender) receiver=protection.outlook.com; client-ip=188.184.36.48; helo=cernmxgwlb4.cern.ch; pr=C Received: from cernmxgwlb4.cern.ch (188.184.36.48) by DB5EUR02FT041.mail.protection.outlook.com (10.13.58.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5924.12 via Frontend Transport; Thu, 15 Dec 2022 14:41:13 +0000 Received: from cernfe06.cern.ch (188.184.36.49) by cernmxgwlb4.cern.ch (188.184.36.48) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 15 Dec 2022 15:41:12 +0100 Received: from [128.141.154.125] (128.141.154.125) by smtp.cern.ch (188.184.36.52) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 15 Dec 2022 15:41:11 +0100 Message-ID: Date: Thu, 15 Dec 2022 15:42:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: TFTP boot using DNS Content-Language: en-US To: Harald Seiler , CC: Joe Hershberger References: <0acd0f92-066e-210e-c45f-b25b5f07bd50@cern.ch> <487d2f2dce8bfc449f0cdad42454353ced8ae514.camel@denx.de> From: Valerio Nappi In-Reply-To: <487d2f2dce8bfc449f0cdad42454353ced8ae514.camel@denx.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [128.141.154.125] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5EUR02FT041:EE_|ZRAP278MB0756:EE_ X-MS-Office365-Filtering-Correlation-Id: 1761a8fe-2573-4eaa-9ab3-08dadeaa6a2d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y/8b0Oe6814fWdljOsmDQKf8pwOxkgud++yo7R4QKpEVJFRh0q0cCsTITryr+Mq9iD1BLCr/QnDc49jW+svI1fMxegFW7sRKW77BPOW52tehT0EltZERibOWhnT1wSdp5pr3v3u70FYmgXpZDLeBenylwWFH1cIkvZRDVG/tFZLTscjioEZyn2+F/DGT8geBjQ3ZlHsV7FKjK7HqeDX3ODUzZ5TpAZdR5BY08rJPhyk65WMha6/QUocxlpc7hqUH7ciBfGqZBnOp2myX2b5mHmMHZuuYaiHxsE59mAVuoPaMG6XLK4ItxcLvtgGdHuw4hKmKK2i/sEiYoVhMePOLagF1X+l5Zq3aa2+uLDh7Nd2MkaqjO1N1bR1xikMBRDO/sDQRhQUrMaisoCLaJEMBa8939NMllfC6YZcf8cF4JfYW83O/uRDFpnANd8CSwprYhizZHm9XyX4yI+jUXgIsKox8yV7xnv3/3mQm3iCMsnOo++Qg4QIa8VqGiXCs5sMOtGB0p6DSEk/2QXfgGvEhK1omCcOevUMqG0+VnK/MbBRu2VtL72lBQHsn5uDbblzHZJSHDX2n1apJlQwvToYbMmGQKIS5bfPq+w7Gg2g6FLIigNGFHzZh/Bh4uppz4uq+rgLr3Jz4AtctAsNT9gQGqIhnmtp54qxJyLBn3gqUsL7NlxuO1eCtf2qJWlquY/E3i2iQRrH6sR4hd6NPrMV/CDANvkMigh0X0axsjv6j1j/zG6DlpsMTXhgPTYHhmEB68UxcxYPvQe2d2S0ki27LDg== X-Forefront-Antispam-Report: CIP:188.184.36.48; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:cernmxgwlb4.cern.ch; PTR:cernmx12.cern.ch; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(396003)(376002)(346002)(136003)(451199015)(46966006)(36840700001)(40470700004)(16576012)(786003)(316002)(31686004)(66899015)(110136005)(186003)(53546011)(70206006)(82740400003)(26005)(4326008)(16526019)(6666004)(40460700003)(2906002)(36756003)(336012)(4001150100001)(6706004)(44832011)(2616005)(956004)(8676002)(478600001)(70586007)(426003)(86362001)(3480700007)(47076005)(40480700001)(8936002)(36860700001)(5660300002)(7636003)(83380400001)(31696002)(356005)(41320700001)(41300700001)(82310400005)(3940600001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: cern.ch X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2022 14:41:13.0870 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1761a8fe-2573-4eaa-9ab3-08dadeaa6a2d X-MS-Exchange-CrossTenant-Id: c80d3499-4a40-4a8c-986e-abce017d6b19 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c80d3499-4a40-4a8c-986e-abce017d6b19; Ip=[188.184.36.48]; Helo=[cernmxgwlb4.cern.ch] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR02FT041.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZRAP278MB0756 X-Mailman-Approved-At: Thu, 15 Dec 2022 22:25:24 +0100 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.6 at phobos.denx.de X-Virus-Status: Clean Hi Harald, Thank you for your reply. As a workaround right now I'm using a patched version that comments out the check for the serverip handler, and it is working. Nevertheless, let's see if we can understand how this should be handled. Best, Valerio On 12/15/22 13:55, Harald Seiler wrote: > Hi Valerio, > > On Thu, 2022-12-15 at 10:27 +0100, Valerio Nappi wrote: >> Hello everyone, >> >> Context: >> I'm new to the u-boot project. I am trying to boot a Zynq SoC from an >> internal TFTP server, but i have no guarantee that the IP of the >> server is going to stay the same. A DNS service is offered, and kept >> updated. >> >> When i try to update the serverip variable using the dns >> serverip command, the variable seems updated (in the sense that I can >> print the new value) but it is not. Apparently this is ignored on >> purpose at this line of the source [1]. Commit fd3056337 that >> introduced this change, mentions "Don't update the variables when the >> source was programmatic, since the variables were the source of the >> new value.", that is not true in this case, in fact the source of the >> new value is the DNS service. >> >> Is there a particular reason why this usecase was not forseen? > Unrelated to your point about proper support for this usecase, but maybe > you can use the following as a workaround in the meantime? > > tftp ${loadaddr} ${serverip}:path/to/file > > Also adding Joe on CC as he authored the commit you mentioned. >