Jupiter Nano

Instruction how to build an image for Jupiter Nano in Yocto

Products:

Jupiter Nano based on SAMA5D27C-LD1G (Cortex-A5)

Meet the Jupiter Nano, The Tiny, high-performance computer that runs Linux,  and the NuttX RTOS - Electronics-Lab.com

General Note:

Assumed that Linux Ubuntu 20.04 or higher is installed

List of tested elements

Nothing currently

List of not tested elements

Nothing currently

How to build images

  1. First, make sure to following packages are installed in the system
sudo apt-get install gawk wget diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm libgmp3-dev libmpc-dev

Note: More information can be found on the Yocto reference manual.

2. Download the necessary Yocto packaged listed below. Be sure to be at the root of the home folder.

mkdir yocto 
cd yocto 
mkdir build 
git clone git://git.yoctoproject.org/poky --depth 1 -b dunfell
cd poky 
git clone git://git.openembedded.org/meta-openembedded --depth 1 -b dunfell
git clone https://github.com/meta-qt5/meta-qt5.git --depth 1 -b dunfell
git clone git@github.com:voloviq/meta-jupiternano.git --depth 1 -b dunfell

3. Select directory to build LinuxNano version


source oe-init-build-env ~/yocto/build/jupiternano

4. Modify bblayers.conf(located in ~/yocto/build/jupiternano/conf)

BBLAYERS ?= ” \
${HOME}/yocto/poky/meta \
${HOME}/yocto/poky/meta-poky \
${HOME}/yocto/poky/meta-openembedded/meta-oe \
${HOME}/yocto/poky/meta-openembedded/meta-networking \
${HOME}/yocto/poky/meta-openembedded/meta-python \
${HOME}/yocto/poky/meta-qt5 \
${HOME}/yocto/poky/meta-jupiternano \

Note: Please adapt PATH of conf/bblayers.conf if necessary.

5. Modify local.conf(located in ~/yocto/build/jupiternano/conf) file

modify line with „MACHINE ??” to add „jupiternano”

align DL_DIR = „${HOME}/yocto/downloads”

align SSTATE_DIR = „${HOME}/yocto/sstate-cache”

align TMPDIR = „${HOME}/yocto/tmp”

add at the end following records

RM_OLD_IMAGE = „1”
INHERIT += „rm_work”

Note: Please adapt the rest of conf/local.conf parameters if necessary.

6. Build objects

console image
bitbake console-image

qt5 image
bitbake qt5-image

qt5 toolchain sdk
bitbake meta-toolchain-qt5

7. After compilation images appears in Nano version


~/yocto/tmp/deploy/images/jupiternano

8. Insert SD CARD into dedicated CARD slot and issue the following command to write an image

Note:
Be 100% sure to provide a valid device name (of=/dev/sde/mmcblk0). Wrong name „/dev/sde/mmcblk0” dameage Your system file !

Jupiter Nano version
sudo dd if=~/yocto/tmp/deploy/images/jupiternano/qt5-image-jupiter-nano.wic of=/dev/mmcblk0 bs=1024