* JFFS2: endian problem ?
@ 2001-06-22 10:11 Paolo Marini
2001-06-22 10:28 ` David Woodhouse
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Marini @ 2001-06-22 10:11 UTC (permalink / raw)
To: linux-mtd
Hi all,
I am trying to have a working JFFS2 on an RPX-CLLF card (Motorola 860, big
endian).
It happens that every time I mount the jfss2, the flash gets formatted. I
dumped the flash block, and the bytes seem to be in the wrong order (e.g.
magic number and nodetype swapped, and also magic number with the two bytes
swapped). I tested it against a jffs2 image build for big endian with
mkfs.jffs2, and the order of bytes is reversed. Reading a flash block
containing e.g. card FW is ok. I am using the latest mtd on a 2.4.2 kernel.
Anyone can help me ?
Thanks a lot
Paolo Marini
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: JFFS2: endian problem ?
2001-06-22 10:11 JFFS2: endian problem ? Paolo Marini
@ 2001-06-22 10:28 ` David Woodhouse
0 siblings, 0 replies; 3+ messages in thread
From: David Woodhouse @ 2001-06-22 10:28 UTC (permalink / raw)
To: Paolo Marini; +Cc: linux-mtd
paolom@prisma-eng.it said:
> I am trying to have a working JFFS2 on an RPX-CLLF card (Motorola 860,
> big endian).
> It happens that every time I mount the jfss2, the flash gets
> formatted. I dumped the flash block, and the bytes seem to be in the
> wrong order (e.g. magic number and nodetype swapped, and also magic
> number with the two bytes swapped). I tested it against a jffs2 image
> build for big endian with mkfs.jffs2, and the order of bytes is
> reversed. Reading a flash block containing e.g. card FW is ok. I am
> using the latest mtd on a 2.4.2 kernel.
Update to v1.13 of rpxlite.c. You'll probably need to enable
CONFIG_MTD_CFI_ADV_OPTIONS and then choose the CONFIG_MTD_CFI_LE_BYTE_SWAP
option too.
--
dwmw2
^ permalink raw reply [flat|nested] 3+ messages in thread
* JFFS2: endian problem ?
@ 2001-06-22 11:11 Paolo Marini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Marini @ 2001-06-22 11:11 UTC (permalink / raw)
To: linux-mtd
OK, the new rpxlite.c solved the problem. I did not need to set
CONFIG_MTD_CFI_ADV_OPTIONS.
Thank you
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-06-22 11:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-22 10:11 JFFS2: endian problem ? Paolo Marini
2001-06-22 10:28 ` David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2001-06-22 11:11 Paolo Marini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox