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

Hello,
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
I'm new to U-boot and I'm not sure that I understood it correctly, so can somebody confirm this, please?
If it matters, currently I'm booting from a SD card.
2. Also, I'd like to ask is it possible to compile u-boot under cygwin? I am using the latest CodeSourcery G++ Lite. I tried to do it but I ran into problems - make is trying to launch arm-linux-gcc, while it should be arm-none-eabi-gcc. I could not find out how to change it. But first of all, is it possible at all? If the answer is "yes", I'll dig more before asking again.
Best regards, Iordan

- 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... :)
regards, p.

On 06/06/2011 08:07 PM, Peter Meerwald wrote:
- 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

On 6/7/2011 10:53 AM, Gilles Chanteperdrix wrote:
On 06/06/2011 08:07 PM, Peter Meerwald wrote:
- 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
Does somebody have any idea when these patches will be committed to the git tree?
Regards, Iordan

On 06/07/2011 11:31 AM, Iordan Neshev wrote:
On 6/7/2011 10:53 AM, Gilles Chanteperdrix wrote:
On 06/06/2011 08:07 PM, Peter Meerwald wrote:
- 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
Does somebody have any idea when these patches will be committed to the git tree?
For the part I did (EHCI on panda/omap4) I received some remarks, and need to rework the patches and rebase them on more recent versions of u-boot. I will not have to do this before some time.

On Tue, Jun 7, 2011 at 2:31 AM, Iordan Neshev ineshev@daisytechbg.com wrote:
On 6/7/2011 10:53 AM, Gilles Chanteperdrix wrote:
On 06/06/2011 08:07 PM, Peter Meerwald wrote:
- 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
Does somebody have any idea when these patches will be committed to the git tree?
Hi Iordan,
I think the network maintainer was away - I will resend. I think there has already been one 'patch to the patch' sent to the list. I do have a panda board here but haven't got around to testing USB networking on it.
Regards, Simon
Regards, Iordan _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (4)
-
Gilles Chanteperdrix
-
Iordan Neshev
-
Peter Meerwald
-
Simon Glass