All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] Problem of cant find a serial device in the Functional.serial_rx
@ 2018-07-12  2:12 Li, Xiaoming
  2018-07-13 20:53 ` Tim.Bird
  0 siblings, 1 reply; 3+ messages in thread
From: Li, Xiaoming @ 2018-07-12  2:12 UTC (permalink / raw)
  To: fuego; +Cc: Oki Kyohhei/�_ 恭平

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

Hi all:

I am working on the Functional.serial_rx test suite,and found  a  problem.

As u know,  Functional.serial_rx tests  the seria port,  receive and send capacity between  host and board.

But,   the  fuego install script  do not create a  virtual serial device in the docker.   So it just cant work.

Below  is my  method to solve this problem,    anyone knows a better one ?


diff --git a/fuego-host-scripts/docker-create-container.sh b/fuego-host-scripts/docker-create-container.sh
index 59cce3d..c8f1231 100755
--- a/fuego-host-scripts/docker-create-container.sh
+++ b/fuego-host-scripts/docker-create-container.sh
@@ -23,5 +23,10 @@ sudo docker create -it --name ${DOCKERCONTAINER} \
     -v $DIR/../fuego-rw:/fuego-rw \
     -v $DIR/../fuego-ro:/fuego-ro:ro \
     -v $DIR/../../fuego-core:/fuego-core:ro \
+    --device /dev/ttyUSB0:/dev/ttyS0 \
+    --device /dev/ttyUSB1:/dev/ttyS1 \
+    --device /dev/ttyUSB2:/dev/ttyS2 \
+    --device /dev/ttyUSB3:/dev/ttyS3 \
+    --device /dev/ttyUSB4:/dev/ttyS4 \
     --net="host" ${DOCKERIMAGE} || \
     echo "Could not create fuego-container. See error messages."


Best regards
Li

--------------------------------------------------
Li, Xiaoming
Development Dept.III
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8451
FAX: +86+25-83317685
MAIL: lixm.fnst@cn.fujitsu.com<mailto:lixm.fnst@cn.fujitsu.com>
--------------------------------------------------




[-- Attachment #2: Type: text/html, Size: 6732 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-17  9:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12  2:12 [Fuego] Problem of cant find a serial device in the Functional.serial_rx Li, Xiaoming
2018-07-13 20:53 ` Tim.Bird
2018-07-17  9:48   ` Li, Xiaoming

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.