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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4618C11F67 for ; Thu, 1 Jul 2021 21:45:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3B6096140D for ; Thu, 1 Jul 2021 21:45:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B6096140D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gpanders.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F365582C2D; Thu, 1 Jul 2021 23:45:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gpanders.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=gpanders.com header.i=@gpanders.com header.b="csmU/zkx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA95E82C0D; Thu, 1 Jul 2021 17:56:14 +0200 (CEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 760D982BF0 for ; Thu, 1 Jul 2021 17:56:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gpanders.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=greg@gpanders.com Received: (Authenticated sender: greg@gpanders.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id B589A240019 for ; Thu, 1 Jul 2021 15:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpanders.com; s=gm1; t=1625154968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=cNWN7W/s72Idh4fui9F6aJOTHk9uQSjauVO+Wj9xMiY=; b=csmU/zkxCA+SRSZi3gx4undr2QslaEQRjhK9oyHBqYfRBLMkGIdh8/cULr18JiAjJCTRZk 4rhLHDQEIIDHEfND+wV5aiu6jlfHLAIchkbswykJsOp4BNugHjmW3zDC/wh5sH/eL9Vu6U zW9ZQlcst1bgJFXpjTRFGf4tZFVypgu5oc7EachnDhdNG9SsExltwmStTpEwAiZkDpDXZ6 73iFlfQEZzqqOPHDgtLcngnztdwwXM6B3F7chK3pMthH877dWNu+CQeNnwdb/sU8k51oOk GwEiGUnw/ymHnNiIUQV4+HQ4NHs1UoCCMdfXkY5WAkKRR3TVZ60eBxDeY+18UQ== Date: Thu, 1 Jul 2021 15:56:04 +0000 From: Gregory Anders To: u-boot@lists.denx.de Subject: Setting serverip from DHCP server Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline X-Mailman-Approved-At: Thu, 01 Jul 2021 23:45:42 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean (Re-sending now that I'm subscribed to the list) Hi all, I am running U-Boot on an embedded device that is connected via Ethernet to my workstation. The workstation is running dhcpd and U-Boot is able to successfully obtain an IP address via DHCP from the server. However, the `serverip` environment variable is not being set which prevents U-Boot from continuing to boot over the network. I have to manually enter `setenv serverip 10.0.10.1` each time. How do I get the DHCP server to set the serverip variable? My dhcpd.conf file is quite simple: subnet 10.0.10.0 netmask 255.255.255.0 { option routers 10.0.10.1; range 10.0.10.2; } I would have thought the 'option routers' line would do the trick, but apparently not. I've done a bit of searching online but haven't yet found anything helpful. Thanks, Greg