Re: nandwrite/ubi memory corruption?

Michal Ludvig
2008-10-16T23:00:42Z

Ben Dooks wrote:
> On Fri, Oct 17, 2008 at 10:43:57AM +1300, Michal Ludvig wrote:
>> Ben Dooks wrote:
>>> On Thu, Oct 16, 2008 at 11:10:29PM +1300, Michal Ludvig wrote:
>>>> Hi all,
>>>>
>>>> I've got an ARM board with 64MB of NAND flash with 3 logical partitions
>>>> and am experiencing (probably) memory corruption of UBI/UBIFS on
>>>> /dev/mtd2 after writing data with nandwrite to /dev/mtd1.
>>>> [...]
>>>> s3c2410-nand s3c2410-nand: clock idle support enabled
>>> hmm, could you try disabling the clock-idle support?
>> How do I do that?
>
> there should be a Kconfig entry to do it when the s3c2410 nand driver
> is selected.

Ah, I see. OK, with clock-idle off nandwrite didn't corrupt ubi/ubifs
but the kernel still wouldn't boot:

NAND Flash Reading
dst base address = 0x30100000
Source start block number = 20
Source size (0x4000*n) = 0x180000
status 1
## Booting image at 30100000 ...
Bad Magic Number
status -1
u-boot>

Michal