-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #296 from NegXuan/master
archives/filesystem: Edge2: Add USB mass storage support.
- Loading branch information
Showing
2 changed files
with
702 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
archives/filesystem/special/Edge2/etc/profile.d/usbdevice.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# | ||
# The configuration for usb mass storage function. | ||
# | ||
# @ USE: Use usbdevice or not. 0->not use, 1->use | ||
# @ USB_FUNCS: Set USB gadget function, only ums function had been verified. | ||
# @ UMS_MOUNT: /sys/kernel/config/usb_gadget/rockchip/functions/mass_storage.$UMS_MOUNT | ||
# @ UMS_NUM: The number of mount point. | ||
# @ UMS_FILES: The list of files to be mounted. Usually be a partition or a .img file. | ||
# @ UMS_MOUNTPOINTS: The list of mount points. | ||
# @ UMS_RO: The flag of read only. 0->Read & Write, 1->Read Only. | ||
|
||
export USE=0 | ||
export USB_FUNCS="ums" | ||
export UMS_MOUNT=0 | ||
export UMS_NUM=1 | ||
export UMS_FILES=(/dev/mmcblk0p8) | ||
export UMS_MOUNTPOINTS=(/mnt) | ||
export UMS_RO=0 |
Oops, something went wrong.