Skip to content

Commit

Permalink
Merge pull request #296 from NegXuan/master
Browse files Browse the repository at this point in the history
archives/filesystem: Edge2: Add USB mass storage support.
  • Loading branch information
numbqq committed Jun 19, 2024
2 parents 31fa061 + b1e2f13 commit a4e34ed
Show file tree
Hide file tree
Showing 2 changed files with 702 additions and 0 deletions.
19 changes: 19 additions & 0 deletions archives/filesystem/special/Edge2/etc/profile.d/usbdevice.sh
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
Loading

0 comments on commit a4e34ed

Please sign in to comment.