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/AM5728: how to use the ltp tool?

Part Number: AM5728

Tool/software: Linux

Hi:

Software version: ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04, hardware version: AM5728-ES2.0, custom board,

1, how to use the ltp tool?

2. Is there a tutorial on using the ltp tool.

  • Hello Tian,

    You can find the LTP-DDT Validation documented here in this page.

    Best regards,
    Kemal

  • Hi:

    1. How do I use ltp to test the file system in Linux?

    /opt/ltp/runltp -f fs prompt error

    INFO: creating /opt/ltp/results directory
    Checking for required user/group ids
    
    'nobody' user id and group found.
    'bin' user id and group found.
    'daemon' user id and group found.
    Users group found.
    Sys group found.
    Required users/groups exist.
    If some fields are empty or look unusual you may have an old version.
    Compare to the current minimal requirements in Documentation/Changes.
     
    ID="arago"
    NAME="Arago"
    VERSION="2016.12"
    VERSION_ID="2016.12"
    PRETTY_NAME="Arago 2016.12"
    Linux am57xx-evm 4.4.41-rt50-g968d071ce9 #7 SMP PREEMPT RT Mon Jun 3 13:35:30 CST 2019 armv7l GNU/Linux
     
    Gnu C                  gcc (Linaro GCC 5.3-2016.02) 5.3.1 20160113
    Gnu make               4.1
    util-linux             linux 2.27.1
    mount                  linux 2.27.1 (libmount 2.27.0: assert, debug)
    modutils               22
    e2fsprogs              1.43-WIP
    Linux C++ Library      /../lib/libstdc++
    Procps                 3.3.11
    iproute2              iproute2-ss160111
    Kbd                    2.0.3
    Sh-utils               --v
    Modules Loaded         rtc_x1226 bridge stp llc bc_example omap_wdt cbc drbg xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 bluetooth ah4 af_key xfrm_algo xhci_plat_hcd xhci_hcd usbcore rpmsg_pru rpmsg_proto rpmsg_rpc dwc3 udc_core pru_rproc pruss_intc ecb virtio_rpmsg_bus snd_soc_simple_card sha512_generic sha512_arm sha256_generic snd_soc_omap_hdmi_audio hmac md5 sha1_generic pvrsrvkm sha1_arm_neon omap_aes_driver sha1_arm pruss omap_sham ahci_platform libahci_platform libahci libata scsi_mod ti_vpe ti_sc ti_csc ti_vpdma dwc3_omap rtc_omap extcon_palmas extcon rtc_palmas snd_soc_tlv320aic3x omap_des omap_rng rng_core omap_remoteproc remoteproc debugss_kmodule virtio virtio_ring sch_fq_codel uio_module_drv uio gdbserverproxy cryptodev cmemk
    
    free reports:
                  total        used        free      shared  buff/cache   available
    Mem:        1868596       96324     1555172       25176      217100     1718368
    Swap:             0           0           0
    
    /proc/cpuinfo
    processor	: 0
    model name	: ARMv7 Processor rev 2 (v7l)
    BogoMIPS	: 12.29
    Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
    CPU implementer	: 0x41
    CPU architecture: 7
    CPU variant	: 0x2
    CPU part	: 0xc0f
    CPU revision	: 2
    
    processor	: 1
    model name	: ARMv7 Processor rev 2 (v7l)
    BogoMIPS	: 12.29
    Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
    CPU implementer	: 0x41
    CPU architecture: 7
    CPU variant	: 0x2
    CPU part	: 0xc0f
    CPU revision	: 2
    
    Hardware	: Generic DRA74X (Flattened Device Tree)
    Revision	: 0000
    Serial		: 0000000000000000
    no big block device was specified on commandline.
    Tests which require a big block device are disabled.
    You can specify it with option -z
    COMMAND:    /opt/ltp/bin/ltp-pan  -e -S   -a 2264     -n 2264  -p  -f /tmp/ltp-XXXXfTiYVJ/alltests -l /tmp/tmp.XZh0MJ  -C /opt/ltp/output/LTP_RUN_ON-tmp.XZh0MJ.failed -T /opt/ltp/output/LTP_RUN_ON-tmp.XZh0MJ.tconf
    LOG File: /tmp/tmp.XZh0MJ
    FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.XZh0MJ.failed
    TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.XZh0MJ.tconf
    Running tests.......
    INFO: ltp-pan reported all tests PASS
    LTP Version: 20160510
            
           ###############################################################"
            
                Done executing testcases."
                LTP Version:  20160510
                Result log is in the /tmp/tmp.XZh0MJ "
           ###############################################################"
           
    Test Start Time: Wed Jun 19 00:36:03 2019
    -----------------------------------------
    Testcase                       Result     Exit Value
    --------                       ------     ----------
    

  • Use this command and the similar units for the different block device interfaces in /opt/ltp/runtest/ddt/ directory to test the filesystem.

    /opt/ltp/runltp -P am57xx-evm -f ddt/emmc_quick_perf

  • Thanks

    This issue has been resolved.