[U-Boot] Uboot - USB to Ethernet patch

Simon Glass sjg at chromium.org
Fri Feb 18 18:41:45 CET 2011


+UBML

Hi Anders,

You will need at least:

/* Enable USB Ethernet dongles */
#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_ASIX

(and your platform must support USB with CONFIG_CMD_USB and CONFIG_USB_EHCI
for example)

You will also want to enable the network commands:

#define CONFIG_CMD_NET
#define CONFIG_NET_MULTI
#define CONFIG_CMD_PING
#define CONFIG_CMD_DHCP

and some bootp options:

#define CONFIG_BOOTP_SUBNETMASK
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_HOSTNAME
#define CONFIG_BOOTP_BOOTPATH

#define CONFIG_IPADDR 10.0.0.2
#define CONFIG_SERVERIP 10.0.0.1
#define CONFIG_BOOTFILE uImage


I might have missed something, but that should be enough to make progress.

'usb start' should identify the Ethernet dongle. Then 'bootp' should use it
to obtain an IP address from DHCP.

Regards,
Simon

On Fri, Feb 18, 2011 at 6:56 AM, Anders Marklund <
Anders.Marklund at optronic.se> wrote:

>
> Hello Simon!
>
> I'm trying use use your "usb-to-ethernet-adaptor" -patch for u-boot
> together with the ASIX driver patch. I have applied the patch but I'm a
> little uncertain about which defines to use and where to put them and how to
> initialize the usb to successfully setup and enumerate the ethernet chip.
>
> I'm using a processor module from Variscite: VAR-SOM-OM37, that has a
> DM3730 processor with power module: TPS65930B (twl4030). I have connected a
> separate USB hub and a ASIX AX88772b USB to Ethernet chip. My ultimate goal
> is to be able to boot a linux kernel over the network through this setup,
> and I was wondering if you could send me some example code on how to use the
> adaptor support?
> What do I need to change in my board configuration to get it to work?
>
> Any other tips or ideas are very welcome!
>
> Thanks in advance and best regards
> /Anders Marklund
>
>
>   Anders Marklund, M. Sc
> *Product Developer*
>  *OPTRONIC*
>
> Box 733
>
> PHONE +46 910 835 00
>
> SE-931 27 SKELLEFTEÅ SWEDEN
>
> DIRECT <%2B46%20910%20835%2061>+46 910 835 61
>
> E-MAIL Anders.Marklund at optronic.se
>
> MOBILE
>
> VISITING ADDRESS Gymnasievägen 34
>
> FAX
>
> INTERNET www.optronic.se
>
>
> This  message, and/or attachment (-s), may contain confidential
> information. It may not be disclosed to, or used by, anyone other than the
> addressee.If you receive this message in error, please advise the sender
> immediately.
>


More information about the U-Boot mailing list