background image

 

Copyright 2017. All rights reserved. Advantech Co. Ltd.  

Page 57 

 
quit 

list 

set 

start 

stop 

wait 

status  result  info 

log                                                                                                     

help 

run 

Figure 36: The ‘help’ Command  

Dump the ‘list’ command usage: 

cli > help list 
List all DUI service 
Usage: list 

Figure 37: The ‘help list’ Command  

3.10.3.2

 

quit 

The ‘quit’ command exits the DUI CLI: 

cli > quit

 

Figure 38: The ‘quit’ Command 

3.10.3.3

 

list 

The ‘list’ command displays all diagnostic/update services as well as functions that DUI 
supports on the platform: 

cli > list 

service 1: CPU, A diag service for cpu 
        function 0: cpu_test, CPU burnin test function 
        function 1: cpu_fru_ver, FRU Upgradable components versions readout 
        function 2: pcie_link, PCIe link width and status test function 
        function 3: cpu_ver, Verify CPU vendor id, model name, frequency and core count 
service 2: MEM, A diag service for memory 
        function 0: mem_test, Memory pattern test function 
        function 1: mem_dmi, Memory SPD info readout 
……< only parts of the messages are shown >….. 

Figure 39: The ‘list’ Command 

Users can retrieve all available diagnostic/update service IDs and function IDs through this 
command. As indicated in the screenshot above, there are four diagnostic services and each 
diagnostic service has its diagnostic functions identified with different function ID. 

3.10.3.4

 

set 

The ‘set’ command is used to alter the current value of a specific diagnostic/update 
function’s parameter: 

cli > set <service ID> <function ID> <parameter=value> 

For example, alter the current value of cpu_model and core_count parameter for the 
cpu_ver diagnostic function (in cpu test service, see 

Sections 3.10.3.3

 an

3.10.3.10

): 

 

 

Summary of Contents for FWA-T011

Page 1: ...Copyright 2017 All rights reserved Advantech Co Ltd ADVANTECH QUICKSTART LINUX IMAGE GETTING STARTED GUIDE FWA T011 Revision 0 2 ...

Page 2: ... 2017 All rights reserved Advantech Co Ltd Page 2 Revision History Date mm dd yyyy Revision QSL Image Version Modifications 08 13 2018 0 1 1 00 Initial version draft 01 21 2019 0 2 1 00 Update l3fwd description ...

Page 3: ...ACCESS THE QUICKSTART IMAGE 21 3 COMMAND LINE PARAMETERS OF UTILITIES AND TOOLS 23 3 1 AFRU 23 3 1 1 Command Examples 23 3 2 SENSORS 24 3 2 1 APM Advantech Platform Monitor 24 3 2 2 LM Sensors 25 3 3 WI FI 28 3 3 1 AP Mode 29 3 3 2 Station Mode 29 3 4 WIRELESS 31 3 4 1 Run start_lte_by_mmcli_nmcli sh to establish the connection 31 3 5 WDT 32 3 5 1 Watchdog on PCH 32 3 5 2 Watchdog on SuperIO 33 3 ...

Page 4: ...sage 56 3 10 3 1 help 56 3 10 3 2 quit 57 3 10 3 3 list 57 3 10 3 4 set 57 3 10 3 5 start 58 3 10 3 6 stop 58 3 10 3 7 wait 58 3 10 3 8 status 59 3 10 3 9 result 59 3 10 3 10 info 59 3 10 3 11 log 60 3 10 3 12 run 61 3 10 4 DUI with Fast Batch 62 3 10 5 Use Case Scenarios 64 3 10 5 1 Execute a Single Diagnostic Function Test 64 3 10 5 2 Execute a Batch Test via Tcl Script 67 3 10 5 3 Usage of Fast...

Page 5: ...e 13 Save and Exit BIOS 19 Figure 14 Ubuntu Boot Menu 20 Figure 15 Linux Shell 21 Figure 16 Ping 192 168 1 3 for Testing 22 Figure 17 Setup SSH Connection on Putty 22 Figure 18 SSH Connection Login 22 Figure 19 Usage of Afru 23 Figure 20 Print Afru Version Information 23 Figure 21 System FRU Information 24 Figure 22 Sensor Configuration File for the FWA T011 27 Figure 23 Print the Usage of lm_sens...

