Contents |
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!
There is a flasher plug-in example in the OTS source code under the example folder.
See example video from youtube: http://www.youtube.com/watch?v=exmJ6T-fjlM
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.
You need one HAT, two N900 devices and lots of cables:
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/worker.conf 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 worker.conf 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/worker.conf
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...
You need always own conductor.conf per device. Copy the default conductor.conf to first device:
sudo cp /etc/ots/conductor.conf /etc/ots/conductor_1.conf
And for second device:
sudo cp /etc/ots/conductor.conf /etc/ots/conductor_2.conf
The most important thing in those configuration files is to define the default flasher and IP addresses. You cannot use 192.168.2.15 address for testing! That is used for setting up the devices!
Recommended IPs for devices:
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/ots/conductor_1.conf ... INFO Loaded flasher 'meego-ai-flasher-n900' ... INFO Host IP 192.168.3.14;Device IP 192.168.3.15 ...