Message ID | 20170924195716.3433-9-xypron.glpk@gmx.de |
---|---|
State | Superseded, archived |
Delegated to: | Alexander Graf |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3y0dZ91p29z9t3R for <incoming@patchwork.ozlabs.org>; Mon, 25 Sep 2017 06:08:17 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id F196FC22124; Sun, 24 Sep 2017 20:02:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 95E66C2214E; Sun, 24 Sep 2017 19:58:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 96DAEC2215A; Sun, 24 Sep 2017 19:58:14 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lists.denx.de (Postfix) with ESMTPS id 81136C220D8 for <u-boot@lists.denx.de>; Sun, 24 Sep 2017 19:58:11 +0000 (UTC) Received: from workstation4.fritz.box ([84.118.154.110]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0Li1hG-1dawpd2sj4-00nBye; Sun, 24 Sep 2017 21:57:31 +0200 From: Heinrich Schuchardt <xypron.glpk@gmx.de> To: Alexander Graf <agraf@suse.de> Date: Sun, 24 Sep 2017 21:57:07 +0200 Message-Id: <20170924195716.3433-9-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170924195716.3433-1-xypron.glpk@gmx.de> References: <20170924195716.3433-1-xypron.glpk@gmx.de> X-Provags-ID: V03:K0:OxID6guXKmuDVX1YBeGJkSeW5V5Imw87/bGCVQR4jhwNZ526+66 oKmzb3bwJM98LHvfiIWDIU/qIDWkZdV+sS1qTWYdG/25LVXRyBTfqDuHBtCxgLZjByulphF I6sburwWdzGnzIrDRCDnJWpplBOD8qEte12mpfi9nNKQ35VCAXi59qBcuV3hQF+HV3w6IGz yWqnGtth97nLzBRYiyCsQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:0fh9ZRxBWZ0=:vGLufLRNSG0/ggsxryJP3u 0nt7Ut4B15pVbC27I03fDbCbPjXEGJCTtIj4gh7/+GHVANuViX4JR4bGUl79qMIWM/DiKE0zq w4UFigapURHAYftTprt4zr0qs9NZpKu4g/XZOZrysW0fkIN7LXRjqZMnwcaYiyH+7f8vNR3CR g3DEm8yYtbXTZQW09XajnY6TNHLfds0y5Gq/8w86UXQ9cl0Ql/OCWSZWBjVCNwnDa1hlyZsld m6lQAOmnq4nRY1TOX7qzHHaRs/PJu0Y3BqRYAR6PbzyhKmYmagsT2zRIcr1wAoMw4MtH/W6DM C2zwQkwPf31JC0xXKF6UdNjBrD6G9kIQrWSU9nnpuneTC+oviXNq71inGoxY+9OCX2wxtstAt R3WF9fHFoMrJ/pOP5mzZ07qbCODNr1S+rfMyvLUULhlp+zawYI8i2/DYj2s2mJb7AfPX2Q8uY /Fu0P9dRLZz+wJ0tIAn7ZNdKhMab5dE2xtdsrjKjd63M7PrLiL5vCibI/ZEncuH0If3Fvvjho UgYDPVTUx8U9I/25ptSnrFF5scsxjWVC8vOZZ7cz0IRSc0tfhnvQS01K5O76hCV4uILgZm5As VkF9YilYnckELAsftV04/ofo32UTd6lfwGUTYcjW5F38aJSueRIhi8qWZjadiVpThp1Ibm9VB 9wtUUMxczZzEWCK+ChWrRFaDnEFKFa3nauEtH6C7ZYYAjT4V7Ref1cXFInJTI4kxSD8MWk9qH OHNTIFHh4OV7fqkLBxjGdBH2PBLcMJUPNiuqH+74h7MCAjsihhUFujbq6mVk85kIHop0qu4iA JWwqmOh/Rl0xEyHwUAY1FbpibP4Kg== Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, u-boot@lists.denx.de Subject: [U-Boot] [PATCH 08/17] efi_loader: efi_net: hwaddr_size = 6 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
efi_loader: Simple Network Protocol
|
expand
|
diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index fb23bcf633..9def34cf93 100644 --- a/lib/efi_loader/efi_net.c +++ b/lib/efi_loader/efi_net.c @@ -245,6 +245,7 @@ int efi_net_register(void) netobj->net.mode = &netobj->net_mode; netobj->net_mode.state = EFI_NETWORK_STARTED; memcpy(netobj->net_mode.current_address.mac_addr, eth_get_ethaddr(), 6); + netobj->net_mode.hwaddr_size = ARP_HLEN; netobj->net_mode.max_packet_size = PKTSIZE; netobj->pxe.mode = &netobj->pxe_mode;
The length of a MAC address is 6. We have to set this length in the EFI_SIMPLE_NETWORK_MODE structure of the EFI_SIMPLE_NETWORK_PROTOCOL. Without this patch iPXE fails to initialize the network with error message SNP MAC(001e0633bcbf,0x0) has invalid hardware address length 0 Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> --- lib/efi_loader/efi_net.c | 1 + 1 file changed, 1 insertion(+)