-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add USB MSC support for esp32s3 #14966
Merged
acassis
merged 3 commits into
apache:master
from
JianyuWang0623:br_wjy_esp32s3_usbmsc_demo_241127
Nov 27, 2024
Merged
Add USB MSC support for esp32s3 #14966
acassis
merged 3 commits into
apache:master
from
JianyuWang0623:br_wjy_esp32s3_usbmsc_demo_241127
Nov 27, 2024
+95
−0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test # Device:/dev/ram10 <----> Host:/dev/sde # Device (NuttX) nsh> mkrd -m 10 -s 512 640 nsh> msconn nsh> ls -l /dev/ram10 brw-rw-rw- 327680 /dev/ram10 # Host (e.g /dev/sde) $ sudo mkfs.ext4 /dev/sdx $ sudo mount /dev/sdx /workspace/mnt # Part of `df -h` /dev/sdx 292K 24K 248K 9% /workspace/mnt # dmesg (/dev/sdd, /dev/sde) [1116587.199896] usb 1-10: new full-speed USB device number 122 using xhci_hcd [1116587.369226] usb 1-10: New USB device found, idVendor=584e, idProduct=5342, bcdDevice= 3.99 [1116587.369231] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [1116587.369232] usb 1-10: Product: Mass Storage [1116587.369233] usb 1-10: Manufacturer: NuttX [1116587.369234] usb 1-10: SerialNumber: 0101 [1116587.385275] usb-storage 1-10:1.0: USB Mass Storage device detected [1116587.385526] scsi host5: usb-storage 1-10:1.0 [1116588.423335] scsi 5:0:0:0: Direct-Access NuttX Mass Storage 0101 PQ: 0 ANSI: 2 [1116588.423746] scsi 5:0:0:1: Direct-Access NuttX Mass Storage 0101 PQ: 0 ANSI: 2 [1116588.424001] sd 5:0:0:0: Attached scsi generic sg3 type 0 [1116588.424181] sd 5:0:0:1: Attached scsi generic sg4 type 0 [1116588.424305] sd 5:0:0:0: [sdd] Unsupported sector size 256. [1116588.425336] sd 5:0:0:1: [sde] 640 512-byte logical blocks: (328 kB/320 KiB) [1116588.638620] sd 5:0:0:1: [sde] Write Protect is off [1116588.638624] sd 5:0:0:1: [sde] Mode Sense: 0f 00 00 00 [1116588.858793] sd 5:0:0:0: [sdd] 0 512-byte logical blocks: (0 B/0 B) [1116588.858797] sd 5:0:0:0: [sdd] 256-byte physical blocks [1116589.078698] sd 5:0:0:0: [sdd] Write Protect is off [1116589.078702] sd 5:0:0:0: [sdd] Mode Sense: 0f 00 00 00 [1116589.298629] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [1116589.298903] sd 5:0:0:0: [sdd] Attached SCSI disk [1116589.518626] sd 5:0:0:1: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [1116589.972872] sd 5:0:0:1: [sde] Attached SCSI disk [1116644.299819] EXT4-fs (sde): mounted filesystem d4e18b90-b0c3-4a0f-8969-2493a41c5e02 r/w without journal. Quota mode: none. Copy from boards/arm/rp2040/common/src/rp2040_usbmsc.c Signed-off-by: wangjianyu3 <[email protected]>
USBMSC - USB Mass Storage Class Build $ ./tools/configure.sh -l esp32s3-devkit:usbmsc $ make flash ESPTOOL_PORT=/dev/ttyACMx Runtime # Device nsh> mkrd -m 10 -s 512 640 nsh> msconn # Host $ sudo mkfs.ext4 /dev/sdx $ sudo mount /dev/sdx ./mnt/ Signed-off-by: wangjianyu3 <[email protected]>
JianyuWang0623
added a commit
to JianyuWang0623/nuttx
that referenced
this pull request
Nov 27, 2024
More details: apache#14966 Signed-off-by: wangjianyu3 <[email protected]>
github-actions
bot
added
Size: S
The size of the change in this PR is small
Area: Documentation
Improvements or additions to documentation
labels
Nov 27, 2024
More details https://nuttx.apache.org/docs/latest/applications/system/usbmsc/index.html apache#14966 Signed-off-by: wangjianyu3 <[email protected]>
JianyuWang0623
force-pushed
the
br_wjy_esp32s3_usbmsc_demo_241127
branch
from
November 27, 2024 11:58
209c0ce
to
62976db
Compare
@Donny9 @yangsong8-ai Could you review this PR please? |
xiaoxiang781216
approved these changes
Nov 27, 2024
jerpelea
approved these changes
Nov 27, 2024
acassis
approved these changes
Nov 27, 2024
JaeheeKwon
pushed a commit
to JaeheeKwon/nuttx
that referenced
this pull request
Nov 28, 2024
More details https://nuttx.apache.org/docs/latest/applications/system/usbmsc/index.html apache#14966 Signed-off-by: wangjianyu3 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: Documentation
Improvements or additions to documentation
Board: xtensa
Size: S
The size of the change in this PR is small
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add USB MSC support for esp32s3
For more details, please see commit message
Impact
Testing
esp32s3-devkit:usbmsc