I’m using embedded linux, buildroot. I want my Linux device to be recognized by the host directly as a mass storage device when I boot it up.
My current progress: I have compiled the mass storage module and written the basic configFS script. After I boot up, I can manually use the script to change the Linux device to mass storage.
But I didn’t know how to operate configFS so that I could have my board recognized as a mass storage device at boot time without using a script manually. (Setting the script to automatically execute on startup is not what I want, because the host will tell you that you have inserted a new USB device.)
How do I set configFS or other options so that my device starts up as mass storage?
Also, can you give me some information about how to use configFS? I can’t find a good tutorial for configFS.