Meego Wiki
Views

Quality/QA-tools/OTS/UserDocumentation/Multiple device

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Setup and configuration)
(conductor configuration)
Line 55: Line 55:
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15
* conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15
* conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15
 +
 +
Test that conductors are configured correctly and flashing is working:
 +
sudo su
 +
export OTS_WORKER_NUMBER=1
 +
conductor -u http://url/to/image.bin -v
 +
 +
You should see something like:
 +
...
 +
INFO using config file /etc/conductor_1.conf
 +
...
 +
INFO Loaded flasher 'meego-ai-flasher-n900'
 +
...
== Testing ==
== Testing ==

Revision as of 12:15, 14 April 2011

Contents

Multiple device support

Introduction

This feature has been added to 0.8.4 version.

Multiple device support means that one OTS worker can handle multiple devices simultaneously and execute tests parallel. One worker can include multiple ots-worker instances and they work individually. Only limitation is amount of the switchbox ports (if using USB devices), this limitation in HAT switchbox is 2.

Note! For MeeGo N900, you need the latest meego-ai and meego-ai-flasher!

Setup and configuration

This guideline assumes that you have HAT switchbox and two N900 devices.

Install OTS worker normally, check installation guidelines.

Remove the network-manager and remove all usb* settings from the /etc/network/interfaces.

Wiring

20110414 002.jpg

You need one HAT, two N900 devices and lots of cables:

  • 3 x USB A-B cables from the PC to HAT
  • 1 x Power cable to HAT
  • 2 x Power cable from HAT to JIGs
  • 2 x USB A-microB cables from HAT to JIGs

ots-worker configuration

Basically you need to start two ots-worker programs in one PC.

If both devices are using the same OTS server and queue, then you can use the default /etc/ots.ini file. Start workers as root in different shells or screen windows:

ots_worker -n 1
ots_worker -n 2

If you want to dedicated the other device to some other server or queue, create a copy from the default ots.ini file and make your changes to that. Start workers as root in different shells or screen windows:

ots_worker -n 1
ots_worker -n 2 -c /your/new/ots.ini

Both workers should be able to connect to OTS server normally, check that they have different worker id:

ots.worker.worker - INFO - Starting the worker 1...

conductor configuration

You need always own conductor.conf per device. Copy the default conductor.conf to first device:

sudo cp /etc/conductor.conf /etc/conductor_1.conf

And for second device:

sudo cp /etc/conductor.conf /etc/conductor_2.conf

The most important thing in those configuration files is to define the default flasher and IP addresses.

Recommended IPs for devices:

  • conductor_1.conf, host: 192.168.3.14, device: 192.168.3.15
  • conductor_2.conf, host: 192.168.4.14, device: 192.168.4.15

Test that conductors are configured correctly and flashing is working:

sudo su
export OTS_WORKER_NUMBER=1
conductor -u http://url/to/image.bin -v

You should see something like:

...
INFO using config file /etc/conductor_1.conf
...
INFO Loaded flasher 'meego-ai-flasher-n900'
...

Testing

Personal tools