환경_구축(timesys_linux_설치_및_설정)

Upload: james-park

Post on 07-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 _ (timesys_linux_ _ _ )

    1/23

    11. (timesys linux q )

    FPGA

  • 8/6/2019 _ (timesys_linux_ _ _ )

    2/23

    Timesys linux overview

    Fully preemptible kernel Constant-time scheduler

    Fully schedulable interrupt handlers

    Fully schedulable soft-IRQs

    Reduced interrupt disable timers

    2

  • 8/6/2019 _ (timesys_linux_ _ _ )

    3/23

    Timesys linux 4

    TimeSys Linux/GPL The basic TimeSys Linux kernel

    offers full preemption at the kernel level

    prioritized interrupt handlers

    TimeSys Linux/Real-time

    Makes Linux a true RTOS by adding priority inheritance

    POSIX-based high-resolution timer API

    TimeSys Linux/CPU

    Adds support for CPU reservation

    TimeSys Linux/Net Adds support for network bandwidth reservation

    3

  • 8/6/2019 _ (timesys_linux_ _ _ )

    4/23

    Install SDK

    Tslinux-amxap100 install script ./install

    4

    Found Red Hat LinuxVersion 7.3TimeSys Linux 4.0 for Amirix AP100This CD contains several separate and independent software programs.

    TimeSys Linux/Real-Time, TimeSys Linux/CPU and TimeSys Linux/NET areowned and licensed by TimeSys Corporation under the terms of the TimeSysCorporation End User License Agreement contained in the file LICENSE onthis CD. TimeSys Linux is owned and licensed by TimeSys Corporation underthe terms of the Free Software Foundation, Inc. GNU General PublicLicense contained in the file GPL on this CD. Other software programs arelicensed under the terms of their respective owners license agreementsas contained on this CD. All rights not expressly granted are reserved by

    the respective Licensors.Press to continue:

  • 8/6/2019 _ (timesys_linux_ _ _ )

    5/23

    Install SDK

    5

    The install script displays the following summary of the installableproducts. Enter the number correspondingto the TimeSys Linux product that you want to install and press Enter tocontinue. Selecting number 5 displaysan additional menu that enables you to select specific subsets of TimeSysLinux for installation. You should onlyselect this option if you are extremely familiar with TimeSys Linux or ifyou have discussed the ramifications of

    installing a subset of TimeSys Linux with TimeSys Customer Support personnel.1. TimeSys Linux/GPL..............................................711525Kb2. TimeSys Linux/Real-Time........................................711865Kb3. TimeSys Linux/CPU..............................................711975Kb4. TimeSys Linux/NET..............................................712100Kb5. Custom Installation.................................................0Kb6. ExitSelect the TimeSys distribution you wish to install or update:1

  • 8/6/2019 _ (timesys_linux_ _ _ )

    6/23

    Install SDK

    6

    Type YES or yes if you agree to the terms of this license.Type NO or no to abort the installation.Press key to see the License again. yes

    Creating: /opt/timesys/linux/4.0/amxap100/rfs/usr/share/man

    Creating: /opt/timesys/linux/4.0/amxap100/toolsCreating: /opt/timesys/linux/4.0/amxap100/etcCreating: /opt/timesys/linux/4.0/amxap100/includeCreating: /opt/timesys/linux/4.0/amxap100/rfs/etcCreating: /opt/timesys/linux/4.0/amxap100/src/2.4.18-timesys-4.0Creating: /opt/timesys/linux/4.0/amxap100/rfs/bootCreating: /opt/timesys/linux/4.0/amxap100/rfs/usr/bin--> Installing kernel--> Installing boot--> Installing rfs

    --> Installing init--> Installing tools--> Installing lektools--> Installing rfstools--> Installing tsgpl--> Installing tsrt--> Installing tscpu--> Installing tsnet

  • 8/6/2019 _ (timesys_linux_ _ _ )

    7/23

    PC NFS

    /etc/exports

    Restart NFS

    7

    /opt/timesys/linux/4.0/amxap100/rfs 10.0.0.10(rw,sync,no_root_squash)

    # /etc/rc.d/init.d/nfslock restart

    # /etc/rc.d/init.d/nfs stop# /etc/rc.d/init.d/nfs start

    Target IP

  • 8/6/2019 _ (timesys_linux_ _ _ )

    8/23

    PC DHCP

    /etc/dhcpd.conf

    DHCP

    8

    subnet 10.0.0.0 netmask 255.0.0.0 {host amxap100 {hardware ethernet 00:20:0c:10:75:0d;fixed-address 10.0.0.10;server-name "10.0.0.2";option root-path "/opt/timesys/linux/4.0/amxap100/rfs";

    }}

    # killall -v -TERM dhcpd

    # dhcpd -d eth1

  • 8/6/2019 _ (timesys_linux_ _ _ )

    9/23

    PC TFTP

    /etc/xinetd.d

    TFTP

    9

    # default: off# description: The tftp server serves files using the Trivial File Transfer\# Protocol. The tftp protocol is often used to boot diskless \# workstations, download configuration files to network-aware printers, \# and to start the installation process for some operating systems.

    service tftp{socket_type = dgramprotocol = udpwait = yesuser = rootserver = /usr/sbin/in.tftpdserver_args = -s /tftpboot

    disable = no}

    # /etc/rc.d/init.d/xinetd restart

  • 8/6/2019 _ (timesys_linux_ _ _ )

    10/23

    Serial configuration

    Baud rate : 57600 8 bit communications

    No parity

    1 Stop bit

    No software or hardware flow control

    10

  • 8/6/2019 _ (timesys_linux_ _ _ )

    11/23

    COM1

    11

  • 8/6/2019 _ (timesys_linux_ _ _ )

    12/23

    3 enter

    12

  • 8/6/2019 _ (timesys_linux_ _ _ )

    13/23

    13

  • 8/6/2019 _ (timesys_linux_ _ _ )

    14/23

    14

    Target IP

    host IP

  • 8/6/2019 _ (timesys_linux_ _ _ )

    15/23

    TFTP server

    15

  • 8/6/2019 _ (timesys_linux_ _ _ )

    16/23

    Default directory

    16

  • 8/6/2019 _ (timesys_linux_ _ _ )

    17/23

    17

  • 8/6/2019 _ (timesys_linux_ _ _ )

    18/23

    18

  • 8/6/2019 _ (timesys_linux_ _ _ )

    19/23

    Ramdisk

    19

  • 8/6/2019 _ (timesys_linux_ _ _ )

    20/23

    20

    (none) login: root

    Linux (none) 2.4.18-timesys-4.0.632 #1 Thu Feb 5 11:06:26 EST 2004 ppc unknown

    bash-2.05#

  • 8/6/2019 _ (timesys_linux_ _ _ )

    21/23

    Ramdisk

    Ramdisk (8mb ramdisk)

    Loopback device ramdisk

    (ext2)

    ( q )

    21

    dd if=/dev/zero of=ramdisk.image bs=1024 count=8192

    losetup /dev/loop0 ramdisk.image

    mke2fs b 1024 /dev/loop0

    mount /dev/loop0 MOUNT-POINT

  • 8/6/2019 _ (timesys_linux_ _ _ )

    22/23

    Ramdisk

    22

    # umount MOUNT-POINT# losetup -d /dev/loop0# gzip -9 ramdisk.image

  • 8/6/2019 _ (timesys_linux_ _ _ )

    23/23

    Ramdisk

    Ramdisk

    Ramdisk loopback device

    Ramdisk mount( )

    Unmount

    23

    #gzip -d ramdisk.gz

    #losetup /dev/loop1 ramdisk

    #mount /dev/loop1 mount-point

    #umount mount-point#losetup -d /dev/loop1#gzip -9 ramdisk