User Tools

Site Tools


civilinfrastructureplatform:beagleboneblackboard

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
Last revision Both sides next revision
civilinfrastructureplatform:beagleboneblackboard [2017/05/26 09:03]
rajmarshall ..and again
civilinfrastructureplatform:beagleboneblackboard [2018/04/27 13:07]
rajmarshall [Beaglebone Black Setup & Configuration (3/5)] add link to renesas page
Line 1: Line 1:
-====== Beaglebone Black Setup & Configuration (3/4) ====== +====== Beaglebone Black Setup & Configuration (3/5) ====== 
-This set of instructions assumes you have already Setup and Configured the B@D Virtual Machine. If that is not the case please go back to the [[ciptestingboardatdesksingledevsetup|B@D Setup and Configuration wiki page]].+This set of instructions assumes you have already Setup and Configured the B@D Virtual Machine. If that is not the case please go back to the [[ciptestingboardatdesksingledevsetup|B@D Setup and Configuration wiki page]]. If you are using the 1.0 release rather than the latest version for git you need to read an [[https://​wiki.linuxfoundation.org/​civilinfrastructureplatform/​beagleboneblackboard?​rev=1508248464|older version]] of this page. 
 + 
 +If you are using the Renesas IWG20M board see [[renesasboard|this ​page]].
  
 ===== Working with the Beaglebone Black ===== ===== Working with the Beaglebone Black =====
Line 7: Line 9:
  
 ==== Cabling to the Beaglebone Black ==== ==== Cabling to the Beaglebone Black ====
 +
    * The Beaglebone Black should be powered using the wall plug.    * The Beaglebone Black should be powered using the wall plug.
    * The USB cable that comes with the BBB //can// power the board, but this is not recommended when loading a kernel.    * The USB cable that comes with the BBB //can// power the board, but this is not recommended when loading a kernel.
Line 38: Line 41:
    * Handshake: **None**    * Handshake: **None**
  
-4. The CIP Testing project uses the ''​ser2net''​ serial-to-network proxy program to allow communications with the BBB by assigning it an Ethernet port on the host machine. This way, a developer can communicate to the BBB over the serial port as if it had an IP Address. A typical use would be connecting to the BBB using the telnet program: ''​telnet <​Host'​s IP Address> <​port#>''​+4. The CIP Testing project uses the ''​ser2net''​ serial-to-network proxy program to allow communications with the BBB by assigning it an Ethernet port on the host machine. This way, a developer can communicate to the BBB over the serial port as if it had an IP Address. A typical use would be connecting to the BBB using the telnet program: ''​telnet <​Host'​s IP Address> <​port#>'' ​  
 + 
 +// Note that if you are using a Windows 10 host then you must use ser2net on the B@D Virtual machine. In **this** case follow steps 15/16 and **then** move back to step 9. //
  
 5. Verify on your host machine (if necessary installing ser2net first) the ''​ser2net.conf''​ configuration file to ensure the serial port is correct for the CIP B@D Virtual Machine. 5. Verify on your host machine (if necessary installing ser2net first) the ''​ser2net.conf''​ configuration file to ensure the serial port is correct for the CIP B@D Virtual Machine.
Line 44: Line 49:
 ''​user@host:​~$ **tail /​etc/​ser2net.conf**''​ ''​user@host:​~$ **tail /​etc/​ser2net.conf**''​
  
-The last line below shows that serial port ''/​dev/​ttyUSB0''​ is routed to the B@D Virtual Machines's IP Address, port 8020.+The last line below shows that serial port ''/​dev/​ttyUSB0''​ is routed to the host PC's IP Address, port 8020.
  
    # The original config file shipped with the upstream sources can be    # The original config file shipped with the upstream sources can be
Line 65: Line 70:
 ''​user@host:​ **sudo systemctl restart ser2net.service**''​ ''​user@host:​ **sudo systemctl restart ser2net.service**''​
  
-8. On the VM change localhost to host'​s ​IP (Machine ​that is connected serially to board):+8. B@D now uses a private network so that the host IP address no longer needs setting in the device dictionary. If your local IP address settings are such that a change ​is necessary from the default 192.168.22.1  
 + edit mybbb.dat appropriately ​ and then copy it into the device dictionary:
  
-''​vagrant@guest: ​sed -i '​s/​localhost/​<host_ip>/​g' ​mybbb.dat ''​+''​vagrant@guest:​$ **<nowiki>sudo cp mybbb.dat ​/​etc/​lava-server/​dispatcher-config/​devices/​bbb01.jinja2</​nowiki>​**''​
  
 Note: If you have multiple IP addresses (e.g. due to WiFi and Ethernet both being active) then it is recommended that you disable all but one network interface. Note: If you have multiple IP addresses (e.g. due to WiFi and Ethernet both being active) then it is recommended that you disable all but one network interface.
  
-==== Update ​the Beaglebone Black Device Dictionary ====+// If you don't wish to change ​the root password of the board then edit the first line of mybbb.dat so that lavauser123 is replaced by your current board password. ​ Or you can change it when logged in via telnet (see next step) //
  
-9. Update device dictionary: 
  
-''​vagrant@guest:​$ **<​nowiki>​sudo lava-server manage device-dictionary --hostname bbb01 --import mybbb.dat</​nowiki>​**''​+9. Connect to the BBB using the serial port.
  
-10. Connect to the BBB using the serial port. +''​ vagrant@guest:​~$ **telnet ​192.168.22.1 ​8020** ''​
- +
-''​ vagrant@guest:​~$ **telnet ​<​bridged_ip> ​8020** ''​+
  
    ​Trying ::1...    ​Trying ::1...
Line 101: Line 104:
 ==== Using an Ethernet Cable ==== ==== Using an Ethernet Cable ====
  
-11. Connect an Ethernet Cable from the Ethernet switch to the BBB's RJ-45 connector.+10. Connect an Ethernet Cable from the Ethernet switch to the BBB's RJ-45 connector ​and connect to BBB using SSH.
  
 ''​[host@user ~]$ **ssh debian@10.0.0.50**''​ ''​[host@user ~]$ **ssh debian@10.0.0.50**''​
  
-   ​Debian GNU/​Linux ​+   ​Debian GNU/​Linux ​7 beaglebone ttyO0
-    +
-   ​BeagleBoard.org Debian Image 2016-11-06+
        
    ​Support/​FAQ:​ http://​elinux.org/​Beagleboard:​BeagleBoneBlack_Debian    ​Support/​FAQ:​ http://​elinux.org/​Beagleboard:​BeagleBoneBlack_Debian
Line 113: Line 114:
    ​default username:​password is [debian:​temppwd]    ​default username:​password is [debian:​temppwd]
        
-   ​debian@10.0.0.50'​s password: ​+   ​debian@10.0.0.50'​s password: ​temppwd
        
    Last login: Fri Feb  3 22:05:01 2017 from 10.0.0.4    Last login: Fri Feb  3 22:05:01 2017 from 10.0.0.4
-   ​debian@beaglebone:​~$+   ​debian@beaglebone:​~$ ​exit 
 + 
 + 
 +11. Exit the ''​debian''​ login and login as ''​root''​ 
 +   ​debian@beaglebone:​~$ exit 
 +   ​logout 
 +    
 +   ​Debian GNU/Linux 7 beaglebone ttyO0 
 +    
 +   ​default username:​password is [debian:​temppwd] 
 +    
 +   The IP Address for usb0 is: 192.168.7.2 
 +   ​beaglebone login: root
        
-12. Change the root password+   root@beaglebone:​~#​
  
-''​debian@beaglebone:​~$ passwd''​+12. Change the root password to ''​lavauser123''​
  
-   Changing password for debian. +''​root@beaglebone:​~#​ **passwd** ''​ 
-   ​(current) UNIX password: temppwd+ 
 +   Changing password for root.
    Enter new UNIX password: lavauser123    Enter new UNIX password: lavauser123
    ​Retype new UNIX password: lavauser123    ​Retype new UNIX password: lavauser123
Line 129: Line 143:
  
  
-13. Next, you will test the B@D Virtual Machine Setup with the Beaglebone Black and the CIP Linux Kernel ​on the [[ciptestingreferencetestcases|B@D Reference Test Cases wiki page]].+13. Next, before ​you test the B@D Virtual Machine Setup with the Beaglebone Black and the CIP Linux Kernel, you will need to [[cipsystembuildhowto|create an initramfs with BusyBox for the Beaglebone Black]]
 + 
 +------- 
 + 
 +14. **Next 2 steps are Windows 10 Only** 
 +On the Windows host, run VirtualBox, select the VM  and enable the FTDI filter - see screenshot:​{{:​civilinfrastructureplatform:​usb-subset.png?​200|}} 
 +    
 +15. On the VM change localhost to the VM's IP Address (use ''​ip addr''​ and the IP address associated with eth1): 
 + 
 +''​vagrant@guest:​ **sed -i '​s/​localhost/<​vm_ip>/​g'​ mybbb.dat** ''​ 
 + 
 + 
 +   Now move back to step 9.
  
 Back to the [[ciptestingboardatdesksingledevsetup|B@D Setup and Configuration wiki page]] Back to the [[ciptestingboardatdesksingledevsetup|B@D Setup and Configuration wiki page]]
civilinfrastructureplatform/beagleboneblackboard.txt · Last modified: 2018/09/13 13:08 by rajmarshall