Difference between revisions of "BeagleBone Black"

From Klaus' wiki
Jump to: navigation, search
(Created page with '==First Boot== First boot with BeagleBone Black (BBB) is best done by using a serial communication program like CuteCom or Putty. Attach the USB connector to your PC and issue …')
 
 
(104 intermediate revisions by the same user not shown)
Line 1: Line 1:
==First Boot==
+
Find below my experiences with the BeagleBone Black (BBB) revision 3.
  
First boot with BeagleBone Black (BBB) is best done by using a serial communication program like CuteCom or Putty.
+
* At [[BBB First Boot]] you can read about the first boot of the BeagleBone Black
 
+
* Add a [[BBB New User]] on your BBB
Attach the USB connector to your PC and issue this command to find the tty-port that will be created:
+
* Getting [[BBB Internet over the USB cable]]
 
+
* Set your [[BBB timezone]] to match your local timezone
<source lang="bash">
+
* I talk about adding a WiFi adapter over at [[BBB WiFi]]
$ ls -lart /dev
+
* Customising your prompt. Look over at [[BBB Customised prompt]]
</source>
+
* The [https://yoctoproject.org Yocto Project] will enable you to build your own distribution for the BBB. See [[BBB Yocto Project]] for further details.
 
+
* Cross compilations means that you develop software on one type of CPU architecture, e.g. Intel X86_64, for execution on another architecture, e.g. the ARM architecture. Se [[BBB Cross Compiler]] for more.
<source lang="text">
+
* Having developed a program on the laptop it would be nice to be able to execute it on the BBB and debug it. See [[BBB Remote Debugging]] for details about this.
drwxr-xr-x. 2 root root            80 Aug 16 13:19 bsg
+
* Enabling peripheral devices like the OneWire is relatively easy. See [[BBB and OneWire]] for further details.
crw-rw----. 1 root disk      21,  1 Aug 16 13:19 sg1
+
* Thoughts on enabling PWM can be found over at [[BBB Enabling PWM]]
drwxr-xr-x. 2 root root          3900 Aug 16 13:19 char
+
* Linux software is under constant update. If not the kernel, then other utilities are updated either to improve the existing functionality, to remove bugs or to give even more functionality. Jump to [[BBB New Debian Image]] if you would like to run on a new image.
drwxr-xr-x. 22 root root          3560 Aug 16 13:19 .
+
* Working on bren for development but debugging the BBB next to you is possible, see [[BBB Reverse SSH Tunnelling]]
brw-rw----.  1 root disk        8, 16 Aug 16 13:19 sdb
+
* Over at [[BBB Developing Device Drivers]] there are some words about device driver development.
drwxr-xr-x. 6 root root          120 Aug 16 13:19 disk
+
* [[BBB WebSockets]] are relatively easy to implement in a C or C++ program if you are in need of transporting data between the BBB and a web client.
drwxr-xr-x. 2 root root          200 Aug 16 13:19 block
+
* Over at [[BBB Kernel Modules]] I discuss different aspects of extending the kernel by developing a specific device driver.
crw-rw-rw-. 1 root dialout  166,  3 Aug 16 13:19 ttyACM3
+
* Real men don't backup! They occasionally cry. The rest of us makes regular backups. Take a look at [[BBB Backup your work]]
crw-rw-rw-. 1 root tty        5,  0 Aug 16 13:20 tty
+
* A quite comprehensive C++ Library for the BBB is available over at [http://blacklib.yigityuce.com/index.html BlackLib]
crw-rw-rw-. 1 root tty        5,  2 Aug 16 13:21 ptmx
+
* Using the PRU's? Take a look over at [[BBB PRU]]
</source>
+
* Sometimes you don't need the HDMI, so you can [[Switch off the HDMI]] and thereby free a lot of IO pins for other purposes
 
+
* [[Remote monitoring]] of ethernet traffic using Wireshark
The above list show the devices created when attaching the USB cable. The line of interest here is the '''ttyACM3''' - might differ on your system.
+
* BBB as an [[Access Point]]
 
+
* Realtime programming in C and Assembler is done in the [[CCS]]
Since users is normally not member of the '''dialout''' group the quickest way to gain access to the tty-port is to issue this command:
+
 
+
<source lang="bash">
+
$ sudo chmod o+rw /dev/ttyACM3
+
</source>
+
 
+
This will give you access to the port.
+
 
+
Now open the CuteCom or Putty port on a serial line using '''/dev/ttyACM3''' and '''115200 bps''' as settings.
+
 
+
You should see an output like this:
+
 
+
<source lang="text">
+
Login timed out after 60 seconds.
+
 
+
\0x1b[r\0x1b[H\0x1b[J
+
 
+
Debian GNU/Linux 7 kolles-beaglebone ttyGS0
+
 
+
default username:password is [debian:temppwd]
+
 
+
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
+
 
+
The IP Address for usb0 is: 192.168.7.2
+
kolles-beaglebone login:
+
</source>
+
 
+
You can now login using the defaults given.
+
 
+
Also try to issue
+
 
+
<source lang="bash">
+
ssh debian@192.168.7.2
+
</source>
+
 
+
This will open an '''ssh''' connection over the USB cable to the BBB.
+

Latest revision as of 15:50, 8 November 2020

Find below my experiences with the BeagleBone Black (BBB) revision 3.

  • At BBB First Boot you can read about the first boot of the BeagleBone Black
  • Add a BBB New User on your BBB
  • Getting BBB Internet over the USB cable
  • Set your BBB timezone to match your local timezone
  • I talk about adding a WiFi adapter over at BBB WiFi
  • Customising your prompt. Look over at BBB Customised prompt
  • The Yocto Project will enable you to build your own distribution for the BBB. See BBB Yocto Project for further details.
  • Cross compilations means that you develop software on one type of CPU architecture, e.g. Intel X86_64, for execution on another architecture, e.g. the ARM architecture. Se BBB Cross Compiler for more.
  • Having developed a program on the laptop it would be nice to be able to execute it on the BBB and debug it. See BBB Remote Debugging for details about this.
  • Enabling peripheral devices like the OneWire is relatively easy. See BBB and OneWire for further details.
  • Thoughts on enabling PWM can be found over at BBB Enabling PWM
  • Linux software is under constant update. If not the kernel, then other utilities are updated either to improve the existing functionality, to remove bugs or to give even more functionality. Jump to BBB New Debian Image if you would like to run on a new image.
  • Working on bren for development but debugging the BBB next to you is possible, see BBB Reverse SSH Tunnelling
  • Over at BBB Developing Device Drivers there are some words about device driver development.
  • BBB WebSockets are relatively easy to implement in a C or C++ program if you are in need of transporting data between the BBB and a web client.
  • Over at BBB Kernel Modules I discuss different aspects of extending the kernel by developing a specific device driver.
  • Real men don't backup! They occasionally cry. The rest of us makes regular backups. Take a look at BBB Backup your work
  • A quite comprehensive C++ Library for the BBB is available over at BlackLib
  • Using the PRU's? Take a look over at BBB PRU
  • Sometimes you don't need the HDMI, so you can Switch off the HDMI and thereby free a lot of IO pins for other purposes
  • Remote monitoring of ethernet traffic using Wireshark
  • BBB as an Access Point
  • Realtime programming in C and Assembler is done in the CCS