In Tera Term I use the Serial Port to send commands to the board in order to log in and run certain settings that I want. Instead of typing these commands each time I test a board I want to create a program that sends these commands without the requirement to type them again and again each time. TeraTerm Scripts I was wondering if anybody have any scripts that could be useful to do either do maintenance or day to day/general tasks on switches.
Tera Term is a terminal emulation program that allows you to connect to Linux boxes.Main Features:- Serial port connections.- TCP/IP (telnet, SSH1, SSH2) connections.- Log replaying.- Named pipe connection.- IPv6 communication.- VT100 emulation and selected VT200/300 emulation.- TEK4010 emulation.- File transfer protocols (Kermit, XMODEM, YMODEM, ZMODEM, B-PLUS and Quick-VAN).
TTLEditor is a plain text editor with Tera Term Macro language syntax highlighting and syntax completion proposal features. TTLEditor is similar to the Macro Editor built into LogMeTT Configuration utility and may be used when there is no need in complex hierarchical macro structures. The name 'TTLEditor' indicates that this editor is built specially for creating and updating .TTL files.
Macro mover provides an easy way to distribute your VBA projects to other Office users is to create an add-in.Macro Mover add-in powered by Ribbon Commander allows Excel users to move entire VBA projects from one workbook to another within seconds. Forget what you knew about exporting and importing modules from within the Visual Basic Editor (VBE).
Type fast, fill forms, and automate data entry of all kind with this text expander for Windows. Perfect Keyboard brings users faster and error free typing, complete Windows automation and reliable processing of repetitive tasks of all kinds.
Create macros working in any Windows application and trigger them using hot-key or text shortcut, from custom toolbar, by defined mouse action, at scheduled time or when specific event occurs. 300+ commands available!
AutoCAD power users know that the keyboard is the fastest interface available for working with AutoCAD. AutoHook makes the fastest even faster by allowing you to customize your keyboard (and mouse!) quickly and easily. AutoHook now supports powerful macro commands that allow pausing for user input, macro looping, and sending special keys and mouse clicks to AutoCAD.
Enables creation of FTPShell scripts for automated and reliable file transfers. FTPShell Script is easy to use and supports basic constructs for looping, conditional execution, list manipulation, and wildcard matching. It also supports several macro commands for file processing and secure file transfers using SSL/TLS (FTPS) or SSH (SFTP).
This calculation program on Excel makes it possible to dimension and carry out the calculation of the pressure losses on the ductworks and air distribution systems.
COUGAR UIX SYSTEM is a free program that enables you to configure the COUGAR 600M Gaming Mouse. The program allows you to create various gaming profiles depending on the games that you are playing, you can assign macro commands according to your preferences, set the DPI levels and the mouse sensitivity.
TeraTerm Pro Web is the next generation tool for connecting with remote Telnet and SSH hosts. It is built based on the extremely popular open-source TeraTerm product put out by T. Teranishi in 1999 (click here for original site). In keeping with the original philosophy and spirit of the author, this modified version is completely free!!
Add JavaScript code to your HTML pages quickly and easily - giving your Web creations a real edge. Antechinus transforms your pages from displaying static content to live, dynamic, interactive applications.
Macro Recorder is an automation utility created for users who need to record keyboard and mouse activities as macros for later. This program might prove to be of good use if you need to complete repetitive tasks on your Windows PC.The application comes with a user-friendly interface, features easy-to-configure recording settings, and allows you define global hotkeys.
“Jitbit Macro Recorder” is a program that does more than it says on the tin. It records and plays keypresses and mouse movement and clicks; and also acts as an automation tool and an EXE compiler. I like this program because I can record macros of my routine tasks or create macros from scratch using the macro editor
Pulover’s Macro Creator is an open source automation tool and script generator. It is based on AutoHotkey language and provides users with multiple automation functions, as well as a built-in recorder.Main features:- Mouse & keyboard.- Control commands.- Window commands.- Image & pixel search.- Loops.
Macro Toolworks is a powerful all-in-one automation software for Windows. It allows users to record macros, create macros (300+ commands available) in a easy to use macro editor, and playback macros in any application or web page.
Macro Mania is a tool designed to automate various types of tasks and increase productivity in different environments. The program enables you to launch programs and automatically send keystrokes or mouse commands, schedule macros to run unattended and much more.
TERA’s action combat system makes battles come alive. Instead of mindlessly mashing keys while grinding through monotonous content, players jockey for position, aim at moving targets, dodge incoming attacks, and time combos carefully to deal massive damage.
Macro Scheduler is the computer automation tool that has been chosen by home users, small businesses, and big companies alike. Macro Scheduler's intuitive MacroScript language was designed specifically for automating Windows applications. By operating at the user level it is application-independent and allows automation of repetitive, time consuming tasks.
NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Tera Term is an opensource terminal emulator on MS-Windows commonly used by us developers. Tera Term supports a 'rich' macro language that can help in automating user actions. These scripts usually remain personal - rarely shared.
In this page, I intend to share the basic scripts that can be used to automate common tasks in the Linux PSP release. The scripts were created with intentional hierarchy to maximize reuse (via inclusion) and minimize redundancy across scripts. Currently, these scripts apply to OMAP35x Linux PSP. But, can be extended easily to other platforms.
Needless to say, these scripts are open to enhancements.
__common.ttl
__uboot-config.ttl
omap3evm-boot-ramdisk.ttl
.<syntaxhighlight>
getdate CurDate
gettime CurTime
StrWindowTitle = 'OMAP35x EVM'
Boot_RAMDISK = 'RAMDISK'Boot_NFS = 'NFS'
UseLauterbach = 0
StrCaption = ':::::::::::::::::::::::::::::::::::::::: '
StrEmpty = #13#10StrDivider_1 = '#13#10StrDivider_2 = '-----------------------------------------------------'#13#10StrDivider_3 = '.....................................................'#13#10
setdlgpos 10 10
settitle StrWindowTitle
</syntaxhighlight>
<syntaxhighlight>
MsgAutoboot = 'Hit any key to stop autoboot:'
PromptUboot = 'OMAP3EVM #'
wait PromptUbootsendln 'setenv autoload no'
</syntaxhighlight>
This file uses dummy values for various macros. They need to be defined with correct values for your platform.
<syntaxhighlight>
VarMacAddr = 'A1:B1:C1:E1:D1:E1'VarGatewayIP = '192.168.1.1'VarNetMask = '255.255.255.0'
VarServerIP = '192.168.1.2'
CmdDHCP = 'dhcp'
wait PromptUbootsendln 'setenv ethaddr ' VarMacAddr
wait PromptUbootsendln 'setenv gatewayip ' VarGatewayIP
wait PromptUbootsendln 'setenv netmask ' VarNetMask
wait PromptUbootsendln 'setenv serverip ' VarServerIP
wait PromptUbootsendln CmdDHCP
wait PromptUbootsendln 'setenv serverip ' VarServerIP
</syntaxhighlight>
<syntaxhighlight>
BootFile = 'uImage'
BootArgs_RAMDISK = 'console=ttyS0,115200n8 mem=128M root=/dev/ram0 rw initrd=0x81600000,16M ip=dhcp'BootArgs_NFS = 'console=ttyS0,115200n8 mem=128M root=/dev/nfs noinitrd nfsroot=192.168.1.10:/home/user/remote/098,nolock,rsize=1024,wsize=1024 ip=dhcp'
CmdLoadRamDisk = 'tftpboot 0x81600000 kernel/ramdisk.gz'CmdLoadUimage = 'tftpboot 0x80000000 kernel/uImage'CmdBootm = 'bootm 0x80000000'
wait PromptUbootsendln 'setenv bootfile ' BootFile
wait PromptUboot
strcompare VarBootMethod Boot_RAMDISKif result=0 then
endif
strcompare VarBootMethod Boot_NFSif result=0 then
endif
wait PromptUbootsendln 'printenv'
strcompare VarBootMethod Boot_RAMDISKif result=0 then
endif
wait PromptUbootsendln CmdLoadUimage
wait PromptUbootif UseLauterbach=0 then
elseif UseLauterbach=1 then
endif
</syntaxhighlight>
<syntaxhighlight>
PromptLinux = '[root@OMAP3EVM /]# '
CmdClear = 'clear'
</syntaxhighlight>
<syntaxhighlight>
CmdFbTimeout = 'echo 2 > /sys/power/fb_timeout_value'
PauseLog = 2PauseNormal = 30PauseSuspendBefore = 5PauseSuspendAfter = 10
StrSleepNormal = 'Wait for 30 secs'#13#10StrSleepBeforeSuspend = 'Wait for 5 secs'#13#10StrSleepAfterSuspend = 'Wait for 60 secs'#13#10
StrSuspend = 'Attempt Suspend'#13#10StrResume = 'Attempt Resume (send key click)'#13#10
StrViewPowerStates = 'View previous power states'#13#10StrViewDeepestIdleState = 'View the deepest IDLE state'#13#10
StrViewGovernor = 'View current governor'#13#10
StrViewVDD1 = 'View VDD1 OPP'#13#10StrViewVDD2 = 'View VDD2 OPP'#13#10
StrViewClock_MPU_IVA = 'View MPU & IVA clocks'#13#10StrViewClock_VirtVDD = 'View virtual VDD clocks'#13#10
CmdShowPowerStates = 'cat /proc/pm_prepwst'
CmdShowDeepestIdleState = 'cat /sys/power/cpuidle_deepest_state'
CmdShowClocks = 'cat /proc/omap_clocks'
CmdSetDeepestIdleState_0 = 'echo '0' > /sys/power/cpuidle_deepest_state'CmdSetDeepestIdleState_1 = 'echo '1' > /sys/power/cpuidle_deepest_state'CmdSetDeepestIdleState_2 = 'echo '2' > /sys/power/cpuidle_deepest_state'CmdSetDeepestIdleState_3 = 'echo '3' > /sys/power/cpuidle_deepest_state'CmdSetDeepestIdleState_4 = 'echo '4' > /sys/power/cpuidle_deepest_state'CmdSetDeepestIdleState_5 = 'echo '5' > /sys/power/cpuidle_deepest_state'CmdSetDeepestIdleState_6 = 'echo '6' > /sys/power/cpuidle_deepest_state'
CmdSuspend = 'echo -n 'mem' > /sys/power/state'
CmdShowAllClocks = 'cat /proc/omap_clocks'CmdShowClock_MPU = 'cat /proc/omap_clocks | grep mpu'CmdShowClock_IVA = 'cat /proc/omap_clocks | grep iva'CmdShowClock_VDDs = 'cat /proc/omap_clocks | grep virt'
CmdShowGovernor = 'cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor'
CmdSetGovernor_Ondemand = 'echo 'ondemand' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor'CmdSetGovernor_Performance = 'echo 'performance' > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor'
CmdSetVDD1_1 = 'echo '1' > /sys/power/vdd1_opp_value'CmdSetVDD1_2 = 'echo '2' > /sys/power/vdd1_opp_value'CmdSetVDD1_3 = 'echo '3' > /sys/power/vdd1_opp_value'CmdSetVDD1_4 = 'echo '4' > /sys/power/vdd1_opp_value'CmdSetVDD1_5 = 'echo '5' > /sys/power/vdd1_opp_value'
CmdShowVdd1 = 'cat /sys/power/vdd1_opp_value'
CmdSetVDD2_1 = 'echo '1' > /sys/power/vdd2_opp_value'CmdSetVDD2_2 = 'echo '2' > /sys/power/vdd2_opp_value'
CmdShowVdd2 = 'cat /sys/power/vdd2_opp_value'
</syntaxhighlight>
<syntaxhighlight>
include '__common.ttl'
StrDescription = 'UNIT TEST CASES FOR CPUIDLE'#13#10
StrDeepestIdleState_0 = 'Deepest Idle State = 0'#13#10StrDeepestIdleState_1 = 'Deepest Idle State = 1'#13#10StrDeepestIdleState_2 = 'Deepest Idle State = 2'#13#10StrDeepestIdleState_3 = 'Deepest Idle State = 3'#13#10StrDeepestIdleState_4 = 'Deepest Idle State = 4'#13#10StrDeepestIdleState_5 = 'Deepest Idle State = 5'#13#10StrDeepestIdleState_6 = 'Deepest Idle State = 6'#13#10StrDeepestIdleState_9 = 'Deepest Idle State = 9 (Incorrect)'#13#10
CmdSetDeepestIdleState_9 = 'echo '9' > /sys/power/cpuidle_deepest_state'
wait PromptLinux
sendln CmdFbTimeoutwait PromptLinux
sendlnwait PromptLinux
logopen 'test-cpuidle.log' 0 0logstart
logwrite StrEmpty
logwrite StrCaptionlogwrite CurDatelogwrite StrEmpty
logwrite StrCaptionlogwrite CurTimelogwrite StrEmpty
pause PauseLogsendlnwait PromptLinux
StrStateCaption = StrDeepestIdleState_0CmdDeepestIdleState = CmdSetDeepestIdleState_0
call ExecIdleTest
StrStateCaption = StrDeepestIdleState_1CmdDeepestIdleState = CmdSetDeepestIdleState_1
call ExecIdleTest
StrStateCaption = StrDeepestIdleState_2CmdDeepestIdleState = CmdSetDeepestIdleState_2
call ExecIdleTest
StrStateCaption = StrDeepestIdleState_3CmdDeepestIdleState = CmdSetDeepestIdleState_3
call ExecIdleTest
StrStateCaption = StrDeepestIdleState_4CmdDeepestIdleState = CmdSetDeepestIdleState_4
call ExecIdleTest
StrStateCaption = StrDeepestIdleState_5CmdDeepestIdleState = CmdSetDeepestIdleState_5
call ExecIdleTest
StrStateCaption = StrDeepestIdleState_6CmdDeepestIdleState = CmdSetDeepestIdleState_6
call ExecIdleTest
StrStateCaption = StrDeepestIdleState_9CmdDeepestIdleState = CmdSetDeepestIdleState_9
call ExecIdleTest_N
sendlnsendlnwait PromptLinux
sendlnsendln CmdSetDeepestIdleState_2wait PromptLinux
sendlnwait PromptLinux
pause PauseNormallogclose
exit
msgStatus =
strconcat msgstatus StrStateCaptionstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrDivider_2logwrite StrStateCaptionlogwrite StrDivider_2
pause PauseLog
sendlnsendlnwait PromptLinuxsendlnsendln CmdDeepestIdleStatewait PromptLinux
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewPowerStateslogwrite StrEmpty
pause PauseLog
strconcat msgstatus StrViewPowerStatesstatusbox msgstatus TitleWindow
sendlnsendlnwait PromptLinuxsendlnsendln CmdShowPowerStateswait PromptLinux
pause PauseLog
strconcat msgstatus StrSleepNormalstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrSleepNormallogwrite StrEmpty
pause PauseNormal
sendlnsendlnwait PromptLinux
pause PauseLog
strconcat msgstatus StrViewPowerStatesstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewPowerStateslogwrite StrEmpty
pause PauseLog
sendlnsendlnwait PromptLinuxsendlnsendln CmdShowPowerStateswait PromptLinux
pause PauseLog
strconcat msgstatus StrSleepBeforeSuspendstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrSleepBeforeSuspendlogwrite StrEmpty
pause PauseSuspendBefore
sendlnsendlnwait PromptLinux
pause PauseLog
strconcat msgstatus StrSuspendstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrSuspendlogwrite StrEmpty
pause PauseLog
sendlnsendlnwait PromptLinuxsendlnsendln CmdSuspend
strconcat msgstatus StrSleepAfterSuspendstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrSleepAfterSuspendlogwrite StrEmpty
pause PauseSuspendAfter
strconcat msgstatus StrResumestatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrResumelogwrite StrEmpty
sendlnwait PromptLinux
flushrecv
pause PauseLog
closesbox
return
msgStatus =
strconcat msgstatus StrStateCaptionstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrDivider_2logwrite StrStateCaptionlogwrite StrDivider_2
pause PauseLog
sendlnsendlnwait PromptLinuxsendlnsendln CmdDeepestIdleStatewait PromptLinux
flushrecv
pause PauseLog
closesbox
return
</syntaxhighlight>
<syntaxhighlight>
include '__common.ttl'
StrDescription = 'UNIT TEST CASES FOR CPUFREQ'#13#10
StrGovernorOndemand = 'Set ONDEMAND Governor'#13#10StrGovernorPerformance = 'Set PERFORMANCE Governor'#13#10
StrOppVdd1_1 = 'VDD1 OPP = 1'#13#10StrOppVdd1_2 = 'VDD1 OPP = 2'#13#10StrOppVdd1_3 = 'VDD1 OPP = 3'#13#10StrOppVdd1_4 = 'VDD1 OPP = 4'#13#10StrOppVdd1_5 = 'VDD1 OPP = 5'#13#10
StrOppVdd1_6 = 'VDD1 OPP = 6 (Incorrect)'#13#10
StrOppVdd2_1 = 'VDD2 OPP = 1'#13#10StrOppVdd2_2 = 'VDD2 OPP = 2'#13#10StrOppVdd2_3 = 'VDD2 OPP = 3'#13#10
StrOppVdd2_4 = 'VDD2 OPP = 4 (Incorrect)'#13#10
CmdSetVDD1_6 = 'echo '6' > /sys/power/vdd1_opp_value'CmdSetVDD2_4 = 'echo '4' > /sys/power/vdd2_opp_value'
wait PromptLinux
sendln CmdFbTimeoutwait PromptLinux
sendln CmdClearwait PromptLinux
sendlnwait PromptLinux
logopen 'test-cpufreq.log' 0 0logstart
logwrite StrEmpty
logwrite StrCaptionlogwrite CurDatelogwrite StrEmpty
logwrite StrCaptionlogwrite CurTimelogwrite StrEmpty
pause PauseLogsendln
StrStateCaption = StrOppVdd1_1CmdSetVDD1 = CmdSetVDD1_1
call ExecGovernors
StrStateCaption = StrOppVdd1_1CmdSetVDD1 = CmdSetVDD1_1
call ExecFreqTest
StrStateCaption = StrOppVdd1_2CmdSetVDD1 = CmdSetVDD1_2
call ExecFreqTest
StrStateCaption = StrOppVdd1_3CmdSetVDD1 = CmdSetVDD1_3
call ExecFreqTest
StrStateCaption = StrOppVdd1_5CmdSetVDD1 = CmdSetVDD1_5
call ExecFreqTest
StrStateCaption = StrOppVdd1_4CmdSetVDD1 = CmdSetVDD1_4
call ExecFreqTest
StrStateCaption = StrOppVdd1_6CmdSetVDD1 = CmdSetVDD1_6
call ExecFreqTest_N
StrStateCaption = StrOppVdd2_1CmdSetVDD2 = CmdSetVDD2_1
call ExecFreqTest2
StrStateCaption = StrOppVdd2_2CmdSetVDD2 = CmdSetVDD2_2
call ExecFreqTest2
StrStateCaption = StrOppVdd2_3CmdSetVDD2 = CmdSetVDD2_3
call ExecFreqTest2
sendlnwait PromptLinux
pause PauseNormallogclose
exit
msgStatus =
strconcat msgstatus StrStateCaptionstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrDivider_2logwrite StrStateCaptionlogwrite StrDivider_2
pause PauseLogsendlnwait PromptLinux
strconcat msgstatus StrViewGovernorstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewGovernorlogwrite StrEmpty
sendln CmdShowGovernorwait PromptLinux
pause PauseLog
strconcat msgstatus StrGovernorOndemandstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrGovernorOndemandlogwrite StrEmpty
pause PauseLog
sendln CmdSetGovernor_Ondemandwait PromptLinux
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewClock_VirtVDDlogwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowClock_VDDs
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewClock_MPU_IVAlogwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowClock_MPU
pause PauseLog
sendlnwait PromptLinux
sendln CmdShowClock_IVAwait PromptLinux
pause PauseLog
closesbox
return
msgStatus =
strconcat msgstatus StrStateCaptionstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrDivider_2logwrite StrStateCaptionlogwrite StrDivider_2
pause PauseLog
sendlnwait PromptLinux
sendln CmdSetVDD1wait PromptLinux
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewVDD1logwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowVdd1
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewVDD2logwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowVdd2
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewClock_VirtVDDlogwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowClock_VDDs
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewClock_MPU_IVAlogwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowClock_MPU
pause PauseLog
sendlnwait PromptLinux
sendln CmdShowClock_IVAwait PromptLinux
pause PauseLog
strconcat msgstatus StrSleepBeforeSuspendstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrSleepBeforeSuspendlogwrite StrEmpty
pause PauseSuspendBefore
sendlnwait PromptLinux
pause PauseLog
strconcat msgstatus StrSuspendstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrSuspendlogwrite StrEmpty
pause PauseLog
sendlnsendln CmdSuspend
strconcat msgstatus StrSleepAfterSuspendstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrSleepAfterSuspendlogwrite StrEmpty
pause PauseSuspendAfter
strconcat msgstatus StrResumestatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrCaptionlogwrite StrResumelogwrite StrEmpty
sendlnwait PromptLinux
flushrecv
pause PauseLog
closesbox
return
msgStatus =
strconcat msgstatus StrStateCaptionstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrDivider_2logwrite StrStateCaptionlogwrite StrDivider_2
pause PauseLog
sendlnwait PromptLinux
sendln CmdSetVDD2wait PromptLinux
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewVDD1logwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowVdd1
pause PauseLog
logwrite StrEmptylogwrite StrCaptionlogwrite StrViewVDD2logwrite StrEmpty
pause PauseLog
sendlnwait PromptLinux
wait PromptLinuxsendln CmdShowVdd2
pause PauseLog
sendlnwait PromptLinux
flushrecv
pause PauseLog
closesbox
return
msgStatus =
strconcat msgstatus StrStateCaptionstatusbox msgstatus TitleWindow
logwrite StrEmptylogwrite StrDivider_2logwrite StrStateCaptionlogwrite StrDivider_2
pause PauseLog
sendlnwait PromptLinux
sendln CmdSetVDD1wait PromptLinux
flushrecv
pause PauseLog
closesbox
return
</syntaxhighlight>
<syntaxhighlight></syntaxhighlight>
<syntaxhighlight>
include '__common.ttl'
VarBootMethod = Boot_RAMDISK
include '__uboot-config-common.ttl'include '__uboot-config-network.ttl'include '__uboot-load-kernel.ttl'
include '__kernel-common.ttl'include '__kernel-boot.ttl'
</syntaxhighlight>
<syntaxhighlight>
include '__common.ttl'
VarBootMethod = Boot_NFS
include '__uboot-config-common.ttl'include '__uboot-config-network.ttl'include '__uboot-load-kernel.ttl'
include '__kernel-common.ttl'include '__kernel-boot.ttl'
</syntaxhighlight>
<syntaxhighlight>
include '__common.ttl'
include '__kernel-common.ttl'
include '__kernel-power.ttl'
include '__test-cpuidle.ttl'include '__test-cpufreq.ttl'
beeppause 1beeppause 1beep
</syntaxhighlight>
Below are a few simple scripts used to boot a DaVinci EVM - obviously you'll need to modify your IP address, kernel name and rootpath appropriately. These examples should serve as a good starting point if you want to create your own scripts.
To run the scripts, simply hit any key during the U-boot countdown to get to the U-boot prompt. Then run 'Macro->Control' and browse to the *.ttl.
When you don't have a switch/router and need to boot your EVM using TFTP/NFS, you can directly connect your EVM to your laptop with a crossover cable. Here, the Linux host's IP address is set to 192.168.1.100 (modify as needed). To manually set the Linux host's IP address:
Also, note the $(videoargs) setting below (setup for DVSDK 1.30)--if you are using an older DVSDK, simply remove $(videoargs) from the bootargs.
<syntaxhighlight>
showtt 0setsync 1
sendln 'setenv serverip 192.168.1.100'waitrecv '#' 1 0
sendln 'setenv ipaddr 192.168.1.101'waitrecv '#' 1 0
sendln 'setenv nfshost $(serverip)'waitrecv '#' 1 0
sendln 'setenv rootpath /home/user/target'waitrecv '#' 1 0
sendln 'setenv videoargs video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc'waitrecv '#' 1 0
sendln 'setenv bootargs $(videoargs) console=ttyS0,115200n8 noinitrd rw root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock ip=$(ipaddr) mem=120M'waitrecv '#' 1 0
sendln 'tftpboot 0x80700000 uImage; bootm'waitrecv '#' 1 0</syntaxhighlight> Note: The use of parenthesis for variable substitution is being deprecated for new U-boot releases - use curly braces {} instead. Check http://www.denx.de/wiki/view/DULG/CommandLineParsing
Below are 4 macros for each of the boot options on DM355 - TFTP/NAND for kernel and NAND/NFS for file system):
<syntaxhighlight>
showtt 0setsync 1
sendln 'setenv serverip xxx.xxx.xxx.xxx'waitrecv '#' 1 0
sendln 'setenv nfshost $(serverip)'waitrecv '#' 1 0
sendln 'setenv rootpath /home/user/target'waitrecv '#' 1 0
sendln 'setenv videoargs video=dm355fb:vid0=720x480x16,2025K@0,0:vid1=720x480x16,2025K@0,0:osd0=720x480,1350K@0,0:osd1=720x480,1350K@0,0waitrecv '#' 1 0
sendln 'setenv bootargs $(videoargs) console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=$(nfshost):$(rootpath) ip=dhcp mem=116M'waitrecv '#' 1 0
sendln 'setenv bootfile uImage'waitrecv '#' 1 0
sendln 'dhcp;bootm'waitrecv '#' 1 0</syntaxhighlight> Note: The use of parenthesis for variable substitution is being deprecated for new U-boot releases - use curly braces {} instead. Check http://www.denx.de/wiki/view/DULG/CommandLineParsing
<syntaxhighlight>
showtt 0setsync 1
sendln 'setenv serverip xxx.xxx.xxx.xxx'waitrecv '#' 1 0
sendln 'setenv videoargs video=dm355fb:vid0=720x480x16,2025K@0,0:vid1=720x480x16,2025K@0,0:osd0=720x480,1350K@0,0:osd1=720x480,1350K@0,0waitrecv '#' 1 0
sendln 'setenv bootargs $(videoargs) console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=yaffs2 rw ip=dhcp mem=116M'waitrecv '#' 1 0
sendln 'setenv bootfile uImage'waitrecv '#' 1 0
sendln 'dhcp;bootm'waitrecv '#' 1 0</syntaxhighlight> Note: The use of parenthesis for variable substitution is being deprecated for new U-boot releases - use curly braces {} instead. Check http://www.denx.de/wiki/view/DULG/CommandLineParsing
<syntaxhighlight>
showtt 0setsync 1
sendln 'setenv serverip xxx.xxx.xxx.xxx'waitrecv '#' 1 0
sendln 'setenv nfshost $(serverip)'waitrecv '#' 1 0
sendln 'setenv rootpath /home/user/target'waitrecv '#' 1 0
sendln 'setenv videoargs video=dm355fb:vid0=720x480x16,2025K@0,0:vid1=720x480x16,2025K@0,0:osd0=720x480,1350K@0,0:osd1=720x480,1350K@0,0waitrecv '#' 1 0
sendln 'setenv bootargs $(videoargs) console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=$(nfshost):$(rootpath) ip=dhcp mem=116M'waitrecv '#' 1 0
sendln 'nboot 0x80700000 0 0x400000;bootm'waitrecv '#' 1 0</syntaxhighlight> Note: The use of parenthesis for variable substitution is being deprecated for new U-boot releases - use curly braces {} instead. Check http://www.denx.de/wiki/view/DULG/CommandLineParsing
<syntaxhighlight>
showtt 0setsync 1
sendln 'setenv videoargs video=dm355fb:vid0=720x480x16,2025K@0,0:vid1=720x480x16,2025K@0,0:osd0=720x480,1350K@0,0:osd1=720x480,1350K@0,0waitrecv '#' 1 0
sendln 'setenv bootargs $(videoargs) console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=yaffs2 rw ip=dhcp mem=116M'waitrecv '#' 1 0
sendln 'nboot 0x80700000 0 0x400000;bootm'waitrecv '#' 1 0</syntaxhighlight> Note: The use of parenthesis for variable substitution is being deprecated for new U-boot releases - use curly braces {} instead. Check http://www.denx.de/wiki/view/DULG/CommandLineParsing
Below is an example ttl script for users with a switch/router. To reiterate one of the advantages of using a ttl script is that you can share boards between team members without wrenching their boot settings.
This ttl script has been tested in the DVSDK 1.40 environment.
Naturally replace the serverip with whatever /sbin/ifconfig shows as your IP address.
<syntaxhighlight>showtt 0setsync 1
sendln 'setenv serverip 158.123.45.678'waitrecv '#' 1 0
sendln 'setenv nfshost $(serverip)'waitrecv '#' 1 0
sendln 'setenv ipaddr dhcp'waitrecv '#' 1 0
sendln 'setenv rootpath /home/user/workdir/filesys_dm6467'waitrecv '#' 1 0
sendln 'setenv bootargs console=ttyS0,115200n8 noinitrd rw root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock ip=$(ipaddr) mem=120M davincihd_capture.channel0_numbuffers=4'waitrecv '#' 1 0
sendln 'setenv bootfile uImage.DM6467'waitrecv '#' 1 0
sendln 'dhcp;tftpboot;bootm'waitrecv '#' 1 0</syntaxhighlight>
Here is a DM6467T EVM Teraterm macro file for DVSDK 3.10. The macro provides the following options:
<syntaxhighlight>
showtt 1
setsync 1
sendln 'setenv autoload no'waitrecv '>' 1 0
sendln 'setenv bootfile uImage'waitrecv '>' 1 0
sendln 'setenv videocfg vpif_display.ch2_numbuffers=0 vpif_display.ch3_numbuffers=0'waitrecv '>' 1 0
sendln 'setenv ipaddr 192.168.1.111'waitrecv '>' 1 0sendln 'setenv gateway 192.168.1.1'waitrecv '>' 1 0sendln 'setenv netmask 255.255.255.0'waitrecv '>' 1 0sendln 'setenv static_ip $ipaddr:$gateway:$netmask::::off'waitrecv '>' 1 0
sendln 'setenv bootcmd_flash nboot 80700000 0 640000;bootm'waitrecv '>' 1 0sendln 'setenv bootcmd_tftp tftp;bootm'waitrecv '>' 1 0
defaultNFSpath='/home/user/workdir/filesys'msg = 'Use Default NFS Path Address: 'strconcat msg defaultNFSpathyesnobox msg 'DaVinci Setup'if result then sendln 'setenv nfspath /home/user/workdir/filesys' waitrecv '>' 1 0else inputbox 'Enter NFS Path:' 'DaVinci Setup'
sendln 'setenv nfspath ' inputstr waitrecv '>' 1 0reboorooendif
yesnobox 'Boot Static or Dynamic? [Yes=Static, No=Dynamic(dhcp)]' 'DaVinci Setup'if result then sendln 'setenv myip $static_ip' waitrecv '>' 1 0else sendln 'dhcp' waitrecv '>' 1 0 sendln 'setenv myip dhcp' waitrecv '>' 1 0endif
defaultServerip='192.168.1.102'msg = 'Use Default TFTP Server IP Address: 'strconcat msg defaultServeripyesnobox msg 'DaVinci Setup'if result then sendln 'setenv serverip ' defaultServerip waitrecv '>' 1 0else inputbox 'Enter Server IP Address:' 'DaVinci Setup' sendln 'setenv serverip ' inputstr waitrecv '>' 1 0endif
sendln 'setenv nfshost $serverip'waitrecv '>' 1 0
yesnobox 'Boot using Root from HDD or NFS? (Yes=HDD, No=NFS)' 'DaVinci Setup'if result then sendln 'setenv bootargs_hdd mem=76M console=ttyS0,115200n8 noinitrd ip=$myip root=/dev/hda1' waitrecv '>' 1 0 sendln 'setenv bootargs $bootargs_hdd $videocfg' waitrecv '>' 1 0else sendln 'setenv bootargs_nfs mem=76M console=ttyS0,115200n8 noinitrd rw ip=$myip root=/dev/nfs nfsroot=$nfshost:$nfspath,nolock' waitrecv '>' 1 0 sendln 'set bootargs $bootargs_nfs $videocfg' waitrecv '>' 1 0endif
yesnobox 'Boot Kernel from Flash or via TFTP? (Yes=Flash, No=TFTP)' 'DaVinci Setup'if result then sendln 'set bootcmd $bootcmd_flash' waitrecv '>' 1 0else sendln 'set bootcmd $bootcmd_tftp' waitrecv '>' 1 0endif
yesnobox 'Save uboot environment variables?' 'DaVinci Setup'if result then sendln 'saveenv' waitrecv '>' 1 0endif
yesnobox 'Boot Linux now?' 'DaVinci Setup'if result then
else setdlgpos 200 200 msg='Use the 'boot' command when you want to boot the DVEVM' ;statusbox 'Message' 'Title' statusbox msg 'Boot later...' pause 2 closesboxendif
showtt 1</syntaxhighlight>
Note: The use of parenthesis for variable substitution is being deprecated for new U-boot releases - use curly braces {} instead. Check http://www.denx.de/wiki/view/DULG/CommandLineParsing
Below is an example ttl script for users with a switch/router and NFS server. To reiterate one of the advantages of using a ttl script is that you can share boards between team members without wrenching their boot settings.
This ttl script has been tested in the SDK 1.00.00.10 environment and all directories and filenames match the default installation procedure as listed in the Installing the Software for OMAP-L137
Note: for OMAPL137 you must set the delay as mentioned in the What is a TeraTerm INI? section
<syntaxhighlight>
showtt 1
setsync 1
settitle 'OMAPL137'
sendln 'setenv serverip 192.168.1.89' ;CHANGE 192.168.1.89 TO MATCH YOUR CONFIGURATION!!!
sendln 'setenv nfshost ${serverip}'
sendln 'setenv rootpath /home/<useracct>/workdir/filesys' ;CHANGE <useracct> TO MATCH YOUR CONFIGURATION!!!
sendln 'setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=${nfshost}:${rootpath},nolock mem=32M'
sendln 'setenv bootfile uImage'
sendln 'dhcp;bootm'
</syntaxhighlight>
The script below works with an USB pendrive that should meet the requirements below. Check the <LSP_02.20_OMAP-L137_User_Guide.pdf> and this topic for additional details.
<syntaxhighlight>
showtt 1
setsync 1
PromptUboot = 'U-Boot > '
settitle 'OMAPL137'
sendln 'usb start'wait PromptUboot
sendln 'fatload usb 0:1 0xC0700000 uimage'wait PromptUboot
sendln 'setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/sda2 rootfstype=ext2 mem=32M' ;USB BOOT
sendln 'setenv bootfile uImage'
sendln 'bootm'
</syntaxhighlight>
Note: The command usb start sometimes hangs on the message scanning bus for storage devices.... If this happens to you, stop the macro from executing, reset the board and reload the script file.
The script below works with a linux kernel in SPI and a MMC/SD card that contains the root filesystem
<syntaxhighlight>
showtt 1
setsync 1
settitle 'OMAPL137'
PromptUboot = 'U-Boot > '
sendln 'setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/mmcblk0p1 rootfstype=ext2 mem=32M' ;MMC/SD BOOT
sendln 'sf probe 0'wait PromptUboot
sendln 'sf read 0xc0700000 0x1e0000 0x220000'wait PromptUboot
sendln 'bootm'
</syntaxhighlight>
Below is an example ttl script for users with a switch/router and NFS server. To reiterate one of the advantages of using a ttl script is that you can share boards between team members without wrenching their boot settings.
This ttl script has been tested in the SDK 1.00.00.08 environment and all directories and filenames match the default installation procedure as listed in the GSG: Installing the Software for OMAP-L1
<syntaxhighlight>
showtt 1
setsync 1
settitle 'OMAPL138'
sendln 'setenv serverip 192.168.1.89' ;CHANGE 192.168.1.89 TO MATCH YOUR CONFIGURATION!!!
sendln 'setenv nfshost ${serverip}'
sendln 'setenv rootpath /home/<useracct>/workdir/filesys' ;CHANGE <useracct> TO MATCH YOUR CONFIGURATION!!!
sendln 'setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=${nfshost}:${rootpath},nolock mem=32M'
sendln 'setenv bootfile uImage'
sendln 'dhcp;bootm'
</syntaxhighlight>
<syntaxhighlight>
setsync 1
sendln 'mmcinit'waitrecv '#' 1 0
sendln 'setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait omap-dss.def_disp=dvi omapfb.video_mode=640x480MR-16@60 omapfb.vram=4M,4M,4M mem=80M'
waitrecv '#' 1 0
sendln 'setenv bootcmd mmcinit;fatload mmc 0 80300000 uImage;bootm 80300000'waitrecv '#' 1 0
</syntaxhighlight>
When TeraTerm starts, it runs TERATERM.INI to setup the console. Once you have set your serial terminal to the correct baude rate (via 'Setup->Serial') on COM1 (via 'Setup->General->Default Port'), you can save the setup via 'Setup->Save Setup.' Save this setup in the TeraTerm Installation directory by overwriting TERATERM.INI. Now your TeraTerm will be setup correctly every time you start it.
To run the above scripts, you may need to add a line delay of 100ms (otherwise the lines can become concatenated) by setting the Transmit delay to 100 ms/line (via 'Setup->Serial'). You'll probably want to save this modification in TERATERM.INI to avoid having to modify it every time you start TeraTerm.
{{
Please post only comments related to the article Teraterm Scripts here. | Keystone=
Please post only comments related to the article Teraterm Scripts here. | C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Teraterm Scripts here. | DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Teraterm Scripts here. | MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Teraterm Scripts here. | OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Teraterm Scripts here. | OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Teraterm Scripts here. | MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Teraterm Scripts here. | For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Teraterm Scripts here. }} |
Links | |||
|