ltp-ddt nand_mtd_dd_rw_jffs2

error:
由于在uboot下没有发现坏块,将核心代码剥离出来调试:
flash_eraseall -q -j /dev/mtd1
mkdir -p /mnt/partition_nand_1419
mount -t jffs2 -o async /dev/mtdblock1 /mnt/partition_nand_1419
time dd if=/dev/urandom of=/tmp/srctest bs=131072 count=10
time dd if=/tmp/srctest of=/mnt/partition_nand_1419/test_file_1419 bs=131072 count=10
sync
echo 3 > /proc/sys/vm/drop_caches
diff /tmp/srctest /mnt/partition_nand_1419/test_file_1419
umount /mnt/partition_nand_1419
 
 
发现引起错误的是echo 3 > /proc/sys/vm/drop_caches
 
暂时先将此句注释掉,并没有找到原因。
 
 
 
 
 




原文地址:https://www.cnblogs.com/idyllcheung/p/10947937.html