]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Move some mac addresses to device tree
authorSean Anderson <sean.anderson@seco.com>
Thu, 5 May 2022 17:11:35 +0000 (13:11 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 17:59:52 +0000 (13:59 -0400)
This prevents some conflicts when running sandbox with -D, since the
"rom" mac address will be random and won't match the environment. We
still need to keep addresses for eth1 and eth6 in the environment,
because dm_test_eth_rotate expects to be able to disable them by
removing their envaddr variables. This can likely be fixed in a future
series by adding a function to cause sandbox eth_opts callback for a
particular mac to fail immediately.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
board/sandbox/sandbox.env

index cf1abac5686e6a823297bb9ff28ac56de8ac8a19..13515dd7ecf87977d829ed5251e78fa0ce524fce 100644 (file)
        eth_5: eth@10003000 {
                compatible = "sandbox,eth";
                reg = <0x10003000 0x1000>;
+               mac-address = [ 02 00 11 22 33 46 ];
        };
 
        eth_3: sbe5 {
                compatible = "sandbox,eth";
                reg = <0x10005000 0x1000>;
+               mac-address = [ 02 00 11 22 33 45 ];
        };
 
        eth@10004000 {
        phy_eth0: phy-test-eth {
                compatible = "sandbox,eth";
                reg = <0x10007000 0x1000>;
+               mac-address = [ 02 00 11 22 33 49 ];
                phy-handle = <&ethphy1>;
                phy-mode = "2500base-x";
        };
        dsa_eth0: dsa-test-eth {
                compatible = "sandbox,eth";
                reg = <0x10006000 0x1000>;
+               mac-address = [ 02 00 11 22 33 48 ];
        };
 
        dsa-test {
index 88ed7a96068c1c1559f675f81322e00599a53b81..a2c19702d64ddc7c38af56392ff34a0733496949 100644 (file)
@@ -6,11 +6,7 @@ stdout=serial,vidconsole
 stderr=serial,vidconsole
 
 ethaddr=02:00:11:22:33:44
-eth3addr=02:00:11:22:33:45
-eth4addr=02:00:11:22:33:48
-eth5addr=02:00:11:22:33:46
 eth6addr=02:00:11:22:33:47
-eth8addr=02:00:11:22:33:49
 ipaddr=192.0.2.1
 
 /*