Can't mount flashed partition on Total5200

Hello,

I’ve created a binary using mkefs of my application which I then flashed to
the Total5200 using the dBug monitor. However, I can’t find the right
combination of tools to use to actually mount the efs and run the app from
it. At the top of my app build file is:

[block_size=256k spare_blocks=1 mount=/demo min_size=5120K max_size=10240K
filter=“deflate -b8 -t2” perms=+r,+w,+x]

and the rest just contains the application and a couple scripts.

I then modified the portion of the startup .script that runs the inflator to
include /demo

/proc/boot/inflator -b8 !/sbin !/usr/lib /bin /usr/photon /demo /

Now when I restart, I see another flash partition that was not there before
(/dev/fs0p1 in my case), but there are no files under /demo. If I then try
to use flashctl, I get the following result:

flashctl -vvvv -p /dev/fs0p1 -n/demo -m

Mounting device /dev/fs0p1 at /demo
DCMD_F3S_MOUNT failed (errno 2)
flashctl: mounting partition failed

I’m sure I’m missing something basic here, I just haven’t found it in the
docs yet. Thanks in advance for any help,

Todd Malsbary
Software Engineer
Open Interface

Hi Todd,

I’d first try removing deflator / inflator from the equation, to see if
that’s what’s causing your problem. The other thing to check is that you’ve
placed the EFS partition on a block size boundary in the flash (at an address
which is some multiple of 256k). Finally, what is the command line you are
using to start the flash driver?

Dave

Todd Malsbary <todd.malsbary@openinterface.com> wrote:

Hello,

I’ve created a binary using mkefs of my application which I then flashed to
the Total5200 using the dBug monitor. However, I can’t find the right
combination of tools to use to actually mount the efs and run the app from
it. At the top of my app build file is:

[block_size=256k spare_blocks=1 mount=/demo min_size=5120K max_size=10240K
filter=“deflate -b8 -t2” perms=+r,+w,+x]

and the rest just contains the application and a couple scripts.

I then modified the portion of the startup .script that runs the inflator to
include /demo

/proc/boot/inflator -b8 !/sbin !/usr/lib /bin /usr/photon /demo /

Now when I restart, I see another flash partition that was not there before
(/dev/fs0p1 in my case), but there are no files under /demo. If I then try
to use flashctl, I get the following result:

flashctl -vvvv -p /dev/fs0p1 -n/demo -m

Mounting device /dev/fs0p1 at /demo
DCMD_F3S_MOUNT failed (errno 2)
flashctl: mounting partition failed

I’m sure I’m missing something basic here, I just haven’t found it in the
docs yet. Thanks in advance for any help,

Todd Malsbary
Software Engineer
Open Interface

David Green (dgreen@qnx.com)
QNX Software Systems Ltd.
http://www.qnx.com