Git Product home page Git Product logo

meta-meson's Introduction

Upstream Linux Amlogic Meson Yocto/Openembedded Layer

Now Amlogic SoCs of the Meson family are supported upstream :

  • Meson8b : s805
  • Meson-GX : s905 (GXBB) s905x/S905d (GXL) s912 (GXM)

This Yocto/Openembedded will help building images for these SoCs using the lastest uptream linux branch.

Build Setup

Create a home repository for the build :

$ mkdir amlogic-bsp

Checkout Yocto/Poky :

$ cd amlogic-bsp
amlogic-bsp$ git clone --depth 1 git://git.yoctoproject.org/poky -b rocko poky

Checkout meta-meson :

amlogic-bsp$ git clone https://github.com/superna9999/meta-meson.git meta-meson -b rocko

Initialize environment :

amlogic-bsp$ TEMPLATECONF=../meta-meson/conf
amlogic-bsp$ source poky/oe-init-build-env

or :

amlogic-bsp$ source poky/oe-init-build-env
amlogic-bsp/build$ bitbake-layers add-layer $PWD/../meta-meson/

Selecting Machine to build for

Available S805 machines are :

  • hardkernel-odroidc1
  • amlogic-s805 (all S805 machines)

Available S905 machines are :

  • amlogic-p200
  • amlogic-p201
  • hardkernel-odroidc2
  • tronsmart-vega-s95-pro
  • tronsmart-vega-s95-meta
  • tronsmart-vega-s95-telos
  • nexbox-a95x-s905
  • wetek-hub
  • wetek-play2
  • amlogic-s905 (all S905 machines)

Available S905D machines are :

  • amlogic-p230
  • amlogic-p231
  • amlogic-s905d (all S905D machines)

Available S905X machines are :

  • amlogic-p212
  • nexbox-a95x-s905x
  • khadas-vim
  • hwacom-amazetv
  • amlogic-s905x (all S905X machines)

Available S912 machines are :

  • amlogic-q200
  • amlogic-q201
  • nexbox-a1
  • amlogic-s912 (all S912 machines)

Available S9xxx machines are :

  • amlogic-s9xxx (all S905 and S905X and S912 machines)

Selecting Image type

Images types available (in addition of standard Poky/OE images) :

  • amlogic-image-headless-sd : to flash on an eMMC or SD-Card
  • amlogic-image-headless-initrd : to load as ramdisk
  • amlogic-image-sato : Graphical images with X11 and Sato environment to flash on an eMMC or SD-Card

Building example

Building SD image for all S905 and S905X and S912 machines :

amlogic-bsp/build$ export MACHINE=amlogic-s9xxx
amlogic-bsp/build$ bitbake amlogic-image-sato

Install native tools :

amlogic-bsp/build$ bitbake dosfstools-native mtools-native parted-native wic-tools

Then generate the SDCard image :

wic create ../poky/scripts/lib/wic/canned-wks/sdimage-bootpart.wks -e amlogic-image-sato

The wic tool should print :

Checking basic build environment...
Done.

Creating image(s)...

Warning: bootloader config not specified, using defaults
Info: The new image(s) can be found here:
  /var/tmp/wic/build/sdimage-bootpart-201704180905-mmcblk.direct

The following build artifacts were used to create the image(s):
  ROOTFS_DIR:                   /path/to/amlogic-bsp/build/tmp/work/amlogic-s905x-poky-linux/amlogic-image-sd/1.0-r0/rootfs
  BOOTIMG_DIR:                  
  KERNEL_DIR:                   /path/to/amlogic-bsp/build/tmp/deploy/images/amlogic-s9xxx
  NATIVE_SYSROOT:               /path/to/amlogic-bsp/build/tmp/sysroots/x86_64-linux


The image(s) were created using OE kickstart file:
  ../poky/scripts/lib/wic/canned-wks/sdimage-bootpart.wks

So, you can directly copy the content of the sdimage-bootpart-201704180905-mmcblk.direct to the SDCard :

amlogic-bsp/build$ sudo dd if=/var/tmp/wic/build/sdimage-bootpart-201704180905-mmcblk.direct of=/dev/mmcblk0 bs=1M

meta-meson's People

Contributors

150balbes avatar linhdnguyen avatar superna9999 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.