* Yaffs2 on None-ECC MTD
@ 2013-08-17 8:28 Woody Wu
2013-08-17 10:58 ` richard -rw- weinberger
0 siblings, 1 reply; 7+ messages in thread
From: Woody Wu @ 2013-08-17 8:28 UTC (permalink / raw)
To: kernelnewbies
Hi,
Does Yaffs2 file system has its own capabilities to do ECC? My NAND
driver for some reason cannot enable ECC yet. Also I want to ask the
same question to Jffs2.
Thanks in advance.
--
I can't go back to yesterday - because I was a different person then
^ permalink raw reply [flat|nested] 7+ messages in thread
* Yaffs2 on None-ECC MTD
2013-08-17 8:28 Yaffs2 on None-ECC MTD Woody Wu
@ 2013-08-17 10:58 ` richard -rw- weinberger
2013-08-17 12:37 ` Woody Wu
0 siblings, 1 reply; 7+ messages in thread
From: richard -rw- weinberger @ 2013-08-17 10:58 UTC (permalink / raw)
To: kernelnewbies
On Sat, Aug 17, 2013 at 10:28 AM, Woody Wu <narkewoody@gmail.com> wrote:
> Hi,
>
> Does Yaffs2 file system has its own capabilities to do ECC? My NAND
> driver for some reason cannot enable ECC yet. Also I want to ask the
> same question to Jffs2.
The Linux MTD subsystem is able to do software ECC.
--
Thanks,
//richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Yaffs2 on None-ECC MTD
2013-08-17 10:58 ` richard -rw- weinberger
@ 2013-08-17 12:37 ` Woody Wu
2013-08-17 15:43 ` richard -rw- weinberger
0 siblings, 1 reply; 7+ messages in thread
From: Woody Wu @ 2013-08-17 12:37 UTC (permalink / raw)
To: kernelnewbies
On Sat, Aug 17, 2013 at 12:58:41PM +0200, richard -rw- weinberger wrote:
> On Sat, Aug 17, 2013 at 10:28 AM, Woody Wu <narkewoody@gmail.com> wrote:
> > Hi,
> >
> > Does Yaffs2 file system has its own capabilities to do ECC? My NAND
> > driver for some reason cannot enable ECC yet. Also I want to ask the
> > same question to Jffs2.
>
> The Linux MTD subsystem is able to do software ECC.
>
By far, I cannot enable any kind of ECC from MTD yet, since my u-boot
has some problem cannot do correct ECC and my root file system image is
flashed by u-boot. If I enabled ECC from MTD, my root file system cannot
mount.
Do you know whethe Yaffs2/Jffs2 has their own build-in ECC function?
Googled this but not get clear answer.
--
I can't go back to yesterday - because I was a different person then
^ permalink raw reply [flat|nested] 7+ messages in thread
* Yaffs2 on None-ECC MTD
2013-08-17 12:37 ` Woody Wu
@ 2013-08-17 15:43 ` richard -rw- weinberger
2013-08-18 6:22 ` Woody Wu
2013-08-21 2:59 ` Woody Wu
0 siblings, 2 replies; 7+ messages in thread
From: richard -rw- weinberger @ 2013-08-17 15:43 UTC (permalink / raw)
To: kernelnewbies
On Sat, Aug 17, 2013 at 2:37 PM, Woody Wu <narkewoody@gmail.com> wrote:
> On Sat, Aug 17, 2013 at 12:58:41PM +0200, richard -rw- weinberger wrote:
>> On Sat, Aug 17, 2013 at 10:28 AM, Woody Wu <narkewoody@gmail.com> wrote:
>> > Hi,
>> >
>> > Does Yaffs2 file system has its own capabilities to do ECC? My NAND
>> > driver for some reason cannot enable ECC yet. Also I want to ask the
>> > same question to Jffs2.
>>
>> The Linux MTD subsystem is able to do software ECC.
>>
> By far, I cannot enable any kind of ECC from MTD yet, since my u-boot
> has some problem cannot do correct ECC and my root file system image is
> flashed by u-boot. If I enabled ECC from MTD, my root file system cannot
> mount.
Then fix your uboot. Or at least hire someone to do so.
Otherwise you *will* encounter massive problems.
> Do you know whethe Yaffs2/Jffs2 has their own build-in ECC function?
> Googled this but not get clear answer.
IIRC yaffs2 has it's own ECC stuff. It writes into the spare area which is
a no-go and one of the reasons why it's not mainline.
--
Thanks,
//richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Yaffs2 on None-ECC MTD
2013-08-17 15:43 ` richard -rw- weinberger
@ 2013-08-18 6:22 ` Woody Wu
2013-08-21 2:59 ` Woody Wu
1 sibling, 0 replies; 7+ messages in thread
From: Woody Wu @ 2013-08-18 6:22 UTC (permalink / raw)
To: kernelnewbies
On Sat, Aug 17, 2013 at 05:43:56PM +0200, richard -rw- weinberger wrote:
> On Sat, Aug 17, 2013 at 2:37 PM, Woody Wu <narkewoody@gmail.com> wrote:
> > On Sat, Aug 17, 2013 at 12:58:41PM +0200, richard -rw- weinberger wrote:
> >> On Sat, Aug 17, 2013 at 10:28 AM, Woody Wu <narkewoody@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > Does Yaffs2 file system has its own capabilities to do ECC? My NAND
> >> > driver for some reason cannot enable ECC yet. Also I want to ask the
> >> > same question to Jffs2.
> >>
> >> The Linux MTD subsystem is able to do software ECC.
> >>
> > By far, I cannot enable any kind of ECC from MTD yet, since my u-boot
> > has some problem cannot do correct ECC and my root file system image is
> > flashed by u-boot. If I enabled ECC from MTD, my root file system cannot
> > mount.
>
> Then fix your uboot. Or at least hire someone to do so.
> Otherwise you *will* encounter massive problems.
>
> > Do you know whethe Yaffs2/Jffs2 has their own build-in ECC function?
> > Googled this but not get clear answer.
>
> IIRC yaffs2 has it's own ECC stuff. It writes into the spare area which is
> a no-go and one of the reasons why it's not mainline.
>
Hi, Richard,
Many thanks for your information and suggestions. I will be doing some
homework and tryings before come back.
--
I can't go back to yesterday - because I was a different person then
^ permalink raw reply [flat|nested] 7+ messages in thread
* Yaffs2 on None-ECC MTD
2013-08-17 15:43 ` richard -rw- weinberger
2013-08-18 6:22 ` Woody Wu
@ 2013-08-21 2:59 ` Woody Wu
2013-08-21 3:52 ` Mandeep Sandhu
1 sibling, 1 reply; 7+ messages in thread
From: Woody Wu @ 2013-08-21 2:59 UTC (permalink / raw)
To: kernelnewbies
On Sat, Aug 17, 2013 at 05:43:56PM +0200, richard -rw- weinberger wrote:
> On Sat, Aug 17, 2013 at 2:37 PM, Woody Wu <narkewoody@gmail.com> wrote:
> > On Sat, Aug 17, 2013 at 12:58:41PM +0200, richard -rw- weinberger wrote:
> >> On Sat, Aug 17, 2013 at 10:28 AM, Woody Wu <narkewoody@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > Does Yaffs2 file system has its own capabilities to do ECC? My NAND
> >> > driver for some reason cannot enable ECC yet. Also I want to ask the
> >> > same question to Jffs2.
> >>
> >> The Linux MTD subsystem is able to do software ECC.
> >>
> > By far, I cannot enable any kind of ECC from MTD yet, since my u-boot
> > has some problem cannot do correct ECC and my root file system image is
> > flashed by u-boot. If I enabled ECC from MTD, my root file system cannot
> > mount.
>
> Then fix your uboot. Or at least hire someone to do so.
> Otherwise you *will* encounter massive problems.
>
> > Do you know whethe Yaffs2/Jffs2 has their own build-in ECC function?
> > Googled this but not get clear answer.
>
> IIRC yaffs2 has it's own ECC stuff. It writes into the spare area which is
> a no-go and one of the reasons why it's not mainline.
>
> --
> Thanks,
> //richard
Just report back the list: I've managed to mount root from NFS, by
which I can use pure Linux way to prepare my root filesystems to yaffs2
and enable HW ECC in MTD layer only. Then I can ignore the mismatch
between u-boot and kernel in the ways they handing NAND OOB area.
Thanks.
--
I can't go back to yesterday - because I was a different person then
^ permalink raw reply [flat|nested] 7+ messages in thread
* Yaffs2 on None-ECC MTD
2013-08-21 2:59 ` Woody Wu
@ 2013-08-21 3:52 ` Mandeep Sandhu
0 siblings, 0 replies; 7+ messages in thread
From: Mandeep Sandhu @ 2013-08-21 3:52 UTC (permalink / raw)
To: kernelnewbies
> Just report back the list: I've managed to mount root from NFS, by
> which I can use pure Linux way to prepare my root filesystems to yaffs2
> and enable HW ECC in MTD layer only. Then I can ignore the mismatch
> between u-boot and kernel in the ways they handing NAND OOB area.
>
But your boot-loader still needs to read the NAND flash for loading the
kernel image. Won't it be a problem if uboot doesn't understand ECC? What
if some blocks have gone bad, uboot might load a corrupted kernel image.
CMIIW.
-mandeep
> Thanks.
>
> --
> I can't go back to yesterday - because I was a different person then
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130821/321540e9/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-08-21 3:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-17 8:28 Yaffs2 on None-ECC MTD Woody Wu
2013-08-17 10:58 ` richard -rw- weinberger
2013-08-17 12:37 ` Woody Wu
2013-08-17 15:43 ` richard -rw- weinberger
2013-08-18 6:22 ` Woody Wu
2013-08-21 2:59 ` Woody Wu
2013-08-21 3:52 ` Mandeep Sandhu
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.