how to update mounted sd card file directory in Linux ?
Hi Linux,
I am working on zynq AMP project (linux on cpu0 + bare metal app on cpu1).
bare-metal app on cpu1 realizes shell utilities (ls / rm / cat / write file / pwd) for sd card.
Linux on cpu0 can also mount sd card with
# mount /dev/mmcblk0p1 /mnt/
# ls /mnt
However, the new file created by cpu1 does not show in linux on cpu0.
For example, there are 7 files on sd card. After system boot up, cpu1 creates 1 new file (i.e., name aaaa.1234), then "ls" on cpu1 shows total 8 files. Then mount sd card in linux on cpu0, "ls" on cpu0 only shows original 7 files.
Further,I create a new file in linux on cpu0 (i.e., name bbbb.5678, then "ls" on cpu0 shows total 8 files). Then I try "ls" 10 more times on cpu1, which still shows total 8 files, but aaaa.1234 has been replaced by bbbb.5678> In other words, cpu1 has updated file directory and synchronized to cpu0, though aaaa.1234 lost.
My question is how to force linux on cpu0 update file directory and synchronized to cpu1 to show aaaa.1234 created by cpu1.
Please advise, thanks in advance.
Mike
Last edited by exds75; 08-21-2019 at 05:37 AM.
Reason: missed portion
|