[Yaffs-archive] Odd behaviour

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nick Bane
Date:  
To: yaffs list
Subject: [Yaffs-archive] Odd behaviour
I mount a yaffs partition as /mnt/yaffs with no ecc on the yaffs partition.
I copy an executable oob_read to it. It has the same length as the original.
I unmount and remount the partition.
This results in two copies of oob_read of the same length being "ls-al"d.
I copy /mnt/yaffs/oob_read as oob_read.yaffs back to the jffs2 partition.

oob_read and oob_read.yaffs on the jffs2 partition give the same "usage:
./oob_read <mtdname> <oob index>" message.
/mnt/yaffs/oob_read gives "/mnt/yaffs/oob_read: 1: Syntax error: word
unexpected (expecting")")".

I didn't expect that executing and copying would extract a different
datastream. Perhaps this is linked with the double entry somehow.

Interestingly, another copy of oob_read from jffs2 to
/mnt/yaffs/oob_read.jffs2 and executing it on yaffs gives the syntax error
result again; no remount so only one entry. Copying it back yo jffs2 and
executing it gave the "usage" message.

A trawl with google suggests that this can happen when the executable is run
as a shell script.
Running file on /mnt/yaffs/oob_read suggests that it is data but this is
also true of /bin/tar so .....
Any suggestions?

Nick Bane



---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to with the text "unsubscribe"
(without the quotes) as the subject.