Guest
hi joey,
Xilinx EDK 7.1.2 EDK_H.12.5.1
Copyright (c) 2004 Xilinx, Inc. All rights reserved.
mnt:
des.mnt 3072
src.mnt 3072
MFS block usage (used / free / total) = 14 / 16 / 30
Size of memory is 15960 bytes
Block size is 532
mfsgen done!
then created the imagefile as below
$ mfsgen -cvbfs dummy.mfs 30 mnt
mfsgen
Xilinx EDK 7.1.2 EDK_H.12.5.1
Copyright (c) 2004 Xilinx, Inc. All rights reserved.
mnt:
dow.txt 35
MFS block usage (used / free / total) = 3 / 27 / 30
Size of memory is 15960 bytes
Block size is 532
mfsgen done!
and then downloaded the image
dow -data dummy.mfs 0x22000000
and then read back the value at 0x22000000 thru XMD as below
XMD% mrd 0x22000000 35 b
22000000: 4D M
22000001: 46 F
22000002: 53 S
22000003: 32 2
22000004: 00
22000005: 00
22000006: 00
22000007: 00
22000008: 02 âť
22000009: 00
2200000A: 00
2200000B: 00
2200000C: 00
2200000D: 00
2200000E: 00
2200000F: 00
22000010: 00
22000011: 00
22000012: 00
22000013: 00
22000014: 00
22000015: 00
22000016: 00
22000017: 00
22000018: 03 âĽ
22000019: 00
2200001A: 00
2200001B: 00
2200001C: 2E .
2200001D: 2E .
2200001E: 00
2200001F: 00
22000020: 00
22000021: 00
22000022: 00
the contents doesn't map to the contents of the file dow.txt
thanx for your patience and help.
Rajashekar
Joseph wrote:
When you say "when i try to open the file i am not able to", what
happens?
the function returns -1 indicating failure to open the file.
How are you opening the files?
using the mfs_file_open("src.mnt", MFS_MODE_READ);
mfsgenWhat flags are you using to generate image.mfs?
$ mfsgen -cvbfs imagemnt.mfs 30 mnt
Xilinx EDK 7.1.2 EDK_H.12.5.1
Copyright (c) 2004 Xilinx, Inc. All rights reserved.
mnt:
des.mnt 3072
src.mnt 3072
MFS block usage (used / free / total) = 14 / 16 / 30
Size of memory is 15960 bytes
Block size is 532
mfsgen done!
Are you using a PPC or microblaze?
PPC
One more thing to try is sticking a small (few chars) txt file in your
file system and see if you can peek at it with XMD to see the correct
values.
created dow.txt with the content "dow TestApp_Memory/executable.elf"
then created the imagefile as below
$ mfsgen -cvbfs dummy.mfs 30 mnt
mfsgen
Xilinx EDK 7.1.2 EDK_H.12.5.1
Copyright (c) 2004 Xilinx, Inc. All rights reserved.
mnt:
dow.txt 35
MFS block usage (used / free / total) = 3 / 27 / 30
Size of memory is 15960 bytes
Block size is 532
mfsgen done!
and then downloaded the image
dow -data dummy.mfs 0x22000000
and then read back the value at 0x22000000 thru XMD as below
XMD% mrd 0x22000000 35 b
22000000: 4D M
22000001: 46 F
22000002: 53 S
22000003: 32 2
22000004: 00
22000005: 00
22000006: 00
22000007: 00
22000008: 02 âť
22000009: 00
2200000A: 00
2200000B: 00
2200000C: 00
2200000D: 00
2200000E: 00
2200000F: 00
22000010: 00
22000011: 00
22000012: 00
22000013: 00
22000014: 00
22000015: 00
22000016: 00
22000017: 00
22000018: 03 âĽ
22000019: 00
2200001A: 00
2200001B: 00
2200001C: 2E .
2200001D: 2E .
2200001E: 00
2200001F: 00
22000020: 00
22000021: 00
22000022: 00
the contents doesn't map to the contents of the file dow.txt
thanx for your patience and help.
Rajashekar
Joseph wrote:
When you say "when i try to open the file i am not able to", what
happens? How are you opening the files? What flags are you using to
generate image.mfs? It may be necessary to use the -s flag (see Answer
Record:19867 on the xilinx site). That flag switches the endianess.
Are you using a PPC or microblaze? My only experience is with the PPC.
One more thing to try is sticking a small (few chars) txt file in your
file system and see if you can peek at it with XMD to see the correct
values.
Let me know how it goes... I know it took me a while to get my file
system working like I wanted it to.
Joey