Page 6: ...Start a Function 58 Figure 42 Execute all Functions of the Cpu Test Service 58 Figure 43 The stop Command 58 Figure 44 The wait Command 59 Figure 45 The status Command 59 Figure 46 The result Command 59 Figure 47 The info Command 60 Figure 48 The log Command 61 Figure 49 The run Command 62 Figure 50 Execute DUI Daemon 64 Figure 51 List DUI Diagnostic Update Services and Functions 66 Figure 52 Exec...

Page 7: ...8 Table 2 Supported Platforms 9 Table 3 BIOS Version 9 Table 4 Terminology 10 Table 5 FWA T011 SKU Configuration 11 Table 6 Components on the FWA T011 4CA1S Rear Panel 13 Table 7 Components on the FWA T011 4CA1S Front Panel 14 Table 8 LAN Port Mapping for the FWA T011 4CA1S 15 Table 9 Open Source Software Ingredients 77 ...

Page 8: ...sions of OS image and integrated utility packages for each QuickStart Linux Image release FWA T011 QuickStart Image Release OS and Integrated Utilities Version Description v1 00 Ubuntu version 18 04 LTS kernel version 4 15 0 23 generic x86_64 Linux distribution afru v2 32 Advantech utility to read the FRU information on platforms without BMC Sensor Reader v0 10 Advantech utility to read hardware s...

Page 9: ... Programmable Read Only Memory Event System event e g power on power off reset WDT timeout FRU Field Replaceable Unit FW Firmware GPL GNU General Public License GUI Graphic User Interface HTTP Hyper Text Transfer Protocol IPMI Intelligent Platform Management Interface LAN Local Area Network LED Light Emitting Diode LGPL GNU Lesser General Public License LTE Long Term Evolution NIC Network Interfac...

Page 10: ...ts are granted except for the purpose stated above Advantech does not guarantee or take any liability for correct operation of the QuickStart Linux Image and any issues arising from use of the QuickStart Linux Image Advantech does not warrant that the QuickStart Linux Image does not violate any 3rd party intellectual property patents or rights Use of the QuickStart Linux Image is at the sole discr...

Page 11: ...x Mini SIM type holder 36W 12V DC jack FWA T011 4CA1S Intel Apollo Lake CPUs 4 Core 1x DDR3L LPDDR3 DIMM slot Intel Pentium N4200 chipset 4x RJ 45 LAN ports 1x M 2 2280 slot reserved for M 2 SATAIII SSD 1x M 2 2230 slot reserved for WiFi BT module 1x M 2 3042 slot reserved for 3G 4G LTE module and 1x Mini SIM type holder 36W 12V DC jack Table 5 FWA T011 SKU Configuration In this document we use FW...

Page 12: ...m front view and rear view of the FWA T011 4CA1S as well as the descriptions of components on the front or rear panel are shown in Figure 3 Table 6 Figure 4 and Table 7 respectively Before connecting FWA T011 4CA1S to the power outlet finish the cable connections first Plug the Advantech Image USB drive into either one of the FWA T011 4CA1S USB 2 0 ports F7 Connect the RS232 female end of RJ45 RS2...

Page 13: ...on R1 HDMI Port 1x HDMI port R2 LAN Port 1 Intel i210 RJ45 port 1 R3 LAN Port 2 Intel i210 RJ45 port 2 R4 LAN Port 3 Intel i210 RJ45 port 3 R5 LAN Port 4 Intel i210 RJ45 port 4 R6 Console Connector RS232 console connector R7 DC IN Connector External DC power supply connector Table 6 Components on the FWA T011 4CA1S Rear Panel ...

Page 14: ...mponents on the FWA T011 4CA1S Front Panel 2 3 Ethernet Port Mapping The QuickStart Image will assign device names to the onboard LAN ports R2 to R5 based on the rules below Here we take the FWA T011 platform as an example see Table 8 Assign device names eth0_X to the onboard LAN ports R2 to R5 where X represents the port number labelled on the front panel e g R2 eth0_1 R3 eth0_2 For each Ethernet...

Page 15: ...ping for the FWA T011 4CA1S 2 4 Configure Serial Port Connection on Putty FWA T011 BIOS as well as host x86 system OS outputs are provided via a serial terminal connection by default This section explains how to configure Putty on a Windows platform for RS232 serial console connection Other serial terminal emulation clients can be used in a similar way Start Putty and the Configuration setting GUI...

