[U-Boot] [PATCH v2 00/11] sandbox: net: Fix sandbox eth drivers
Joe Hershberger
joe.hershberger at ni.com
Sat Jun 30 03:20:51 UTC 2018
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 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 | 2 +-
drivers/net/Makefile | 1 +
drivers/net/sandbox-raw-bus.c | 65 ++++++++++++++++++++++++++++
drivers/net/sandbox-raw.c | 53 ++++++++++++++++++-----
drivers/net/sandbox.c | 16 +++++--
net/eth-uclass.c | 2 +-
11 files changed, 235 insertions(+), 69 deletions(-)
create mode 100644 drivers/net/sandbox-raw-bus.c
--
2.11.0
More information about the U-Boot
mailing list