public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] usbtty using i.MX6
@ 2014-04-26 22:47 Otavio Salvador
  2014-04-27  9:05 ` Eric Bénard
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2014-04-26 22:47 UTC (permalink / raw)
  To: u-boot

Hello,

I'd like to know if someone has succeed in using usbtty with i.MX6. I
am interested in using it for one board but been not succed, it seems:

/home/otavio/hacking/u-boot/drivers/serial/usbtty.c:553: undefined
reference to `udc_init'
drivers/serial/built-in.o: In function `usbtty_init_instances':
/home/otavio/hacking/u-boot/drivers/serial/usbtty.c:686: undefined
reference to `udc_setup_ep'
/home/otavio/hacking/u-boot/drivers/serial/usbtty.c:708: undefined
reference to `urb_link_init'
/home/otavio/hacking/u-boot/drivers/serial/usbtty.c:709: undefined
reference to `urb_link_init'
/home/otavio/hacking/u-boot/drivers/serial/usbtty.c:710: undefined
reference to `urb_link_init
...

Does someone got it working?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

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

* [U-Boot] usbtty using i.MX6
  2014-04-26 22:47 [U-Boot] usbtty using i.MX6 Otavio Salvador
@ 2014-04-27  9:05 ` Eric Bénard
  2014-04-27 17:56   ` Eric Nelson
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Bénard @ 2014-04-27  9:05 UTC (permalink / raw)
  To: u-boot

Hi Otavio,

Le Sat, 26 Apr 2014 19:47:27 -0300,
Otavio Salvador <otavio@ossystems.com.br> a ?crit :
> I'd like to know if someone has succeed in using usbtty with i.MX6. I
> am interested in using it for one board but been not succed, it seems:
> 
> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:553: undefined
> reference to `udc_init'
> drivers/serial/built-in.o: In function `usbtty_init_instances':
> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:686: undefined
> reference to `udc_setup_ep'
> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:708: undefined
> reference to `urb_link_init'
> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:709: undefined
> reference to `urb_link_init'
> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:710: undefined
> reference to `urb_link_init
> ...
> 
> Does someone got it working?
> 
you need a gadget driver for the i.MX6 USB port which doesn't seems to
exist in u-boot.

Eric

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

* [U-Boot] usbtty using i.MX6
  2014-04-27  9:05 ` Eric Bénard
@ 2014-04-27 17:56   ` Eric Nelson
  2014-04-27 18:04     ` Michael Trimarchi
  2014-04-27 18:56     ` Eric Bénard
  0 siblings, 2 replies; 9+ messages in thread
From: Eric Nelson @ 2014-04-27 17:56 UTC (permalink / raw)
  To: u-boot

Hi Eric,

On 04/27/2014 02:05 AM, Eric B?nard wrote:
> Hi Otavio,
>
> Le Sat, 26 Apr 2014 19:47:27 -0300,
> Otavio Salvador <otavio@ossystems.com.br> a ?crit :
>> I'd like to know if someone has succeed in using usbtty with i.MX6. I
>> am interested in using it for one board but been not succed, it seems:
>>
>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:553: undefined
>> reference to `udc_init'
>> drivers/serial/built-in.o: In function `usbtty_init_instances':
>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:686: undefined
>> reference to `udc_setup_ep'
>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:708: undefined
>> reference to `urb_link_init'
>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:709: undefined
>> reference to `urb_link_init'
>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:710: undefined
>> reference to `urb_link_init
>> ...
>>
>> Does someone got it working?
>>
> you need a gadget driver for the i.MX6 USB port which doesn't seems to
> exist in u-boot.
>

We're using UDC on all of our i.MX6 board. Marek and Troy have had this
working for a while now.

I think the two key patches are these:
	https://github.com/boundarydevices/u-boot-imx6/commit/f3d7cff
	https://github.com/boundarydevices/u-boot-imx6/commit/f016f8c

We've been using it a lot for USB networking, where it provides a
very nice download mechanism. See this post for details:
	http://boundarydevices.com/u-boot-2014-01/#usbrecover

I think usbtty is a different thing though (USB serial adapter connected
to a Host port).

We haven't tested that, but it should work. Most of our USB Host uses
have been for USB sticks and keyboards.

Regards,


Eric

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

* [U-Boot] usbtty using i.MX6
  2014-04-27 17:56   ` Eric Nelson
@ 2014-04-27 18:04     ` Michael Trimarchi
  2014-04-27 18:56     ` Eric Bénard
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Trimarchi @ 2014-04-27 18:04 UTC (permalink / raw)
  To: u-boot

