Skip to content
Tyler Baker edited this page Jun 23, 2015 · 8 revisions

Dragonboard 410C - LAVA

The following items are required:

  • Dragonboard 410C - running LK bootloader
  • Micro USB Cable - for flashing the board
  • UART Adapter - for interacting with the board
  • Software Controllable Power Switch - for automatically power cycling the board
  • Installed LAVA instance (2015.06+) - for automating software delivery and testing

Board Setup

  1. Enter Fastboot mode (Section 2.2.4 "Bring the board into fastboot-mode")
  2. Erase 'boot' partition (fastboot erase boot)

LAVA Configuration

  • Install the image creation tools to the LAVA dispatcher. (As root)

    1. cd /opt
    2. git clone git://codeaurora.org/quic/kernel/skales
    3. Note: If you want to boot upstream kernels as of 6/22/2015, you must apply a patch to skales to workaround the msm-id and board-id detection issue.
  • Uniquely identify your fastboot serial number for the D410C

    1. fastboot devices
    2. 1f980087 fastboot
    3. Record 1f980087 or similar as you will need it later
  • Create the device configuration

    1. Create a file /etc/lava-dispatcher/devices/apq8016-sbc01.conf
    2. fastboot_command is the shell command used to flash the board, use the usb id obtained from above
    3. connection_command is the shell command used to connect to the UART port
    4. hard_reset_command is the shell command to turn the board off and then on again
    5. power_off_cmd is the shell command to turn the board off
device_type = apq8016-sbc
fastboot_driver = apq8016-sbc
adb_command = adb -s 1f98008
fastboot_command = fastboot -s 1f980087
connection_command = telnet serial-server 2002
hard_reset_command = /bin/pdu.sh OFF 4; sleep 10; /bin/pdu.sh ON 4
power_off_cmd = /bin/pdu.sh OFF 4
mkbootimg_binary = /opt/qcom/skales/mkbootimg
dtbtool_binary = /opt/qcom/skales/dtbTool
  • Now you can add this device to the LAVA scheduler as documented here

LAVA Examples

  • Ubuntu LAVA Job
{
    "actions": [
        {
            "command": "deploy_linaro_android_image",
            "parameters": {
                "images": [
                    {
                        "partition": "boot",
                        "url": "http://builds.96boards.org/releases/dragonboard410c/linaro/ubuntu/15.06/boot-linaro-vivid-qcom-snapdragon-arm64-20150618-47.img.gz"
                    },
                    {
                        "partition": "rootfs",
                        "url": "http://builds.96boards.org/releases/dragonboard410c/linaro/ubuntu/15.06/linaro-vivid-developer-qcom-snapdragon-arm64-20150618-47.img.gz"
                    }
                ],
                "target_type": "ubuntu"
            }
        },
        {
            "command": "boot_linaro_image"
        }
    ],
    "device_type": "apq8016-sbc",
    "job_name": "apq8016-sbc-ubuntu-boot-test",
    "logging_level": "DEBUG",
    "timeout": 18000
}
  • Android LAVA Job
{
    "actions": [
        {
            "command": "deploy_linaro_android_image",
            "parameters": {
                "images": [
                    {
                        "partition": "boot",
                        "url": "http://builds.96boards.org/releases/dragonboard410c/qualcomm/android/15.06/boot.img.tar.xz"
                    },
                    {
                        "partition": "system",
                        "url": "http://builds.96boards.org/releases/dragonboard410c/qualcomm/android/15.06/system.img.tar.xz"
                    },
                    {
                        "partition": "cache",
                        "url": "http://builds.96boards.org/releases/dragonboard410c/qualcomm/android/15.06/cache.img.tar.xz"
                    },
                    {
                        "partition": "userdata",
                        "url": "http://builds.96boards.org/releases/dragonboard410c/qualcomm/android/15.06/userdata.img.tar.xz"
                    }
                ]
            }
        },
        {
            "command": "boot_linaro_android_image",
            "parameters": {
                "test_image_prompt": "shell@????"
            }
        }
    ],
    "device_type": "apq8016-sbc",
    "job_name": "apq8016-sbc-android-boot-test",
    "logging_level": "DEBUG",
    "timeout": 18000
}
  • Ramdisk LAVA Job
{
    "actions": [
        {
            "command": "deploy_linaro_kernel",
            "parameters": {
                "dtb": "http://builds.96boards.org/releases/dragonboard410c/linaro/ubuntu/15.06/apq8016-sbc.dtb",
                "kernel": "http://builds.96boards.org/releases/dragonboard410c/linaro/ubuntu/15.06/Image",
                "ramdisk": "http://storage.kernelci.org/images/rootfs/buildroot/arm64/rootfs.cpio.gz"
            }
        },
        {
            "command": "boot_linaro_image"
        }
    ],
    "device_type": "apq8016-sbc",
    "job_name": "apq8016-sbc-kernel-boot-test",
    "logging_level": "DEBUG",
    "timeout": 18000
}
Clone this wiki locally