Here's the PR for the SAMA5D27 USB Host support (peripheral support is
there too as a work-in-progress).

https://github.com/apache/incubator-nuttx/pull/444

cheers
adam

On Thu, Mar 5, 2020 at 12:16 PM Adam Feuer <a...@starcat.io> wrote:

> I did this as well. It works. I'm going to to submit a PR for this work,
> even though the other devices are not completely tested— that will get the
> SAMA5D27 USB Host support into mainline.
>
> Thanks for your help Takeyoshi and Greg!
>
> cheers
> adam
>
> On Thu, Mar 5, 2020 at 3:21 AM Takeyoshi Kikuchi <kiku...@centurysys.co.jp>
> wrote:
>
>> Adam,
>>
>> As suggested by Greg, I tested on USB storage.
>>
>> -----
>> NuttShell (NSH) NuttX-8.2
>> nsh> ls -l /dev
>> /dev:
>>   crw-rw-rw-       0 console
>>   crw-rw-rw-       0 loop
>>   crw-rw-rw-       0 null
>>   crw-rw-rw-       0 ramlog
>>   cr--r--r--       0 random
>>   brw-rw-rw-       0 sda
>>   crw-rw-rw-       0 ttyS0
>>   crw-rw-rw-       0 zero
>> nsh> mkdir /mnt/usb
>> nsh> mount -t vfat /dev/sda /mnt/usb
>> nsh> df
>>    Block  Number
>>    Size   Blocks     Used Available Mounted on
>>   65536    63227       19     63208 /mnt/usb
>>       0        0        0         0 /proc
>> nsh> ls -l /mnt/usb
>> /mnt/usb:
>>   -rw-rw-rw- 1113504 bash
>>
>>
>> Takeyoshi Kikuchi
>>
>> On 2020/03/05 13:47, Adam Feuer wrote:
>> > Greg,
>> >
>> > Thanks for the tip, I will do as you suggest tomorrow. I think Takeyoshi
>> > already did that.
>> >
>> > cheers
>> > adam
>> >
>> > On Wed, Mar 4, 2020 at 5:58 PM Gregory Nutt <spudan...@gmail.com>
>> wrote:
>> >
>> >>> I pulled your branch and worked on it today. I don't have a CDC ACM
>> >> device
>> >>> to test with (or cable). So I figured out that I can't test that...
>> >> Easiest way to test USB host is to configure the USB mass storage class
>> >> and connect a USB FLASH drive.  You also need FAT file system support.
>> >>
>> >
>> >
>>
>> --
>> ---------------------------------
>> Takeyoshi Kikuchi
>> kiku...@centurysys.co.jp
>>
>
>
> --
> Adam Feuer <a...@starcat.io>
>


-- 
Adam Feuer <a...@starcat.io>

Reply via email to