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 F01B7C11F66 for ; Wed, 30 Jun 2021 18:50:42 +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 448946142E for ; Wed, 30 Jun 2021 18:50:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 448946142E 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 80C6F831C4; Wed, 30 Jun 2021 20:49:38 +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="eqM6aD0n"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 30C3582DF5; Wed, 30 Jun 2021 19:22:49 +0200 (CEST) Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) (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 EF1AF82E0E for ; Wed, 30 Jun 2021 19:22:45 +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 relay11.mail.gandi.net (Postfix) with ESMTPSA id 4B0A110000A for ; Wed, 30 Jun 2021 17:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpanders.com; s=gm1; t=1625073765; 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=dvDnirJAnqA2OpW6M35+s9nLTJa3fr4mjq5WhoQ1138=; b=eqM6aD0ncjemzpzKGsKy+PaSTA9KVWPORIUDXluEuRaik+Ki9fUCW6DcUuYM1u93Z1jmAd zuuB0FlK6Ld0RB4OhGgtthTE5l2ruwcgrWk9LJABhT8e2igBfNuzaV9QeEWguywM0Evx1h fJmBVykLNtd61XGvp69sDg0TcVqxbaOTppzUgQ8ef8LOeEfcJuOHiDNKKHEK8z4aX2rWsU WsyncRdH2w+mAVwJOrNi8Y2k3CnBdRFEuRpVu/ZdzW793ZbScr+ZMqy+/Q9IUNNypEgxbx rdyMzh8c0nC/ffWcdkbcPNwQfulW10OU/omr7sggHp0Tp4CcH+135cOs/DERKA== Date: Wed, 30 Jun 2021 17:22:41 +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: Wed, 30 Jun 2021 20:49:16 +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 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