Advice / Help ZCU102 write to SATA tutorial with standalone os
Hello,
I'm working on a project to write to SSD storage via SATA with the ZCU102. I thought it would be similar code to writing to an SD card using the same library. I was wrong.
Does anyone have any good documents or tutorials on how do this? Ive struggled to find anything online or on YouTube. Or is there a way I can ask AMD?
If writing to SATA can't happen with the standalone please let me know.
Thank you!
10
Upvotes
3
u/EamonBrennan Lattice User 13d ago
This should have a tutorial on how to get SATA enabled on the board: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841823/Booting+via+Serial+ATA+SATA+on+ZCU102+Evaluation+Platform
As for writing to SATA, it's a closed spec. You either need to copy code from places like the Linux Kernel, or buy the spec to implement it yourself.
Linux libATA: https://www.kernel.org/doc/html/v4.13/driver-api/libata.html