ltp-ddt nand_mtd_dd_rw_jffs2

error:
Since no bad blocks found in uboot, stripping out the core code debugging:
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
 
 
It found that caused the error is echo 3> / proc / sys / vm / drop_caches
 
Temporarily comment out the first sentence, and the cause is not found.
 
 
 
 
 




Guess you like

Origin www.cnblogs.com/idyllcheung/p/10947937.html
ddt