Page 16: ...Copyright 2017 All rights reserved Advantech Co Ltd Page 16 Figure 5 Putty Session Setting Figure 6 Serial Connection Setting on Putty Figure 7 Putty Keyboard Setting ...

Page 17: ...olours Setting Press Apply button to start Putty before you power on the FWA T011 You shall see the BIOS POST screen Figure 9 BIOS POST 2 5 BIOS Setting During BIOS POST press the DEL or F2 key when the related message appears in order to enter the BIOS setup menu c f Figure 10 ...

Page 18: ...ot menu and check whether the USB drive had been selected as the first boot option device see Figure 11 and Figure 12Figure 12 Select USB Drive as the First Boot Device If the setting is not correct make the change then save the configuration and exit BIOS see Figure 13 Figure 11 BIOS Boot Option Setting ...

Page 19: ...Copyright 2017 All rights reserved Advantech Co Ltd Page 19 Figure 12 Select USB Drive as the First Boot Device Figure 13 Save and Exit BIOS ...

Page 20: ...boot menu first Figure 14 Ubuntu Boot Menu Finally the Ubuntu login prompt will be observed The default serial console login credentials are User name root Password qwerty After logging in successfully you will end up in the Linux shell and will be able to issue Linux commands or run utilities provided with the Advantech QuickStart Linux Image ...

Page 21: ...ort device eth0_1 on the FWA T011 and the LAN port on the user platform have been connected through a patch cable Both platforms IP addresses need to be located in the same subnet In this example the IP address of user platform LAN port has been set up as 192 168 1 3 Using the serial console configure the IP address of eth0_1 on FWA T011 as 192 168 1 2 ip addr add 192 168 1 2 24 dev eth0_1 Ping 19...

Page 22: ...ics 5 packets transmitted 5 received 0 packet loss time 4102ms rtt min avg max mdev 0 450 0 496 0 568 0 052 ms Figure 16 Ping 192 168 1 3 for Testing On the user platform set up the SSH connection for Putty then press the Open button to start Putty Figure 17 Setup SSH Connection on Putty The default login credentials for SSH connection are User name root Password qwerty Figure 18 SSH Connection Lo...

Page 23: ...mation stored in an EEPROM on platforms without a BMC such as the FWA T011 series FRU Information includes serial numbers manufacturing date of the system and boards Change to the root bin directory first then executing any Afru command afru Figure 19 Usage of Afru 3 1 1 Command Examples Only the V and R commands are supported on the FWA T011 platform Using other Afru command parameters may lead t...

Page 24: ...ils Those two both are not applicable for platforms with BMC but applicable with ipmitool utility 3 2 1 APM Advantech Platform Monitor The APM Advantech proprietary Linux utility SLA required utility supports to monitor several critical hardware sensors of system including power supply voltages fan speeds temperatures and so on There is a binary available in QuickStart Image for DEMO User can type...

Page 25: ...k VBAT VOL 3 200 Volts 2 000 3 400 ok Platform Health Status OK If one sensor s reading is below or exceed threshold its FLAG becomes cr and Platform Health Status becomes WARNING if any sensor fails 3 2 2 LM Sensors lm sensors is used to provide hardware monitoring for voltage thermal and FAN sensors on platform without BMC Refer to https linux die net man 1 sensors for more details about lm sens...

Page 26: ...L label in7 VBAT VOL Temperature label temp18 SYS TEMP label temp19 CPU TEMP Sensor adjustments Voltage compute in5 4 9 4 9 Sensor Limitation Voltage set in0_min 0 45 1 set in0_max 1 3 1 set in3_min 3 135 1 set in3_max 3 465 1 set in5_min 4 75 1 set in5_max 5 25 1 set in6_min 3 135 1 set in6_max 3 465 1 set in7_min 2 1 set in7_max 3 4 1 ignore Voltage ignore in1 ignore in2 ...

Page 27: ...nore temp5 ignore temp6 ignore temp7 ignore temp8 ignore temp9 ignore temp10 ignore temp11 ignore temp12 ignore temp13 ignore temp14 ignore temp15 ignore temp16 ignore temp17 ignore temp20 Fan ignore fan1 ignore fan2 ignore fan3 Figure 22 Sensor Configuration File for the FWA T011 Use the sensors h command to print the usage of lm_sensors sensors h ...

Page 28: ...8 Figure 23 Print the Usage of lm_sensors Get platform sensor readings sensors Figure 24 Get Platform Sensor Readings 3 3 Wi Fi The FWA T011 4CA1S provides an M 2 WiFi Module We will use software tool NetworkManager to demonstrate software AP STA functionality ...

Page 29: ...Flags Metric Ref Use Iface default 172 17 11 254 0 0 0 0 UG 0 0 0 eth0_1 default 172 17 11 254 0 0 0 0 UG 102 0 0 eth0_1 10 42 0 0 0 0 0 0 255 255 255 0 U 600 0 0 wlan0 172 17 10 0 0 0 0 0 255 255 254 0 U 102 0 0 eth0_1 Now user can use a laptop or any Wi Fi capable device to connect to this software AP to establish a Wi Fi connection In our example user s platform shall get dynamic IP assigned if...

Page 30: ...domain name set DNS 8 8 8 8 please change to your local DNS server in etc system resolved conf and restart systemd resolved service root FWA T011 ping google com tw PING google com tw 74 125 204 94 56 84 bytes of data 64 bytes from ti in f94 1e100 net 74 125 204 94 icmp_seq 1 ttl 42 time 295 ms 64 bytes from ti in f94 1e100 net 74 125 204 94 icmp_seq 2 ttl 42 time 1012 ms 64 bytes from ti in f94 1...

Page 31: ...OK in QSL 1 00 Package modemmanager Version 1 6 8 2ubuntu1 Priority optional Section net Package network manager Version 1 10 6 2ubuntu1 Priority optional Section net 3 4 1 Run start_lte_by_mmcli_nmcli sh to establish the connection Execute the script to establish the connection root FWA T011 start_lte_by_mmcli_nmcli sh This is the example that we use the script and CHT SIM card to access google c...

Page 32: ...008 800 2003 icmp_seq 2 ttl 54 time 18 7 ms 64 bytes from tsa01s07 in x03 1e100 net 2404 6800 4008 800 2003 icmp_seq 3 ttl 54 time 52 0 ms 64 bytes from tsa01s07 in x03 1e100 net 2404 6800 4008 800 2003 icmp_seq 4 ttl 54 time 52 4 ms C google com tw ping statistics 4 packets transmitted 4 received 0 packet loss time 10155ms rtt min avg max mdev 18 777 37 961 52 442 14 682 ms 3 5 WDT There are two ...

Page 33: ...the system will reboot after 10 seconds 5523wdt 10 s 3 6 Software Defined Button A software defined button F6 in Figure 4 is provided on the FWA T011 4CA1S BIOS is programmed well to monitor button event trigger The acpid service ACPI event daemon is used to handle the corresponding action of this button event When user press software controlled button the button event will be triggered and the co...

Page 34: ...User s Manual There are two interfaces to control LEDs through same hardware path One is i2c raw commands which only depends on kernel s i2c driver however it requests a user space i2c tool The other interface is kernel s GPIO sysfs which provide file interface in user space however it have to re compile kernel if configuring kernel to enable it Some modern Linux distribution enabled GPIO sysfs by...

Page 35: ...0x20 7 bit address in this system Please note device address might be different due to hardware configuration and product SKU 3 7 1 1 I2c raw command to control led Here shows how to control LEDs using i2c raw command it will use smbus number and device address of IO expander located in previous chapter Step 1 Set pins to output mode this need be done once every time Linux booted i2cset y 5 0x20 0...

Page 36: ... 3 7 1 2 Kernel GPIO sysfs to control led The other interface to control LED from user space is by kernel GPIO sysfs GPIO sysfs also depends on i2c driver thus i2c_i801 must be loaded It will use smbus number and device address of IO expander located in previous chapter For more detail please refer to kernel document https www kernel org doc Documentation gpio sysfs txt Step 1 Add IO expander devi...

Page 37: ...sys class gpio gpio259 value echo 0 sys class gpio gpio260 value red green lights on orange light 3 8 lseth The Advantech provided script lseth will auto scan all Ethernet devices on the platform then extract Ethernet specific info e g device name PFA MAC IP address as well as the link status It helps users to figure out the mapping between physical ports and Ethernet devices Use the lseth command...

Page 38: ...ific hardware software environments through the creation of an Environment Abstraction Layer EAL The EAL hides the environment specific and provides a standard interface to libraries available hardware accelerators and other hardware and operating system elements On top of ELA developers link to the library to create their applications We will not explain too much DPDK technical details here For m...

Page 39: ... a software based traffic generator powered by the DPDK fast packet processing framework and is used for sourcing and sinking network traffic 3 9 2 1 Command Usage of Pktgen Pktgen splits its command line arguments into arguments for the EAL and arguments for the application itself The first group is a list of EAL options that are common to all DPDK based applications The second group of options a...

Page 40: ...d port 2 Tx Rx transmission See https pktgen dpdk readthedocs io en latest usage_pktgen html for more details P enable PROMISCUOUS mode on all ports More complete usage can be found in https pktgen dpdk readthedocs io en latest running html 3 9 2 2 Loopback Example for Running Pktgen In our example we will run loopback test with Pktgen The port 1 and port 2 two ports have been connected through a ...

Page 41: ...7 17 05 48 04 INFO lseth g4 2015 11 18 14 12 08 OS Linux 4 15 0 23 generic x86_64 2018 07 17 05 48 04 Detect System Ethernet Device Number 6 Usage grep OPTION PATTERN FILE Try grep help for more information eth0_1 0000 01 00 0 c4 00 ad a1 11 9a xx xx xx xx 1000Mb s eth0_2 0000 02 00 0 c4 00 ad a1 11 9b xx xx xx xx 1000Mb s only parts of the messages are shown Step 6 Configure the NIC ports which w...

Page 42: ...ter lcore 1 c 00000003 n 3 w 01 00 0 w 02 00 0 socket mem 512 file prefix dpdk_pktgen P T m 0 0 0 1 Parameters setting master lcore 1 The 2th logical CPU core CPU ID 1 in NUMA node0 is selected for running Pktgen master process c 0000003 CPU cores ID 0 is dedicated for Rx and Tx on Port 0 port 1 respectively CPU cores ID 0 is dedicated for Rx and Tx on Port 1 port 2 respectively Thus CPU core ID 1...

Page 43: ...Step 9 Optional Execute those runtime commands in Pktgen CLI window Pktgen set 0 src ip 10 7 100 1 24 Pktgen set 0 dst ip 10 7 101 1 Pktgen set 0 size 64 Pktgen set 1 src ip 10 7 101 1 24 Pktgen set 1 dst ip 10 7 100 1 Pktgen set 1 size 64 Pktgen enable mac_from_arp The runtime commands usage Usage set portlist src dst ip ipaddr ...

Page 44: ...ination port Usage set portlist size value Set transmit packet size for a specific port Usage enable disable mac_from_arp Set the option to get MAC from an ARP request Step 10 Start Pktgen start all Pktgen cls Finally users shall get running test result as below Figure 30 Loopback Test Result Step 11 Type quit in Pktgen CLI to close Pktgen Pktgen quit ...

Page 45: ...ple assuming an N ports platform with configured port mask 0xf for enabling L2 forwarding then it means the first four ports are enabled with L2 forwarding Furthermore port 1 and port 2 forward packets to each other and port 3 and port 4 forward packets to each other Please refer to the following figure for L2 forwarding concept Figure 31 the Concept of L2 Forwarding This section will introduce ho...

Page 46: ...ter Note that the master core should be used for handing Tx or Rx packets transmission c COREMASK a hexadecimal bitmask of the cores to run on n CHANNELS number of memory channels w pci whitelist Add a PCI device in white list Only use the specified PCI devices The argument format is domain bus devid func This option can be present several times once per device socket mem memory to allocate on spe...

Page 47: ...gb_uio PORT 4 PFA Step 8 Make a soft link to current folder as running binary pktgen dpdk wr atom latest requires this link ln sf root bin Pktgen atom latest lua pwd Pktgen lua Step 9 Start Pktgen program pktgen dpdk wr atom latest master lcore ID c COREMASK n CHANNELS w PORT 1 PFA w PORT 2 PFA socket mem MEM SIZE file prefix dpdk_pktgen P T m MATRIX If the program runs successfully users shall en...

Page 48: ...to make DPDK engine to differentiate them p 0x3 enabled port mask Users shall see the following log if running successfully Checking link status done Port0 Link Up Speed 1000 Mbps full duplex Port1 Link Up Speed 1000 Mbps full duplex L2FWD entering main loop on lcore 3 L2FWD lcoreid 3 portid 1 L2FWD entering main loop on lcore 2 L2FWD lcoreid 2 portid 0 Port statistics Statistics for port 0 Packet...

Page 49: ...size 64 Pktgen enable mac_from_arp Step 13 Execute those runtime commands in Pktgen CLI Pktgen start all Pktgen cls The testing result of DPDK Pktgen is shown below Figure 33 Pktgen Testing Result The testing result of l2fwd is as below Port statistics Statistics for port 0 Packets sent 83332092 Packets received 82853692 Packets dropped 0 ...

Page 50: ...LI window type quit to exit Pktgen Pktgen quit Step 15 Reset the shell environment reset Step 16 Use dpdk devbind atom latest py b PRE DRIVER PFA command to bind the specified devices which are using igb_uio driver to the previous kernel driver dpdk devbind atom latest py b PRE DRIVER PORT 1 PFA dpdk devbind atom latest py b PRE DRIVER PORT 2 PFA dpdk devbind atom latest py b PRE DRIVER PORT 3 PFA...

Page 51: ...ion specific The two sets of arguments are separated using the standard convention of as shown below l3fwd atom latest EAL options p PORTMASK Here is the usage of EAL and application arguments which are used in our examples EAL options master lcore ID Core ID which is used as master Note that the master core should be used for handing Tx or Rx packets transmission l CORELIST List of cores to run o...

Page 52: ... PFA Step 8 Make a soft link to current folder as running binary pktgen dpdk wr atom latest requires this link ln sf root bin Pktgen atom latest lua pwd Pktgen lua Step 9 Start Pktgen program pktgen dpdk wr atom latest master lcore ID c COREMASK n CHANNELS w PORT 1 PFA w PORT 2 PFA socket mem MEM SIZE file prefix dpdk_pktgen P T m MATRIX If the program runs successfully users shall end up with Pkt...

Page 53: ...ore is defined by l CORELIST or c COREMASK parameter Users shall see the following log if running successfully only parts of the messages are shown Initializing port 0 Creating queues nb_rxq 1 nb_txq 2 Address C4 00 AD A1 11 9C Destination 02 00 00 00 00 00 only parts of the messages are shown Initializing port 1 Creating queues nb_rxq 1 nb_txq 2 Address C4 00 AD A1 11 9D Destination 02 00 00 00 0...

Page 54: ... src mac 02 00 00 00 00 00 Pktgen set 0 dst mac C4 00 AD A1 11 9C Pktgen set 1 src mac 02 00 00 00 00 01 Pktgen set 1 dst mac C4 00 AD A1 11 9D Step 13 Execute those runtime commands in Pktgen CLI Pktgen start all Pktgen cls The testing result of DPDK Pktgen is shown below Figure 35 Pktgen Testing Result Step 14 In Pktgen CLI window type quit to exit Pktgen ...

Page 55: ...R PFA command to bind the specified devices which are using igb_uio driver to the previous kernel driver dpdk devbind atom latest py b PRE DRIVER PORT 1 PFA dpdk devbind atom latest py b PRE DRIVER PORT 2 PFA dpdk devbind atom latest py b PRE DRIVER PORT 3 PFA dpdk devbind atom latest py b PRE DRIVER PORT 4 PFA Step 17 In l3fwd SSH window press Ctrl c to exit l3fwd ...

Page 56: ...eria PASS or FAIL can be configured in the configuration files or the testing scripts to provide the flexibility It means that DUI can satisfy different testing requirements and conditions e g in field testing and extra peripherals available 3 10 2 Services and Functions A service is a software module which executes certain tasks on specific hardware components and as such it can be either a diagn...

Page 57: ...function function 3 cpu_ver Verify CPU vendor id model name frequency and core count service 2 MEM A diag service for memory function 0 mem_test Memory pattern test function function 1 mem_dmi Memory SPD info readout only parts of the messages are shown Figure 39 The list Command Users can retrieve all available diagnostic update service IDs and function IDs through this command As indicated in th...

Page 58: ...rrent parameter values cli start 1 start all functions of service 1 Figure 42 Execute all Functions of the Cpu Test Service 3 10 3 6 stop The stop command is used to stop the execution of a specific DUI diagnostic update function cli stop service ID function ID For example stop the cpu_ver function of cpu test service cli stop 1 3 service stopped stop function OK Figure 43 The stop Command 3 10 3 ...

Page 59: ..._running the diagnostic update function is running st_error the diagnostic update function is executed but returned with error 3 10 3 9 result This command returns the last time execution result of a specific diagnostic update function cli result service ID Function ID The command below returns the last time execution result of cpu_ver function see Sections 3 10 3 3 and 3 10 3 10 cli result 1 3 ex...

Page 60: ...nfo Command 3 10 3 11 log The log command retrieves the last time execution test log of a specific diagnostic update function cli log service ID Function ID The following command dumps the latest test log of the cpu_ver function see Sections 3 10 3 3 and 3 10 3 10 cli log 1 3 09 22 48 07 16 2018 INFO service name CPU 09 22 48 07 16 2018 INFO function name cpu_ver 09 22 48 07 16 2018 INFO cpu_id Ge...

Page 61: ...or preference cli run script name An example of DUI Tcl script and the execution result are provided here for reference It executes the cpu_ver diagnostic function see Sections 3 10 3 3 and 3 10 3 10 with specific parameter values waits for the execution ends then prints the test log vim test tcl puts stdout Run DUI functions from Tcl script dui start 1 3 cpu_id GenuineIntel cpu_model N4200 freque...

Page 62: ...ovides the following functions Allow to remote control execute commands and collect information or logs via HTTP protocol Summarize result table System information collection Run different test sets with different configuration files The DUI fast batch is located under root bin dui fastbatch directory There is a main script fastbatch sh and the other three sub folders are 1 CFG The files in CFG fo...

Page 63: ...es sequentially Prefix DUI test item description in shorten name and it is unique in CFG file Note that underline _ is used instead of space word Action Run It will run this test No It skip this test item during the total DUI diagnostic test Serv_id DUI service id Described in Section 3 10 3 3 Func_id DUI function id Described in Section 3 10 3 3 Wait time Max waiting time for this run of test In ...

Page 64: ...daemon Advantech Diagnostic Update Infrastructrue DUI version 00 36 Copyright c 2011 2016 by Advantech Initializing dui_service with UID 1 Service name CPU Service description A diag service for cpu Initializing dui_service with UID 2 Service name MEM Service description A diag service for memory only parts of the messages are shown Use 80 as default http server port number cli Figure 50 Execute D...

Page 65: ...function 0 com_test Com port test service 8 FPGA A diag service for FPGA function 0 fpga_ver FPGA version check function 1 fpga_access FPGA read write test function service 9 RTC A diag service for rtc function 0 rtc_ipmc IPMC rtc test function function 1 rtc_sys System rtc test function service 10 SCRIPT A diag service to run shell scripts function 55 mem_check sh To check memory capacity frequen...

Page 66: ...r Verify CPU vendor id model name frequency and core count Service 2 Memory Function 0 mem_test Memory pattern test function Service 4 Ethernet Function 1 lan_mac Duplicate MAC address detection Function 2 eth_id Ethernet id check function Service 5 STORAGE Function 2 benchmark Storage benchmark Service 9 RTC Function 1 rtc_sys System rtc test function Service 10 SCRIPT Function 55 mem_check sh To...

Page 67: ...6 2018 Failed Sub Tests 10 23 54 07 16 2018 Start Time 2018 07 16 10 23 54 10 23 54 07 16 2018 End Time 2018 07 16 10 23 54 10 23 54 07 16 2018 Board Manufacturer Advantech 10 23 54 07 16 2018 Board Name ACPI6 B Figure 52 Execute cpu_ver Diagnostic Function 3 10 5 2 Execute a Batch Test via Tcl Script A Tcl script can be configured to execute multiple diagnostic functions with a single command bas...

Page 68: ...s batch test script had been optimized with the shortest testing time required Users can use the run command c f Section 3 10 3 12 to perform a batch test based on the diagnostic functions and testing procedures defined in the script After the testing is done an overall summarized test log will be generated at the end of console output or users can use any text editor to examine the log named dui_...

Page 69: ...on OK cmd start 4 1 start the function 1 of service 4 start function OK cmd start 5 2 start the function 2 of service 5 start function OK cmd start 9 1 start the function 1 of service 9 start function OK cmd wait 1 3 wait function completed wait function OK cmd wait 4 1 wait function completed wait function OK cmd wait 5 2 wait function completed wait function OK cmd wait 9 1 wait function complet...

