Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:common:development:vims-build-yocto

This is an old revision of the document!


VIM Yocto SDK developer guide

Introduction

This documentation will guide you to build Yocto images for VIM4/3/3L/1S.

Preparation

Install essential dependencies. It is recommended to use Ubuntu 20.04/22.04 for compilation.

sudo apt update && sudo apt install git ssh make gcc libssl-dev \
liblz4-tool expect expect-dev g++ patchelf chrpath gawk texinfo chrpath \
diffstat binfmt-support qemu-user-static live-build bison flex fakeroot \
cmake gcc-multilib g++-multilib unzip device-tree-compiler ncurses-dev \
libgucharmap-2-90-dev bzip2 expat gpgv2 cpp-aarch64-linux-gnu libgmp-dev \
libmpc-dev bc python-is-python3 python2 libstdc++-12-dev xz-utils repo

Get SDK

1. Download the base SDK packages here: khadas_vims_yocto_sdk_base.tar.gz0x

You need to download all 5 compressed files:

  • khadas_vims_yocto_sdk_base.tar.gz00
  • khadas_vims_yocto_sdk_base.tar.gz01
  • khadas_vims_yocto_sdk_base.tar.gz02

2. Create and enter the working directory:

$ mkdir -p ~/project/vims-yocto-sdk && cd ~/project/vims-yocto-sdk

3. Decompress base SDK:

$ cat path/to/sdk-base-packages/khadas_vims_yocto_sdk_base.tar.gz* | tar -zxv -C ~/project/vims-yocto-sdk

4. Then you can see .repo derctory in ~/project/vims-yocto-sdk directory by using ls -la command.

$ ls -al ~/project/vims-yocto-sdk
total 12
drwxrwxr-x 3 nick nick 4096 Dec 31 14:40 .
drwxrwxr-x 3 nick nick 4096 Dec 31 14:39 ..
drwxrwxr-x 7 nick nick 4096 Dec 30 16:21 .repo

5. Sync and update code:

$ .repo/repo/repo sync -l 
$ .repo/repo/repo sync -c

6. Create a work branch for each repository:

.repo/repo/repo start vims_yocto --all

Compile

1.Select Configuration:

kvim1s board: mesons4-kvim1s-5.15

kvim3 board: mesong12b-kvim3-k5.15

kvim3l board: mesongsm1-kvim3l-k5.15

kvim4 board: mesont7c-kvim4-5.15

source meta-meson/aml-setenv.sh
You're building on Linux
Lunch menu...pick a combo:
1.	mesong12b-kvim3-k5.15
2.	mesongsm1-kvim3l-k5.15
3.	mesons4-kvim1s-5.15
4.	mesont7c-kvim4-5.15

Which would you like? [2] 

2.Build:

bitbake amlogic-yocto

3.The constructed image path:

SDK/build/tmp/deploy/images/$Configuration/vimx-yocto-xxxxxx.img

Burn the image

Last modified: 2024/12/31 02:34 by nick