* symlink corruption in jffs2
@ 2005-02-17 20:25 Joe Barnett
2005-02-18 8:05 ` Artem B. Bityuckiy
2005-02-18 14:06 ` Estelle HAMMACHE
0 siblings, 2 replies; 4+ messages in thread
From: Joe Barnett @ 2005-02-17 20:25 UTC (permalink / raw)
To: linux-mtd
I am trying to put a jffs2 filesystem down on a G5 ppc64 system. I can
build the filesystem fine, and get it into flash, mount it ect. The
problem I am finding is that a large number of the symbolic links are
corrupt. The file pointed to has garbage appended to the name (see
below). If I try to create a new symlink, it also gets corrupted. I
have turned on JFFS2 debug to level 3 and am still unable to locate
the source of the issue... I am using the following options when I
run mkfs.jffs2:
mkfs.jffs2 -o myflashfs.img -d myroot -e 20000
I am using Common Intel StrataFlash, which I have confirmed that
driver is functional, as I can read and write large file to and from
the flash fine, so it isn't in the driver. Has anyone seen this issue
before or does anyone have an idea of what may be causing this? I did
see Any help would be greatly appreciated.
Kind regards,
Joseph Barnett
SYM LINK CORRUPTION:
:/flash/lib# ls -l
total 4934
drwxr-xr-x 2 500 500 0 Sep 10 2004 init
-rwxr-xr-x 1 root root 94420 Oct 14 2004 ld-2.3.2.so
lrwxrwxrwx 1 root root 11 Feb 17 2005 ld.so.1 -> ld-2.3.2.so?10
-rw-r--r-- 1 root root 4832 Oct 14 2004 libBrokenLocale-2.3.2.so
lrwxrwxrwx 1 root root 24 Feb 17 2005 libBrokenLocale.so.1 ->
libBrokenLocale-2.3.2.so
-rw-r--r-- 1 root root 14636 Oct 14 2004 libSegFault.so
lrwxrwxrwx 1 root root 15 Feb 17 2005 libacl.so.1 -> libacl.so.1.1.0?.3
-rw-r--r-- 1 root root 31124 Feb 3 2004 libacl.so.1.1.0
-rw-r--r-- 1 root root 11384 Oct 14 2004 libanl-2.3.2.so
lrwxrwxrwx 1 root root 15 Feb 17 2005 libanl.so.1 ->
libanl-2.3.2.so?.so?so
lrwxrwxrwx 1 root root 16 Feb 17 2005 libattr.so.1 -> libattr.so.1.1.0
-rw-r--r-- 1 root root 17216 Apr 28 2004 libattr.so.1.1.0
lrwxrwxrwx 1 root root 15 Feb 17 2005 libblkid.so.1 -> libblkid.so.1.0?3?
-rw-r--r-- 1 root root 31628 May 5 2004 libblkid.so.1.0
-rw-r--r-- 1 root root 1298544 Oct 14 2004 libc-2.3.2.so
lrwxrwxrwx 1 root root 13 Feb 17 2005 libc.so.6 -> libc-2.3.2.so?
lrwxrwxrwx 1 root root 14 Feb 17 2005 libcap.so.1 -> libcap.so.1.10
-rw-r--r-- 1 root root 19352 Apr 14 2004 libcap.so.1.10
lrwxrwxrwx 1 root root 17 Feb 17 2005 libcom_err.so.2 ->
libcom_err.so.2.1?
-rw-r--r-- 1 root root 11824 May 5 2004 libcom_err.so.2.1
-rw-r--r-- 1 root root 21104 Oct 14 2004 libcrypt-2.3.2.so
lrwxrwxrwx 1 root root 17 Feb 17 2005 libcrypt.so.1 ->
libcrypt-2.3.2.so?o?so
lrwxrwxrwx 1 root root 15 Feb 17 2005 libdb.so.2 ->
libdb1-2.2.5.so?.so?so
-rw-r--r-- 1 root root 280284 Jun 10 2004 libdb.so.3
-rw-r--r-- 1 root root 56140 Apr 12 2004 libdb1-2.2.5.so
lrwxrwxrwx 1 root root 15 Feb 17 2005 libdb1.so.2 ->
libdb1-2.2.5.so?.76?.so?
lrwxrwxrwx 1 root root 15 Feb 17 2005 libdb2.so.2 ->
libdb2.so.2.7.7?.76?.so?
-rw-r--r-- 1 root root 312572 Jun 10 2004 libdb2.so.2.7.7
-rw-r--r-- 1 root root 11252 Oct 14 2004 libdl-2.3.2.so
lrwxrwxrwx 1 root root 14 Feb 17 2005 libdl.so.2 -> libdl-2.3.2.so
lrwxrwxrwx 1 root root 13 Feb 17 2005 libe2p.so.2 -> libe2p.so.2.3?so
-rw-r--r-- 1 root root 24944 May 5 2004 libe2p.so.2.3
lrwxrwxrwx 1 root root 16 Feb 17 2005 libext2fs.so.2 -> libext2fs.so.2.4
-rw-r--r-- 1 root root 109108 May 5 2004 libext2fs.so.2.4
-rw-r--r-- 1 root root 56732 Sep 8 2004 libgcc_s.so.1
lrwxrwxrwx 1 root root 17 Feb 17 2005 libhistory.so.4 ->
libhistory.so.4.3?
-rw-r--r-- 1 root root 31468 Jun 13 2004 libhistory.so.4.3
-rw-r--r-- 1 root root 478124 Oct 14 2004 libm-2.3.2.so
lrwxrwxrwx 1 root root 13 Feb 17 2005 libm.so.6 ->
libm-2.3.2.so?.25.0?2-2.10.0.so?libbz2.so.1.0.2??xZZZZZZZZZZZZZZ
-rw-r--r-- 1 root root 18604 Oct 14 2004 libmemusage.so
lrwxrwxrwx 1 root root 17 Feb 17 2005 libncurses.so.5 ->
libncurses.so.5.4?
-rw-r--r-- 1 root root 291516 May 27 2004 libncurses.so.5.4
-rw-r--r-- 1 root root 78036 Oct 14 2004 libnsl-2.3.2.so
lrwxrwxrwx 1 root root 15 Feb 17 2005 libnsl.so.1 ->
libnsl-2.3.2.so?.so?2.so
-rw-r--r-- 1 root root 32224 Oct 14 2004 libnss_compat-2.3.2.so
lrwxrwxrwx 1 root root 22 Feb 17 2005 libnss_compat.so.2 ->
libnss_compat-2.3.2.so
-rw-r--r-- 1 root root 14488 Oct 14 2004 libnss_dns-2.3.2.so
lrwxrwxrwx 1 root root 19 Feb 17 2005 libnss_dns.so.2 ->
libnss_dns-2.3.2.so?so
-rw-r--r-- 1 root root 43060 Oct 14 2004 libnss_files-2.3.2.so
lrwxrwxrwx 1 root root 21 Feb 17 2005 libnss_files.so.2 ->
libnss_files-2.3.2.so?2.10.0.so?libbz2.so.1.0.2??xZZZZZZZZZZZZZZ
-rw-r--r-- 1 root root 16852 Oct 14 2004 libnss_hesiod-2.3.2.so
lrwxrwxrwx 1 root root 22 Feb 17 2005 libnss_hesiod.so.2 ->
libnss_hesiod-2.3.2.so
-rw-r--r-- 1 root root 38984 Oct 14 2004 libnss_nis-2.3.2.so
lrwxrwxrwx 1 root root 19 Feb 17 2005 libnss_nis.so.2 ->
libnss_nis-2.3.2.so?2.so
-rw-r--r-- 1 root root 47452 Oct 14 2004 libnss_nisplus-2.3.2.so
lrwxrwxrwx 1 root root 23 Feb 17 2005 libnss_nisplus.so.2 ->
libnss_nisplus-2.3.2.so?
lrwxrwxrwx 1 root root 14 Feb 17 2005 libpam.so.0 -> libpam.so.0.76
-rw-r--r-- 1 root root 37772 Jul 2 2004 libpam.so.0.76
lrwxrwxrwx 1 root root 19 Feb 17 2005 libpam_misc.so.0 ->
libpam_misc.so.0.76?.so?
-rw-r--r-- 1 root root 13996 Jul 2 2004 libpam_misc.so.0.76
lrwxrwxrwx 1 root root 15 Feb 17 2005 libpamc.so.0 -> libpamc.so.0.76?
-rw-r--r-- 1 root root 15232 Jul 2 2004 libpamc.so.0.76
-rw-r--r-- 1 root root 10292 Oct 14 2004 libpcprofile.so
lrwxrwxrwx 1 root root 16 Feb 17 2005 libpopt.so.0 -> libpopt.so.0.0.0
-rw-r--r-- 1 root root 34736 Aug 29 2004 libpopt.so.0.0.0
-rw-r--r-- 1 root root 51972 Apr 13 2004 libproc.so.3.2.1
-rw-r--r-- 1 root root 85254 Oct 14 2004 libpthread-0.10.so
lrwxrwxrwx 1 root root 18 Feb 17 2005 libpthread.so.0 ->
libpthread-0.10.so
lrwxrwxrwx 1 root root 18 Feb 17 2005 libreadline.so.4 ->
libreadline.so.4.3
-rw-r--r-- 1 root root 202856 Jun 13 2004 libreadline.so.4.3
-rw-r--r-- 1 root root 64124 Oct 14 2004 libresolv-2.3.2.so
lrwxrwxrwx 1 root root 18 Feb 17 2005 libresolv.so.2 ->
libresolv-2.3.2.so
-rw-r--r-- 1 root root 28460 Oct 14 2004 librt-2.3.2.so
lrwxrwxrwx 1 root root 14 Feb 17 2005 librt.so.1 -> librt-2.3.2.so
lrwxrwxrwx 1 root root 17 Feb 17 2005 libslang.so.1 -> libslang.so.1.4.9?
lrwxrwxrwx 1 root root 22 Feb 17 2005 libslang.so.1-UTF8 ->
libslang.so.1-UTF8.4.9
-rw-r--r-- 1 root root 436276 Sep 22 2004 libslang.so.1-UTF8.4.9
-rw-r--r-- 1 root root 436024 Sep 22 2004 libslang.so.1.4.9
lrwxrwxrwx 1 root root 12 Feb 17 2005 libss.so.2 -> libss.so.2.0
-rw-r--r-- 1 root root 24552 May 5 2004 libss.so.2.0
-rw-r--r-- 1 root root 19524 Oct 14 2004 libthread_db-1.0.so
lrwxrwxrwx 1 root root 19 Feb 17 2005 libthread_db.so.1 ->
libthread_db-1.0.so?so
-rw-r--r-- 1 root root 8660 Oct 14 2004 libutil-2.3.2.so
lrwxrwxrwx 1 root root 16 Feb 17 2005 libutil.so.1 -> libutil-2.3.2.so
lrwxrwxrwx 1 root root 14 Feb 17 2005 libuuid.so.1 -> libuuid.so.1.2
-rw-r--r-- 1 root root 16032 May 5 2004 libuuid.so.1.2
lrwxrwxrwx 1 root root 16 Feb 17 2005 libwrap.so.0 -> libwrap.so.0.7.6
-rw-r--r-- 1 root root 36120 Aug 29 2004 libwrap.so.0.7.6
drwxr-xr-x 3 509 503 0 Feb 17 2005 modules
drwxr-xr-x 2 500 500 0 Jul 2 2004 security
:/flash/lib#
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: symlink corruption in jffs2
2005-02-17 20:25 symlink corruption in jffs2 Joe Barnett
@ 2005-02-18 8:05 ` Artem B. Bityuckiy
2005-02-18 14:06 ` Estelle HAMMACHE
1 sibling, 0 replies; 4+ messages in thread
From: Artem B. Bityuckiy @ 2005-02-18 8:05 UTC (permalink / raw)
To: Joe Barnett; +Cc: linux-mtd
On Thu, 2005-02-17 at 15:25 -0500, Joe Barnett wrote:
> I am trying to put a jffs2 filesystem down on a G5 ppc64 system. I can
> build the filesystem fine, and get it into flash, mount it ect. The
> problem I am finding is that a large number of the symbolic links are
> corrupt. The file pointed to has garbage appended to the name (see
> below). If I try to create a new symlink, it also gets corrupted. I
> have turned on JFFS2 debug to level 3 and am still unable to locate
> the source of the issue... I am using the following options when I
> run mkfs.jffs2:
I wonder did anybody successfully use JFFS2 on 64-bit machine?
>
> mkfs.jffs2 -o myflashfs.img -d myroot -e 20000
Er, do you mean your Flash block is exactly 20000 bytes?
>
> I am using Common Intel StrataFlash, which I have confirmed that
> driver is functional
One obvious thing I may suggest to exclude driver problems is to use
mtdram device. It emulates NOR flash in RAM. (mtd/drivers/mtdram.c). If
your problem won't go when you've utilized mtdram, the problem is most
probably in JFFS2.
Another good experiment is just to format your flash (flash_eraseall -j)
and mount it (empty). Then to try to play with symlinks there (touch
file; ln -s link file; and like). This will exclude the possibility of
mistakes when you create and flash your image.
> , as I can read and write large file to and from
> the flash fine, so it isn't in the driver. Has anyone seen this issue
> before or does anyone have an idea of what may be causing this? I did
> see Any help would be greatly appreciated.
Another things I may suggest are:
1. Try my recent patch: http://lists.infradead.org/pipermail/linux-
mtd/2005-February/011936.html
2. If you post next time, please provide the JFFS2 level 1 debug output.
3. Just in case, provide cat /proc/mtd output.
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: symlink corruption in jffs2
2005-02-17 20:25 symlink corruption in jffs2 Joe Barnett
2005-02-18 8:05 ` Artem B. Bityuckiy
@ 2005-02-18 14:06 ` Estelle HAMMACHE
[not found] ` <52249cdc05021807135f0ff90f@mail.gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Estelle HAMMACHE @ 2005-02-18 14:06 UTC (permalink / raw)
To: Joe Barnett; +Cc: linux-mtd
Notice how even-length names are ok and odd-length names are KO.
There was a thread about a similar problem, with a suggested
approach for finding the bug.
http://lists.infradead.org/pipermail/linux-mtd/2004-May/009735.html
> lrwxrwxrwx 1 root root 11 Feb 17 2005 ld.so.1 -> ld-2.3.2.so?10
> lrwxrwxrwx 1 root root 24 Feb 17 2005 libBrokenLocale.so.1 ->
> libBrokenLocale-2.3.2.so
> lrwxrwxrwx 1 root root 15 Feb 17 2005 libacl.so.1 -> libacl.so.1.1.0?.3
> lrwxrwxrwx 1 root root 15 Feb 17 2005 libanl.so.1 ->
> libanl-2.3.2.so?.so?so
> lrwxrwxrwx 1 root root 16 Feb 17 2005 libattr.so.1 -> libattr.so.1.1.0
> lrwxrwxrwx 1 root root 15 Feb 17 2005 libblkid.so.1 -> libblkid.so.1.0?3?
bye
Estelle
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: symlink corruption in jffs2
[not found] ` <52249cdc0503091355364639dc@mail.gmail.com>
@ 2005-03-10 13:22 ` Estelle HAMMACHE
0 siblings, 0 replies; 4+ messages in thread
From: Estelle HAMMACHE @ 2005-03-10 13:22 UTC (permalink / raw)
To: Joe Barnett, linux-mtd
Forwarded to the list.
Congratulations !
Joe Barnett wrote:
>
> Found it, map driver was broken in the copy_to/copy_from routines.
> Seems that the odd reads where broken
>
> On Fri, 18 Feb 2005 10:13:06 -0500, Joe Barnett
> <joseph.barnett@gmail.com> wrote:
> > Thank you all for your input, I will try your suggestions and post any
> > results I find back to the list.
> >
> > Kind regards,
> > Joseph
> >
> >
> > On Fri, 18 Feb 2005 15:06:32 +0100, Estelle wrote :
> > > Notice how even-length names are ok and odd-length names are KO.
> > > There was a thread about a similar problem, with a suggested
> > > approach for finding the bug.
> > > http://lists.infradead.org/pipermail/linux-mtd/2004-May/009735.html
> > >
> > > > lrwxrwxrwx 1 root root 11 Feb 17 2005 ld.so.1 -> ld-2.3.2.so?10
> > > > lrwxrwxrwx 1 root root 24 Feb 17 2005 libBrokenLocale.so.1 ->
> > > > libBrokenLocale-2.3.2.so
> > > > lrwxrwxrwx 1 root root 15 Feb 17 2005 libacl.so.1 -> libacl.so.1.1.0?.3
> > > > lrwxrwxrwx 1 root root 15 Feb 17 2005 libanl.so.1 ->
> > > > libanl-2.3.2.so?.so?so
> > > > lrwxrwxrwx 1 root root 16 Feb 17 2005 libattr.so.1 -> libattr.so.1.1.0
> > > > lrwxrwxrwx 1 root root 15 Feb 17 2005 libblkid.so.1 -> libblkid.so.1.0?3?
> > >
> > > bye
> > > Estelle
> > >
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-10 13:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 20:25 symlink corruption in jffs2 Joe Barnett
2005-02-18 8:05 ` Artem B. Bityuckiy
2005-02-18 14:06 ` Estelle HAMMACHE
[not found] ` <52249cdc05021807135f0ff90f@mail.gmail.com>
[not found] ` <52249cdc0503091355364639dc@mail.gmail.com>
2005-03-10 13:22 ` Estelle HAMMACHE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox