define flash { ptx_test_start "Flashing \%2" .tftpfilename := \fbasename(\%1) if = \m(uboot_version) 2 { ptx_uboot_exec 600 "update_\%2 \m(tftpfilename)" } else { ptx_uboot_exec 5 "setenv \%2 \m(tftpfilename)" ptx_uboot_exec 600 "run update_\%2" "Copy to Flash... done" } ptx_test_end } #Read the library take \%1/libptxdisttest.kermit #Set up the line ptx_init \%2 ptx_uboot_enter_shell flash "\%3" "kernel" flash "\%4" "rootfs" if defined \%5 flash "\%5" "oftree" ptx_exit