Hi !
I have a flock of TS-7260 in applications where the end user must swap
SDcards.
My program mounts and dismounts the card each time it writes something
on it (which happens rarely).
My os is the Linux that came with the boards. No modifications to the
os/kernel/modules/devices.
I have noticed those eccentric behaviours:
=>Test Setup: TS-7260 with a Lexar 1GB present at boot
-Mounting /dev/sdcard0/disc0/part1 works
-Unmounting works too
=>Remove the card, while it is unmounted
-Mounting /dev/sdcard0/disc0/part1 crash with a segfault
=>Put the card back in
-Mounting /dev/sdcard0/disc0/part1 crash with a segfault
-rmmod sdcard
-insmod sdcard
-Mounting /dev/sdcard0/disc0/part1 now works again
-unmount works
=>Remove the card, put it back in
-mount and unmount works
=>Change the card for another card of same brand and model
-Mount works
-Unmount works
=>Change the card for another card of ANOTHER brand and model
-Mount does not work
-rmmod sdcard
-insmod sdcard
-mount works
=====
Now, in my code, I can simply mount and if failed rmmod/insmod to
reset the module, but when it segfaults it crashes the whole deal.
Now, is there a software way to check if the card is present or not?
If so, how?
If not, how can I prevent the segfaults from a user just "pulling the
card"?
-Jay
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|