[prev in list] [next in list] [prev in thread] [next in thread] 

List:       yaffs
Subject:    Re: [Yaffs] How can i read out ecc layout data when ECCGETLAYOUT
From:       Charles Manning <manningc2 () actrix ! gen ! nz>
Date:       2011-11-02 23:51:09
Message-ID: 201111031251.09621.manningc2 () actrix ! gen ! nz
[Download RAW message or body]

On Wednesday 02 November 2011 20:41:47 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.
>

What device did you try this on?

It should work on the mtd char devices. If not then there is a hole in your 
flash driver.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic