TI Processor SDK Linux am335x EVM setup.sh hacking

Source: Internet
Author: User

#!/bin/SH# # TI processor SDK Linux am335x EVM setup.SHhacking# Description: # This article mainly explains the setup.sh script in TI's SDK, in order to understand its working mechanism. # The main time in the file is to invoke the script under bin. ##                                       .-4- -Shenzhen Nanshan Ping Shan Village Zengjianfeng # This distribution contains contributions or derivatives under copyright# as follows:## Copyright (c) 
     ., Texas Instruments incorporated# All rights reserved.## redistribution and useinchsource and binary forms, with or without# modification, is permitted provided that the following conditions# is met :# -redistributions of source code must retain the above copyright notice,# this list of conditions and the following D isclaimer.#-Redistributionsinchbinary form must reproduce the above copyright# notice, this list of conditions and the following disclaimerinchthe# 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 are provided by the COPYRIGHT HOL DERs 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 is disclaimed. In NO EVENT shall the COPYRIGHT HOLDER or# CONTRIBUTORS being liable for any DIRECT, INDIRECT, incidental, special,# exemplar Y, 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-out-of-the---the-software, even if# advised of the Possibilit Y of SUCH Damage.entry_header () {Cat<<EOF-------------------------------------------------------------------------------TISDK Setup Scriptthis script would set up your development host forSDK Development. Parts of this script require Administrator priviliges (sudoaccess).-------------------------------------------------------------------------------Eof}exit_footer () {Cat<<EOF-------------------------------------------------------------------------------TISDK Setup Completed!Please continue reading the software Developer's Guide for more information onHow to Develop software on the EVM-------------------------------------------------------------------------------EOF}CWD=`dirname$0' # Minimum major Linux version forRunning add-to-Group script# Ubuntu Minimum version min_ver_upper= A# Publish The TISDK Setup headerentry_header# Make sure that the common.SH fileexistsif[-F $CWD/bin/common.SH]; Then. $CWD/bin/common.SHget_host_type host Get_major_host_version host_upperElse    Echo "common.sh does not exist in the bin directory"Exit1fiif[-F $CWD/bin/setup-host-check.SH]; Then$CWD/bin/setup-host-check.SHCheck_statusElse    Echo "setup-host-check.sh does not exist in the bin directory"Exit1fi# only ExecuteifThe Linux version is above A. XXif["$host _upper"-gt"$min _ver_upper"-O"$host _upper"-eq"$min _ver_upper"]; Then    if[-F $CWD/bin/add-to-group.SH]; Then$CWD/bin/add-to-group.SHCheck_statusElse        Echo "add-to-group.sh does not exist in the bin directory"Exit1    fifiif[-F $CWD/bin/setup-package-Install.SH]; Then$CWD/bin/setup-package-Install.SHCheck_statusElse    Echo "setup-package-install.sh does not exist in the bin directory"Exit1fiif[-F $CWD/bin/setup-targetfs-nfs.SH]; Then$CWD/bin/setup-targetfs-nfs.SHCheck_statusElse    Echo "setup-targetfs-nfs.sh does not exist in the bin directory"Exit1fiif[-F $CWD/bin/setup-tftp.SH]; Then$CWD/bin/setup-tftp.SHCheck_statusElse    Echo "setup-tftp.sh does not exist in the bin directory"Exit1fiif[-F $CWD/bin/setup-minicom.SH]; Then$CWD/bin/setup-minicom.SHCheck_statusElse    Echo "setup-minicom.sh does not exist in the bin directory"Exit1fiif[-F $CWD/bin/setup-uboot-Env.SH]; Then$CWD/bin/setup-uboot-Env.SHCheck_statusElse    Echo "setup-uboot-env.sh does not exist in the bin directory"Exit1fi# Publish The TISDK exit Headerexit_footer

TI Processor SDK Linux am335x EVM setup.sh hacking

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.