<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10975</bug_id>
          
          <creation_ts>2017-01-26 17:18:30 +0000</creation_ts>
          <short_desc>Setup lastest DAFT version upon vm inside GDC Autobuilder cluster</short_desc>
          <delta_ts>2017-06-02 19:46:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>Release Process</product>
          <component>Release Process</component>
          <version>2.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.4 M1</target_milestone>
          
          <blocked>10603</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Plauchu Edwin">edwin.plauchu.camacho</reporter>
          <assigned_to name="Plauchu Edwin">edwin.plauchu.camacho</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>juan.m.cruz.alcaraz</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>stanley.cheong.kwan.phoong</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70193</commentid>
    <comment_count>0</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-01-26 17:18:30 +0000</bug_when>
    <thetext>The Distributed Automatic Flasher Tester (DAFT) is a tool for automated flashing and testing of an OS image upon a real device and its goal is to both standardize and simplify the testing over a ample variety of DUTs.

That&apos;s why the GDC&apos;s intention is to achieve an integration of its functionality within GDC&apos;s autobuilder cluster.

First step to do so shall be to setup the latest version of DAFT( here - the latest version https://github.com/01org/DAFT ) upon a virtual machine of GDC&apos;s auto builder cluster. Once it has been done, it shall be tested with a DUT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70195</commentid>
    <comment_count>1</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-01-26 17:25:00 +0000</bug_when>
    <thetext>edwin.plauchu.camacho: There is a typo within section 2.4.3 of implementation document https://github.com/01org/DAFT/blob/master/README.MD
edwin.plauchu.camacho: tftp0x8000000                               
edwin.plauchu.camacho: it should have a blank space between tftp and 0x8000000                        

simo.kuusela: I&apos;ll fix the typo, must have been really annoying, not sure how I have copied the uEnv wrong to the guide :s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70197</commentid>
    <comment_count>2</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-01-26 17:48:40 +0000</bug_when>
    <thetext>Eliminated dhcp contamination inside DUT lan.

&quot;&quot;&quot;DAFT is pretty tied to the dnsmasq files so far. &quot;&quot;&quot;
At the moment It is a justified approach due to DAFT is always inquiring dnsmasq&apos;s data associated with ip and mac addresses that were granted by dnsmasq. 

That&apos;s why prior dhcp server upon DUT lan has been turned off.

From this point onward we are using dnsmasq as the DUT lan dhcp server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70200</commentid>
    <comment_count>3</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-01-26 19:46:11 +0000</bug_when>
    <thetext>Uboot config has been verified as ok

Beagle Bone Black is booting its kernel through TFTP and mounting its file system with NFS.
The verification was performed with a small hub connected to GDC&apos;s auto builder bridge.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70204</commentid>
    <comment_count>4</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-01-26 20:40:17 +0000</bug_when>
    <thetext>BBB file system utilized during this implementation
http://skuusela.fi.intel.com/download/Beaglebone_harness/bbb_nfs.tar.gz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70212</commentid>
    <comment_count>5</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-01-26 21:33:41 +0000</bug_when>
    <thetext>Connected homemade &quot;normally closed&quot; relay to BBB

Configuration for relay cables:
Green - 5V (from the board)
White/Green - GND (from the board)
Blue - Signal (min 3.3V max 5V, from the board)

Further details about the relay circuits can be found at https://wiki.yoctoproject.org/wiki/Arduino_Single_power_control_unit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70218</commentid>
    <comment_count>6</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-01-26 22:48:48 +0000</bug_when>
    <thetext>Wiring schema between BBB and homemade relay &quot;normally closed&quot;
_________________________________________________________________________
Pin | Color relay | Description 
1   | White/Green | GND (from the board)
7   | Green       | 5V (from the board)
12  | Blue        | Signal (min 3.3V max 5V, from the board)
-------------------------------------------------------------------------
http://robotshop.com/letsmakerobots/files/userpics/u19048/B_3PinOut3.png


   _O_        _____         _&lt;&gt;_          ___  
 /     \     |     |      /      \      /  _  \
|==/=\==|    |[/_\]|     |==\==/==|    |  / \  |
|  O O  |    / O O \     |   &gt;&lt;   |    |  |&quot;|  |
 \  V  /    /\  -  /\  ,-\   ()   /-.   \  X  /
 /`---&apos;\     /`---&apos;\   V( `-====-&apos; )V   /`---&apos;\
 O&apos;_:_`O     O&apos;M|M`O   (_____:|_____)   O&apos;_|_`O 
  -- --       -- --      ----  ----      -- --</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71579</commentid>
    <comment_count>7</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-03-22 16:12:48 +0000</bug_when>
    <thetext>Latest version of DAFT has been implemented in GDC as per plan 
but it is not completely functional to collaborate with auto builder.

Several modifications in DAFT are required.

-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71588</commentid>
    <comment_count>8</comment_count>
    <who name="Plauchu Edwin">edwin.plauchu.camacho</who>
    <bug_when>2017-03-22 16:52:19 +0000</bug_when>
    <thetext>1) Decouple test injection mechanism, it is currently not decoupled from DAFT. Once It could be made, auto builder should play as a test injector entity through the newer DAFT’s service. ( https://bugzilla.yoctoproject.org/show_bug.cgi?id=11215 )

2) Newer test specification format needed, because of the current one is not aware if a test would be runnable or not upon specific DUT. ( https://bugzilla.yoctoproject.org/show_bug.cgi?id=11219 )

3) Convert DAFT in a service available for any Yocto auto builder worker ( https://bugzilla.yoctoproject.org/show_bug.cgi?id=11216 )

4) Merged devauto library with DAFT. Devauto is a library developed in GDC one year ago. Such library offers common interfaces and one config file to operate power switches and keyboard emulators through proxy objects. ( https://bugzilla.yoctoproject.org/show_bug.cgi?id=11218 )

5) Remove DAFT&apos;s DHCP server dependency. It would work OK in the past when it was AFT (&quot;the centralize approach&quot;) but today we are suffering with needless auto discovering of devices which are not required at all. ( https://bugzilla.yoctoproject.org/show_bug.cgi?id=11217 )

6) Update DAFT implementation manual</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>