LAN 9514 Drivers

805 views
Skip to first unread message

Shiva Thrishul

unread,
Jun 16, 2011, 2:18:56 AM6/16/11
to Beagle Board
Did anyone code device drivers for LAN 9514 controller without basing
any OS????

Gerald Coley

unread,
Jun 16, 2011, 7:50:11 AM6/16/11
to beagl...@googlegroups.com
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


 
On Thu, Jun 16, 2011 at 1:18 AM, Shiva Thrishul <hmshiva...@gmail.com> wrote:
Did anyone code device drivers for LAN 9514 controller without basing
any OS????

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.


Vladimir Pantelic

unread,
Jun 16, 2011, 8:15:00 AM6/16/11
to beagl...@googlegroups.com
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-b...@lists.denx.de/msg50068.html


Johnson Mathew Easow

unread,
Jun 16, 2011, 1:25:47 PM6/16/11
to beagl...@googlegroups.com
> it seems there is some support for it in uboot:

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

Thanks in advance,
Johnson

Vladimir Pantelic

unread,
Jun 16, 2011, 1:38:10 PM6/16/11
to beagl...@googlegroups.com
Johnson Mathew Easow wrote:
>> it seems there is some support for it in uboot:
>
> In that case, tftpboot is possible on beagleboard-xm ??

maybe :)

Maxim Podbereznyy

unread,
Jun 16, 2011, 3:18:00 PM6/16/11
to beagl...@googlegroups.com
I think u-boot supports only USB-HUB feature of LAN9514

2011/6/16 Vladimir Pantelic <vlad...@gmail.com>:

Eric Bénard

unread,
Jun 16, 2011, 4:44:14 PM6/16/11
to beagl...@googlegroups.com
Hi,

On 16/06/2011 19:25, Johnson Mathew Easow wrote:
>> 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

Eric Bénard

unread,
Jun 16, 2011, 4:52:53 PM6/16/11
to beagl...@googlegroups.com
Hi again,

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

Koen Kooi

unread,
Jun 16, 2011, 7:28:15 PM6/16/11
to beagl...@googlegroups.com

Op 16 jun 2011, om 22:52 heeft Eric Bénard het volgende geschreven:

> Hi again,


>
> On 16/06/2011 22:44, Eric Bénard wrote:
>> Hi,
>>
>> On 16/06/2011 19:25, Johnson Mathew Easow wrote:
>>>> 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

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

Eric Bénard

unread,
Jun 17, 2011, 1:49:10 AM6/17/11
to beagl...@googlegroups.com
On 17/06/2011 01:28, Koen Kooi wrote:

>
> Op 16 jun 2011, om 22:52 heeft Eric B�nard het volgende geschreven:
>
>> Hi again,
>>
>> On 16/06/2011 22:44, Eric B�nard wrote:
>>> Hi,
>>>
>>> On 16/06/2011 19:25, Johnson Mathew Easow wrote:
>>>>> 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
>
> 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

Koen Kooi

unread,
Jun 17, 2011, 3:53:53 AM6/17/11
to beagl...@googlegroups.com

Op 17 jun 2011, om 07:49 heeft Eric Bénard het volgende geschreven:

> On 17/06/2011 01:28, Koen Kooi wrote:
>>

>> Op 16 jun 2011, om 22:52 heeft Eric Bénard het volgende geschreven:
>>
>>> Hi again,
>>>
>>> On 16/06/2011 22:44, Eric Bénard wrote:
>>>> Hi,
>>>>
>>>> On 16/06/2011 19:25, Johnson Mathew Easow wrote:
>>>>>> 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
>>
>> 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

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

Eric Bénard

unread,
Jun 17, 2011, 6:25:27 AM6/17/11
to beagl...@googlegroups.com
Hi Koen,

On 17/06/2011 09:53, Koen Kooi wrote:
> On my xM rev C, It does work on my C5 with an apple USB ethernet dongle.
>

try the attached patch, tested on xM rev A & rev C

Eric

uboot.diff

Koen Kooi

unread,
Jun 17, 2011, 6:41:48 AM6/17/11
to beagl...@googlegroups.com

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

rajarshi kallagunta

unread,
Jun 17, 2011, 2:17:31 AM6/17/11
to beagl...@googlegroups.com
sir,
i want to know how to interface lcd and sd card on beagleboard.

On 6/17/11, Eric Bénard <er...@eukrea.com> wrote:
> On 17/06/2011 01:28, Koen Kooi wrote:
>>

>> Op 16 jun 2011, om 22:52 heeft Eric Bénard het volgende geschreven:
>>
>>> Hi again,
>>>

>>> On 16/06/2011 22:44, Eric Bénard wrote:
>>>> Hi,
>>>>
>>>> On 16/06/2011 19:25, Johnson Mathew Easow wrote:
>>>>>> 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
>>
>> 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
>

Koen Kooi

unread,
Jun 17, 2011, 4:35:58 AM6/17/11
to beagleboard@googlegroups.com Board

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

Vladimir Pantelic

unread,
Jun 17, 2011, 8:08:52 AM6/17/11
to beagl...@googlegroups.com
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"?

Koen Kooi

unread,
Jun 17, 2011, 9:05:01 AM6/17/11
to beagl...@googlegroups.com

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.

Eric Bénard

unread,
Jun 17, 2011, 9:25:21 AM6/17/11
to beagl...@googlegroups.com
Hi,

On 17/06/2011 08:17, rajarshi kallagunta wrote:
> i want to know how to interface lcd and sd card on beagleboard.
>

a quick and dirty solution can be what is shown on this picture if you don't
have time to make a clean board ;-)

Eric

beagle_lcd_interface.jpg

Maxim Podbereznyy

unread,
Jun 17, 2011, 9:30:35 AM6/17/11
to beagl...@googlegroups.com
Eric, thumb up! :))
very professional stuff

2011/6/17 Eric Bénard <er...@eukrea.com>:

Reply all
Reply to author
Forward
0 new messages