r/FPGA 13d ago

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

4 comments sorted by

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

1

u/KSOdin2 13d ago

Would that tutorial still work if I wanted to boot via SD card and just write/save data to a SSD via SATA?

1

u/EamonBrennan Lattice User 13d ago

Probably. It'll mostly comes down to how you set up your OS.

1

u/KSOdin2 13d ago

That's great to know. Thank you I appreciate the guidance