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 C3843C4332F for ; Thu, 15 Dec 2022 12:55:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 30D8A8549C; Thu, 15 Dec 2022 13:55:11 +0100 (CET) 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=1671108911; bh=gaEbWKLhC7mER/voCbKlGn+MkWyriDKcW8jocvIoJrs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=kEqiqSfpgUTBbJt1g+FieUq1l2cItZUlwpE69vqQFFHIirJGDYZFEXX0kfHceYbGQ KfExdIjX85xONs1w9rIXMlQ6gSN/52DuH4RFEYn2qDA95wxAYN+h6FMYI0l9Lthv05 ejh8wgiyttWiUzCOI7wVZTJL+6YjOEyVlLDIoFwn8t8/k7J2JUCLMRk8yBiTL/8P2H pefXQ3BIPZKt8+76NyyfTM2/oj042ffrALbyrtZ49PcyrBPnMwGiaZhqDMU5sfmzgf e2rffdd3yGqzseTzEaKjWuKiah5gckQqFZJzjyI7fbOSTSCXbZp3U/EYaYT+DVI3e9 DF25Fng/p4osA== Received: from maia.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: hws@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 8A697836CF; Thu, 15 Dec 2022 13:55:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671108909; bh=gaEbWKLhC7mER/voCbKlGn+MkWyriDKcW8jocvIoJrs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=q9yaopIKPNxKT7SS+1/R2bLMhueLjwgNDVxseWLCUK6mcTyncOeqpvdpf66MBhtf+ DCqJsSM3eNUi554U/+yvG544rkzmPlBIyjnbK9IqJLdyuIl6p6fmjxbktt+lOVPdpZ r3Q06U3y3NH0JIYIf8ijOKzHD6X2TYPBdjgwEvMnWZl9Zp1o1EhATrhQL3WO0ih40T HfnRM8Q6KyR/E1eKHlhTXbsMaGCCQMvqQr76zIKiGLk+eOcRLEqXvPkgKv5qxPa+V4 STiI0h5vT7JbP+DYCA8FiCkegxgkH4ctbl2oWMaEkbparJlENbi22jON1ljsc8aebh N871aAFD+jnXg== Message-ID: <487d2f2dce8bfc449f0cdad42454353ced8ae514.camel@denx.de> Subject: Re: TFTP boot using DNS From: Harald Seiler To: Valerio Nappi , u-boot@lists.denx.de Cc: Joe Hershberger Date: Thu, 15 Dec 2022 13:55:09 +0100 In-Reply-To: <0acd0f92-066e-210e-c45f-b25b5f07bd50@cern.ch> References: <0acd0f92-066e-210e-c45f-b25b5f07bd50@cern.ch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 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 Valerio, On Thu, 2022-12-15 at 10:27 +0100, Valerio Nappi wrote: > Hello everyone, >=20 > 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. >=20 > 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. >=20 > 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. --=20 Harald