On Sat, 19 Feb 2005, tong changda wrote:

> Doc is Disk on Chip
>     Following your advice I run fdisk on my smartphone(pxa271)'s DOC to 
> make a partition, then using mkdosfs on this partition(mkdosfs -F 16 
> /dev/tffsa1), Now there is a disk driver appear, but it is write-protect. 
> But I could mount as vfat to read/write file on it.
> There remains several problems(insmod g_file_storage.o file=/dev/tffsa)
>    1) it is write-protect, printk shows open_backing_file set ro=1 as 
> checking IS_RDONLY(inode) is true, Is it because of ill use of fdisk and 
> mkdosfs?

No, your use of fdisk and mkdosfs is correct.  Did you check the 
permissions on /dev/tffsa (ls -l /dev/tffsa)?  Maybe you don't have write 
permission.

Did you have it mounted when you loaded g-file-storage?  That might cause 
a problem.

>    2) I can't see the file on the disk file. But I could see the files by 
> mount it on /truefs/, and could r/w file on it. Is the problem of 
> mkdosfs(v2.8)? or there is some issue with pxa271 driver.

I don't think there's any problem with mkdosfs.  Maybe there is an issue 
with the pxa271 driver.  Do you see any error messages in the dmesg log?  
Have you tried turning on debugging in the g-file-storage driver?  (Change 
the line that says "#undef DEBUG" to "#define DEBUG".)

Alan Stern



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to