Archive for the DragonBoard Category

Note: XBL for Qualcomm

Posted in ARM, DragonBoard, Qualcomm with tags , on 2017 年 10 月 16 日 by Kun-Yi

Qualcomm 的平台從原本的 自家的SBL (Second Boot Loader) 改成走 UEFI 的 XBL (eXtensible Boot loader)

而且Toolchain 從以前的ARM DS-5 改成自家的Snapdragon LLVM, 最新的LLVM 是4.0.2(Oct. 2017), 但是平台上用的 XBL toolchain 可能是舊的

要看ReleaseNote 裡面用的版本, 因為他基於llvm.org 的版本不同, 跟改進的週期因素, 常常Compiler optional 關鍵字會起變化 需要特別的版本才能正確的re-build XBL (最近遇到必須是 SD LLVM 3.5.x, 但是官方支援管道, 極有可能會遇到不熟的跟你扯半天也沒正確結果)

今天找了一下 https://github.com/sudosurootdev/prebuilts_clang_linux-x86_host_msm-3.5/tree/pointers 這有一個 For Android NDK 用的版本 但是可以順利Rebuild XBL

 

 

廣告

Note: Build Brillo for DragonBoard 410C steps

Posted in DragonBoard, IoT with tags , , on 2017 年 01 月 30 日 by Kun-Yi

I got dragonboard 410c a few days, want to porting Boot2Qt and try Android Things on the board.

this will describe how to make generation Brillo/Android things image for DragonBoard 410C, Need know how to build AOSP source code, because Brillo are subset of Android

  • To download all source code from google source
mkdir brillo
cd brillo
repo init -u https://android.googlesource.com/brillo/manifest -b brillo-m10-release
repo sync
  •     To get latest vendor pre-built package
mkdir -p vendor/bsp/qcom/device/dragonboard
cd vendor/bsp/qcom/device/dragonboard
wget https://developer.qualcomm.com/qfile/29963/dragonboard410c_brillo-v2.1.tar.gz
tar xvf dragonboard410c_brillo-v2.1.tar.gz --strip-components=1
cd ../../../../..
  • Setup build environments and starting build
source build/envsetup.sh
lunch dragonboard-eng
  • you will see the below message
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=dragonboard
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-59-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
OUT_DIR=out
============================================

 

Now you can type make -j4 or make -j8 to starting build image
finish you will get build image under out/target/product/dragonboard, check “provision-device" file for update image into device emmc

ref.