Re: [Yaffs] How can i read out ecc layout data when ECCGETLA…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ketil Froyn
Date:  
To: yy xuye
CC: yaffs
Subject: Re: [Yaffs] How can i read out ecc layout data when ECCGETLAYOUT failed
On Wed, Nov 2, 2011 at 8:41 AM, yy xuye <> wrote:
> Hi guys,
>
> I want to dump yaffs2's nand data with ioctl function. But the control param
> is fail for some devices, the code as so:
>
>     struct nand_ecclayout ecc_layout;
>     ret = ioctl(ctx->fd, ECCGETLAYOUT, &ecc_layout);
>
> It return error message as so: Inappropriate ioctl for device.
> Why?
>
> Is there any other methods that i can get the ECC Layout data?


Does nanddump work for you? nanddump does this:

struct mtd_ecc_stats stat1
ioctl(fd, ECCGETSTATS, &stat1)

Cheers, Ketil