#!/bin/sh#
#   ti processor sdk linux am335x evm /bin/setup-minicom.sh hacking
# 说明:
#     本文主要对TI的sdk中的setup-minicom.sh脚本进行解读,是为了了解
# 其工作机制。
#
#                                      2016-4-16 深圳 南山平山村 曾剑锋# This distribution contains contributions or derivatives under copyright
# as follows:
#
# Copyright (c) 2010, Texas Instruments Incorporated
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# - Redistributions of source code must retain the above copyright notice,
#   this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright
#   notice, this list of conditions and the following disclaimer in the
#   documentation and/or other materials provided with the distribution.
# - Neither the name of Texas Instruments nor the names of its
#   contributors may be used to endorse or promote products derived
#   from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.cwd=`dirname $0`
. $cwd/common.shminicomcfg=${HOME}/.minirc.dflcat << EOM--------------------------------------------------------------------------------"
This step will set up minicom (serial communication application) for
SDK developmentFor boards that contain a USB-to-Serial converter on the board such as:* BeagleBone* Beaglebone Black* AM335x EVM-SKthe port used for minicom will be automatically detected. By default Ubuntu
will not recognize this device. Setup will add a udev rule to
/etc/udev/ so that from now on it will be recognized as soon as the board is
plugged in.For other boards, the serial will defualt to /dev/ttyS0. Please update based
on your setup.--------------------------------------------------------------------------------EOM默认的端口
portdefault=/dev/ttyS0echo ""
echo "NOTE: If your using any of the above boards simply hit enter"
echo "and the correct port will be determined automatically at a"
echo "later step.  For all other boards select the serial port"
echo "that the board is connected to."
echo "Which serial port do you want to use with minicom?"
read -p "[ $portdefault ] " port# 如果没有输入,那么就是用默认配置
if [ ! -n "$port" ]; thenport=$portdefault
fi# 备份之前的配置
if [ -f $minicomcfg ]; thencp $minicomcfg $minicomcfg.oldechoecho "Copied existing $minicomcfg to $minicomcfg.old"
fiecho "pu port             $port
pu baudrate         115200
pu bits             8
pu parity           N
pu stopbits         1
pu minit
pu mreset
pu mdialpre
pu mdialsuf
pu mdialpre2
pu mdialsuf2
pu mdialpre3
pu mdialsuf3
pu mconnect
pu mnocon1          NO CARRIER
pu mnocon2          BUSY
pu mnocon3          NO DIALTONE
pu mnocon4          VOICE
pu rtscts           No" | tee $minicomcfg > /dev/null
# tee:读取标准输入的数据,并将其内容输出成文件。
check_statusecho
echo "Configuration saved to $minicomcfg. You can change it further from inside"
echo "minicom, see the Software Development Guide for more information."
echo "--------------------------------------------------------------------------------"

ti processor sdk linux am335x evm /bin/setup-minicom.sh hacking相关推荐

  1. ti processor sdk linux am335x evm /bin/setup-uboot-env.sh hacking

    #!/bin/sh# # ti processor sdk linux am335x evm /bin/setup-uboot-env.sh hacking # 说明: # 本文主要对TI的sdk中的 ...

  2. ti processor sdk linux am335x evm /bin/create-sdcard.sh hacking

    #!/bin/bash# # ti processor sdk linux am335x evm /bin/create-sdcard.sh hacking # 说明: # 本文主要对TI的sdk中的 ...

  3. ti linux 开发环境,Ti AM5728 SDK开发环境建立,Setup Linux build environment for Ti AM57xx

    参考:http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment#Point_to_the_toolchain_to_us ...

  4. 【华为Hilink SDK Linux系统开发】第三章:华为hilink SDK Linux系统网关适配

    mark:https://blog.csdn.net/qq_24550925/article/details/107282773 关注嘉友创科技公众号 声明:文章只做技术交流,没有其他任何用途,侵权泄 ...

  5. 【BLE】TI CC2640R2F SDK结构以及一些概念解析

    一.概述 CC2640R2F作为BLE单SOC解决方案, TI的SDK将工程分为应用程序(APP)和协议栈(Stack)两部分 二.协议栈 协议栈包括:主机(Host)和控制器(Controller) ...

  6. Linux下的/bin、/sbin、/usr/bin、/usr/sbin目录

    Linux下的/bin./sbin./usr/bin./usr/sbin目录 在linux下我们经常用到的四个应用程序的目录是/bin./sbin./usr/bin./usr/sbin .而四者存放的 ...

  7. linux中的 bin sh,Linux-#!/bin/sh理解

    #!是一个特殊符号,/bin/sh是用来解释该脚本的的shell路径 #!/bin/sh指该脚本使用/bin/sh来执行 sh只是其中一种解释方式,通过如下命令可以查到支持的shell解释方式: xx ...

  8. Linux脚本开头#!/bin/bash和#!/bin/sh是什么意思以及区别

    Linux脚本开头#!/bin/bash和#!/bin/sh是什么意思以及区别 一.意思 #!/bin/sh是指此脚本使用/bin/sh来解释执行,#!是特殊的表示符,其后面根的是此解释此脚本的she ...

  9. linux下安装bin格式的程序

    linux下安装*.bin程序的方式: 1.先切换到文件所在目录 2.执行命令 sudo chmod +x *.bin  (为文件添加可执行属性) 3.执行命令sudo ./*.bin (运行程序) ...

最新文章

  1. Spring Cloud - Feign调用问题
  2. Python入门系列之字符编码
  3. 函数在实现过程内存中的压栈和出栈
  4. php redis 密码,redis如何设置密码
  5. Android内核开发:系统编译输出的镜像文件
  6. ASP.NET MVC 的安装过程详解
  7. Python内置函数简记
  8. 读《C++ Primer(第三版)》的一些疑问(不断更新)
  9. 【黑金动力社区】【bf531 体验板教程】第六章 可编程标志口(八)
  10. 2021年系统集成项目管理工程师(软考中级)连夜整理考前重点
  11. 简述ip地址的abc类如何划分_IP 地址分类及 ABCDE 五类是如何划分的
  12. 计算机电子书 2019 归档
  13. windows10下破解开机密码
  14. 楪祈机器人_饥荒联机版Inori楪祈MOD
  15. Android实现多国语言适配:app名称随系统的语言而更换
  16. 【转】全球十部最经典的科幻片,你看过几部?
  17. HDOJ1495 非常可乐(bfs)
  18. Android 震动马达系统
  19. jupyter notebook 的 hinterland 插件 设置 代码提示但是默认不选中
  20. 万字长文,细说长沙银行的数字化研发管理转型之路

热门文章

  1. 使用 v-cloak 防止页面加载时出现 vuejs 的变量名
  2. 构造函数_析构函数_深拷贝与浅拷贝
  3. linux修改主机名(不重启)
  4. AppServ 介绍
  5. python---之os.path.splitext(“文件路径”)
  6. 机器学习:多变量线性回归
  7. linux任务计划不执行时间,Linux任务计划、周期性任务执行
  8. vue click事件传参数_Vue框架之各种指令的使用
  9. apt-get update出现404 Not Found
  10. C语言中文件初始化,C语言版GetPrivateProfileString()函数,从初始化文件中指定的条目取得字串...