User Tools

Site Tools


civilinfrastructureplatform:ciptestingboardatdeskdingledevdeployment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
civilinfrastructureplatform:ciptestingboardatdeskdingledevdeployment [2017/10/16 09:57]
rajmarshall Initial update for 1.0 fixing links
civilinfrastructureplatform:ciptestingboardatdeskdingledevdeployment [2018/04/04 10:13]
rajmarshall enhance private network note
Line 42: Line 42:
 ''​ user@host:​cip$ **<​nowiki>​gpg --import pubkey.txt</​nowiki>​** ''​ ''​ user@host:​cip$ **<​nowiki>​gpg --import pubkey.txt</​nowiki>​** ''​
  
-   gpg: key 33D89A0573715D37:​ public key "​Robert Marshall (Codething) <​robert.marshall@codethink.co.uk>"​ imported +  ​gpg: key 33D89A0573715D37:​ public key "​Robert Marshall (Codething) <​robert.marshall@codethink.co.uk>"​ imported 
-   ​gpg: Total number processed: 1 +  gpg: Total number processed: 1 
-   ​gpg:               ​imported:​ 1 +  gpg:               ​imported:​ 1 
-   ​+ 
  
 8. Calculate the SHA256 sum of the Virtual Machine box file 8. Calculate the SHA256 sum of the Virtual Machine box file
Line 59: Line 59:
 ''​ user@host:​cip$ **<​nowiki>​gpg --verify cip_board_at_desk_v1.0.box.sig cip_board_at_desk_v1.0.box</​nowiki>​** ''​ ''​ user@host:​cip$ **<​nowiki>​gpg --verify cip_board_at_desk_v1.0.box.sig cip_board_at_desk_v1.0.box</​nowiki>​** ''​
  
-   gpg: Signature made Thu 25 May 2017 09:27:45 BST using RSA key ID 73715D37+   gpg --verify cip_board_at_desk_v1.0.box.sig cip_board_at_desk_v1.0.box 
 +   gpg: Signature made Fri 13 Oct 2017 11:36:06 BST using RSA key ID 0647F909
    gpg: Good signature from "​Robert Marshall (Codething) <​robert.marshall@codethink.co.uk>"​    gpg: Good signature from "​Robert Marshall (Codething) <​robert.marshall@codethink.co.uk>"​
    gpg: WARNING: This key is not certified with a trusted signature!    gpg: WARNING: This key is not certified with a trusted signature!
-   gpg: There is no indication that the signature belongs to the owner. +   ​gpg: ​         There is no indication that the signature belongs to the owner. 
-   ​Primary key fingerprint: ​8B2E 53ED 058B 79F3 E162  A001 33D8 9A05 7371 5D37 +   ​Primary key fingerprint: ​83B2 E0FD 9B33 61ED 2C0E  381C 318B 48B3 0647 F909 
-// fix the above !!!! // + 
-We are looking for the 2nd line stating that this is a **Good signature...**+We are looking for the 2nd output ​line stating that this is a **Good signature...**
  
 // Note: The Warnings shown above are normal, as they depend on your setup and configuration. Here are explanations for the warnings you might encounter://​ // Note: The Warnings shown above are normal, as they depend on your setup and configuration. Here are explanations for the warnings you might encounter://​
Line 86: Line 87:
  
    ​Cloning into '​board-at-desk-single-dev'​...    ​Cloning into '​board-at-desk-single-dev'​...
