[U-Boot] [RFC PATCH 0/3] fix netconsole for CONFIG_DM_ETH
Bernhard Nortmann
bernhard.nortmann at web.de
Sat Aug 22 00:30:44 CEST 2015
With the introduction of driver model and accompanying changes,
outdated code in netconsole leads to compilation errors when both
CONFIG_NETCONSOLE and CONFIG_DM_ETH are set.
This is a series of patches to fix these issues and get netconsole
working again. I have deliberately marked it "RFC" since I'm not
entirely sure of what I'm doing here... Especially the bootm.c
change (patch 3/3) probably needs review or improvement by someone
more knowledgable on U-Boot networking / driver model.
Nevertheless I have tested the resulting code on my Banana Pi
(sun7i / Allwinner A20) and had a functional netconsole again.
I've also backported eth_is_active() and netconsole.c to
v2015.04 to make sure they properly worked in case CONFIG_DM_ETH
is absent.
Regards, B. Nortmann
Bernhard Nortmann (3):
expose eth_is_active() function to test network device state
fix netconsole when CONFIG_DM_ETH is set
avoid eth_unregister() call when function is unavailable
common/bootm.c | 2 ++
drivers/net/netconsole.c | 14 +++++++++++---
include/net.h | 6 ++++++
net/eth.c | 18 +++++++++++++++++-
4 files changed, 36 insertions(+), 4 deletions(-)
--
2.4.6
More information about the U-Boot
mailing list