Purpose:
Advanced LAN Bypass may be supported on Ethernet ports hosted either directly on a motherboard as onboard network ports or via add-in cards such as NMCs or PCIe NIC cards.
A dedicated and buffered power rail allows the LAN bypass mechanism to detect the system events (e.g., power outages or resets) and take the appropriate predefined action.
Prerequisites:
-
LBPCU and Liblbpcu are both built with GLIBC and using mmap(), so the customer’s Linux OS must support GLIBC and mmap(), otherwise LBPCU will not work.
-
lbpcu_v2.04
-
network_device_identifier_v1.38
Target Audience:
-
The user who is using FWA-1013 LAN BYPASS SKU.
-
A user who has Linux user experience.
-
A user who has BYPASS know-how.
Steps:
-
Check PCIE bus of NIC controllers for segments, two network ports form one bypass segment (Yellow frame)
-
Copy lbpcu & lbpcu.cfg to the executable folder, requiring a lbpcu.cfg in the same directory of binary or add "-config <file>" at the end of a command to specify the file name and the path.
# pwd
/home/lbpcu_v2.04
# ls
Advantech_lbpcu_revision.txt lbpcu lbpcu.cfg lbpcu.sha256
-
Copy network_device_identifier_v1.38 to the executable folder, show the devices' name, bus, id, subsystem id, slot name, panel name, feature, and model name of Advantech.
# pwd
/home/network_device_identifier_v1.38
# ls
Advantech_apdi_revision.txt apdi apdi.cfg apdi.sha256 nmc_name.cfg smbios.cfg
-
Displays version information
# ./apdi -V
libapdi version: 01.36
apdi version: 01.38
-
List all eth device information, check "A_BYPASS-C" &
"A_BYPASS" map to eth name.
# ./apdi -a
eth name bus:dev.fun vid did svid sdid mac address slot name panel name feature seg model
usb0 00:1e.0(u) 1809 0a02 N/A N/A be:2b:46:d5:38:e7 N/A N/A unknown N/A ID not found
b02p0 02:00.0 8086 125b 13fe 3035 c4:00:ad:ed:8c:08 MGMT_1 MGMT_1 (*) N/A N/A I226_CO
b03p0 03:00.0 8086 125b 13fe 3035 c4:00:ad:ed:8c:09 MGMT_2 MGMT_2 (*) N/A N/A I226_CO
b06p0 06:00.0 8086 1521 13fe 3017 c4:00:ad:ed:8c:0a LAN_9 LAN_9 (*) N/A N/A I350_CO
b06p1 06:00.1 8086 1521 13fe 3017 c4:00:ad:ed:8c:0b LAN_10 LAN_10 (*) N/A N/A I350_CO
b06p2 06:00.2 8086 1521 13fe 3017 c4:00:ad:ed:8c:0c LAN_11 LAN_11 (*) N/A N/A I350_CO
b06p3 06:00.3 8086 1521 13fe 3017 c4:00:ad:ed:8c:0d LAN_12 LAN_12 (*) N/A N/A I350_CO
b07p0 07:00.0 8086 1521 13fe 0033 c4:00:ad:77:46:f4 NMC 1 (B.3.255.255) 1 (*) N/A N/A NMC-0806
b07p1 07:00.1 8086 1521 13fe 0033 c4:00:ad:77:46:f5 NMC 1 (B.3.255.255) 2 (*) N/A N/A NMC-0806
b07p2 07:00.2 8086 1521 13fe 0033 c4:00:ad:77:46:f6 NMC 1 (B.3.255.255) 3 (*) N/A N/A NMC-0806
b07p3 07:00.3 8086 1521 13fe 0033 c4:00:ad:77:46:f7 NMC 1 (B.3.255.255) 4 (*) N/A N/A NMC-0806
b08p0 08:00.0 8086 1521 13fe 0033 c4:00:ad:61:df:21 NMC 1 (B.3.255.255) 5 (*) N/A N/A NMC-0806
b08p1 08:00.1 8086 1521 13fe 0033 c4:00:ad:61:df:22 NMC 1 (B.3.255.255) 6 (*) N/A N/A NMC-0806
b08p2 08:00.2 8086 1521 13fe 0033 c4:00:ad:61:df:23 NMC 1 (B.3.255.255) 7 (*) N/A N/A NMC-0806
b08p3 08:00.3 8086 1521 13fe 0033 c4:00:ad:61:df:24 NMC 1 (B.3.255.255) 8 (*) N/A N/A NMC-0806
bf4p0 f4:00.0 8086 1898 13fe 3037 c4:00:ad:ed:8c:0e SFP_PLUS_1 SFP_PLUS_1 (*) N/A N/A E822_FI_CO
bf4p1 f4:00.1 8086 1898 13fe 3037 c4:00:ad:ed:8c:0f SFP_PLUS_2 SFP_PLUS_2 (*) N/A N/A E822_FI_CO
bf4p2 f4:00.2 8086 1898 13fe 3037 c4:00:ad:ed:8c:10 SFP_PLUS_3 SFP_PLUS_3 (*) N/A N/A E822_FI_CO
bf4p3 f4:00.3 8086 1898 13fe 3037 c4:00:ad:ed:8c:11 SFP_PLUS_4 SFP_PLUS_4 (*) N/A N/A E822_FI_CO
bf4p4 f4:00.4 8086 189a 13fe 3037 c4:00:ad:ed:8c:12 LAN_5 LAN_5 (*) A_BYPASS-C 105 E822_FI_CO
bf4p5 f4:00.5 8086 189a 13fe 3037 c4:00:ad:ed:8c:13 LAN_6 LAN_6 (*) A_BYPASS 105 E822_FI_CO
bf4p6 f4:00.6 8086 189a 13fe 3037 c4:00:ad:ed:8c:14 LAN_7 LAN_7 (*) A_BYPASS-C 106 E822_FI_CO
bf4p7 f4:00.7 8086 189a 13fe 3037 c4:00:ad:ed:8c:15 LAN_8 LAN_8 (*) A_BYPASS 106 E822_FI_CO
(*) means default, user can use config file to overwrite the panel name.
(!) means CFG file feature is not matched with Adv default feature.
(?) means CFG file changed the slot number of slot name or NO matched SMBIOS type9/41 record.
APDI can't identify the slot number to output corresponding seg number.
(u) means this NIC device is from USB. The vid and did are from USB.
(!!) means there is no valid type 9/41 SMBIOS record. Please contact Advantech.
N/A in slot name means it's a USB network device or a virtual network device. It's NOT a PCIE network device.
-
Displays version information in lbpcu
# ./lbpcu -VF a
================================================
Seg 1 :
Firmware version: 01.24
================================================
Seg 2 :
Firmware version: 01.24
================================================
# ./lbpcu -V
LBPCU version: 02.04
liblbpcu version: 02.04
LBPCU protocol version: 00.10
-
Edit "lbpcu.cfg" to use "eth_name" instead of the segment number in LBPCU commands.
# more lbpcu.cfg
eth_name: bf4p4
SEGMENT: 1
BUS: f4
DEV: 0
FUN: 4
eth_name: bf4p6
SEGMENT: 2
BUS: f4
DEV: 0
FUN: 6
-
Gets the total number of segments defined in lbpcu.cfg
# ./lbpcu -n
Segment number in conf file : 2
Seg 1 : F4:00.4
Seg 2 : F4:00.6
-
Gets the last event and last action on Segment 1
# ./lbpcu -GLEA 1
last event: POWER_RST
last action: CONNECT
-
Manually sets the BYPASS action on Segment 1 and recheck the last event and action by -GLEA.
# ./lbpcu -SCA 1 BYPASS
# ./lbpcu -GLEA 1
last event: MANUAL
last action: BYPASS
-
LED of by-pass NIC validation
Comments
0 comments
Please sign in to leave a comment.