You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "zyfeier (via GitHub)" <gi...@apache.org> on 2023/02/24 10:23:01 UTC

[GitHub] [nuttx] zyfeier opened a new pull request, #8646: Usb: add sim usb device and host driver

zyfeier opened a new pull request, #8646:
URL: https://github.com/apache/nuttx/pull/8646

   ## Summary
   
   1. Use Linux Raw Gadget and Dummy UDC to set up virtual USB device;
   Get Raw Gadget:
   Get Raw Gadget code at https://github.com/xairy/raw-gadget.
   Make Raw Gadget:
   Run make in the raw_gadget and dummy_hcd directory. If raw_gadget build fail, you need to check which register interface meets your kenel version, usb_gadget_probe_driver or usb_gadget_register_driver.
   Install Raw Gadget:
   Run ./insmod.sh in the raw_gadget and dummy_hcd directory.
   
   3. Simulate USB Host using libusb,  it's possible to connect simulated USB devices and real USB devices based on the configured VID and PID.  At this stage, only one USB device can be connected.
   
   ## Impact
   
   NA
   
   ## Testing
   
   sim:usbdev sim:usbhost test adb, rndis, cdcacm, cdcecm.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1446567232

   > I noticed that we are running out of space again on the docker image build/push so I don't think the image got updated :(. I think I know how to free up some more space on the worker that I can try this evening. Otherwise I can manually push the updated image for the short term.
   
   Thanks @btashton , let's wait your try if the result isn't good please update the image manuaully to unblock this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] zyfeier commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "zyfeier (via GitHub)" <gi...@apache.org>.
zyfeier commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1445356330

   > @zyfeier are you planing to add some driver examples implementing a USB device? It should be a good idea
   
   @acassis This is a good idea, and I'll add some examples after this PR submitted.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1445145265

   let's add some instruction in sim README.txt about the new usbdev/usbhost config:
   https://github.com/apache/nuttx/blob/master/boards/sim/sim/sim/README.txt#L563


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1449507725

   > > @btashton do you have progress, thanks?
   > 
   > Sorry for the delay. Let's see if this works, it looks like it frees up about 13GB.
   > 
   > #8680
   
   Thanks! @btashton 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] acassis commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1445346790

   > let's add some instruction in sim README.txt about the new usbdev/usbhost config: https://github.com/apache/nuttx/blob/master/boards/sim/sim/sim/README.txt#L563
   
   Please don't! Use the Documentation, we need to phase out these README.txt file since we didn't find a way to automatically get content of README.txt to feed the Documentation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1445026074

   @zyfeier create a separate PR to install libusb package:
   https://github.com/apache/nuttx/blob/master/tools/ci/docker/linux/Dockerfile#L251
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] btashton commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "btashton (via GitHub)" <gi...@apache.org>.
btashton commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1446561897

   I noticed that we are running out of space again on the docker image build/push so I don't think the image got updated :(. I think I know how to free up some more space on the worker that I can try this evening.  Otherwise I can manually push the updated image for the short term. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] acassis commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1445141627

   @zyfeier are you planing to add some driver examples implementing a USB device? It should be a good idea


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] acassis merged pull request #8646: Usb: add sim usb device and host driver

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #8646:
URL: https://github.com/apache/nuttx/pull/8646


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] btashton commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "btashton (via GitHub)" <gi...@apache.org>.
btashton commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1449389147

   > @btashton do you have progress, thanks?
   
   Sorry for the delay. Let's see if this works, it looks like it frees up about 13GB.
   
   https://github.com/apache/nuttx/pull/8680


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #8646: Usb: add sim usb device and host driver

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #8646:
URL: https://github.com/apache/nuttx/pull/8646#issuecomment-1449376926

   @btashton do you have progress, thanks?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org