public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* jffs2+mtd+big endian problem
@ 2004-01-19  8:43 Li Yang-r58472
  2004-01-19  9:17 ` David Woodhouse
  0 siblings, 1 reply; 13+ messages in thread
From: Li Yang-r58472 @ 2004-01-19  8:43 UTC (permalink / raw)
  To: 'linux-mtd@lists.infradead.org'

Hi,

I'm doing a JFFS2 port to a PowerPC target board.  I have several questions while porting.

1. Which kind of endian should I use in JFFS2?  Mkfs.jffs2 (older version, I have tried the new binary on JFFS2 website, the big-endian option breaks) can generate images of the two endian types.

2. I added a new map file in driver/mtd/maps directory.  Which read/write/memcpy operation should I use?  __raw_readw() or readw()? Or Inw()?  They determined whether to swap bytes.

I have tried several cases.  When I use little-endian fs and __raw_read(), the JFFS2 mount got error: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x8519 instead.  

However, after I change to use big-endian fs, mount can be successful.  Create new file on JFFS2 got error: Node totlen on flash (0x44000000) != totlen in node ref (0x00000044).  Seems data written to flash are 32-bit byte-swaped.

Has anyone here done JFFS2 on Powerpc Big-endian system?  What are your options?


--
Leo Li
Software Engineer
Metrowerks -- a Motorola company
Linux Solutions Group
 
Office: +8610-65642272
LeoLi@motorola.com
 

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

end of thread, other threads:[~2004-02-05  9:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-19  8:43 jffs2+mtd+big endian problem Li Yang-r58472
2004-01-19  9:17 ` David Woodhouse
2004-01-19  9:48   ` Joakim Tjernlund
2004-01-19 10:58   ` Li Yang
2004-01-19 11:04     ` David Woodhouse
2004-01-20  4:20       ` Li Yang
2004-01-20  7:32         ` David Woodhouse
2004-02-04  8:11           ` Li Yang
2004-02-05  3:07           ` Li Yang
2004-02-05  7:00             ` David Woodhouse
2004-02-05  9:02               ` Li Yang
2004-02-05  9:27                 ` David Woodhouse
2004-02-05  9:59                   ` Li Yang

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