Hi Joe,

On 26 June 2018 at 14:19, Joe Hershberger <joe.hershber...@ni.com> wrote:
> With systemd stable interface names, eth0 will almost never exist.
> Instead of using that name in the sandbox.dts, use index 2 (the first
> interface after "lo"). Enumerate the interfaces on the system to choose
> a valid interace name.
>
> Signed-off-by: Joe Hershberger <joe.hershber...@ni.com>
> ---
>
>  arch/sandbox/cpu/eth-raw-os.c         | 28 ++++++++++++++++++++++++++++
>  arch/sandbox/dts/sandbox.dts          |  2 +-
>  arch/sandbox/include/asm/eth-raw-os.h |  4 +++-
>  drivers/net/sandbox-raw.c             |  8 +++++++-
>  4 files changed, 39 insertions(+), 3 deletions(-)
>

This seems brittle too. A name seems better to me. I might be missing
something though. Can we ask the OS for a name, etc?

Regards,
Simon
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to