hengzhao Posted May 8, 2018 Share 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? Link to comment Share on other sites More sharing options...
jpeyron Posted May 11, 2018 Share 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 Link to comment Share on other sites More sharing options...
sbobrowicz Posted May 15, 2018 Share 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" Link to comment Share on other sites More sharing options...
hengzhao Posted May 29, 2018 Author Share Posted May 29, 2018 Thanks a lot. It could work. Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.