rfsweitzer Posted August 14, 2018 Share Posted August 14, 2018 I have the Zedboard with Zynq Linux. It has an OTG USB driver in /dev/. Do you have example C code I can see to open, read and write to the USB driver? What header files are needed? I'm using the Xilinx SDK. Thanks Ralph Link to comment Share on other sites More sharing options...
jpeyron Posted August 20, 2018 Share Posted August 20, 2018 Hi @rfsweitzer, I have moved your thread to a sub-section where more experienced embedded linux engineers look. I have also reached out to a more experienced embedded linux engineer to see if they have some additional input for this thread. thank you, Jon Link to comment Share on other sites More sharing options...
sbobrowicz Posted August 23, 2018 Share Posted August 23, 2018 @rfsweitzer Sorry for the delay. Unfortunately we don't have anything specifically for what you are asking, so all I can do is point you to some resources that should help out. First, I recommend starting with the 2018.2 Zedboard BSP from Xilinx (you can also check Zedboard.org for one). Then you can follow UG1144 from Xilinx to learn how to build in any libraries that you may need (petalinux-config -c rootfs) and USB gadget drivers you may need (petalinux-config -c kernel), and finally how to build your sysroot and setup Xilinx SDK so that it will properly link in the libraries you've included in your rootfs. The final step will allow you to use Xilinx SDK as a nice IDE for writing you application, you could also skip it and just write it using a text editor, and then build it into your system as a Petalinux app (see UG1144). As for info on writing a USB-OTG application, you should just search around the internet for how to do this on any embedded linux platform. You should be able to find some resources out there (it is not really important what platform you are on). Link to comment Share on other sites More sharing options...
Question
rfsweitzer
I have the Zedboard with Zynq Linux. It has an OTG USB driver in /dev/.
Do you have example C code I can see to open, read and write to the USB driver?
What header files are needed? I'm using the Xilinx SDK.
Thanks
Ralph
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.