diff options
Diffstat (limited to 'yocto/README')
-rw-r--r-- | yocto/README | 84 |
1 files changed, 77 insertions, 7 deletions
diff --git a/yocto/README b/yocto/README index ef99121..f170e18 100644 --- a/yocto/README +++ b/yocto/README @@ -18,7 +18,7 @@ apt-get install bc build-essential git libncurses5-dev lzop perl libssl-dev biso apt-get install u-boot-tools # dependencies for kernel: - apt-get install bc build-essential git libncurses5-dev lzop perl libssl-dev bison flex +apt-get install bc build-essential git libncurses5-dev lzop perl libssl-dev bison flex apt-get install u-boot-tools locale-gen en_US.UTF-8 @@ -76,11 +76,12 @@ yocto image - clone meta-information mkdir oe-core cd oe-core -# branch: repo init -u git://git.toradex.com/toradex-manifest.git -b scarthgap-7.x.y -m tdxref/default.xml +# branch: +repo init -u git://git.toradex.com/toradex-manifest.git -b scarthgap-7.x.y -m tdxref/default.xml # specific tag: -repo init -u git://git.toradex.com/toradex-manifest.git -b refs/tags/7.1.0 -m tdxref/default.xml +# repo init -u git://git.toradex.com/toradex-manifest.git -b refs/tags/7.1.0 -m tdxref/default.xml repo sync -# repeat sync until successful +# repeat repo sync until successful - setup environment: . export @@ -90,17 +91,43 @@ vi conf/local.conf ... # set MACHINE: MACHINE ?= "verdin-imx8mp" +... +# set debian packages +PACKAGE_CLASSES ?= "package_deb" +... # append: ACCEPT_FSL_EULA = "1" TOOLCHAIN_TARGET_TASK:append = " kernel-devsrc" +TOOLCHAIN_TARGET_TASK:remove = "target-sdk-provides-dummy" +... + +- append mikrophone layer: +vi conf/bblayers.conf +# append to BBLAYERS variable: ... + ${TOPDIR}/../layers/meta-mikrophone \ +" + +# copy yocto/meta-mikrophone to ../layers/ dir from mikroPhone repo - build: -bitbake -k tdx-reference-minimal-image -c populate_sdk +# bitbake -k tdx-reference-minimal-image +# bitbake -k tdx-reference-minimal-image -c populate_sdk +bitbake -k mikrophone-image +bitbake -k mikrophone-image -c populate_sdk + +- install sdk: +deploy/sdk/tdx-xwayland-glibc-x86_64-mikroPhone-Image-armv8a-verdin-imx8mp-toolchain-7.x.y.sh +# install into: /build/tdx-xwayland/7.x.y - machine.conf in: layers/meta-toradex-nxp/conf/machine/verdin-imx8mp.conf -- distro.conf in: layers/meta-toradex-distro/conf/distro/*.conf -- demo images in: layers/meta-toradex-demos/recipes-images/images/*.bb +- mikrophone distro.conf in: layers/meta-mikrophone/conf/distro/*.conf +- mikrophone images in: layers/meta-mikrophone/recipes-images/images/*.bb +- deployable tarballs in: build/deploy/images/verdin-imx8mp/ +- deployable sdk in: build/deploy/sdk/ + +- toradex distro.conf in: layers/meta-toradex-distro/conf/distro/*.conf +- toradex demo images in: layers/meta-toradex-demos/recipes-images/images/*.bb u-boot ------ @@ -177,3 +204,46 @@ overlay cd overlays STAGING_KERNEL_DIR=../linux-toradex make mikroPhone-panel_overlay.dtbo cd .. + + +esp32d +------ + +- setup environment: +. /build/tdx-xwayland/7.x.y/environment-setup-armv8a-tdx-linux + +- build: +# copy yocto/esp32d from mikroPhone repo +cd esp32d +make +cd .. + + +debian repository +----------------- + +- install aptly and configure aptly: +apt-get install aptly gnupg1 gpgv1 +aptly # creates config file +vi ~/.aptly.conf +... + "gpgProvider": "internal", +... + "FileSystemPublishEndpoints": { + "mikrophone": { + "rootDir": "/build/repo", + "linkMethod": "copy", + "verifyMethod": "md5" + } + }, +... + +- generate gpg signing key: +gpg1 --gen-key +gpg1 --export --armor # signing key for apt-key add + +- create and publish repository: +aptly repo create -distribution=koshuta -component=main mikrophone +aptly repo add mikrophone /build/oe-core/build/deploy/deb +aptly publish repo mikrophone filesystem:mikrophone: +aptly publish update koshuta filesystem:mikrophone: |