{"id":20933063,"url":"https://github.com/superna9999/meta-meson","last_synced_at":"2026-03-16T23:37:22.297Z","repository":{"id":11405056,"uuid":"69569807","full_name":"superna9999/meta-meson","owner":"superna9999","description":"Upstream Linux Amlogic Meson Yocto/OpenEmbedded Layer","archived":false,"fork":false,"pushed_at":"2024-04-10T13:54:06.000Z","size":2994,"stargazers_count":97,"open_issues_count":17,"forks_count":65,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-04-10T15:35:51.608Z","etag":null,"topics":["amlogic","bsp","linux","open-embedded","upstream","yocto"],"latest_commit_sha":null,"homepage":"https://github.com/superna9999/meta-meson/wiki","language":"BitBake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superna9999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-09-29T13:25:02.000Z","updated_at":"2024-04-15T09:43:21.985Z","dependencies_parsed_at":"2023-02-19T06:15:46.934Z","dependency_job_id":"3f142eec-6c1e-474e-af46-5590c85dc6e7","html_url":"https://github.com/superna9999/meta-meson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superna9999%2Fmeta-meson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superna9999%2Fmeta-meson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superna9999%2Fmeta-meson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superna9999%2Fmeta-meson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superna9999","download_url":"https://codeload.github.com/superna9999/meta-meson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020902,"owners_count":22000805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amlogic","bsp","linux","open-embedded","upstream","yocto"],"created_at":"2024-11-18T21:54:19.209Z","updated_at":"2026-03-16T23:37:22.268Z","avatar_url":"https://github.com/superna9999.png","language":"BitBake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Upstream Linux Amlogic Meson Yocto/Openembedded Layer\n\nNow Amlogic SoCs of the Meson family are supported upstream :\n - Meson8b : s805\n - Meson-GX : s905 (GXBB) s905x/S905d (GXL) s912 (GXM)\n - Meson AXG : a113d\n - Meson G12A : S905X2, S905D2, S905Y2\n - Meson G12B : S922X, A311D\n - Meson SM1 : S905X3, S905D3\n\nThis Yocto/Openembedded will help building images for these SoCs using the lastest uptream linux branch.\n\n## Build Setup\n\nCreate a home repository for the build :\n```\n$ mkdir amlogic-bsp\n```\n\nCheckout Yocto/Poky :\n```\n$ cd amlogic-bsp\namlogic-bsp$ git clone --depth 1 git://git.yoctoproject.org/poky -b master poky\n```\n\nCheckout meta-meson :\n```\namlogic-bsp$ git clone https://github.com/superna9999/meta-meson.git meta-meson -b master\n```\n\nInitialize environment :\n```\namlogic-bsp$ TEMPLATECONF=../meta-meson/conf/templates/default\namlogic-bsp$ source poky/oe-init-build-env\namlogic-bsp/build$ cp ../poky/meta-poky/conf/local.conf.sample conf/local.conf\n```\n\nor :\n\n```\namlogic-bsp$ source poky/oe-init-build-env\namlogic-bsp/build$ bitbake-layers add-layer $PWD/../meta-meson/\n```\n\n## Selecting Machine to build for\n\nThis layer aims to support all mainline supported boards, but some\nof them have a vendor U-Boot loaded on the eMMC and can only be booted\nby pressing the \"update\" button.\n\nThe libretech-cc, hardkernel-odroidc2, amlogic-p212 and khadas-vim are fully mainline sdcard\nimages, with mainline U-Boot and mainline Linux with a single ext4\npartition. To boot this image the eMMC u-boot must be disabled by erasing\nthe first sectors of the eMMC or removing it for libretech-cc and hardkernel-odroidc2 boards.\n\nAvailable S805 machines are :\n - hardkernel-odroidc1 : .wic image to be booted using vendor u-boot\n - amlogic-s805 (all S805 machines) : generic non-bootable .wic image to be customized\n\nAvailable S905 machines are :\n - amlogic-p200 : complete .wic sdcard image with mainline U-boot\n - amlogic-p200-sdboot : .wic image to be booted using vendor u-boot\n - amlogic-p201 : complete .wic sdcard image with mainline U-boot\n - amlogic-p201-sdboot : .wic image to be booted using vendor u-boot\n - hardkernel-odroidc2 : complete .wic sdcard image with mainline U-boot\n - hardkernel-odroidc2-sdboot : .wic image to be booted using vendor u-boot\n - tronsmart-vega-s95-pro : .wic image to be booted using vendor u-boot\n - tronsmart-vega-s95-meta : .wic image to be booted using vendor u-boot\n - tronsmart-vega-s95-telos : .wic image to be booted using vendor u-boot\n - nexbox-a95x-s905 : .wic image to be booted using vendor u-boot\n - wetek-hub : .wic image to be booted using vendor u-boot\n - wetek-play2 : .wic image to be booted using vendor u-boot\n - amlogic-s905 (all S905 machines) : generic non-bootable .wic image to be customized\n\nAvailable S905D machines are :\n - amlogic-p230 : .wic image to be booted using vendor u-boot\n - amlogic-p231 : .wic image to be booted using vendor u-boot\n - mecool-kii-pro : .wic image to be booted using vendor u-boot\n - amlogic-s905d (all S905D machines) : generic non-bootable .wic image to be customized\n\nAvailable S905X machines are :\n - libretech-ac : complete bootable .wic sdcard image using already flashed u-boot on SPI\n - libretech-cc : complete bootable .wic sdcard image with mainline U-boot\n - libretech-cc-sdboot : .wic image to be booted using vendor u-boot\n - amlogic-p212 : complete bootable .wic sdcard image with mainline U-boot\n - amlogic-p212-sdboot : .wic image to be booted using vendor u-boot\n - nexbox-a95x-s905x : .wic image to be booted using vendor u-boot\n - khadas-vim : complete bootable .wic sdcard image with mainline U-boot\n - khadas-vim-sdboot : .wic image to be booted using vendor u-boot\n - hwacom-amazetv : .wic image to be booted using vendor u-boot\n - amlogic-p241: .wic image to be booted using vendor u-boot\n - amlogic-p281: .wic image to be booted using vendor u-boot\n - oranth-tx3-mini: .wic image to be booted using vendor u-boot\n - osmc-vero4k-plus .wic image to be booted using vendor u-boot\n - amlogic-s905x (all S905X machines) : generic non-bootable .wic image to be customized\n\nAvailable S912 machines are :\n - amlogic-q200 : .wic image to be booted using vendor u-boot\n - amlogic-q201 : .wic image to be booted using vendor u-boot\n - nexbox-a1 : .wic image to be booted using vendor u-boot\n - khadas-vim2 : .wic image to be booted using vendor u-boot\n - mecool-kiii-pro : .wic image to be booted using vendor u-boot\n - minix-neo-u9h : .wic image to be booted using vendor u-boot\n - beelink-gt1-ultimate: complete bootable .wic sdcard image with mainline U-boot\n - amlogic-s912 (all S912 machines) : generic non-bootable .wic image to be customized\n\nAvailable A113d machine :\n - amlogic-s400 : complete bootable .wic eMMC image with mainline U-boot\n\nAvailable S905X2 machines are :\n - amlogic-u200: .wic image to be booted using vendor u-boot\n - amediatech-x96-max: .wic image to be booted using vendor u-boot\n - seirobotics-sei510: complete bootable .wic sdcard image with mainline U-boot\n\nAvailable S905Y2 machines are :\n - radxa-zero: complete bootable .wic sdcard image with mainline U-boot\n\nAvailable S922X machines are :\n - hardkernel-odroidn2: complete bootable .wic sdcard image with mainline U-boot\n - hardkernel-odroidn2-sdboot: .wic image to be booted using vendor u-boot\n - hardkernel-odroidn2plus: complete bootable .wic sdcard image with mainline U-boot\n - hardkernel-odroidn2plus-sdboot: .wic image to be booted using vendor u-boot\n - hardkernel-odroid-n2l: complete bootable .wic sdcard image with mainline U-boot\n\nAvailable A311D machines are :\n - khadas-vim3 : complete bootable .wic sdcard image with mainline U-boot\n - khadas-vim3-sdboot : .wic image to be booted using vendor u-boot\n - hardkernel-odroid-go-ultra: complete bootable .wic sdcard image with mainline U-boot\n - bananapi-bpi-m2s: complete bootable .wic sdcard image with mainline U-boot\n - bananapi-bpi-cm4io: complete bootable .wic sdcard image with mainline U-boot\n\nAvailable S905X3/D3 machines are :\n - khadas-vim3l : complete bootable .wic sdcard image with mainline U-boot\n - khadas-vim3l-sdboot : .wic image to be booted using vendor u-boot\n - seirobotics-sei610: complete bootable .wic sdcard image with mainline U-boot\n - hardkernel-odroidc4: complete bootable .wic sdcard image with mainline U-boot\n - hardkernel-odroidc4-sdboot: .wic image to be booted using vendor u-boot\n - hardkernel-odroidhc4: complete bootable .wic sdcard image with mainline U-boot\n - hardkernel-odroidhc4-sdboot: .wic image to be booted using vendor u-boot\n - haochuangy-h96-max: .wic image to be booted using vendor u-boot\n - cyx-a95xf3-air: .wic image to be booted using vendor u-boot\n - cyx-a95xf3-air-gbit: .wic image to be booted using vendor u-boot\n - bananapi-bpi-m5: complete bootable .wic sdcard image with mainline U-boot\n - bananapi-bpi-m2-pro: complete bootable .wic sdcard image with mainline U-boot\n\nAvailable S9xxx machines are :\n - amlogic-s9xxx (all S905 and S905X and S912 machines) : generic non-bootable .wic image to be customized\n\n## Selecting Image type\n\nImages types available (in addition of standard Poky/OE images) :\n - amlogic-image-headless-sd : to flash on an eMMC or SD-Card\n - [amlogic-image-headless-initrd](/doc/images/amlogic-image-headless-initrd.rst) : to be loaded as a ramdisk\n - amlogic-image-sato : Graphical images with X11 and Sato environment to flash on an eMMC or SD-Card\n\nStandard types are :\n- core-image-base : Basic console image with boot logo\n\n## Building example\n\nBuilding SD image for all S905 and S905X and S912 machines :\n```\namlogic-bsp/build$ export MACHINE=amlogic-s9xxx\namlogic-bsp/build$ bitbake amlogic-image-sato\n```\n\nA .wic image will be generated in the tmp/deploy/images/$MACHINE/ directory.\n\nThis Image contains a FAT32 BOOT partition will the kernel uImage and .dtb, compatible with Amlogic U-Boot already flashed on your device.\n\nFor the amlogic-p212, khadas-vim and libretech-cc, Mainline U-Boot is automatically installed in a single ext4 partition .wic image in the tmp/deploy/images/$MACHINE/ directory.\n\nFlash the .wic file with the Etcher tool from https://etcher.io/\n\nOr for the connoisseurs :\n\nYou will be able to dd the image onto the raw SDcard like :\n\n```\nsudo dd if=tmp/deploy/images/libretech-cc/core-image-sato-libretech-cc.wic of=/dev/mmcblk0\n```\n\n## Build with kas\n\nThe `kas` tool is installed via Python pip. The recommended way is to use an virtual environment for this.\n\n```\n$ python3 -m venv venv\n$ source venv/bin/activate\n$ pip3 install wheel kas\n```\n\nTo start a build we just need to run the command `kas build \u003cconfiguration\u003e.yml`\n\n```\n$ source venv/bin/activate\n$ DL_DIR=/data/downloads SSTATE_DIR=/data/sstate-cache kas build kas/kas-poky-meson.yml\n```\n\nThe environment variable `DL_DIR` will allow to use a common place for the downloads across different projects. The same applies to the `SSTATE_DIR` variable.\n\nTo build for a specific machine use the environment variable `KAS_MACHINE`.\n\nPlease check the [kas](https://kas.readthedocs.io/en/latest/) manual for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperna9999%2Fmeta-meson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperna9999%2Fmeta-meson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperna9999%2Fmeta-meson/lists"}