Ok, got USBDEV_TRACE working and got the NuttX NDIS gadget to connect to my
Linux host, it appears when I do lsusb.

I had to add some NDIS initialization code for the SAMA5D3-xplained board
and debug it using the SEGGER J-Link in order to get it working. I'll post
a PR when I get it working all the way.

-adam


On Thu, Jan 2, 2020 at 8:47 PM Adam Feuer <a...@adamfeuer.com> wrote:

> I tried enabling the following config options to turn on USB tracing, but
> didn't get any tracing output when I rebooted:
>
> CONFIG_DEBUG_FEATURES=y
>> CONFIG_USBDEV_TRACE=y
>> CONFIG_USBDEV_TRACE_NRECORDS=5000
>> CONFIG_USBDEV_TRACE_STRINGS=y
>> CONFIG_NSH_USBDEV_TRACE=n
>> CONFIG_NSH_ARCHINIT=y
>> CONFIG_USBMONITOR=y
>> CONFIG_USBMONITOR_STACKSIZE=2048
>> CONFIG_USBMONITOR_PRIORITY=50
>> CONFIG_USBMONITOR_INTERVAL=1
>> CONFIG_USBMONITOR_TRACEINIT=y
>> CONFIG_USBMONITOR_TRACECLASS=y
>> CONFIG_USBMONITOR_TRACETRANSFERS=y
>> CONFIG_USBMONITOR_TRACECONTROLLER=y
>> CONFIG_USBMONITOR_TRACEINTERRUPTS=y
>>
>
> I got these from this page:
> http://dontbefooled.nuttx.org/doku.php?id=documentation:usbtrace
>
> On Thu, Jan 2, 2020 at 6:25 PM Adam Feuer <a...@adamfeuer.com> wrote:
>
>> Hi,
>>
>> I am trying to get Ethernet over USB working on the SAMA5D36. I am using
>> Ubuntu Linux. I configured NuttX as per Alan's video here:
>>
>> https://www.youtube.com/watch?v=8noH8v7xNgs
>> https://www.youtube.com/watch?v=dk3jqhn9XQ4
>>
>> I can compile NuttX and get a shell. I have the ping command.
>>
>> I don't see the NuttX device show up on my Linux computer's USB bus via
>> lsusb. Does this mean the USB subsystem is not initialized correctly? Does
>> anyone have ideas on how to debug? I don't see error messages when booting
>> NuttX.
>>
>> cheers
>> adam
>> --
>> Adam Feuer <a...@adamfeuer.com>
>>
>
>
> --
> Adam Feuer <a...@adamfeuer.com>
>


-- 
Adam Feuer <a...@adamfeuer.com>

Reply via email to