-
Notifications
You must be signed in to change notification settings - Fork 181
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
udev access to SD card after using USBStorageDriver.write_image() #1539
Comments
I wonder if this depends on the SD card or the SDMux. This should be fixed either in kernel (which shouldn't make the device available to userspace before it is usable) or the hardware itself if this is a hardware issue. |
As this are only read requests, it might be partition uuid probing from userspace? With Is there a further issue beyond these messages appearing in the kernel log? |
I am sorry for the late reply.
I was able to reproduce the same error on a different exporter with a different SDMux and SD card (but same model).
I have problems interpreting the output generated by blktrace. What exactly should I look out for? This are the generated files:
No. The messages in the kenel log are the only issues I have observed so far. |
No problem. Everyone is busy. :)
OK, this would be consistent with a software cause.
For context: which blktrace commandline did you use?
OK. I'm not sure how soon we can find time to look at the trace. |
To record the data I used the command: |
If I set the mode of a SDMux from “host” to “dut” directly after using the write_image() method of labgrid.driver.usbsdmuxdriver, I get the following error message in dmesg:
When investigating the cause of the error, I noticed that after write_image() the SD card is idle for approx. 100ms before it is used by udev for approx. 200ms. After that the SD card remains idle.
What is the recommended procedure to ensure that after executing write_image() the SD card is no longer used and it is safe to set the mode of the SDMux from "host" to "dut"?
The text was updated successfully, but these errors were encountered: