It seems as sandbox moved to livetree these drivers were not updated. Heinrich suggested correctly that at this point we should be enumerating network interface names, not hard-coding eth0. Also, there were a few bugs that needed fixing.
Changes in v3: - s/UC_ETH/UCLASS_ETH/ - use a string constant for host prefix - use calloc Changes in v2: - New patch - go back to u8_array - move DT accesses to ofdata_to_platdata() - store the host interface details in priv - switch to dev_read_string() Joe Hershberger (11): sandbox: eth-raw: Correct valid socket test in send/recv sandbox: Fix format of fake-host-hwaddr in test.dts net: Only call halt on a driver that has been init'ed sandbox: eth-raw: Make sure descriptors are always initialized net: Correct comment in Kconfig net: sandbox: Convert sandbox mock eth driver to livetree net: sandbox-raw: Convert raw eth driver to livetree sandbox: eth-raw: Add a function to ask the host about localhost sandbox: eth-raw: Allow interface to be specified by index sandbox: eth-raw: Make random MAC addresses available to eth-raw sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces arch/sandbox/cpu/eth-raw-os.c | 81 ++++++++++++++++++++++++++--------- arch/sandbox/dts/sandbox.dts | 19 +++----- arch/sandbox/dts/sandbox64.dts | 19 +++----- arch/sandbox/dts/test.dts | 8 ++-- arch/sandbox/include/asm/eth-raw-os.h | 38 +++++++++++++++- drivers/net/Kconfig | 4 +- drivers/net/Makefile | 1 + drivers/net/sandbox-raw-bus.c | 66 ++++++++++++++++++++++++++++ drivers/net/sandbox-raw.c | 53 ++++++++++++++++++----- drivers/net/sandbox.c | 16 +++++-- net/eth-uclass.c | 2 +- 11 files changed, 237 insertions(+), 70 deletions(-) create mode 100644 drivers/net/sandbox-raw-bus.c -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot