[dts][PATCH V1] framework/crb:get FreeBSD pci info
Lewei Yang
leweix.yang at intel.com
Wed Nov 24 17:26:12 CET 2021
The change of FreeBSD system version will change the display of PCI
info,Now change the script adaptation.
Signed-off-by: Lewei Yang <leweix.yang at intel.com>
---
framework/crb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/crb.py b/framework/crb.py
index c9909add..bd4f565d 100755
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -336,7 +336,7 @@ class Crb(object):
Look for the NIC's information (PCI Id and card type).
"""
out = self.send_expect("pciconf -l", "# ", alt_session=True)
- rexp = r"pci0:([\da-f]{1,3}:[\da-f]{1,2}:\d{1}):\s*class=0x020000.*chip=0x([\da-f]{4})8086"
+ rexp = r"pci0:([\da-f]{1,3}:[\da-f]{1,2}:\d{1}):\s*class=0x020000.*0x([\da-f]{4}).*8086"
pattern = re.compile(rexp)
match = pattern.findall(out)
--
2.33.1
More information about the dts
mailing list