hengzhao Posted May 8, 2018 Posted May 8, 2018 Where should I put the file when I try to read the file as a argv? For example, if I want to read file XXX.cfg, where should I put the file? The same directory as the elf file?
jpeyron Posted May 11, 2018 Posted May 11, 2018 Hi @hengzhao, We have reached out to a more experienced embedded linux engineer about your thread. They should hopefully respond in the next few days. thank you, Jon
sbobrowicz Posted May 15, 2018 Posted May 15, 2018 Are you talking about a Linux or baremetal Xilinx SDK application? Typically how that works in Linux is that you are just passing the location of the file as a command line argument, so it doesn't really matter where it is as long as you provide the correct location. On Zynq systems, I would typically do this by putting both files on the FAT partition of the SD card, and running something like: mount /dev/mmcblk0p1 /mnt cd /mnt ./myelf.elf "./myconfig.cfg"
Question
hengzhao
Where should I put the file when I try to read the file as a argv? For example, if I want to read file XXX.cfg, where should I put the file? The same directory as the elf file?
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.