-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeraterm
90 lines (67 loc) · 2.4 KB
/
Teraterm
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
SessionLog='C:\flashing\'
strconcat SessionLog 'macrooutput.txt'
fileopen sessionlogfile SessionLog 0 0
if sessionlogfile=-1 exit
filewriteln sessionlogfile '1'
;ConnectString='/C=06 /BAUD=115200'
CString='/I /C=6 /BAUD=115200'
filewriteln sessionlogfile CString
;Connect to serial port 06 at 115200 baud
connect CString
sendln 'd'
sendln 'reboot'
MsgAutoboot = 'Hit any key to stop autoboot:'
PromptUboot = '=>'
wait MsgAutoboot
sendln 'd'
wait PromptUboot
sendln 'fastboot usb_imx'
=============
Flash
@echo off
@echo Started Flashing the images
fastboot flash boot C:\Data\Builds\Flashing\boot.img
fastboot flash recovery C:\Data\Builds\Flashing\recovery.img
fastboot flash system C:\Data\Builds\Flashing\system.img
fastboot reboot
=======================
1_JenkinsCopy.bat
@echo off
@echo Copying files from Linux to Windows Jenkins Workspace.
echo y | C:\ProgApps\Putty\plink -ssh [email protected] -pw ubuntu123 exit
pscp -scp -pw ubuntu123 [email protected]:/home/ubuntu/APK-Downloads/aosp/boot.img C:\Data\Builds\Flashing
echo y | C:\ProgApps\Putty\plink -ssh [email protected] -pw ubuntu123 exit
pscp -scp -pw ubuntu123 [email protected]:/home/ubuntu/APK-Downloads/aosp/system.img C:\Data\Builds\Flashing
echo y | C:\ProgApps\Putty\plink -ssh [email protected] -pw ubuntu123 exit
pscp -scp -pw ubuntu123 [email protected]:/home/ubuntu/APK-Downloads/aosp/recovery.img C:\Data\Builds\Flashing
=======================
2_usb_imx.bat
@echo off
@echo Macro file to stop boot
START /B C:\Data\Builds\Automated Flashing\ttermpro.exe /M=C:\Data\Builds\Automated Flashing\TeraTerm-Macro.ttl
====================
;; Tera Term Macro
;; ============================================================================
;; file __uboot-config-common.ttl
;;
;; desc Common u-boot related definitions
;; ============================================================================
;; DEFINITIONS
;; ============================================================================
;;
;; The u-boot message to stop autoboot.
;;
sendln 'd'
sendln 'reboot'
MsgAutoboot = 'Hit any key to stop autoboot:'
;;
;; The u-boot prompt
;;
PromptUboot = '=>'
;; ============================================================================
;; EXECUTION
;; ============================================================================
wait MsgAutoboot
sendln 'd'
wait PromptUboot
sendln 'fastboot usb_imx'