test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] framework/virt_dut: ensure igb_uio installed
@ 2018-03-06  3:21 Joyce Kong
  0 siblings, 0 replies; only message in thread
From: Joyce Kong @ 2018-03-06  3:21 UTC (permalink / raw)
  To: dts

Ensure igb_uio driver is installed if driver='igb_uio'

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
---
 framework/virt_dut.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/framework/virt_dut.py b/framework/virt_dut.py
index 62688dc..91620ef 100644
--- a/framework/virt_dut.py
+++ b/framework/virt_dut.py
@@ -153,6 +153,9 @@ class VirtDut(DPDKdut):
         self.setup_modules(target)
 
         if bind_dev:
+            self.send_expect('(lsmod | grep uio) | modprobe uio', '#')
+            self.send_expect('(lsmod | grep igb_uio)
+                             | insmod ./%s/kmod/igb_uio.ko' % target,'#')
             self.bind_interfaces_linux('igb_uio')
 
     def prerequisites(self, pkgName, patch, autodetect_topo):
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-06  3:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-06  3:21 [dts] [PATCH] framework/virt_dut: ensure igb_uio installed Joyce Kong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).