Skip to content

Beaglebone Black Image

Javier Cervantes edited this page Apr 16, 2014 · 4 revisions

###Installing Beaglebone Black drivers

###Prep SD card

  • Insert your SD card into your host computer
  • Determine the name of your SD card, ie /dev/sdb

On OS X, you can use the diskutil command to help figure out the name of your card.

$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            499.4 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *15.9 GB    disk1
   1:                 DOS_FAT_32 UNTITLED                15.9 GB    disk1s1

In this case, our disk's name is /dev/disk1. Before you proceed, make sure to eject the mounted volume with diskutil unmount /dev/disk1s1.

On most Linux distros, you should be able to use the df -h command to help you find what the name of your disk is.

###Downloading and flashing the SD card

$ curl -O https://s3.amazonaws.com/artoo-images/beaglebone/robot-ubuntu_13.10-armv7-1394437089.img.tar.xz
$ tar -xJf robot-ubuntu_13.10-armv7-1394437089.img.tar.xz
$ sudo dd bs=1M count=3950 if=./robot-ubuntu_13.10-armv7-1394437089.img of=/dev/sdb && sudo sync
  • Remove the SD card from your host computer and insert the SD card into your Beaglebone Black
  • Hold down the SD card boot button near the SD card and plug the Beaglebone Black into your host computers usb port using the micro usb port located near the network jack on the Beaglebone Black. Successful boot will be indicated by all 4 leds turning solid blue, then begin to flash
  • It may take up to 2 minutes for the Beaglebone Black to show up as a new network device on your computer

Connecting to the Beaglebone Black

####Linux

  • Save this script as bbb_sh.sh and use this script to ssh into your Beaglebone Black
#!/bin/bash
sudo -- sh -c 'echo 1 > /proc/sys/net/ipv4/ip_forward'
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
ssh ubuntu@192.168.7.2
  • Connect to the Beaglebone Black
$ sudo sh bbb_ssh.sh

####Windows

####OSX

  • Open a new terminal execute the command ssh ubuntu@192.168.7.2

####Login credentials

  • The ubuntu users password is robot
  • You are now logged onto your your Beaglebone Black!

####VNC

  • The Beaglebone Black has been preloaded with vnc and the xfce desktop environment. You may start vnc by logging into the Beaglebone Black and executing sh ~/start_vnc.sh
  • The Beaglebone Black now has an active vnc session on 192.168.7.2:1 with the passows robotvnc

Resize sdcard partition

  • Log into your Beaglebone Black and execute these commands
$ sudo fdisk /dev/mmcblk0
d
2
n
p
2


w
$ sudo shutdown -r now
  • Once the Beaglebone Black has rebooted log back in

  • Then execute these commands on your Beaglebone Black

$ sudo resize2fs /dev/mmcblk0p2
$ sudo shutdown -r now
  • Once the Beaglebone Black has rebooted log back in

  • Ensure that your partition has been resized by issuing

$ df -h
  • Your /dev/root filesystem should now be the full size of your SD card
Clone this wiki locally