From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Thu, 19 Nov 2015 09:51:53 -0700 Subject: [U-Boot] [PATCH 2/2] usb: eth: add Realtek RTL8152B/RTL8153 driver In-Reply-To: <453067309.7347849.1447913246365.JavaMail.yahoo@mail.yahoo.com> References: <1447430581-8805-1-git-send-email-swarren@wwwdotorg.org> <1447430581-8805-2-git-send-email-swarren@wwwdotorg.org> <201511140213.56176.marex@denx.de> <564A1315.7000609@wwwdotorg.org> <9433229CFF3E1848B20B3173199454BA0565762B@RTITMBSV06.realtek.com.tw> <453067309.7347849.1447913246365.JavaMail.yahoo@mail.yahoo.com> Message-ID: <564DFE29.3090701@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.