[U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)

Gilles Chanteperdrix gilles.chanteperdrix at xenomai.org
Tue Jun 7 10:53:18 CEST 2011


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.


More information about the U-Boot mailing list