blob: a903e7c3268b011a9ff42d76bd0ccf87328c1480 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
|