The
cfumass
driver provides device side support for emulating an USB mass storage
device compliant with the USB Mass Storage Class Bulk-Only (BBB) Transport
specification, implemented as a
ctl(4)
frontend driver.
To use
cfumass:
- cfumass(4)
must be loaded as a module or compiled into the kernel.
- The USB Mass Storage template must be chosen by setting the
hw.usb.template
sysctl to 0.
- The USB OTG port must be working in USB device-side mode.
This happens automatically upon connection to a USB host.
- There must be a
ctl(4)
LUN configured for the
cfumass
port.
Upon loading, the driver creates a
ctl(4)
port named
cfumass,
presenting the first LUN mapped for that port - usually LUN 0 - to
the USB host.
See
ctl.conf(5)
and
ctld(8)
for details on configuring the LUN.
See the
cfumass_enable
and
cfumass_dir
rc(8)
variables in
rc.conf(5)
for an automated way to configure it at boot.