1 # SPDX-License-Identifier: GPL-2.0-or-later
3 add_help_text selftest "run selftest using working ram <tmpfile> <address> <size>"
5 proc selftest {tmpfile address size} {
7 for {set i 0} {$i < $size } {set i [expr {$i+4}]} {
8 mww [expr {$address+$i}] $i
11 for {set i 0} {$i < 10 } {set i [expr {$i+1}]} {
12 echo "Test iteration $i"
13 dump_image $tmpfile $address $size
14 verify_image $tmpfile $address bin
15 load_image $tmpfile $address bin