* weird behavior for jffs2 on PQ2FADS-VR board
@ 2006-07-12 4:23 Lei Sun
2006-07-12 4:56 ` Liu Dave-r63238
2006-07-12 5:41 ` Li Yang-r58472
0 siblings, 2 replies; 4+ messages in thread
From: Lei Sun @ 2006-07-12 4:23 UTC (permalink / raw)
To: linuxppc-embedded
Hi all:
I brought up linux-2.4.30 on PQ2FADS-VR board, everything was fine
untill i try to mount the jffs2. My mtd partition looks like this:
dev: size erasesize name
mtd0: 00800000 00040000 "Flash SIMM"
mtd1: 00080000 00040000 "u-boot"
mtd2: 00100000 00040000 "Kernel"
mtd3: 00580000 00040000 "Rootfs"
mtd4: 00080000 00040000 "u-boot env"
mtd5: 00080000 00040000 "unused"
Basically, I tried
"eraseall /dev/mtd3", and then
"mount -t jffs2 /dev/mtdblock3 /mnt", it showed as mounted, then I
issued "echo "hello,world" > test.txt" to create a file,
a warning was printed out
"Node totlen on flash (0x44000000) != totlen in node ref (0x00000044)"
, but subsequent
"cat test.txt " still showed the correct string from that newly created file".
However, after I umount the file and remount it again, it give me
lots of errors"
Magic bitmask 0x1985 not found at 0x00240004: 0x0c00 instead"
Then the moutn operation failed.
I am suspecting it is mtd driver problem (the board use
LH28F016SCT-L95 from sharp). But don't know how to proceed , e.g. how
to verify the content was written into flash in a mounted jffs2 file
system?
Has anybody experienced similar issue? Any suggestion?
Forgive me if this is wrong list to post, and very appreciate if
anybody can direct me to the right place.
Thanks!
lei
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: weird behavior for jffs2 on PQ2FADS-VR board
2006-07-12 4:23 weird behavior for jffs2 on PQ2FADS-VR board Lei Sun
@ 2006-07-12 4:56 ` Liu Dave-r63238
2006-07-12 5:41 ` Li Yang-r58472
1 sibling, 0 replies; 4+ messages in thread
From: Liu Dave-r63238 @ 2006-07-12 4:56 UTC (permalink / raw)
To: Lei Sun, linuxppc-embedded
Sun,
You are using SIMM LH28F016SCT-L95, that is an old chipset,
the driver for this is under drivers/mtd/chips/sharp.c. Maybe
this is endian issue, you need to remove the cpu_to_le32(datum) swap in
the driver of line 360
And with map->write32(map, datum, adr) instead.
Best Regards,
Dave
> -----Original Message-----
> From:=20
> linuxppc-embedded-bounces+daveliu=3Dfreescale.com@ozlabs.org=20
> [mailto:linuxppc-embedded-bounces+daveliu=3Dfreescale.com@ozlabs
> .org] On Behalf Of Lei Sun
> Sent: Wednesday, July 12, 2006 12:23 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: weird behavior for jffs2 on PQ2FADS-VR board
>=20
>=20
> Hi all:
> I brought up linux-2.4.30 on PQ2FADS-VR board, everything=20
> was fine untill i try to mount the jffs2. My mtd partition=20
> looks like this:
>=20
> dev: size erasesize name
> mtd0: 00800000 00040000 "Flash SIMM"
> mtd1: 00080000 00040000 "u-boot"
> mtd2: 00100000 00040000 "Kernel"
> mtd3: 00580000 00040000 "Rootfs"
> mtd4: 00080000 00040000 "u-boot env"
> mtd5: 00080000 00040000 "unused"
>=20
> Basically, I tried
> "eraseall /dev/mtd3", and then
> "mount -t jffs2 /dev/mtdblock3 /mnt", it showed as mounted,=20
> then I issued "echo "hello,world" > test.txt" to create a=20
> file, a warning was printed out "Node totlen on flash=20
> (0x44000000) !=3D totlen in node ref (0x00000044)" , but=20
> subsequent "cat test.txt " still showed the correct string=20
> from that newly created file". However, after I umount the =20
> file and remount it again, it give me lots of errors" Magic=20
> bitmask 0x1985 not found at 0x00240004: 0x0c00 instead" Then=20
> the moutn operation failed.
> I am suspecting it is mtd driver problem (the board use=20
> LH28F016SCT-L95 from sharp). But don't know how to proceed ,=20
> e.g. how to verify the content was written into flash in a=20
> mounted jffs2 file system?
> Has anybody experienced similar issue? Any suggestion?
> Forgive me if this is wrong list to post, and very=20
> appreciate if anybody can direct me to the right place.
>=20
> Thanks!
> lei
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org=20
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: weird behavior for jffs2 on PQ2FADS-VR board
2006-07-12 4:23 weird behavior for jffs2 on PQ2FADS-VR board Lei Sun
2006-07-12 4:56 ` Liu Dave-r63238
@ 2006-07-12 5:41 ` Li Yang-r58472
2006-07-12 14:38 ` Lei Sun
1 sibling, 1 reply; 4+ messages in thread
From: Li Yang-r58472 @ 2006-07-12 5:41 UTC (permalink / raw)
To: Lei Sun, linuxppc-embedded
Here is the kernel config we used, you can have a try.
# Memory Technology Devices (MTD)
#
CONFIG_MTD=3Dy
# CONFIG_MTD_DEBUG is not set
CONFIG_MTD_PARTITIONS=3Dy
# CONFIG_MTD_CONCAT is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=3Dy
CONFIG_MTD_BLOCK=3Dy
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
#
# RAM/ROM/Flash chip drivers
#
# CONFIG_MTD_CFI is not set
CONFIG_MTD_JEDECPROBE=3Dy
CONFIG_MTD_GEN_PROBE=3Dy
CONFIG_MTD_CFI_ADV_OPTIONS=3Dy
# CONFIG_MTD_CFI_NOSWAP is not set
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
CONFIG_MTD_CFI_LE_BYTE_SWAP=3Dy
# CONFIG_MTD_CFI_GEOMETRY is not set
CONFIG_MTD_CFI_INTELEXT=3Dy
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_CFI_STAA is not set
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set
# CONFIG_MTD_AMDSTD is not set
# CONFIG_MTD_SHARP is not set
# CONFIG_MTD_JEDEC is not set
Best Regards,
Leo
> -----Original Message-----
> From: linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org
> [mailto:linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org] On
Behalf
> Of Lei Sun
> Sent: Wednesday, July 12, 2006 12:23 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: weird behavior for jffs2 on PQ2FADS-VR board
>=20
> Hi all:
> I brought up linux-2.4.30 on PQ2FADS-VR board, everything was fine
> untill i try to mount the jffs2. My mtd partition looks like this:
>=20
> dev: size erasesize name
> mtd0: 00800000 00040000 "Flash SIMM"
> mtd1: 00080000 00040000 "u-boot"
> mtd2: 00100000 00040000 "Kernel"
> mtd3: 00580000 00040000 "Rootfs"
> mtd4: 00080000 00040000 "u-boot env"
> mtd5: 00080000 00040000 "unused"
>=20
> Basically, I tried
> "eraseall /dev/mtd3", and then
> "mount -t jffs2 /dev/mtdblock3 /mnt", it showed as mounted, then I
> issued "echo "hello,world" > test.txt" to create a file,
> a warning was printed out
> "Node totlen on flash (0x44000000) !=3D totlen in node ref =
(0x00000044)"
> , but subsequent
> "cat test.txt " still showed the correct string from that newly
created file".
> However, after I umount the file and remount it again, it give me
> lots of errors"
> Magic bitmask 0x1985 not found at 0x00240004: 0x0c00 instead"
> Then the moutn operation failed.
> I am suspecting it is mtd driver problem (the board use
> LH28F016SCT-L95 from sharp). But don't know how to proceed , e.g. how
> to verify the content was written into flash in a mounted jffs2 file
> system?
> Has anybody experienced similar issue? Any suggestion?
> Forgive me if this is wrong list to post, and very appreciate if
> anybody can direct me to the right place.
>=20
> Thanks!
> lei
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-12 14:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-12 4:23 weird behavior for jffs2 on PQ2FADS-VR board Lei Sun
2006-07-12 4:56 ` Liu Dave-r63238
2006-07-12 5:41 ` Li Yang-r58472
2006-07-12 14:38 ` Lei Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).