Results 1 to 1 of 1
Hi all,
On my embedded ARM platform I try to set up an USB "device" which contains the file/folder structure of an UPnP Server.
A USB host (e.g. the Windows ...
- 06-02-2008 #1Just Joined!
- Join Date
- May 2008
- Posts
- 1
Mount userspace directory as "/dev" block device for USB Gadget API?
Hi all,
On my embedded ARM platform I try to set up an USB "device" which contains the file/folder structure of an UPnP Server.
A USB host (e.g. the Windows PC) should be able to view the contents of the UPnP Server.
To accomplish this I tried the following:
- I successfully use FUSE+DJMount to mount an Upnp-Server to a userspace directory (/tmp/upnp).
- I successfully load the Kernel Module "g_file_storage.ko" with e.g. "file=/dev/sda1" to set up a USB device (with die filesystem of a USB stick, connected to the ARM dev. board).
BUT: When I try to load the Kernel Module "g_file_storage.ko" with my userspace directory "file=/tmp/upnp" it comes to the following error message:
insmod: cannot insert '../g_file_storage.ko': Is a directory (-1): Is a directory
modprobe: failed to load module g_file_storage
In the documentation of the Kernelmodule g_file_storage it says that only block devices or single files (partitions) can be loaded. So this explains why modprobe fails!
Now I'm looking for a way to either mount my "tmp/upnp" directory to a /dev/xyz device or to configure the Kernel module "g_file_storage" to support userspace directories...
Or, can my FUSE file system be found in the /dev tree?
I hope you can point me in the right direction,
Thanks in advance,
Robert


Reply With Quote