Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings
Hi, On Sat, 5 Oct 2019 at 20:42, Joe Hershberger wrote: > > Hi Bin, > > On Sat, Oct 5, 2019 at 9:13 PM Bin Meng wrote: > > > > Hi Joe, > > > > On Sun, Oct 6, 2019 at 9:05 AM Joe Hershberger > > wrote: > > > > > > Hi Bin, > > > > > > On Fri, Oct 4, 2019 at 9:27 PM Bin Meng wrote: > > > > > > > > Hi Simon, > > > > > > > > On Sat, Oct 5, 2019 at 10:16 AM Bin Meng wrote: > > > > > > > > > > Hi Simon, > > > > > > > > > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass > > > > > wrote: > > > > > > > > > > > > These warnings appear every thing sandbox is run (see below) and > > > > > > dwarf the > > > > > > actual useful output. Suppress them. > > > > > > > > > > > > Hopefully at some point a way can be found to fix the root cause. > > > > > > > > > > Does removing ethaddr env from SANDBOX_ETH_SETTINGS in sandbox.h fix > > > > > this problem? > > > > > > > > I was able to reproduce this, and confirmed that removing ethaddr* > > > > envs from SANDBOX_ETH_SETTINGS in sandbox.h could fix the issue you > > > > were seeing. > > > > > > While that fixes the issue, it also breaks the unit tests. > > > > > > > Yes, it fixes sandbox with "-D" but fails with "-T". > > Maybe we can make it work for both by removing them from the header, > but then setting the needed ethaddr's in the unit tests. It looks like I can get most of the way there with this change, but I still need to supress one warning. Plus it breaks the tests, perhaps because the env vars are set after net is inited. WIll send an updated patch. Regards, Simon ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings
Hi Bin, On Sat, Oct 5, 2019 at 9:13 PM Bin Meng wrote: > > Hi Joe, > > On Sun, Oct 6, 2019 at 9:05 AM Joe Hershberger wrote: > > > > Hi Bin, > > > > On Fri, Oct 4, 2019 at 9:27 PM Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Sat, Oct 5, 2019 at 10:16 AM Bin Meng wrote: > > > > > > > > Hi Simon, > > > > > > > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > > > > > > > These warnings appear every thing sandbox is run (see below) and > > > > > dwarf the > > > > > actual useful output. Suppress them. > > > > > > > > > > Hopefully at some point a way can be found to fix the root cause. > > > > > > > > Does removing ethaddr env from SANDBOX_ETH_SETTINGS in sandbox.h fix > > > > this problem? > > > > > > I was able to reproduce this, and confirmed that removing ethaddr* > > > envs from SANDBOX_ETH_SETTINGS in sandbox.h could fix the issue you > > > were seeing. > > > > While that fixes the issue, it also breaks the unit tests. > > > > Yes, it fixes sandbox with "-D" but fails with "-T". Maybe we can make it work for both by removing them from the header, but then setting the needed ethaddr's in the unit tests. -Joe > Regards, > Bin > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings
Hi Joe, On Sun, Oct 6, 2019 at 9:05 AM Joe Hershberger wrote: > > Hi Bin, > > On Fri, Oct 4, 2019 at 9:27 PM Bin Meng wrote: > > > > Hi Simon, > > > > On Sat, Oct 5, 2019 at 10:16 AM Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > > > > > These warnings appear every thing sandbox is run (see below) and dwarf > > > > the > > > > actual useful output. Suppress them. > > > > > > > > Hopefully at some point a way can be found to fix the root cause. > > > > > > Does removing ethaddr env from SANDBOX_ETH_SETTINGS in sandbox.h fix > > > this problem? > > > > I was able to reproduce this, and confirmed that removing ethaddr* > > envs from SANDBOX_ETH_SETTINGS in sandbox.h could fix the issue you > > were seeing. > > While that fixes the issue, it also breaks the unit tests. > Yes, it fixes sandbox with "-D" but fails with "-T". Regards, Bin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings
Hi Bin, On Fri, Oct 4, 2019 at 9:27 PM Bin Meng wrote: > > Hi Simon, > > On Sat, Oct 5, 2019 at 10:16 AM Bin Meng wrote: > > > > Hi Simon, > > > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > > > These warnings appear every thing sandbox is run (see below) and dwarf the > > > actual useful output. Suppress them. > > > > > > Hopefully at some point a way can be found to fix the root cause. > > > > Does removing ethaddr env from SANDBOX_ETH_SETTINGS in sandbox.h fix > > this problem? > > I was able to reproduce this, and confirmed that removing ethaddr* > envs from SANDBOX_ETH_SETTINGS in sandbox.h could fix the issue you > were seeing. While that fixes the issue, it also breaks the unit tests. > Regards, > Bin > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings
Hi Simon, On Sat, Oct 5, 2019 at 10:16 AM Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > These warnings appear every thing sandbox is run (see below) and dwarf the > > actual useful output. Suppress them. > > > > Hopefully at some point a way can be found to fix the root cause. > > Does removing ethaddr env from SANDBOX_ETH_SETTINGS in sandbox.h fix > this problem? I was able to reproduce this, and confirmed that removing ethaddr* envs from SANDBOX_ETH_SETTINGS in sandbox.h could fix the issue you were seeing. Regards, Bin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings
Hi Simon, On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > These warnings appear every thing sandbox is run (see below) and dwarf the > actual useful output. Suppress them. > > Hopefully at some point a way can be found to fix the root cause. Does removing ethaddr env from SANDBOX_ETH_SETTINGS in sandbox.h fix this problem? > > U-Boot 2019.10-rc2 > > Model: sandbox > DRAM: 128 MiB > > Warning: host_lo MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:44 > > Warning: host_enp5s0 MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:45 > > Warning: host_eth6 using MAC address from ROM > > Warning: host_docker0 MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:46 > > Warning: host_docker_gwbridge using MAC address from ROM > > Warning: host_veth1118e68 MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:47 > WDT: Not found! > MMC: > In:cros-ec-keyb > Out: vidconsole > Err: vidconsole > Model: sandbox > SCSI: > Net: eth0: host_lo, eth1: host_enp5s0, eth2: host_eth6, eth3: host_docker0, > eth4: host_docker_gwbridge, eth5: host_veth1118e68 > Error: eth@10002000 address not set. > , eth-1: eth@10002000 > Test 'pmc_base' not found > > Warning: host_lo MAC addresses don't match: > Address in ROM is 2a:24:9a:31:90:f8 > Address in environment is 00:00:11:22:33:44 > > Warning: host_enp5s0 MAC addresses don't match: > Address in ROM is ce:23:d9:74:6f:6c > Address in environment is 00:00:11:22:33:45 > > Warning: host_eth6 using MAC address from ROM > > Warning: host_docker0 MAC addresses don't match: > Address in ROM is ee:22:1c:3b:be:bc > Address in environment is 00:00:11:22:33:46 > > Warning: host_docker_gwbridge using MAC address from ROM > > Warning: host_veth1118e68 MAC addresses don't match: > Address in ROM is ae:20:9e:3d:a4:9f > Address in environment is 00:00:11:22:33:47 > > Signed-off-by: Simon Glass > --- > > net/eth-uclass.c | 34 ++ > 1 file changed, 22 insertions(+), 12 deletions(-) > Regards, Bin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings
On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > These warnings appear every thing sandbox is run (see below) and dwarf the > actual useful output. Suppress them. > > Hopefully at some point a way can be found to fix the root cause. > > U-Boot 2019.10-rc2 > > Model: sandbox > DRAM: 128 MiB > > Warning: host_lo MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:44 > > Warning: host_enp5s0 MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:45 > > Warning: host_eth6 using MAC address from ROM > > Warning: host_docker0 MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:46 > > Warning: host_docker_gwbridge using MAC address from ROM I am not sure how to reproduce this. Joe, do you know anything? > > Warning: host_veth1118e68 MAC addresses don't match: > Address in ROM is a6:28:b7:47:28:93 > Address in environment is 00:00:11:22:33:47 > WDT: Not found! > MMC: > In:cros-ec-keyb > Out: vidconsole > Err: vidconsole > Model: sandbox > SCSI: > Net: eth0: host_lo, eth1: host_enp5s0, eth2: host_eth6, eth3: host_docker0, > eth4: host_docker_gwbridge, eth5: host_veth1118e68 > Error: eth@10002000 address not set. > , eth-1: eth@10002000 > Test 'pmc_base' not found > > Warning: host_lo MAC addresses don't match: > Address in ROM is 2a:24:9a:31:90:f8 > Address in environment is 00:00:11:22:33:44 > > Warning: host_enp5s0 MAC addresses don't match: > Address in ROM is ce:23:d9:74:6f:6c > Address in environment is 00:00:11:22:33:45 > > Warning: host_eth6 using MAC address from ROM > > Warning: host_docker0 MAC addresses don't match: > Address in ROM is ee:22:1c:3b:be:bc > Address in environment is 00:00:11:22:33:46 > > Warning: host_docker_gwbridge using MAC address from ROM > > Warning: host_veth1118e68 MAC addresses don't match: > Address in ROM is ae:20:9e:3d:a4:9f > Address in environment is 00:00:11:22:33:47 > > Signed-off-by: Simon Glass > --- > > net/eth-uclass.c | 34 ++ > 1 file changed, 22 insertions(+), 12 deletions(-) > Regards, Bin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot