Beaglebone Black Yocto Tutorial 


  • Full Tutorial Video https://www.youtube.com/watch?v=zsE57fGpzlU 
  • please refer https://www.yoctoproject.org/

Requirements:

  • 50 Gbytes of free disk space
  • Runs a supported Linux distribution (i.e. recent releases of Fedora, openSUSE, CentOS, Debian, or Ubuntu). For a list of Linux distributions that support the Yocto Project, see the "Supported Linux Distributions" section in the Yocto Project Reference Manual. For detailed information on preparing your build host, see the "Preparing the Build Host" section in the Yocto Project Development Tasks Manual.

Download Required Packages to build

  • $ sudo apt-get update
  • $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ pylint3 xterm

Clone poky

  • $ cd ~$ git clone git://git.yoctoproject.org/poky
  • $ cd poky $ git fetch --tags $ git tag
  • $ git checkout tags/yocto-3.1 -b my-yocto-3.1
  • $ cd ~/poky
  • $ source oe-init-build-env

Edit local.conf 

  1. remove '#' MACHINE ?= "beaglebone-yocto"
  2. add '#' #MACHINE ??= "qemux86-64" 
  3. remove '#' comment following lines
  4. DL_DIR ?= "${TOPDIR}/downloads"66 : SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
  5. TMPDIR = "${TOPDIR}/tmp"
  6. PACKAGE_CLASSES ?= "package_rpm package_ipk"

Build

  • $ cd ~/poky/build
  • $ bitbake core-image-minimal




It will take time to build the image so relax now.

ISO Path:

once build done you can find-out your image in below location

poky/build/tmp/deploy/images/beaglebone-yocto

Install SD card ( Memory card )

  • $ lsblk (sdb is my memory card device file)
  • $ sudo dd if=core-image-minimal-beaglebone-yocto.wic of=/dev/sdb

this will write the image to memory card once it done. remove it.

Install minicom

  • $ sudo apt-get update
  • $ sudo apt-get install minicom

Connect USB to TTY Device

  • $ lsusb
  • $ dmesg

[ 2964.418006] usbserial: USB Serial support registered for ch341-uart
[ 2964.418022] ch341 1-1:1.0: ch341-uart converter detected
[ 2964.418383] usb 1-1: ch341-uart converter now attached to ttyUSB0

  • $ ls /dev/ttyUSB*

/dev/ttyUSB0


now you can configure minicom

  • $ sudo minicom -s

 

  • Go to Serial Port setup enter Type A

 

  • Type as display /dev/ttyUSB0 and save setup as dfl

Beaglebone J1 pinout

1 Ground
4 Receive
5 Transmit
 

USB stick RX -> Beaglebone TX
USB stick TX -> Beaglebone RX
USB stick GND -> GND 

Start Beaglebone

  • press boot button (Boot Switch)


 

Username Password

  • user : root, no password