Missing directory attributes after mkefs to create embedded

I use “mkefs -v file.build file.image” to build my image from my buildfile.
After installing to the flash, all of the directories are missing attributes
in the flash. The files appear to maintain the correct attributes.

Here is an example output of “ls -l” of the / directory:

total 13
drwxrwxr-x 12 root root 456 Jan 01 1970 .cmp
d--------- 2 root root 196 Aug 20 2002 .ica
d--------- 6 root root 364 Aug 20 2002 .ph
d--------- 2 root root 1100 Aug 19 2002 bin
d--------- 5 root root 768 Aug 20 2002 etc
d--------- 2 root root 0 Jan 01 00:32 fs
d--------- 3 root root 44 Jan 01 00:28 home
d--------- 3 root root 472 Aug 14 2002 lib
d--------- 2 root root 460 Aug 13 2002 sbin
lrwxrwxrwx 1 root root 10 Jan 01 1970 tmp → /dev/shmem
d--------- 6 root root 168 Aug 13 2002 usr


Here is my buildfile contents:

[filter=“flashcmp -t ucl” block_size=128k spare_blocks=1 min_size=16121856
max_size=16121856]
…/root_dir


TIA

This is a known bug and will be corrected in the next reelase. Unfortunatly
there is no good work around.

chris


WLWT <nospam@nospam.com> wrote:

I use “mkefs -v file.build file.image” to build my image from my buildfile.
After installing to the flash, all of the directories are missing attributes
in the flash. The files appear to maintain the correct attributes.

Here is an example output of “ls -l” of the / directory:

total 13
drwxrwxr-x 12 root root 456 Jan 01 1970 .cmp
d--------- 2 root root 196 Aug 20 2002 .ica
d--------- 6 root root 364 Aug 20 2002 .ph
d--------- 2 root root 1100 Aug 19 2002 bin
d--------- 5 root root 768 Aug 20 2002 etc
d--------- 2 root root 0 Jan 01 00:32 fs
d--------- 3 root root 44 Jan 01 00:28 home
d--------- 3 root root 472 Aug 14 2002 lib
d--------- 2 root root 460 Aug 13 2002 sbin
lrwxrwxrwx 1 root root 10 Jan 01 1970 tmp → /dev/shmem
d--------- 6 root root 168 Aug 13 2002 usr


Here is my buildfile contents:

[filter=“flashcmp -t ucl” block_size=128k spare_blocks=1 min_size=16121856
max_size=16121856]
./root_dir


TIA
\


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

“Chris McKillop” <cdm@qnx.com> wrote in message
news:alm271$ntg$1@nntp.qnx.com

This is a known bug and will be corrected in the next reelase.
Unfortunatly
there is no good work around.

Actually, he MIGHT be able to work around it by specifying [dperms=0755]
before he includes the ./root_dir. Give it a try and let me know - I’m not
sure if the dirs underneath will inherit that permission or not.

cheers,

Kris

chris


WLWT <> nospam@nospam.com> > wrote:
I use “mkefs -v file.build file.image” to build my image from my
buildfile.
After installing to the flash, all of the directories are missing
attributes
in the flash. The files appear to maintain the correct attributes.

Here is an example output of “ls -l” of the / directory:

total 13
drwxrwxr-x 12 root root 456 Jan 01 1970 .cmp
d--------- 2 root root 196 Aug 20 2002 .ica
d--------- 6 root root 364 Aug 20 2002 .ph
d--------- 2 root root 1100 Aug 19 2002 bin
d--------- 5 root root 768 Aug 20 2002 etc
d--------- 2 root root 0 Jan 01 00:32 fs
d--------- 3 root root 44 Jan 01 00:28 home
d--------- 3 root root 472 Aug 14 2002 lib
d--------- 2 root root 460 Aug 13 2002 sbin
lrwxrwxrwx 1 root root 10 Jan 01 1970 tmp -
/dev/shmem
d--------- 6 root root 168 Aug 13 2002 usr


Here is my buildfile contents:

[filter=“flashcmp -t ucl” block_size=128k spare_blocks=1
min_size=16121856
max_size=16121856]
./root_dir


TIA



\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Actually, he MIGHT be able to work around it by specifying [dperms=0755]
before he includes the ./root_dir. Give it a try and let me know - I’m
not
sure if the dirs underneath will inherit that permission or not.

Yes, this works! I don’t see dperms in the mkefs utility reference
document.
Thanks!

WLWT <nospam@nospam.com> wrote:

Actually, he MIGHT be able to work around it by specifying [dperms=0755]
before he includes the ./root_dir. Give it a try and let me know - I’m
not
sure if the dirs underneath will inherit that permission or not.

Yes, this works! I don’t see dperms in the mkefs utility reference

That is why I didn’t want to mention it, since it wasn’t documented and
it’s behaviour may not stay the same between 6.2.0 and 6.2.1.

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

And you want to know the really ironic part? It was the introduction of the
dperms attribute that cause the regression to directory permissions in the
first place!!! :wink: It’s since been fixed but it’s funny when the problem
and solution are the same.

cheers,

Kris

“Chris McKillop” <cdm@qnx.com> wrote in message
news:alpb2o$p0o$2@nntp.qnx.com

WLWT <> nospam@nospam.com> > wrote:
Actually, he MIGHT be able to work around it by specifying
[dperms=0755]
before he includes the ./root_dir. Give it a try and let me know - I’m
not
sure if the dirs underneath will inherit that permission or not.

Yes, this works! I don’t see dperms in the mkefs utility reference


That is why I didn’t want to mention it, since it wasn’t documented and
it’s behaviour may not stay the same between 6.2.0 and 6.2.1.

chris

\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/