Lab 11: IoT usecase for Yocto Project

Open the AGL getting started guide located at: Developing an AGL Image

Set up your Linux system with the right packages (instruction are provided for Ubuntu, Fedora, CentOS and openSUSE)

  1. Install prerequisites:
    $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
         build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
         xz-utils debianutils iputils-ping libsdl1.2-dev xterm xsltproc docbook-utils \
         fop dblatex xmlto make python-git curl
  2. Define the work directory:
    $ export AGL_TOP=$HOME/workspace_agl
    $ mkdir -p $AGL_TOP
  3. Setup repo tool:
    $ mkdir -p ~/bin
    $ export PATH=~/bin:$PATH
    $ curl > ~/bin/repo
    $ chmod a+x ~/bin/repo
  4. Download latest stable AGL release:
    $ cd $AGL_TOP
    $ repo init -b guppy -u
    $ repo sync
  5. Source script, to create the build directory:
    $ source meta-agl/scripts/ -f -m qemux86-64 agl-demo agl-devel
  6. Build the OS image:
    $ bitbake agl-demo-platform
  7. Build the OS SDK image:
    $ bitbake agl-demo-platform-crosssdk
  8. Decompress the OS image that resulted after the build:
    $ cd tmp/deploy/images/qemux86-64
    $ xz -d agl-demo-platform-qemux86-64.vmdk.xz
  9. Boot the image with QEMU:
    $ sudo apt-get install qemu-system-x86
    $ qemu-system-x86_64 -enable-kvm -m 2048 \
        -hda agl-demo-platform-qemux86-64.vmdk \
        -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt \
        -vga virtio -show-cursor \
        -device virtio-rng-pci \
        -serial mon:stdio -serial null \
        -soundhw hda \
        -net nic,vlan=0 \
        -net user,hostfwd=tcp::2222-:22


  1. Replicate a successful AGL setup.
  2. Get the list of packages the newly defined image has
  3. Check if packages such as openssh and screen are included in the image.
  4. Deploy the AGL image onto VirtualBox 5.2.0 or later. You could also try using the latest snapshot available: AGL Snapshot
iot/labs/11.txt ยท Last modified: 2020/01/07 18:55 by jan.vaduva
CC Attribution-Share Alike 3.0 Unported Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0