public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Subodh Nijsure <subodh@best.com>
To: mtd@infradead.org, subodh@best.com, jffs-dev@axis.com
Subject: JFFS on a powerpc platform.
Date: Tue, 6 Mar 2001 21:28:37 -0800 (PST)	[thread overview]
Message-ID: <200103070528.VAA21767@shell9.ba.best.com> (raw)


Hello,

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.

Here are messages during the boot to indicate that cfi probe has
detected the flash. 

JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
physmap.c physmap flash device: size 400000 at address 28000000
cfi_probe_new_chip map->buswidth 4
Custom flash device: Found 2 x16 CFI devices at location 0 in 16 bit mode
JEDEC ID: B0 D0

The /proc/mtd shows following output which matches the partition table I
have setup.

sh-2.04# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00400000 00020000 "Custom flash device"
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 I execute command  and I see the following output
 
	mount -t jffs /dev/mtdblock4 /tmp/jffs

	cp /etc/inetd.conf /tmp/jffs/inetd.conf

	sh-2.04# cp /etc/inetd.conf /tmp/jffs
	sh-2.04# ls -l /etc/inetd.conf /tmp/jffs
	-rw-r-xr--   1 root     root         2880 Jan 10  2001 /etc/inetd.conf

	/tmp/jffs:
	total 3
	-rw-r-xr--   1 root     root         2880 Dec 31 16:05 inetd.conf  

However if I try to see contents of this /tmp/jffs/inetd.conf I see 
following output instead of my inetd.conf, 


sh-2.04# more /tmp/jffs/inetd.conf
#
#tenioc.dT      fn sihelifsed birct ses ehivre sectahtliw eb lava bali#
elht            guorht hNI e DTE/PCTs PIrepures .revoT  -er fnocrugi    #
eeht    nur gninENI p DTecor ,sstideiht if s ,elnehtnes ht d    #
eENI    p DTecora ssGIS  PUHngis

Also now if I reboot the system and remount the device /dev/mtdblock4 I 
don't see the file inetd.conf, what am I doing wrong?

/Subodh Nijsure


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

             reply	other threads:[~2001-03-07  5:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-07  5:28 Subodh Nijsure [this message]
2001-03-07  6:31 ` AW: JFFS on a powerpc platform Florian Schirmer / TayTron
2001-03-07  6:46   ` Subodh Nijsure
2001-03-07  6:53     ` Florian Schirmer / TayTron
  -- strict thread matches above, loose matches on Subject: below --
2001-03-10 14:00 Florian Schirmer / TayTron
2001-03-11 10:45 ` David Woodhouse
2001-03-12  6:34   ` Subodh Nijsure

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200103070528.VAA21767@shell9.ba.best.com \
    --to=subodh@best.com \
    --cc=jffs-dev@axis.com \
    --cc=mtd@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox