-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unmounting/mounting SD card while running causes driver panic #12
Comments
Do you mean any software unmount and re-mount or do you mean that the card is removed physically and re-inserted? In the second case: There is a detect pin on the SD card socket but it is currently not used in the software. So the driver doesn't know anything about the unmount and remount. Theoretically it might would be possible to do an unmount if someone removes the SD and do a new mount if it is inserted again. I didn't expect that this would be a normal use case on an embedded system. |
It's a physical remove and reinsert. So if I understand it correctly, we would need an interrupt for the SD card pin and probably handle this in the Erlang VM? @peerst Do we need a special driver for this? |
That has nothing to do with Erlang. I totally get that after removing/reinserting the card a following read/write could error out. The keyword here is could ... not should always. As a error having the whole system crash with a BSD panic is certainly suboptimal behavior. Ideal would be behavior like in e.g. a Mac: Removing the card causes a That would make it possible to take the card out replace some compiled Erlang files and reload them, that would be a nice to have feature |
I think this possibly works now? I haven't seen this problem lately... can anyone confirm? |
Ok, unmounting works without panics. Re-mounting breaks:
|
I don't think that this will be anytime supported soon. Can this be closed @eproxus ? |
Why would you want to close a unfixed problem? First we need a decision that we won't fix it. Currently its unclear to me what needs to be done. Actually its unclear if there is still a problem. Are the Erlang errors really a indication that the remount failed? Or is Erlang using a still open file-descriptor? If the remount failed, why? |
If the SD card is unmount and re-mounted while the system is running, and one tries to read a file, the following panic occurs:
The text was updated successfully, but these errors were encountered: