Mike Kadour <mjkadour@uwaterloo.ca> wrote:
dgreen@qnx.com > wrote:
Mike Kadour <> mjkadour@uwaterloo.ca> > wrote:
Yes, this is possible, but based on quick tests using devf-ram, I think
you
need to specify: min_size=12M max_size=12M in your efs.build file.
Hoever,
even with the min_size=4M that you previously had, you should still have
been
able to copy files to the flash filesystem up to the 4M point…
but I can’t… that was my original concern > > With 2.5Mb of files and a
min_size=4M, I still get “disk full” when I copy new files.
Mike
Hmmm… not sure what’s happening here. Can you replicate the scenario
using devf-ram, just for kicks?
efs.build (block size for devf-ram = 64k)
[block_size=64k spare_blocks=1 mount=/flash min_size=4m max_size=12m]
./root
cd root
touch file
mkrec -r -ffull -s2560k file > 2.5m_file
rm file
ls -l
-rw-rw-r-- 1 dgreen 120 2621440 Nov 28 08:53 2.5m_file
cd …
mkefs efs.build efs.image
ls -l efs.image
-rw-rw-r-- 1 dgreen 120 4194304 Nov 28 08:53 efs.image
devf-ram -s0,4M
cp -V efs.image /dev/fs0
ls -l /flash
total 5120
-rw-rw-r-- 1 dgreen 120 2621440 Nov 28 08:53 2.5m_file
touch file
mkrec -r -ffull -s1M file > 1m_file
cp 1m_file /flash
cp: Ran out of disk space writing /flash/1m_file.
This is exactly the same symptoms as on my embedded system.
If this works for you with devf-ram, then for the flash driver,
next I’d try removing the mount=/flash from your efs.build file, and
just use the default mount point of /fs0p0.
You could also try changing max_size from 12M to 4M. Beyond that, I’m not
sure what the problem might be…
By the way, are you using devf-generic, or a custom flash driver? What’s
the output of devf-* -vvvvv ?
devf-sa1110-db
I’ll get the verbose output and post it here also. Did the above
actually work for your devf-ram ?
Yes, I was able to create the 4M efs with an existing 2.5M file in
it, start devf-ram, copy the efs over to it, and then copy another
1M file to the filesystem, without problems.
Cheers,
Mike
–
David Green (dgreen@qnx.com)
QNX Software Systems Ltd.
http://www.qnx.com