public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)
@ 2011-06-06 16:02 Iordan Neshev
  2011-06-06 18:07 ` Peter Meerwald
  0 siblings, 1 reply; 6+ messages in thread
From: Iordan Neshev @ 2011-06-06 16:02 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Meerwald @ 2011-06-06 18:07 UTC (permalink / raw)
  To: u-boot


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

regards, p.

-- 

Peter Meerwald
+43-664-2444418 (mobile)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)
  2011-06-06 18:07 ` Peter Meerwald
@ 2011-06-07  8:53   ` Gilles Chanteperdrix
  2011-06-07  9:31     ` Iordan Neshev
  0 siblings, 1 reply; 6+ messages in thread
From: Gilles Chanteperdrix @ 2011-06-07  8:53 UTC (permalink / raw)
  To: u-boot

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.

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)
  2011-06-07  8:53   ` Gilles Chanteperdrix
@ 2011-06-07  9:31     ` Iordan Neshev
  2011-06-07  9:53       ` Gilles Chanteperdrix
  2011-06-10 15:03       ` Simon Glass
  0 siblings, 2 replies; 6+ messages in thread
From: Iordan Neshev @ 2011-06-07  9:31 UTC (permalink / raw)
  To: u-boot

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


Regards,
Iordan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)
  2011-06-07  9:31     ` Iordan Neshev
@ 2011-06-07  9:53       ` Gilles Chanteperdrix
  2011-06-10 15:03       ` Simon Glass
  1 sibling, 0 replies; 6+ messages in thread
From: Gilles Chanteperdrix @ 2011-06-07  9:53 UTC (permalink / raw)
  To: u-boot

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

-- 
					    Gilles.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] TFTP support for Pandaboard (OMAP4430 Cortex-A9 Dual core)
  2011-06-07  9:31     ` Iordan Neshev
  2011-06-07  9:53       ` Gilles Chanteperdrix
@ 2011-06-10 15:03       ` Simon Glass
  1 sibling, 0 replies; 6+ messages in thread
From: Simon Glass @ 2011-06-10 15:03 UTC (permalink / raw)
  To: u-boot

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:
>>>> 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
>>
> 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 at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-10 15:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-06-07  9:31     ` Iordan Neshev
2011-06-07  9:53       ` Gilles Chanteperdrix
2011-06-10 15:03       ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox