[U-Boot] [PATCH 2/2] usb: eth: add Realtek RTL8152B/RTL8153 driver
Stephen Warren
swarren at wwwdotorg.org
Thu Nov 19 17:51:53 CET 2015
On 11/18/2015 11:07 PM, Anand Moon wrote:
> Hi Ted/Stephen,
(trimming a lot of the email to try and fit my reply into an
intelligible place)
> Actually this driver is also need for Odroid XU4 development boards.
>
> Just for testing integrate this driver with u-boot.
>
> Actually I have tried to compile this driver with u-boot mainline.
> But their also I am not able to get the Ethernet working on u-boot.
>
> What could be missing in the driver ?
>
> Is this device compatible with USB 2.0 EHCI host drivers or it requires USB 3.0 XHCI host drivers.
It should work with any USB controller that implements both control and
data transfers. I'm using it with what is essentially a USB2 (non-EHCI)
controller at present.
> ODROID-XU3 # usb start
> ODROID-XU3 # usb info
The fact that your "usb start" didn't print anything at all is a bit
odd. Had you run "usb start" before that point? If so, you should have
quoted the output from the first run instead. You could also run "usb
reset" to force a re-enumeration. I'd expect something like the
following to be printed (albeit with different driver names)
Tegra210 (P2371-2180) # usb start
starting USB...
USB0: USB EHCI 1.10
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices...
Warning: asx0 using MAC address from net device
1 Ethernet Device(s) found
The fact that "usb info" shows the device is a good start; USB
communication is obviously working. Perhaps you simply don't have the
right config options enabled for base networking support, and/or the
RTL8152 driver, or similar? I have at least the following set in
include/configs/p2371-2180.h:
#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_ASIX
#define CONFIG_USB_ETHER_RTL8152
as well as the typical "defaults" headers. "DM" etc. is enabled in
arch/arm/mach-tegra/Kconfig.
More information about the U-Boot
mailing list