# @name # SPI modular read write negative test # @desc # modprobe spi module first and then do RW and rmmod before RW finishing # @requires spi_master SPI_L_MODULAR_NEG_MOD_RW_0001 source "common.sh"; install_modules.sh "spi"; part=`get_mtd_partition_number.sh "spi"` || die "error getting mtd part number: $part"; size=`get_mtd_size.sh "$part"` || die "error getting mtd size: $size"; size=$(( $size/MB )) && size=`get_ceiling_divide.sh "$size" 2` || die "error getting divide ceiling"; blk_device_modular_dd_rw_neg.sh -f "jffs2" -b "1M" -c "$size" -d "spi" -i "write_in_bg"