Page 70: ...0 25 48 07 16 2018 Test ID cpu_ver 10 25 48 07 16 2018 Report Name cpu_ver 10 25 48 07 16 2018 File Name var log dui_01_03_20180716_102548130 log 10 25 48 07 16 2018 Sub Tests cpu_ver 10 25 48 07 16 2018 Failed Sub Tests 10 25 48 07 16 2018 Start Time 2018 07 16 10 25 48 10 25 48 07 16 2018 End Time 2018 07 16 10 25 48 10 25 48 07 16 2018 Board Manufacturer Advantech 10 25 48 07 16 2018 Board Name...

Page 71: ... 16 10 25 49 10 25 49 07 16 2018 Board Manufacturer Advantech 10 25 49 07 16 2018 Board Name ACPI6 B cmd log 5 2 10 25 50 07 16 2018 INFO service name STORAGE 10 25 50 07 16 2018 INFO function name benchmark 10 25 50 07 16 2018 INFO Start storage benchmark on sda 10 25 50 07 16 2018 INFO Start benchmark on dev sda 10 25 50 07 16 2018 INFO Device dev sda1 is already mounted to boot 10 25 50 07 16 2...

Page 72: ...5 56 07 16 2018 INFO 5 seconds Time compare success 10 25 56 07 16 2018 INFO Restore time in RTC 10 25 56 07 16 2018 RESULT System RTC test OK 10 25 56 07 16 2018 RESULT PASS 10 25 56 07 16 2018 10 25 56 07 16 2018 Test Summary PASSED 10 25 56 07 16 2018 Test ID rtc_sys 10 25 56 07 16 2018 Report Name rtc_sys 10 25 56 07 16 2018 File Name var log dui_09_01_20180716_102551135 log 10 25 56 07 16 201...

Page 73: ... critical 3 error 4 waning 5 Notice 6 information 7 None Example fastbatch sh cfg CFG CFG_MIC6313_SKU1 cfg debug 6 fastbatch sh cfg CFG CFG_MIC6313_SKU1 cfg fastbatch sh cfg CFG CFG_MIC6313_SKU1 cfg single 01 03 05 10 12 Type1 Automatic Mode use CFG file root bin dui fastbatch fastbatch sh cfg root bin dui fastbatch CFG CFG_SAMPLE cfg OS Ubuntu 18 04 LTS kernel 4 15 0 23 generic 2018 06 05 01 59 2...

Page 74: ...log PCIe device info Identify Ethernet device and interface info sysinfo h 2018 05 29 05 59 04 INFO sysinfo g9 2015 11 18 14 12 09 sysinfo g9 2015 11 18 14 12 09 Collect system information and create a tarball Usage sysinfo o t tag l level Options o keep original result folders without a tarball if o not set result folders will be deleted after tar t tag using this tag in folder name instead of cu...

Page 75: ...e shown root adv_diag_log 2018 05 29 06 04 25 DIAG 0x64 ipmi total 64 rw r r 1 root root 50 May 29 06 04 cat__proc_ipmi_0_ipmb log rw r r 1 root root 52 May 29 06 04 cat__proc_ipmi_0_params log rw r r 1 root root 96 May 29 06 04 ipmitool_fru_list log rw r r 1 root root 96 May 29 06 04 ipmitool_hpm_check log only parts of the messages are shown root adv_diag_log 2018 05 29 06 04 25 DIAG 0x64 os_inf...

Page 76: ...Please properly shut down the system using the poweroff command and wait for the system to cleanly shut down when done as the USB image is a RW file system and damage can occur if it is not properly shut down and unmounted poweroff 116 480819 reboot Power down Figure 54 Power off System ...

Page 77: ...ome under a different license http www ubuntu com about abou t ubuntu licensing lm_sensors V3 4 0 Libsensors is under LGPL v2 1 and other components in the package are under GPL v2 https github com groeck lm sensors NetworkMa nager 1 10 6 2ubuntu1 GNU GPL ModemMan ager 1 6 8 2ubuntu1 ModemManager and mmcli binaries are both GPLv2 libmm glib library is LGPLv2 https cgit freedesktop org Modem Manage...

Page 78: ...n use the ethtool p command to locate a specific LAN port For example to blink the Speed LED on LAN port 3 e g device eth0_3 for 5 seconds ethtool p eth0_3 5 With this command users shall be able to find out the mapping between the physical LAN port and the Ethernet device name e g LAN port 3 eth0_3 Figure 55 Speed LED on LAN Port 3 ...

Reviews: