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 7732CC4332F for ; Thu, 15 Dec 2022 12:47:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5D189854B0; Thu, 15 Dec 2022 13:47:23 +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="mqZ/1P0O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A39B485484; Thu, 15 Dec 2022 10:26:11 +0100 (CET) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01on2070.outbound.protection.outlook.com [40.107.24.70]) (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 EF9838545C for ; Thu, 15 Dec 2022 10:26:08 +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=KlvWgkdHaHCOvIzNPYoGAnmvRfc3k1OE6pxZ7fX/oDPjNJs7Rd9dppoV98BxstqYqDXV5sMNRGUPusY+qSgqhqWr/NgSHuCeWm+uWxTWHfxLeSROxz2uIixkZSqLT0qKU9PMas02wdLxC7c23Gz6oMXL1z4LL98mw4VoQ9NoOgN0MqabOqEhSUpJPzjiCA11xwae635rNYlW1N1PT5fx0zr7iQZvsFZ/yPk7ZSjnKhU2sOHLQMA/xCyAw8NjymfRt3mxKLclijM3XhiOVc/P8aYUzowBFlZ+FgR8tskW+XTkX8hVQ05Aew8zI9q4jqiXkTEegRvg0ELxIWpsJVCjhA== 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=olDy4B8KJEbvX0H37XAUGNIOwR2aO7Rk8s3a+MUtb2E=; b=LxZmN3Q9gK5B3xp9skKzyBrakaoIvj6Nb4V4Xh/XTZKj7dW1Trh357fgmiGOBZBkb4o7vW14zvsn7Xo5P5cLvPq9I47rezG8LfIcgvk6H8zHeelGGNuJcyMR191lvwZB8Kv3+V90L02MGLfDa0pNHu+1arz2GlGK4daPXolTXlRBN3j4C2R61lxxuskrREHU2VcOGE+FS8Sj2/mwGO+A9pe9dNNQPfkM1UZrP7x68YzN6BrhXWvZ41pMOwLm4OTNcGHFQRZzfmc2jvzhIN7ZntH6GjOu4uGcEVWHTQybpEKsYOxDVbWO6T/uv6EBa9Mx96bnGF2R6jhlDmn6DH56ZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 188.184.36.50) smtp.rcpttodomain=lists.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=olDy4B8KJEbvX0H37XAUGNIOwR2aO7Rk8s3a+MUtb2E=; b=mqZ/1P0ONiyuHegFG/yaa6JenKMu8RGFDOI3SZR9vmeb06UqkePfZcsd0sx6pM6jTRivvWXZXEbhIzS/PghbWJCmEr8lY4E3YvYt1KP3f5bnOO43nvRAK7O4FbQfIOczIW92QkfH1Yl67BHCwqYjZROvLWDtKWXG2w4+TW9ow5U= Received: from AS9PR06CA0355.eurprd06.prod.outlook.com (2603:10a6:20b:466::22) by GVAP278MB0860.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:47::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.12; Thu, 15 Dec 2022 09:26:07 +0000 Received: from AM0EUR02FT053.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:466:cafe::7b) by AS9PR06CA0355.outlook.office365.com (2603:10a6:20b:466::22) 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 09:26:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 188.184.36.50) 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.50 as permitted sender) receiver=protection.outlook.com; client-ip=188.184.36.50; helo=cernmxgwlb4.cern.ch; pr=C Received: from cernmxgwlb4.cern.ch (188.184.36.50) by AM0EUR02FT053.mail.protection.outlook.com (10.13.55.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5924.11 via Frontend Transport; Thu, 15 Dec 2022 09:26:07 +0000 Received: from cernfe06.cern.ch (188.184.36.49) by cernmxgwlb4.cern.ch (188.184.36.50) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 15 Dec 2022 10:26:06 +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 10:26:07 +0100 Message-ID: <0acd0f92-066e-210e-c45f-b25b5f07bd50@cern.ch> Date: Thu, 15 Dec 2022 10:27:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US To: From: Valerio Nappi Subject: TFTP boot using DNS 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: AM0EUR02FT053:EE_|GVAP278MB0860:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c0f73f4-7bc4-4ab1-ed64-08dade7e6587 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HAKyHTWsmU2rSdcc3s0QPvpJDWeWhofWxH7EgUElC42sejJt53HxPrNg+Cr13jN6b9culjgoCiOSWxJ/ueyg1HF8aQPs0g+TtDpQuYfFHPlUhLoM92OjSAOdUcxwH5F+34ZxzaEVXieNLtsy3cjoYDpd65SIldiMMmgmUmiOer7TJWaBDr9Xe/QDEySVhj9Vow5f/FfqccTAel6HSQAuguPSoaciTkbJeV2SFf607DaOnTtZdzHjJF+803achz2bMCYZSQhkktu1w0d1FiXtQ9G4vfkdgvI88kB9DD9/p153Y03pIBnI2VFxJdxjj/W0VcsuHXX7vrCqLN/Mu6nmqaSngdU98MB3hMxm8t6n85caXtkhkuIsUrj5j1JSJX0CVoIy9WqPXCx4Rsl1GoFAxYSa6fIjQSgok682HaBX07ygdObW62Ftz68nQvElX3bFJeFMKSa3YdbTLX3duFdC6TJst7fdNRJ3SzDg0TbRrJBWPz/5xo+lm7QAS+QdBYKthysRWbCcm4WZHvcqeUO9Z9G7jDxq1UBSVhVghwrEU5s6wvH3EVT0Hz/ILk72j43xmhbp8420QPzQIuos9WnEeh5vCeDmjgVMGSGOexT2w8CfLwB0tPk04EnPQKMcec72Npy+sjDEYIQQnztEGPgGg+VQQEdlsjL5WK5lZc68ee15yfRZvlUYdi1L76jU6DWrXyr5H6QPBQ74UEX3Pl5XJUatdcLbi7mNx9c6ytj0/eNWHPqQTYEQPGzTwj54uzdZnaEZvagmI3S1QsmubqUKhDrbUE6LnmnJ0KoQDT/jooY= X-Forefront-Antispam-Report: CIP:188.184.36.50; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:cernmxgwlb4.cern.ch; PTR:cernmx11.cern.ch; CAT:NONE; SFS:(13230022)(4636009)(346002)(39860400002)(396003)(136003)(376002)(451199015)(40470700004)(36840700001)(46966006)(31686004)(66899015)(478600001)(31696002)(86362001)(40460700003)(16576012)(786003)(6916009)(316002)(356005)(7636003)(40480700001)(36756003)(82310400005)(82740400003)(83380400001)(186003)(16526019)(336012)(2616005)(426003)(47076005)(956004)(6666004)(26005)(3480700007)(4744005)(70206006)(70586007)(2906002)(966005)(8936002)(41320700001)(36860700001)(8676002)(5660300002)(41300700001)(44832011)(6706004)(3940600001)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: cern.ch X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2022 09:26:07.4655 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c0f73f4-7bc4-4ab1-ed64-08dade7e6587 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.50]; Helo=[cernmxgwlb4.cern.ch] X-MS-Exchange-CrossTenant-AuthSource: AM0EUR02FT053.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0860 X-Mailman-Approved-At: Thu, 15 Dec 2022 13:47:18 +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 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? Best, Valerio [1]: https://github.com/u-boot/u-boot/blob/c917865c7fd14420d25388bb3c8c24cb03911caf/net/net.c#L251