Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Scenario: Add data on SD card from Phone (Click images and save to Card). Access the Card on PC through the Phone the images are not seen. However the images are seen on Phone.
Only after removing the Card and reinserting it in the Phone are the Images seen on the PC. Or rmmoding and modprobing the MMC driver they are visible.
Can anyone help me narrow down on the root cause of this issue?
Any pointers will be much appreciated.
Regards,
Sanrio
What phone? Are you mounting the SD card using the phone's capabilities, or taking it out of the phone and using a separate SD card reader? If you can't see the files in the latter case then something weird is happening (like an encrypted loopback volume perhaps).
Its a phone running Linux kernel(2.6.31). SD card is mounted using the phone's capabilities. I have tested the same scenario using Card reader too. the images are seen properly. here are the steps
1. insert card in phone.
2. add images to it.
3. access card (thru phone) on PC -> no images seen (Not always but mostly. especially when more than 3 images added at one time)
4. umount card from phone and access through Card Reader -> images are seen properly
5. reinsert card in phone
6. access card on PC -> images are seen
Does it look like a MMC driver issue? or a USB Mass Storage one? It could also be a media scanning (service) problem. Im unable to narrow down on this..
One more observation: The above scenario of adding multiple images on card and accessing it on PC works fine the first time it is accessed on PC. Only subsequent additions to SD card give this issue.
Intuitively, this looks like another process locking the image files and making them unreadable - or - something on the phone acting as a file server and filtering what can be seen. But neither of these make sense in the context of a USB slave device. (Software on the phone should not be able to access the card at the same time.)
I think it might be related to the MMC driver, yes.
How are you viewing the card? With a file manager app I guess?
Can you see the files with ls -a at the command line?
If you unmount and remount the volume at the command line, do they become visible again?
When images are added on the card the phone shows the images properly. Accesing the sdcard through command line (via jtag) also shows the images properly.
Unmounting and remounting the card through command line the PC will NOT show the images. only physically reinserting the card in the phone will show the images on the PC.
Are you saying the usb mass storage driver is not the problem here?
yes yes i appreciate that. thank you. Im only worried cos after doing multiple tests im still not able to blame a particular module. for eg. MMC driver/USB Mass storage or any other module for that matter. Since it would help me focus on one thing.
Just for my knowledge, are MMC driver, USB Mass Storage and Media scanner service the only modules to be investigated for this problem? or am i missing something here..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.