BBB First Boot

From Klaus' wiki
Revision as of 07:36, 2 May 2015 by Klaus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First boot with BeagleBone Black is best done by using a serial communication program like CuteCom or Putty.

Attach the USB connector to your PC and issue this command to find the tty-port that will be created:

$ ls -lart /dev
drwxr-xr-x.  2 root root            80 Aug 16 13:19 bsg
crw-rw----.  1 root disk       21,   1 Aug 16 13:19 sg1
drwxr-xr-x.  2 root root          3900 Aug 16 13:19 char
drwxr-xr-x. 22 root root          3560 Aug 16 13:19 .
brw-rw----.  1 root disk        8,  16 Aug 16 13:19 sdb
drwxr-xr-x.  6 root root           120 Aug 16 13:19 disk
drwxr-xr-x.  2 root root           200 Aug 16 13:19 block
crw-rw-rw-.  1 root dialout   166,   3 Aug 16 13:19 ttyACM3
crw-rw-rw-.  1 root tty         5,   0 Aug 16 13:20 tty
crw-rw-rw-.  1 root tty         5,   2 Aug 16 13:21 ptmx

The above list show the devices created when attaching the USB cable. The line of interest here is the ttyACM3 - might differ on other systems.

Since normal users normally not are member of the dialout group the quickest way to gain access to the tty-port is to issue this command:

$ sudo chmod o+rw /dev/ttyACM3

This will give a normal user access to the port.

Alternatively modify the /etc/group to allow the login to be member of the dialout group.

Now open the CuteCom or Putty port on a serial line using /dev/ttyACM3 and 115200 bps as settings.

An output like this can be seen:

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:

Now login using the defaults given.

Also try to issue

$ ssh debian@192.168.7.2

This will open an ssh connection over the USB cable, which also supports networked traffic, to the BBB.