Merge lp:~stylesen/lava-project/device-connect-method-doc into lp:lava-project

Proposed by Senthil Kumaran S
Status: Merged
Merged at revision: 44
Proposed branch: lp:~stylesen/lava-project/device-connect-method-doc
Merge into: lp:lava-project
Diff against target: 74 lines (+47/-4)
1 file modified
doc/lava-image-creation.rst (+47/-4)
To merge this branch: bzr merge lp:~stylesen/lava-project/device-connect-method-doc
Reviewer Review Type Date Requested Status
Linaro Validation Team Pending
Review via email: mp+137879@code.launchpad.net

Description of the change

Add different connection methods, to connect to the device serial port.

To post a comment you must log in.
Revision history for this message
Andy Doan (doanac) wrote :

I think I might collapse the method 3 part about "screen" into method 1. Something like:

In some cases cu on Ubuntu has shown issues sending STDIN to the target. In this case GNU screen is an alternative::

  sudo screen -t 'ttyUSB0 115200 8n1' /dev/ttyUSB0 115200,-ixoff,-ixon

45. By Senthil Kumaran S

Merge connect method 3 with method 1 as per doanac's comment.

Revision history for this message
Senthil Kumaran S (stylesen) wrote :

Hi Andy,

On Tuesday 04 December 2012 09:21 PM, Andy Doan wrote:
> I think I might collapse the method 3 part about "screen" into method 1. Something like:
>
> In some cases cu on Ubuntu has shown issues sending STDIN to the target. In this case GNU screen is an alternative::
>
> sudo screen -t 'ttyUSB0 115200 8n1' /dev/ttyUSB0 115200,-ixoff,-ixon

Made the above change to the documentation.

Thank You.
--
Senthil Kumaran S
http://www.stylesen.org/
http://www.sasenthilkumaran.com/

Revision history for this message
Andy Doan (doanac) wrote :

On 12/04/2012 10:56 AM, Senthil Kumaran S wrote:
> Hi Andy,
>
> On Tuesday 04 December 2012 09:21 PM, Andy Doan wrote:
>> I think I might collapse the method 3 part about "screen" into method 1. Something like:
>>
>> In some cases cu on Ubuntu has shown issues sending STDIN to the target. In this case GNU screen is an alternative::
>>
>> sudo screen -t 'ttyUSB0 115200 8n1' /dev/ttyUSB0 115200,-ixoff,-ixon
>
> Made the above change to the documentation.

Merge it! thanks

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/lava-image-creation.rst'
2--- doc/lava-image-creation.rst 2012-11-28 17:16:04 +0000
3+++ doc/lava-image-creation.rst 2012-12-04 16:55:26 +0000
4@@ -48,15 +48,57 @@
5
6 LAVA needs to know about your particular device. However, before adding the
7 device to LAVA, you need to work out how you want connect to the device and
8-provide that command to the dispatcher.
9+provide that command to the dispatcher. There are different ways to
10+connect to the device which are as follows:
11
12-The easiest way to do this if you have a direct serial connection to the device
13-is with "cu". Here's an example command:
14+*Method 1:* The easiest way to do this is, if you have a direct serial
15+connection to the device then you can use "cu". Here's an example
16+command (the following command assumes "cu" is already installed in
17+your machine):
18
19 ::
20
21 sg dialout "cu -l /dev/ttyUSB<X> -s 115200"
22
23+In some cases "cu" on Ubuntu has shown issues sending STDIN to the
24+target. In this case GNU screen is an alternative (the following
25+command assumes "screen" is already installed in your machine):
26+
27+::
28+
29+ sudo screen -t 'ttyUSB0 115200 8n1' /dev/ttyUSB0 115200,-ixoff,-ixon
30+
31+*Method 2:* The next method to connect to the board is to use ser2net. It
32+provides a convenient way which allows you to 'telnet' into your board
33+over a serial link. After connecting your board, let us assume your
34+board appears as "/dev/ttyUSB0".
35+
36+::
37+
38+ sudo apt-get install ser2net
39+
40+Edit /etc/ser2net.conf and add this line:
41+
42+::
43+
44+ 2000:telnet:600:/dev/ttyUSB0:115200 8DATABITS NONE 1STOPBIT banner
45+
46+Then restart so that ser2net sees your changes:
47+
48+::
49+
50+ sudo /etc/init.d/ser2net restart
51+
52+You can now connect to the board with:
53+
54+::
55+
56+ telnet localhost 2000
57+
58+The advantage of connecting with ser2net is that, your device/board is
59+available from the connected host machine IP to the entire network at
60+port 2000 or any port that is specified in the config file.
61+
62 Once you have a good way of connecting to the device, you need to tell LAVA
63 about it in two places:
64
65@@ -89,7 +131,8 @@
66 .. _here: http://bazaar.launchpad.net/~linaro-validation/lava-dispatcher/trunk/files/head:/lava_dispatcher/default-config/lava-dispatcher/device-types/
67
68 The critical piece that ties the dispatcher to the connection information
69-described above is the "connection_command" setting.
70+described above is the "connection_command" setting. Based on the
71+connection method you have chosen above your "connection_command" will vary.
72
73 Adding to the scheduler
74 -----------------------

Subscribers

People subscribed via source and target branches