This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to Send ATA Command?

I am working with a custom board that has a TI 1808 ARM 9 processor running the base version of ARAGO.  We have integrated a Silicon Motion SM631x SATA solid state drive (SSD) on board and all works great.  One of our customers is asking if we can offer an option to "sanitize" the drive.  Now after performing some research, sanitizing a SSD drive is different than sanitizing a legacy platter drive.  Silicon Motion actually has a feature built in that exposes an ATA command  "Security Erase Unit" which will force the drive back to factory defaults and zeroes out all memory locations.  Typically (from what I see) the utility program "hdparm" which is available in mainstream Linux provides the means by which you can send specific ATA commands.  Unfortunately, this is not found in ARAGO distribution.  I have looked at the git site to see if the DEMO version provides this utility and it is missing from there as well.  Does anyone have any ideas on how I can make ATA command calls from within the Embedded Linux of ARAGO?  I am running ti-sdk-am180x-evm-05.02.00.00  and linux-2.6.37-psp03.21.00.04.sdk.  Thx!

  • OK - I found that hdparm is offered under SourceForge.  I downloaded the latest code available, modified the make file to use my cross compiler, updated my RamDisk, flashed the new RamDisk and then tried running the hdparm utility in my embedded environment and it appears to work!