public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* AW: JFFS on a powerpc platform.
  2001-03-07  5:28 Subodh Nijsure
@ 2001-03-07  6:31 ` Florian Schirmer / TayTron
  2001-03-07  6:46   ` Subodh Nijsure
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Schirmer / TayTron @ 2001-03-07  6:31 UTC (permalink / raw)
  To: Subodh Nijsure, mtd, jffs-dev

Hi!

>Question I have is -- has anyone tested JFFS on powerpc platform.
>
>I have retrieved the latest mtd code from CVS repository and
>the data read back from flash is not "correct".
>
>The platform I am running on MPC860 based board having
>intel flash  which mtd is able to recognize correctly.

Yes the code runs fine - now. Please check wether you are using at least
version 1.10 of physmap.c. We fixed exactly this problem mhhh let me say
around 4 days ago. Did you checked out the source after that? Please
checkout again.

Hope that helps - if not please provide a DEBUG_CFI enabled output.

Happy hacking
   Florian Schirmer



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: AW: JFFS on a powerpc platform.
  2001-03-07  6:31 ` AW: " Florian Schirmer / TayTron
@ 2001-03-07  6:46   ` Subodh Nijsure
  0 siblings, 0 replies; 3+ messages in thread
From: Subodh Nijsure @ 2001-03-07  6:46 UTC (permalink / raw)
  To: Florian Schirmer / TayTron; +Cc: subodh, mtd, jffs-dev

> Hi!
> 
> >Question I have is -- has anyone tested JFFS on powerpc platform.
> >
> >I have retrieved the latest mtd code from CVS repository and
> >the data read back from flash is not "correct".
> >
> >The platform I am running on MPC860 based board having
> >intel flash  which mtd is able to recognize correctly.
> 
> Yes the code runs fine - now. Please check wether you are using at least
> version 1.10 of physmap.c. We fixed exactly this problem mhhh let me say
> around 4 days ago. Did you checked out the source after that? Please
> checkout again.
> 
> Hope that helps - if not please provide a DEBUG_CFI enabled output.

I got the latest code and one of the problem is fixed now. 

i.e. if I copy a file to jffs partition I can read back the content.

However if I mount partiton, copy a file to it, then unmount it and again
mount it, I don't see the file I copied.

e.g. I do

mount -t jffs /dev/mtdblock4 /tmp/jffs 
cp /etc/inetd.conf /tmp/jffs/inetd.conf

Now I do diff between /etc/inetd.conf and /tmp/jffs/inetd.conf both are
same files

Now I do umount and re-mount 
i.e.
umount jffs /dev/mtdblock4 
mount -t jffs /dev/mtdblock4 /tmp/jffs 

Now when I try to do ls -l /tmp/jffs I don't see the file I had copied earlier,
anybody seen this?

Thanks.

/Subodh Nijsure



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  AW: JFFS on a powerpc platform.
@ 2001-03-10  1:58 Subodh Nijsure
  0 siblings, 0 replies; 3+ messages in thread
From: Subodh Nijsure @ 2001-03-10  1:58 UTC (permalink / raw)
  To: schirmer, mtd; +Cc: subodh


I still have that problem now its slightly different problem. 

It looks like problem with 'interleaving' 

This is how my mtd memory space looks like -- 

cat /proc/mtd
mtd0: 00400000 00020000 "Physically mapped flash"
mtd1: 00080000 00020000 "Bootrom Area"
mtd2: 00040000 00020000 "Custom Flash Bank #2 2x128KB"
mtd3: 00040000 00020000 "Custom Flash Bank #2 2x128KB"
mtd4: 00300000 00020000 "Custom Flash left overs from 4MB Flash" 

Now the first device /dev/mtd1 contains the bootrom so I copy /dev/mtd1
to file and it looks like this --

cat < /dev/mtd1 > /tmp/bootrom 
'V|~?&tcN |~N MTDSkyStream Bootrom (ver 0.1) (Mar  8 2001 - 10:26:50) 

doc_loadbios /dev/mtd4 bootrom 

Now if I try to dump the /dev/mtd4 I get following output 
cat < /dev/mtd4 | more
'&?~|ct N&| NSDTMtSykmaerooB mortev( .0 r( )1 raM2 9  10061 -:52:)44  


Now if I do eraseall /dev/mtd0 I see data in flash as

FFFF0080 FFFF0080.. 

instead of 
FFFFFFFF FFFFFFFF...

So it looks like for some reason one of the chip is not getting erased?

In my kernel config as interleave '2' as I have two chips giving me 32 bit
access.

CONFIG_MTD_CFI=y
CONFIG_MTD_CFI_GEOMETRY=y
# CONFIG_MTD_CFI_B1 is not set
# CONFIG_MTD_CFI_B2 is not set
CONFIG_MTD_CFI_B4=y
# CONFIG_MTD_CFI_I1 is not set
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
CONFIG_MTD_CFI_INTELEXT=y 

Interleaving factor is '2' as my CPU A1 is connected to A0 of the chip.

Any more hints on why I would be getting this "flipping" of bits?


Thanks!!

/Subodh



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-03-10  1:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-10  1:58 AW: JFFS on a powerpc platform Subodh Nijsure
  -- strict thread matches above, loose matches on Subject: below --
2001-03-07  5:28 Subodh Nijsure
2001-03-07  6:31 ` AW: " Florian Schirmer / TayTron
2001-03-07  6:46   ` Subodh Nijsure

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox