public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)
Date: Tue, 07 Jun 2011 10:53:18 +0200	[thread overview]
Message-ID: <4DEDE6FE.4070403@xenomai.org> (raw)
In-Reply-To: <alpine.DEB.2.00.1106062003580.26802@hippogriff.cosy.sbg.ac.at>

On 06/06/2011 08:07 PM, Peter Meerwald wrote:
> 
>> 1. I need to boot my Pandaboard via TFTP. As long as I see this is
>> not yet possible, since in u-boot\include\configs\omap4_panda.h
>> there is:
>> /* Disabled commands */
>> #undef CONFIG_CMD_NET
>> #undef CONFIG_CMD_NFS
> 
> a couple of patches have been posted on this ML to support SMSC USB 
> ethernet and EHCI; I have been unsuccessful so far to get them to work but 
> maybe there is hope... :)

Hi Peter,

Here is how it worked for me:
I Updated x-loader to the latest revision from omap4_dev branch from
x-loader git (git://git.omapzoom.org/repo/x-loader.git, you can find
this information on pandaboard wiki), the head at the time being commit
c8855fa6b85bd44073bd1b25dbffa99f02cbeeed

I cloned u-boot git, the head at the time being commit
96d04c3150ae9284500aef48803d7d132968f2b2

I applied some of Simon's patches:
Add support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter
Add Ethernet hardware MAC address framework to usbnet
Add documentation for USB Host Networking

The applied the patches I already posted on this list:
omap4: add support for gpios
omap4: add support for EHCI
omap4_panda: add support for EHCI

Then an additional patch in order to get the mac address working for
smsc95xx:
diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index 4d8dde0..97f2729 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -873,6 +873,7 @@ int smsc95xx_eth_get_info(struct usb_device *dev,
struct ueth_data *ss,
        eth->send = smsc95xx_send;
        eth->recv = smsc95xx_recv;
        eth->halt = smsc95xx_halt;
+       eth->write_hwaddr = smsc95xx_write_hwaddr;
        eth->priv = ss;
        return 1;
 }

Then modified the config.h in order to enable all this, that is, adding:
#define CONFIG_CMD_USB 1
#define CONFIG_USB_STORAGE 1
#define CONFIG_USB_HOST_ETHER 1
#define CONFIG_USB_EHCI                 1
#define CONFIG_USB_EHCI_OMAP4 1
#define CONFIG_USB_HOST                1
#define CONFIG_USB_ETHER_SMSC95XX 1

-- 
					    Gilles.

  reply	other threads:[~2011-06-07  8:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06 16:02 [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core) Iordan Neshev
2011-06-06 18:07 ` Peter Meerwald
2011-06-07  8:53   ` Gilles Chanteperdrix [this message]
2011-06-07  9:31     ` Iordan Neshev
2011-06-07  9:53       ` Gilles Chanteperdrix
2011-06-10 15:03       ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DEDE6FE.4070403@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox