--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAF%2BMRtnD2qk7RHc6rxzuX9DRT0kNE30-kO1vKRBAzw%3D%2B-FZ6yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
| int ret = 0; | |
| struct mmc_ioc_cmd idata; | |
| memset(&idata, 0, sizeof(idata)); | |
| memset(ext_csd, 0, sizeof(__u8) * 512); | |
| idata.write_flag = 0; | |
| idata.opcode = MMC_SEND_EXT_CSD; | |
| idata.arg = 0; | |
| idata.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_ADTC; | |
| idata.blksz = 512; | |
| idata.blocks = 1; | |
| mmc_ioc_cmd_set_data(idata, ext_csd); |
SMART protocol is defined for ATA interface, and it is translated over USB interface by most but not all USB-ATA bridges. I have never seen it implemented for SD cards. Historically, it makes sense: SD card firmware is just a tiny block management layer, although of course there's no fundamental reason why it couldn't be expanded to provide some of the internal information via SMART---but it has never been done AFAIK.On Tue, May 30, 2017 at 8:17 AM, Micka <micka...@gmail.com> wrote:
Hi,I wanted to know if someone successfully used the command smartctl with the sd card ?It could be so usefull to know the state of the sdcard, the remaining life, etc !
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAF%2BMRtnD2qk7RHc6rxzuX9DRT0kNE30-kO1vKRBAzw%3D%2B-FZ6yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAC%3D1GgHV050he1CYE2mJ%3D3KHgyPpLez8-Z%3Dn_TFgD8xVR4KK6w%40mail.gmail.com.
I'm able with the PC to use the command smartctl to get info on my SDCard with the protocol SMART.
I found a lot of subject on this topic, and I'm working on this piece of code for the moment:
int ret = 0; struct mmc_ioc_cmd idata; memset(&idata, 0, sizeof(idata)); memset(ext_csd, 0, sizeof(__u8) * 512); idata.write_flag = 0; idata.opcode = MMC_SEND_EXT_CSD; idata.arg = 0; idata.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_ADTC; idata.blksz = 512; idata.blocks = 1; mmc_ioc_cmd_set_data(idata, ext_csd); But no result for the moment!
Le mar. 30 mai 2017 à 15:49, Przemek Klosowski <przemek....@gmail.com> a écrit :
SMART protocol is defined for ATA interface, and it is translated over USB interface by most but not all USB-ATA bridges. I have never seen it implemented for SD cards. Historically, it makes sense: SD card firmware is just a tiny block management layer, although of course there's no fundamental reason why it couldn't be expanded to provide some of the internal information via SMART---but it has never been done AFAIK.On Tue, May 30, 2017 at 8:17 AM, Micka <micka...@gmail.com> wrote:
Hi,I wanted to know if someone successfully used the command smartctl with the sd card ?It could be so usefull to know the state of the sdcard, the remaining life, etc !
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAF%2BMRtnD2qk7RHc6rxzuX9DRT0kNE30-kO1vKRBAzw%3D%2B-FZ6yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAC%3D1GgHV050he1CYE2mJ%3D3KHgyPpLez8-Z%3Dn_TFgD8xVR4KK6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAF%2BMRtm7eBZTajzhdFcT_32h7r%2Bq9kEYKehk23gcCs8HB5PsEg%40mail.gmail.com.