Hi

Il 27/apr/2014 19:57 "Eric Nelson" <eric.nelson@boundarydevices.com> ha
scritto:
>
> Hi Eric,
>
>
> On 04/27/2014 02:05 AM, Eric B?nard wrote:
>>
>> Hi Otavio,
>>
>> Le Sat, 26 Apr 2014 19:47:27 -0300,
>> Otavio Salvador <otavio@ossystems.com.br> a ?crit :
>>>
>>> I'd like to know if someone has succeed in using usbtty with i.MX6. I
>>> am interested in using it for one board but been not succed, it seems:
>>>
>>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:553: undefined
>>> reference to `udc_init'
>>> drivers/serial/built-in.o: In function `usbtty_init_instances':
>>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:686: undefined
>>> reference to `udc_setup_ep'
>>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:708: undefined
>>> reference to `urb_link_init'
>>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:709: undefined
>>> reference to `urb_link_init'
>>> /home/otavio/hacking/u-boot/drivers/serial/usbtty.c:710: undefined
>>> reference to `urb_link_init
>>> ...
>>>
>>> Does someone got it working?
>>>
>> you need a gadget driver for the i.MX6 USB port which doesn't seems to
>> exist in u-boot.
>>
>
> We're using UDC on all of our i.MX6 board. Marek and Troy have had this
> working for a while now.
>
> I think the two key patches are these:
>         https://github.com/boundarydevices/u-boot-imx6/commit/f3d7cff
>         https://github.com/boundarydevices/u-boot-imx6/commit/f016f8c
>
> We've been using it a lot for USB networking, where it provides a
> very nice download mechanism. See this post for details:
>         http://boundarydevices.com/u-boot-2014-01/#usbrecover
>
> I think usbtty is a different thing though (USB serial adapter connected
> to a Host port).
>
usbtty should be a way to have the console on a gadget interface

Michael

> We haven't tested that, but it should work. Most of our USB Host uses
> have been for USB sticks and keyboards.
>
> Regards,
>
>
>
> Eric
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

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

* [U-Boot] usbtty using i.MX6
  2014-04-27 17:56   ` Eric Nelson
  2014-04-27 18:04     ` Michael Trimarchi
@ 2014-04-27 18:56     ` Eric Bénard
  2014-04-27 19:03       ` Otavio Salvador
                         ` (2 more replies)
  1 sibling, 3 replies; 9+ messages in thread
From: Eric Bénard @ 2014-04-27 18:56 UTC (permalink / raw)
  To: u-boot

Hi Eric,

Le Sun, 27 Apr 2014 10:56:48 -0700,
Eric Nelson <eric.nelson@boundarydevices.com> a ?crit :
> We're using UDC on all of our i.MX6 board. Marek and Troy have had this
> working for a while now.
> 
> I think the two key patches are these:
> 	https://github.com/boundarydevices/u-boot-imx6/commit/f3d7cff
> 	https://github.com/boundarydevices/u-boot-imx6/commit/f016f8c
> 
that's not mainline :-)

> We've been using it a lot for USB networking, where it provides a
> very nice download mechanism. See this post for details:
> 	http://boundarydevices.com/u-boot-2014-01/#usbrecover
> 
> I think usbtty is a different thing though (USB serial adapter connected
> to a Host port).
> 
No, that's a serial port gadget on a USB device controler.

Eric

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

* [U-Boot] usbtty using i.MX6
  2014-04-27 18:56     ` Eric Bénard
@ 2014-04-27 19:03       ` Otavio Salvador
  2014-04-27 19:12       ` Eric Bénard
  2014-04-27 19:19       ` Eric Nelson
  2 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2014-04-27 19:03 UTC (permalink / raw)
  To: u-boot

On Sun, Apr 27, 2014 at 3:56 PM, Eric B?nard <eric@eukrea.com> wrote:
> Le Sun, 27 Apr 2014 10:56:48 -0700,
> Eric Nelson <eric.nelson@boundarydevices.com> a ?crit :
>> We're using UDC on all of our i.MX6 board. Marek and Troy have had this
>> working for a while now.
>>
>> I think the two key patches are these:
>>       https://github.com/boundarydevices/u-boot-imx6/commit/f3d7cff
>>       https://github.com/boundarydevices/u-boot-imx6/commit/f016f8c
>>
> that's not mainline :-)

Those two are already merged in mainline.

>> We've been using it a lot for USB networking, where it provides a
>> very nice download mechanism. See this post for details:
>>       http://boundarydevices.com/u-boot-2014-01/#usbrecover
>>
>> I think usbtty is a different thing though (USB serial adapter connected
>> to a Host port).
>>
> No, that's a serial port gadget on a USB device controler.

Right and than we can use it to send the console input/output to the
host system.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

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

* [U-Boot] usbtty using i.MX6
  2014-04-27 18:56     ` Eric Bénard
  2014-04-27 19:03       ` Otavio Salvador
@ 2014-04-27 19:12       ` Eric Bénard
  2014-04-27 19:19       ` Eric Nelson
  2 siblings, 0 replies; 9+ messages in thread
From: Eric Bénard @ 2014-04-27 19:12 UTC (permalink / raw)
  To: u-boot

Hi again,

Le Sun, 27 Apr 2014 20:56:56 +0200,
Eric B?nard <eric@eukrea.com> a ?crit :
> Le Sun, 27 Apr 2014 10:56:48 -0700,
> Eric Nelson <eric.nelson@boundarydevices.com> a ?crit :
> > We're using UDC on all of our i.MX6 board. Marek and Troy have had this
> > working for a while now.
> > 
> > I think the two key patches are these:
> > 	https://github.com/boundarydevices/u-boot-imx6/commit/f3d7cff
> > 	https://github.com/boundarydevices/u-boot-imx6/commit/f016f8c
> > 
> that's not mainline :-)
> 
Oops sorry, in fact that's also mainline. Interesting to learn it ;-)

Quickly looking at the code, it seems that usbtty is not using the same
API as the other gadgets in drivers/usb/gadget : it doesn't call
usb_gadget_register_driver and instead call the udc functions directly.
So indeed in the present state, this driver can't work on an i.MX6.

Eric

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

* [U-Boot] usbtty using i.MX6
  2014-04-27 18:56     ` Eric Bénard
  2014-04-27 19:03       ` Otavio Salvador
  2014-04-27 19:12       ` Eric Bénard
@ 2014-04-27 19:19       ` Eric Nelson
  2015-01-15  9:26         ` shabeer
  2 siblings, 1 reply; 9+ messages in thread
From: Eric Nelson @ 2014-04-27 19:19 UTC (permalink / raw)
  To: u-boot

Hi Eric,

On 04/27/2014 11:56 AM, Eric B?nard wrote:
> Hi Eric,
>
> Le Sun, 27 Apr 2014 10:56:48 -0700,
> Eric Nelson <eric.nelson@boundarydevices.com> a ?crit :
>> We're using UDC on all of our i.MX6 board. Marek and Troy have had this
>> working for a while now.
>>
>> I think the two key patches are these:
>> 	https://github.com/boundarydevices/u-boot-imx6/commit/f3d7cff
>> 	https://github.com/boundarydevices/u-boot-imx6/commit/f016f8c
>>
> that's not mainline :-)
>
Sorry. I just found it easier to use Github's U/I.

>> We've been using it a lot for USB networking, where it provides a
>> very nice download mechanism. See this post for details:
>> 	http://boundarydevices.com/u-boot-2014-01/#usbrecover
>>
>> I think usbtty is a different thing though (USB serial adapter connected
>> to a Host port).
>>
> No, that's a serial port gadget on a USB device controler.
>

Oops.

We have also used netconsole with UDC, though usbtty seems like
a useful tool.

Regards,


Eric

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

* [U-Boot] usbtty using i.MX6
  2014-04-27 19:19       ` Eric Nelson
@ 2015-01-15  9:26         ` shabeer
  0 siblings, 0 replies; 9+ messages in thread
From: shabeer @ 2015-01-15  9:26 UTC (permalink / raw)
  To: u-boot


Hi,
Any updates or anyone succeed in enable the ttyUSB support in imx6 uboot ? 

Shabeer

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

end of thread, other threads:[~2015-01-15  9:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26 22:47 [U-Boot] usbtty using i.MX6 Otavio Salvador
2014-04-27  9:05 ` Eric Bénard
2014-04-27 17:56   ` Eric Nelson
2014-04-27 18:04     ` Michael Trimarchi
2014-04-27 18:56     ` Eric Bénard
2014-04-27 19:03       ` Otavio Salvador
2014-04-27 19:12       ` Eric Bénard
2014-04-27 19:19       ` Eric Nelson
2015-01-15  9:26         ` shabeer

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