USB Device self-umount

Tomasz CEDRO tomek at
Tue Sep 26 14:31:10 UTC 2017

Hello world! :-)

I am working on a device that implements USB MSC mass storage for
firmware programming [1]. After receiving file, it flashes the
firmware image to the target MCU, then reboots and starts the program
or waits debug session..

The question is how to gracefully self-umount from a device point of
view in a way not to confuse automounter and/or usb / mass storage
drivers? Is there any way of doing that in SCSI+USB? Something like
CD-ROM eject, then device removal..

Any hints appreciated :-)



More information about the freebsd-questions mailing list