LAN 9514 Drivers

Did anyone code device drivers for LAN 9514 controller without basing
any OS???

First you will need to run a USB stack with no OS. Then you can communicate with the LAN9514 over the USB. Drivers can be obtained from SMSC, the company that makes the LAN9514.

Gerald

Shiva Thrishul wrote:

Did anyone code device drivers for LAN 9514 controller without basing
any OS???

it seems there is some support for it in uboot:

http://www.mail-archive.com/u-boot@lists.denx.de/msg50068.html

it seems there is some support for it in uboot:

In that case, tftpboot is possible on beagleboard-xm ??

Thanks in advance,
Johnson

Johnson Mathew Easow wrote:

it seems there is some support for it in uboot:

In that case, tftpboot is possible on beagleboard-xm ??

maybe :slight_smile:

I think u-boot supports only USB-HUB feature of LAN9514

Hi,

it seems there is some support for it in uboot:

In that case, tftpboot is possible on beagleboard-xm ??

yes with these patches :
http://patchwork.ozlabs.org/patch/100186/
http://patchwork.ozlabs.org/patch/100187/
http://patchwork.ozlabs.org/patch/100185/
http://patchwork.ozlabs.org/patch/99955/
http://patchwork.ozlabs.org/patch/99956/
(a better version of the last one will come in a few days).

Eric

Hi again,

Hi,

it seems there is some support for it in uboot:

In that case, tftpboot is possible on beagleboard-xm ??

yes with these patches :
http://patchwork.ozlabs.org/patch/100186/
http://patchwork.ozlabs.org/patch/100187/
http://patchwork.ozlabs.org/patch/100185/
http://patchwork.ozlabs.org/patch/99955/
http://patchwork.ozlabs.org/patch/99956/
(a better version of the last one will come in a few days).

and you may also need to patch ehci_hcd_stop in beagle.c (without this, here display doesn't work when bootling the rowboat kernel) :
@@ -346,9 +348,25 @@ int board_mmc_init(bd_t *bis)
  /* Reset is needed otherwise the kernel-driver will throw an error. */
  int ehci_hcd_stop(void)
  {
    pr_debug("Resetting OMAP3 EHCI\n");
    omap_set_gpio_dataout(GPIO_PHY_RESET, 0);
    writel(OMAP_UHH_SYSCONFIG_SOFTRESET, OMAP3_UHH_BASE + OMAP_UHH_SYSCONFIG);
+ /* disable USB clocks */
+ sr32(&prcm_base->iclken_usbhost, 0, 1, 0);
+ sr32(&prcm_base->fclken_usbhost, 0, 2, 0);
+ sr32(&prcm_base->iclken3_core, 2, 1, 0);
+ sr32(&prcm_base->fclken3_core, 2, 1, 0);
    return 0;
  }

and you also need to add this in the .h config file of your board :
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_SMSC95XX
+#define CONFIG_NET_MULTI

+#define CONFIG_CMD_NET
+#define CONFIG_CMD_PING
+#define CONFIG_CMD_NFS

Eric

So was omap3/4 EHCI support already merged into denx upstream uboot?

OMAP3 seems merged in upstream u-boot as only this 5 patches are needed to get tftp working on BeagleBoard XM,
I'm not using OMAP4 (TI's website says : "This product is intended for high-volume wireless OEMs and ODMs and is not available through distributors." so there is no interest in spending time on it).

Eric

sir,
i want to know how to interface lcd and sd card on beagleboard.

I tried them, and I get:

OMAP3 beagleboard.org # usb start
(Re)start USB...
USB: Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... cannot reset port 2!?
1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
       scanning bus for ethernet devices... 0 Ethernet Device(s) found

On my xM rev C, It does work on my C5 with an apple USB ethernet dongle.

regards,

Koen

It also works on an xM rev A1, so it's the usb power thing that breaks rev C. When I say "works" I mean "get an IP, but tftp times out". But it's progress :slight_smile:

Hi Koen,

uboot.diff (3.55 KB)

Thanks, I squashed it into your previous patches: https://github.com/koenkooi/u-boot/commits/beagle-2011.06

rajarshi kallagunta wrote:

sir,
i want to know how to interface lcd and sd card on beagleboard.

How is that question related to the current thread
which is about "LAN 9514 Drivers"?

Sir, I want to interface an lcd and sd card on beagle with LAN 9514 thread, please send me:

1) the exact steps
2) the codes
3) blocky diagrams.

And do not shout guesses, I'm a professional.

Hi,

beagle_lcd_interface.jpg

Eric, thumb up! :))
very professional stuff