[U-Boot] [PATCH 2/2] usb: eth: add Realtek RTL8152B/RTL8153 driver

Lukasz Majewski l.majewski at samsung.com
Thu Nov 19 18:00:04 CET 2015


Hi Stephen,

> 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
> 

On the Odroid XU3 there is the bug (after switching to DM). which causes
the USB1 hub (to which ETH is connected) to not be powered.

The "temporary" solution is to run "usb start" and "usb reset"
afterwards.

So you need to run:
"usb start"
"usb reset"
"usb info"

I'm working on this issue now.

> 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.
> 



-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group


More information about the U-Boot mailing list