DART-SD410 Yocto 4.4.9 Download Packages

From Variscite Wiki
Download packages and build.

1 Download recepies

1.1 Create directory tree

Create the following directory tree:

$ mkdir ~/sd410
$ cd ~/sd410
$ mkdir yocto
$ cd yocto

1.2 Download Linaro Release

$ repo init -u https://github.com/96boards/oe-rpb-manifest.git -b jethro
$ repo sync -j6

1.3 Download Variscite Release

$ cd layers
$ git clone https://github.com/varigit/meta-variscite-dart-sd410.git meta-variscite
$ cd meta-variscite
$ git checkout -b jethro-var01 remotes/origin/jethro-var01
$ cd ../../

1.4 Setup Variscite Layers Configuration

$ cp ./layers/meta-variscite/bblayers.conf .repo/manifests/conf/bblayers.conf

2 Build

2.1 Select Target Machine

$ source setup-environment
You will be prompted to choose the target machine, pick dart-sd410
You will be prompted to choose the distro, choose:
           'rpb' for minimal, console-only image and for simple X11 image
           'rpb-wayland' for Wayland/Weston image

The script setup-environment will create sane default configuration files in /conf, you can inspect them and modify them if needed.
Note that conf/local.conf and conf/bblayers.conf are symlinks.

NOTE:
When running the setup-environment script, you were asked to read/accept the Qualcomm EULA.
The EULA is required to access the proprietary firmware, such as the GPU firmware , WLAN, ...

If you accepted the EULA, when building an image for DART-SD410 all proprietary firmware are installed automatically in /lib/firmware,
and a copy of the EULA is added as '/etc/license.txt`.

If you did not accept the EULA, the firmware are not downloaded, and not installed into the image.

2.2 Build a minimal, console-only image

$ bitbake rpb-console-image

At the end of the build, your build artifacts will be found under tmp-eglibc/deploy/images/dart-sd410/.
The two artifacts you will use to update your board are: rpb-console-image-dart-sd410.ext4.gz and boot-dart-sd410.img

2.3 Build a simple X11 image

$ bitbake rpb-desktop-image

At the end of the build, your build artifacts will be found under tmp-eglibc/deploy/images/dart-sd410/.
The two artifacts you will use to update your board are: rpb-desktop-image-dart-sd410.ext4.gz and boot-dart-sd410.img

2.4 Build a Wayland/Weston image

$ bitbake rpb-weston-image

At the end of the build, your build artifacts will be found under tmp-eglibc/deploy/images/dart-sd410/.
The two artifacts you will use to update your board are: rpb-weston-image-sd410.ext4.gz and boot-dart-sd410.img

3 Flashing Images

3.1 Download Rescue Images from FTP site

Download the whole Yocto/Linaro-4.4.9 folder located in /dart-sd410/Software/ on Variscite FTP into ~/sd410/yocto directory The following files will be downloaded.

sd410
└── yocto
    └── Linaro-4.4.9
        └── RescueImages
            ├── boot-dart-sd410.img
            ├── emmc_appsboot.mbn
            ├── flashall
            ├── flashall.bat
            ├── gpt_both0.bin
            ├── hyp.mbn
            ├── license.txt
            ├── NON-HLOS.bin
            ├── rpb-console-image-dart-sd410.ext4.gz
            ├── rpb-desktop-image-dart-sd410.ext4.gz
            ├── rpb-weston-image-dart-sd410.ext4.gz
            ├── rpm.mbn
            ├── sbl1.mbn
            ├── sec.dat
            └── tz.mbn
NOTE:
Please refer to support@variscite.com for obtaining FTP credentials.

3.2 Extract the needed image from .gz archive.

$ gunzip rpb-desktop-image-dart-sd410.ext4.gz

This command will create a new file with ext4 extension. This file will be used to flash the rootfs partition on the target device.

3.3 Edit flashall script

If the needed image is not rpb-desktop-image-dart-sd410 then you will need to edit the script to follow the needed image. Use text editor to change the name of the rootfs file in the flashall script.

$ gedit flashall

3.4 Flash Images

Use fastboot to update the target eMMC.

$ ./flashall
NOTE:
To enter fastboot mode on the target the power should be cycled with the Back button pressed.