* problem using jffs2 on DiskOnChip
@ 2002-12-18 19:03 Carl Wolff
2002-12-18 19:14 ` Russ Dill
2002-12-19 10:14 ` David Woodhouse
0 siblings, 2 replies; 6+ messages in thread
From: Carl Wolff @ 2002-12-18 19:03 UTC (permalink / raw
To: linux-mtd
Hello,
I've got a problem with jffs2. I'm using a DiskOnChip module type milennium.
Do I need NFTL support?
I've managed to copy a jffs2 image onto the diskonchip using cp image
/dev/mtd/0.
When I copy the contents of the device to a file using cat /dev/mtd/0 >
testfile and I compare this file with the file just copied to the device,
they are the same, the latter is bigger, because padded with FF's
when I do a mount -t jffs2 /dev/mtd/0 /mnt I get the following output:
# mount -t jffs2 /dev/mtdblock/0 /mnt
mtdblock_open
ok
Short read: 0x10 bytes at 0x000001f0 instead of requested 44
mtdblock_release
ok
mount: Mounting /dev/mtdblock/0 on /mnt failed: Invalid argument
#
What do I wrong?
I use a 2.4.17 kernel with following version details
NFTL driver: nftlcore.c $Revision: 1.85 $, nftlmount.c $Revision: 1.25 $
Flash chip found: Manufacturer ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC)
# cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00002000 "DiskOnChip Millennium"
#
Thanks for any help
Carl.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem using jffs2 on DiskOnChip
2002-12-18 19:03 problem using jffs2 on DiskOnChip Carl Wolff
@ 2002-12-18 19:14 ` Russ Dill
2002-12-18 19:26 ` Carl Wolff
2002-12-19 10:14 ` David Woodhouse
1 sibling, 1 reply; 6+ messages in thread
From: Russ Dill @ 2002-12-18 19:14 UTC (permalink / raw
To: wolff; +Cc: linux-mtd
On Wed, 2002-12-18 at 12:03, Carl Wolff wrote:
> Hello,
>
> I've got a problem with jffs2. I'm using a DiskOnChip module type milennium.
>
> Do I need NFTL support?
> I've managed to copy a jffs2 image onto the diskonchip using cp image
> /dev/mtd/0.
eraseall /dev/mtd/0
--
Russ Dill <Russ.Dill@asu.edu>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: problem using jffs2 on DiskOnChip
2002-12-18 19:14 ` Russ Dill
@ 2002-12-18 19:26 ` Carl Wolff
0 siblings, 0 replies; 6+ messages in thread
From: Carl Wolff @ 2002-12-18 19:26 UTC (permalink / raw
To: 'Russ Dill'; +Cc: linux-mtd
> -----Original Message-----
> From: linux-mtd-admin@lists.infradead.org
> [mailto:linux-mtd-admin@lists.infradead.org]On Behalf Of Russ Dill
> Sent: woensdag 18 december 2002 20:14
> To: wolff@turnkiek.nl
> Cc: linux-mtd@lists.infradead.org
> Subject: Re: problem using jffs2 on DiskOnChip
>
>
> On Wed, 2002-12-18 at 12:03, Carl Wolff wrote:
> > Hello,
> >
> > I've got a problem with jffs2. I'm using a DiskOnChip
> module type milennium.
> >
> > Do I need NFTL support?
> > I've managed to copy a jffs2 image onto the diskonchip
> using cp image
> > /dev/mtd/0.
>
> eraseall /dev/mtd/0
I did it. I checked the contents after the eraseall and saw only FF's.
Then I copied the image and verified the contents of the device with the
orginial file: they are the same.
So I think the data is correctly put into the flash....
>
> --
> Russ Dill <Russ.Dill@asu.edu>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem using jffs2 on DiskOnChip
2002-12-18 19:03 problem using jffs2 on DiskOnChip Carl Wolff
2002-12-18 19:14 ` Russ Dill
@ 2002-12-19 10:14 ` David Woodhouse
2002-12-19 15:29 ` Carl Wolff
1 sibling, 1 reply; 6+ messages in thread
From: David Woodhouse @ 2002-12-19 10:14 UTC (permalink / raw
To: wolff; +Cc: linux-mtd
wolff@turnkiek.nl said:
> Short read: 0x10 bytes at 0x000001f0 instead of requested 44
The DiskOnChip hardware driver hasn't been used much with anything other
than NFTL. It appears not to do a full read if you ask it to read a range
of data which crosses a page boundary. Fix it accordingly by putting an
appropriate loop in instead of...
/* Don't allow a single read to cross a 512-byte block boundary */
if (from + len > ((from | 0x1ff) + 1))
len = ((from | 0x1ff) + 1) - from;
--
dwmw2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem using jffs2 on DiskOnChip
2002-12-19 15:29 ` Carl Wolff
@ 2002-12-19 12:21 ` Brian Austin
0 siblings, 0 replies; 6+ messages in thread
From: Brian Austin @ 2002-12-19 12:21 UTC (permalink / raw
To: wolff; +Cc: linux-mtd
On Thursday 19 December 2002 09:29, Carl Wolff wrote:
use ext3 instead. Depending onhow big your chip is.
or reiserfs
> Hello David,
>
> OK. Two questions:
> 1) Does JFFS2 actually work on a DiskOnChip?
> 2) Other alternatives? We need a powersafe filesystem on DiskOnChip.
>
>
> Thanks, and happy newyear, I'm going on holiday now.
>
> Carl.
>
> > -----Original Message-----
> > From: David Woodhouse [mailto:dwmw2@redhat.com]On Behalf Of David
> > Woodhouse
> > Sent: donderdag 19 december 2002 11:14
> > To: wolff@turnkiek.nl
> > Cc: linux-mtd@lists.infradead.org
> > Subject: Re: problem using jffs2 on DiskOnChip
> >
> > wolff@turnkiek.nl said:
> > > Short read: 0x10 bytes at 0x000001f0 instead of requested 44
> >
> > The DiskOnChip hardware driver hasn't been used much with
> > anything other
> > than NFTL. It appears not to do a full read if you ask it to
> > read a range
> > of data which crosses a page boundary. Fix it accordingly by
> > putting an
> > appropriate loop in instead of...
> >
> > /* Don't allow a single read to cross a 512-byte
> > block boundary */
> > if (from + len > ((from | 0x1ff) + 1))
> > len = ((from | 0x1ff) + 1) - from;
> >
> > --
> > dwmw2
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: problem using jffs2 on DiskOnChip
2002-12-19 10:14 ` David Woodhouse
@ 2002-12-19 15:29 ` Carl Wolff
2002-12-19 12:21 ` Brian Austin
0 siblings, 1 reply; 6+ messages in thread
From: Carl Wolff @ 2002-12-19 15:29 UTC (permalink / raw
To: 'David Woodhouse', wolff; +Cc: linux-mtd, vanee
Hello David,
OK. Two questions:
1) Does JFFS2 actually work on a DiskOnChip?
2) Other alternatives? We need a powersafe filesystem on DiskOnChip.
Thanks, and happy newyear, I'm going on holiday now.
Carl.
> -----Original Message-----
> From: David Woodhouse [mailto:dwmw2@redhat.com]On Behalf Of David
> Woodhouse
> Sent: donderdag 19 december 2002 11:14
> To: wolff@turnkiek.nl
> Cc: linux-mtd@lists.infradead.org
> Subject: Re: problem using jffs2 on DiskOnChip
>
>
>
> wolff@turnkiek.nl said:
> > Short read: 0x10 bytes at 0x000001f0 instead of requested 44
>
> The DiskOnChip hardware driver hasn't been used much with
> anything other
> than NFTL. It appears not to do a full read if you ask it to
> read a range
> of data which crosses a page boundary. Fix it accordingly by
> putting an
> appropriate loop in instead of...
>
> /* Don't allow a single read to cross a 512-byte
> block boundary */
> if (from + len > ((from | 0x1ff) + 1))
> len = ((from | 0x1ff) + 1) - from;
>
> --
> dwmw2
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-12-19 16:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-18 19:03 problem using jffs2 on DiskOnChip Carl Wolff
2002-12-18 19:14 ` Russ Dill
2002-12-18 19:26 ` Carl Wolff
2002-12-19 10:14 ` David Woodhouse
2002-12-19 15:29 ` Carl Wolff
2002-12-19 12:21 ` Brian Austin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.