Ignore:
Timestamp:
Sep 11, 2009, 10:42:00 PM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, master
Children:
a1e516f
Parents:
507d382
Message:

2009-09-11 Till Straumann <Till.Straumann@…>

  • psim-top.in, psim-bottom: Added support for options -d (print device tree and exit), -h (usage info) and -n (enable NIC support).
  • psim-gdb-bottom: Added support for options -s (force sysv IPC), -h (usage info) and -n (enable NIC support). Allow user to override GDB variable from environment.
  • psim-shared: cat NIC properties into device file if the user had specified '-n'.
  • runtest-top.in: removed unsupported options -o, -d from usage info.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/tools/psim-shared

    r507d382 r5a6d25fc  
    4545  fi
    4646
    47 cat <<EOF
     47  cat <<EOF
    4848#
    4949#  Device Tree for PSIM
     
    7676# interupt out -> CPU's interrupt pin
    7777/opic@0x0c130000 > intr0 int /cpus/cpu@0
     78EOF
    7879
    79 ##### ETHTAP @ 0x0c100020 for 0x40
    80 ##
    81 ## NOTE 'ethtap' currently (200902) requires psim to
    82 ##      be patched -- also, it is only supported on
    83 ##      a linux host.
    84 ##      the 'ethtap' device transfers data from/to the
    85 ##      simulated network interface to/from a 'ethertap'
    86 ##      interface on the linux host (consult tun/tap
    87 ##      device documentation).
    88 ##      A very useful tool is 'tunctl' which allows for
    89 ##      configuring user-accessible, persistent 'tap'
    90 ##      devices so that psim may be executed w/o special
    91 ##      (root) privileges.
     80  if [ X${enable_if_sim} = Xyes ] ; then
     81    cat <<EOF
     82
     83#### ETHTAP @ 0x0c100020 for 0x40
    9284#
    93 #/ethtap@0x0c100020/reg           0x0c100020 0x40
    94 ## route interrupt to open-pic
    95 #/ethtap@0x0c100020               > 0 irq0 /opic@0x0c130000
    96 ## 'tun' device on host
    97 #/ethtap@0x0c100020/tun-device    "/dev/net/tun"
    98 ## name of 'tap' device to use
    99 #/ethtap@0x0c100020/tap-ifname    "tap0"
    100 ## ethernet address of simulated IF
    101 #/ethtap@0x0c100020/hw-address    "00:00:00:22:11:00"
    102 ## generate CRC and append to received packet before
    103 ## handing over to the simulation. This is mostly for
    104 ## debugging the rtems device driver. If unsure, leave 'false'.
    105 #/ethtap@0x0c100020/enable-crc    false
     85# NOTE 'ethtap' currently (200902) requires psim to
     86#      be patched -- also, it is only supported on
     87#      a linux host.
     88#      the 'ethtap' device transfers data from/to the
     89#      simulated network interface to/from a 'ethertap'
     90#      interface on the linux host (consult tun/tap
     91#      device documentation).
     92#      A very useful tool is 'tunctl' which allows for
     93#      configuring user-accessible, persistent 'tap'
     94#      devices so that psim may be executed w/o special
     95#      (root) privileges.
     96
     97/ethtap@0x0c100020/reg           0x0c100020 0x40
     98# route interrupt to open-pic
     99/ethtap@0x0c100020               > 0 irq0 /opic@0x0c130000
     100# 'tun' device on host
     101/ethtap@0x0c100020/tun-device    "/dev/net/tun"
     102# name of 'tap' device to use
     103/ethtap@0x0c100020/tap-ifname    "tap0"
     104# ethernet address of simulated IF
     105/ethtap@0x0c100020/hw-address    "00:00:00:22:11:00"
     106# generate CRC and append to received packet before
     107# handing over to the simulation. This is mostly for
     108# debugging the rtems device driver. If unsure, leave 'false'.
     109/ethtap@0x0c100020/enable-crc    false
    106110EOF
     111  fi
    107112
    108113  if [ ${enable_sysv_devices} = yes ] ; then
Note: See TracChangeset for help on using the changeset viewer.