UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 33075

12.1 EDK - Mfsgen errors generating large image files

Description

Running mfsgen on larger images might result in errors if not enough blocks are specified via the -b switch:

In 12.2:
< input file name > ERROR:EDK:3823 - error writing mfs file

In 12.1 and 11.x tools:
< input file name > ERROR:EDK:3170 - error writing mfs file

If the -b switch is not specified, the default of 5000 blocks are used. The block size is 532.

Also, if you increase the number or size of files for the image, the old setting might not be enough. For example, XAPP1026 directs you to run this command:
mfsgen -cvbfs ../image.mfs 1500 *

However, the input files may change with the updated examples such that 1500 is no longer enough blocks.

Solution

If the total size of your input files is larger than 5000 532 blocks or has increased beyond what the -b option previously specified, you will need to increase the -b to match or surpass the total size needed.

An easy way to determine the size needed is to run the du command. (Windows users can run this from an EDK Shell):
du --total --block-size=512 < input files >

(Use a slightly smaller block size such as 512 to compensate for MFS overhead.)

For example:
du --total --block-size=532 *

$ du -all --total --block-size=512 *
8 css/main.css
8 css/
8 index.html
16 total

$ mfsgen -cvbfs image.mfs 16 *
mfsgen
Xilinx EDK 12.2 EDK_MS2.63c
Copyright (c) 2004 Xilinx, Inc. All rights reserved.

css:
main.css 744
index.html 2966
MFS block usage (used / free / total) = 10 / 6 / 16
Size of memory is 8512 bytes
Block size is 532
mfsgen done!

Then if you want to minimal size it can be found by the usage line. To continue the example:
$ mfsgen -cvbfs image.mfs 10 *
mfsgen
Xilinx EDK 12.2 EDK_MS2.63c
Copyright (c) 2004 Xilinx, Inc. All rights reserved.

css:
main.css 744
index.html 2966
MFS block usage (used / free / total) = 10 / 0 / 10
Size of memory is 5320 bytes
Block size is 532
mfsgen done!

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
34609 12.x EDK - Master Answer Record List N/A N/A
AR# 33075
Date Created 07/09/2009
Last Updated 12/15/2012
Status Active
Type General Article
Tools
  • EDK - 11.1
  • EDK - 11.2
  • EDK - 11.3
  • More
  • EDK - 11.4
  • EDK - 11.5
  • EDK - 12.1
  • EDK - 12.2
  • EDK - 12.3
  • Less