ts-7000
[Top] [All Lists]

[ts-7000] TS-7260 and it's SDCARD module, segfault on invalid mounts

To:
Subject: [ts-7000] TS-7260 and it's SDCARD module, segfault on invalid mounts
From: "jaylimo84" <>
Date: Thu, 07 Aug 2008 13:47:48 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU