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 38F3CC761A6 for ; Mon, 27 Mar 2023 19:58:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF3998609C; Mon, 27 Mar 2023 21:58:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com 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=linux.microsoft.com header.i=@linux.microsoft.com header.b="KJ5A0dJt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 81A108609D; Mon, 27 Mar 2023 21:58:37 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by phobos.denx.de (Postfix) with ESMTP id A575085DE2 for ; Mon, 27 Mar 2023 21:58:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=emohandesi@linux.microsoft.com Received: from [192.168.0.167] (c-73-183-134-76.hsd1.tx.comcast.net [73.183.134.76]) by linux.microsoft.com (Postfix) with ESMTPSA id C7A6F20FD084; Mon, 27 Mar 2023 12:58:32 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C7A6F20FD084 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1679947113; bh=g+HI0SaotBEP/s+WSg5aSp39ombwZPkdQKnFtcuUERw=; h=From:To:Cc:Subject:Date:From; b=KJ5A0dJtoN8L2Cv5mo9i2I/cEQylmp313tIegY8+XAyxplad+5FrquS82T7rT6ulb p6AUyUFT7hixHCI3LKutDsxflW29XIAyW6XjjuicdO5kAI8P1DfzU9DqX1+ymTckwG 65jOqzLiiz/qweuARpgFgkVjJ1ZupPffCTLQkBAI= From: Ehsan Mohandesi To: u-boot@lists.denx.de Cc: swarren@nvidia.com, michal.simek@xilinx.com, guillaume.gardet@free.fr Subject: How to add eth1 to test device tree? Message-ID: <67f57e17-90f2-5ea3-87d1-bb191a0592ce@linux.microsoft.com> Date: Mon, 27 Mar 2023 14:58:31 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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.8 at phobos.denx.de X-Virus-Status: Clean Hi All, When running the sandbox tests, I want to know how to enable eth1 in order to be able to test network features. The following command is used to run sandbox tests. ./test/py/test.py -k testname.py I am specifically interested in running the network tests. ./test/py/test.py -k test_net.py These Python tests use test.dts device tree which does not have eth1 in it. I can replace the test.dts file with sandbox.dts to enable eth1 and run the network tests; however, I think there should be a better way to do it. Can anyone help me with this issue? When running U-Boot, the -T option could be used to tell it to use the test.dts or -D to use sandbox.dts; however, there is no such option when running test.py. Eth1 is needed in order to enable the network. Enabling the sandbox network is explained after line 250 in doc/arch/sandbox.rst. For more information, the following is the list of network interfaces when each device tree is used. ** *arch/sandbox/dts/sandbox.dts** *Net:   eth0: host_lo, *eth1: host_eth0*, eth2: host_br1, eth3: eth@10002000 *arch/sandbox/dts/test.dts* Net:   eth0: eth@10002000, eth5: eth@10003000, eth3: sbe5, eth6: eth@10004000, eth4: dsa-test-eth, eth2: lan0, eth7: lan1