OneNAND: Unexpected zero blocks

Kyungmin Park kmpark at infradead.org
Thu Feb 15 18:46:34 EST 2007


Hi,

> 
> 3) copy the rootfs (about 2 MB) to the new fs on /mnt
> 
> When the fs is unmounted, and remounted again, we see some 
> files in which two to four blocks of zeros occur (0x2000), or 
> blocks with some initial data filled in 20 to 40 bytes and 
> the rest zeros.

Umm, I  have no idea.

please use this script. In my board, it is passed both kernel
1. omap tree
2. onenand mtd tree

# note you have to add onenand partition to /etc/fstab
e.g., 
/dev/mtdblock4  /jffs2          jffs2   defaults                1       1

#!/bin/sh -x

DIRS="usr etc bin lib"

for dir in $DIRS; do
        echo "Testing $dir ..."
        time mount /jffs2
        rm -rf /jffs2/*
        mkdir -p /jffs2/$dir
        cp -ar /$dir/* /jffs2/$dir
        diff -Nur /$dir /jffs2/$dir
        umount /jffs2

        time mount /jffs2
        diff -Nur /$dir /jffs2/$dir
        umount /jffs2
done

Thank you,
Kyungmin Park





More information about the linux-mtd mailing list