# @name NAND raw write test
# @desc Write to NAND flash directly
# @requires nand
# @setup_requires nand
#NAND_L_FUNC_MTD_RAW_WRITE_CHAR source "common.sh"; install_modules.sh "nand"; part=`get_mtd_partition_number.sh "nand"` || die "error getting mtd part number: $part"; do_cmd "echo deadbeaf > $HOME/short_test "; do_cmd "dd if=$HOME/short_test of=/dev/mtd"$part" "
NAND_S_FUNC_MTD_RAW_WRITE_CHAR source "common.sh"; install_modules.sh "nand"; part=`get_mtd_partition_number.sh "nand"` || die "error getting mtd part number: $part"; do_cmd "flash_erase -q /dev/mtd"$part" 0 0 "; do_cmd "time dd if=/dev/urandom of=/dev/mtd"$part" bs=1M count=10"
NAND_S_FUNC_MTD_RAW_WRITE_BLOCK source "common.sh"; install_modules.sh "nand"; part=`get_mtd_partition_number.sh "nand"` || die "error getting mtd part number: $part"; do_cmd "flash_erase -q /dev/mtd"$part" 0 0 "; do_cmd "echo deadbeaf > $HOME/short_test "; do_cmd "dd if=$HOME/short_test of=/dev/mtdblock"$part" "
#NAND_L_NANDWRITE_CMD source "common.sh"; install_modules.sh "nand"; x=0; loop=100; while [ $x -le $loop ]; do nandwrite -p /dev/mtd1 /media/mmcblk0p1/MLO; x=$((x+1)); sleep 1; done



