This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/66AK2E05: Iperf test with minimum work

Part Number: 66AK2E05


Tool/software: Linux

Hi,

i am trying to run a basic iperf test on the k2e evm and want to know that what are the absolute minimum i need to do in order to run it. i.e. can i skip the whole building the kernel thing and use a pre-built linux? and do i need to flash it to spi nor (or can use the CCS's target configs?) and if so can i clear it later for some other usage?

also if there is a download link to the files above please let me know

regards,

Hannan

  • Hello,

    What is the software release that you are using here?
    I would also recommend you to post your question in our Keystone forum:
    e2e.ti.com/.../639

    BR
    Margarita
  • Hi,

    I tested this on my EVMK2HX, running kernel 4.4.32, prebuilt images from ti-processor-sdk-linux-k2hk-evm-03.02.00.05:

    The iperf command is integrated in the SDKs:
    root@k2hk-evm:~# iperf --help
    Usage: iperf [-s|-c host] [options]
    iperf [-h|--help] [-v|--version]

    Client/Server:
    -f, --format [kmKM] format to report: Kbits, Mbits, KBytes, MBytes
    -i, --interval # seconds between periodic bandwidth reports
    -l, --len #[KM] length of buffer to read or write (default 8 KB)
    -m, --print_mss print TCP maximum segment size (MTU - TCP/IP header)
    -o, --output <filename> output the report or error message to this specified file
    -p, --port # server port to listen on/connect to
    -u, --udp use UDP rather than TCP
    -w, --window #[KM] TCP window size (socket buffer size)
    -B, --bind <host> bind to <host>, an interface or multicast address
    -C, --compatibility for use with older versions does not sent extra msgs
    -M, --mss # set TCP maximum segment size (MTU - 40 bytes)
    -N, --nodelay set TCP no delay, disabling Nagle's Algorithm
    -V, --IPv6Version Set the domain to IPv6

    Server specific:
    -s, --server run in server mode
    -U, --single_udp run in single threaded UDP mode
    -D, --daemon run the server as a daemon

    Client specific:
    -b, --bandwidth #[KM] for UDP, bandwidth to send at in bits/sec
    (default 1 Mbit/sec, implies -u)
    -c, --client <host> run in client mode, connecting to <host>
    -d, --dualtest Do a bidirectional test simultaneously
    -n, --num #[KM] number of bytes to transmit (instead of -t)
    -r, --tradeoff Do a bidirectional test individually
    -t, --time # time in seconds to transmit for (default 10 secs)
    -F, --fileinput <name> input the data to be transmitted from a file
    -I, --stdin input the data to be transmitted from stdin
    -L, --listenport # port to receive bidirectional tests back on
    -P, --parallel # number of parallel client threads to run
    -T, --ttl # time-to-live, for multicast (default 1)
    -Z, --linux-congestion <algo> set TCP congestion control algorithm (Linux only)

    Miscellaneous:
    -x, --reportexclude [CDMSV] exclude C(connection) D(data) M(multicast) S(settings) V(server) reports
    -y, --reportstyle C report as a Comma-Separated Values
    -h, --help print this message and quit
    -v, --version print version information and quit

    [KM] Indicates options that support a K or M suffix for kilo- or mega-

    The TCP window size option can be set by the environment variable
    TCP_WINDOW_SIZE. Most other options can be set by an environment variable
    IPERF_<long option name>, such as IPERF_BANDWIDTH.

    Report bugs to <iperf-users@lists.sourceforge.net>

    Best Regards,
    Yordan
  • hello

    i think i was not able to state my question properly. i am looking for an easy way to load the kernel, i apologize i am a bit of a newbie in Linux so i was hoping that someone could provide a link to how i would be able to load the Linux onto my evm. Should i move this issue to keystone forum?
  • p.s. i have looked at processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring and was hoping there was a shorter way around it
  • Hi,

    Sorry for the misunderstanding. Here is the guide I used to program the EVM with linux:
    processors.wiki.ti.com/.../Program_EVM_UG

    Best Regards,
    Yordan