-   ​remote:​ Counting objects: ​465, done. +   ​remote:​ Counting objects: ​588, done. 
-   ​remote:​ Compressing objects: 100% (171/171), done. +   ​remote:​ Compressing objects: 100% (248/248), done. 
-   ​remote:​ Total 465 (delta ​291), reused ​463 (delta ​290+   ​remote:​ Total 588 (delta ​369), reused ​548 (delta ​338
-   ​Receiving objects: 100% (465/465), 15.06 MiB | 16.92 MiB/s, done. +   ​Receiving objects: 100% (588/588), 15.09 MiB | 8.92 MiB/s, done. 
-   ​Resolving deltas: 100% (291/291), done. +   ​Resolving deltas: 100% (369/369), done. 
-   ​Checking connectivity... done.+   ​Checking connectivity... done. 
  
 11. Change to the newly created board-at-desk-single-dev directory. 11. Change to the newly created board-at-desk-single-dev directory.
Line 129: Line 130:
 This tutorial needs the same list of **prerequisites** as those listed [[ciptestingboardatdesksingledevfeaturepage#​prerequisites|on the features page]]. This tutorial needs the same list of **prerequisites** as those listed [[ciptestingboardatdesksingledevfeaturepage#​prerequisites|on the features page]].
  
-==== Clone the CIP B@D Repo, Build the Virtual Machine ​and Run Example Tests ====+==== Clone the CIP Vagrant ​Repo and launch ​the Virtual Machine ====
  
 1. Create a clean directory to hold the Vagrant files needed to build the Virtual Machine (VM) from scratch. We will use the ''/​home/​user/​v_cip''​ directory in these instructions,​ but you can replace it with whatever makes the most sense for you. 1. Create a clean directory to hold the Vagrant files needed to build the Virtual Machine (VM) from scratch. We will use the ''/​home/​user/​v_cip''​ directory in these instructions,​ but you can replace it with whatever makes the most sense for you.
Line 139: Line 140:
 ''​ user@host:​v_cip$ ''​ ''​ user@host:​v_cip$ ''​
  
-==== Clone the CIP Vagrant Repo and launch the Virtual Machine ==== 
  
 3. Clone the board-at-desk-single-dev GitLab Project 3. Clone the board-at-desk-single-dev GitLab Project
  
-''​ user@host:cip$ **git clone https://​gitlab.com/​cip-project/​cip-testing/​board-at-desk-single-dev** ''​+''​ user@host:v_cip$ **git clone https://​gitlab.com/​cip-project/​cip-testing/​board-at-desk-single-dev** ''​
  
    ​Cloning into '​board-at-desk-single-dev'​...    ​Cloning into '​board-at-desk-single-dev'​...
-   ​remote:​ Counting objects: ​465, done. +   ​remote:​ Counting objects: ​588, done. 
-   ​remote:​ Compressing objects: 100% (171/171), done. +   ​remote:​ Compressing objects: 100% (248/248), done. 
-   ​remote:​ Total 465 (delta ​291), reused ​463 (delta ​290+   ​remote:​ Total 588 (delta ​369), reused ​548 (delta ​338
-   ​Receiving objects: 100% (465/465), 15.06 MiB | 16.92 MiB/s, done. +   ​Receiving objects: 100% (588/588), 15.09 MiB | 8.92 MiB/s, done. 
-   ​Resolving deltas: 100% (291/291), done. +   ​Resolving deltas: 100% (369/369), done. 
-   ​Checking connectivity... done.+   ​Checking connectivity... done.  
 +   
  
 4. Change to the newly created board-at-desk-single-dev directory. 4. Change to the newly created board-at-desk-single-dev directory.
Line 159: Line 160:
 ''​ user@host:​board-at-desk-single-dev$ ''​ ''​ user@host:​board-at-desk-single-dev$ ''​
  
-5. If you wish to use the 1.0 release version rather than the git master then do: 
  
-''​git checkout v1.0''​ +5. Launch the Virtual Machine using Vagrant
- +
-6. Launch the Virtual Machine using Vagrant+
  
 ''​ user@host:​board-at-desk-single-dev$ **vagrant up**''​ ''​ user@host:​board-at-desk-single-dev$ **vagrant up**''​
  
-Example output from the launch is available in the [[https://​gitlab.com/​cip-project/​cip-testing/​CIP-kernel-test-logs/​blob/​b589e0b68f891a9c0fe044502abcc9541203b1c1/​vagrant-up.output|CIP-kernel-test-logs ]] repos.+Example output from the launch is available in the [[https://​gitlab.com/​cip-project/​cip-testing/​CIP-kernel-test-logs/​blob/​master/​vagrant-up.output|CIP-kernel-test-logs ]] repos.
  
 // Note: One Ethernet port on the VM is Bridged, so it will ask you which one of the Ethernet Adapters on the host machine you wish to bridge. You can automate this by adding your desired Ethernet port in the Vagrantfile. ​ // Note: One Ethernet port on the VM is Bridged, so it will ask you which one of the Ethernet Adapters on the host machine you wish to bridge. You can automate this by adding your desired Ethernet port in the Vagrantfile. ​
 e.g. change the config.vm.network line  to\\ <​nowiki>​config.vm.network "​public_network",​ use_dhcp_assigned_default_route:​ true,  :bridge => '​eth0'</​nowiki>//​ e.g. change the config.vm.network line  to\\ <​nowiki>​config.vm.network "​public_network",​ use_dhcp_assigned_default_route:​ true,  :bridge => '​eth0'</​nowiki>//​
 +
 +// Note: The Vagrant instance uses a private network to communicate with an attached board connected via a host USB, this network uses the IP address 192.168.22.0 if this will clash with your network settings then you will need to edit the Vagrant file and also alter integration-scripts/​configure_lava.sh before running `vagrant up`. //
 +
 +6. The provisioning now requires a network restart during that process, at this point the output is
 +
 +
 +   ​==>​ default: Setting up net-tools (1.60+git20161116.90da8a0-1) ...
 +   ​==>​ default: now run vagrant halt; vagrant up; vagrant provision; ​
 +   ​==>​ default: to complete b@d provisioning
 +   The SSH command responded with a non-zero exit status. Vagrant
 +   ​assumes that this means the command failed. The output for this command
 +   ​should be in the log above. Please read the output to determine what
 +   went wrong.
 +
 +So as instructed:
 +
 +''​ user@host:​board-at-desk-single-dev$ **vagrant halt**''​ \\ 
 +''​ user@host:​board-at-desk-single-dev$ **vagrant up**''​ \\
 +''​ user@host:​board-at-desk-single-dev$ **vagrant provision**''​
 +
  
 7. Restart the Virtual Machine using Vagrant (this step is necessary in order for the LAVA configuration to take effect). See [[https://​wiki.linuxfoundation.org/​civilinfrastructureplatform/​ciptestingknownissues#​b-d-virtual-machine-troubleshooting-guide|Troubleshooting Guide]] for a fuller description of the issue. 7. Restart the Virtual Machine using Vagrant (this step is necessary in order for the LAVA configuration to take effect). See [[https://​wiki.linuxfoundation.org/​civilinfrastructureplatform/​ciptestingknownissues#​b-d-virtual-machine-troubleshooting-guide|Troubleshooting Guide]] for a fuller description of the issue.
Line 183: Line 201:
  
  
-6. Next, you will move on to the [[ciptestingboardatdesksingledevsetup|B@D Setup and Configuration wiki page]]+8. Next, you will move on to the [[ciptestingboardatdesksingledevsetup|B@D Setup and Configuration wiki page]]
    
civilinfrastructureplatform/ciptestingboardatdeskdingledevdeployment.txt · Last modified: 2018/11/28 14:56 by rajmarshall