TorizonCore on imx7D

Hello I am trying to build TorizonCore following the link: Build TorizonCore With Yocto Project/OpenEmbedded but getting following error during repo initialization and sync:

repo init -u GitHub - toradex/toradex-torizon-manifest: TorizonCore repo manifest -b master
Get GitHub - toradex/toradex-torizon-manifest: TorizonCore repo manifest
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:02 --:–:-- 0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.

repo sync
Fetching project meta-toradex-bsp-common.git
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:02:10 --:–:-- 0curl: (7) Failed to connect to git.toradex.com port 443: Connection timed out
fatal: unable to access ‘Index of /meta-toradex-bsp-common.git’: Failed to connect to git.toradex.com port 443: Connection timed out
fatal: unable to access ‘Index of /meta-toradex-bsp-common.git’: Failed to connect to git.toradex.com port 443: Connection timed out
error: Cannot fetch meta-toradex-bsp-common.git from Index of /meta-toradex-bsp-common.git

Also tell me how to install packages in torizon, i have tried with opkg, yum, apt-get. I have Torizon core with docker and OTA, on my board

I want to perform serial communication using python for which i need to install pyserial package, please reply ASAP

Greetings @garima09,

Are you still having issues with building TorizonCore? I was unable to recreate your issue on my end so perhaps it was just an intermittent network issue.

As for installing packages on Torizon, it is important to remember that Torizon the base system does not have a built-in package manager. In order to use a package manager you must run a relevant container. Then you must also be running the package commands in that container. This documentation will help with that distinction: https://developer.toradex.com/knowledge-base/install-debian-packages-on-target

You’ll know when you’re in the container as opposed to the base system since the command line prompt will slightly change i.e. root@apalis-imx6-1234567 (base system) to something like root@1234567 (in container).

Best Regards,
Jeremias

Hi @jeremias.tx
I want to install Python 2.7, NodeJS 6.10 and Java 8 on TorizonCore without any docker, Please tell me how can I do that.

I want to install AWS IoT greengrass core on torizon, for the purpose i want above packages installed

Hi @garima09,

If you want to install new packages on Torizon without the use of containers you’ll have to compile them into the system with openembedded (https://developer.toradex.com/knowledge-base/board-support-package/openembedded-(core)). By finding the relevant openembedded recipe then adding it to the default Torizon recipe.

Best Regards,
Jeremias

Hi @jeremias.tx
I followed the link: https://developer.toradex.com/knowledge-base/build-torizoncore
and was able to successfully put torizonCore on build, but build was unsuccessful with following error:-

ERROR: linux-stable-5.0.8+gitAUTOINC+fc66c71607_2136d9515a-r0 do_kernel_metadata: Could not locate BSP definition for colibri-imx7-emmc/standard and no defconfig was provided
ERROR: linux-stable-5.0.8+gitAUTOINC+fc66c71607_2136d9515a-r0 do_kernel_metadata: Function failed: do_kernel_metadata (log file is located at /home/ubuntu/workspace/toradex/toradex-torizon/build-torizon/tmp-torizon/work/colibri_imx7_emmc-torizon-linux-gnueabi/linux-stable/5.0.8+gitAUTOINC+fc66c71607_2136d9515a-r0/temp/log.do_kernel_metadata.4657)
ERROR: Logfile of failure stored in: /home/ubuntu/workspace/toradex/toradex-torizon/build-torizon/tmp-torizon/work/colibri_imx7_emmc-torizon-linux-gnueabi/linux-stable/5.0.8+gitAUTOINC+fc66c71607_2136d9515a-r0/temp/log.do_kernel_metadata.4657
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/ubuntu/workspace/toradex/toradex-torizon/build-torizon/conf/../../layers/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['kern-tools-native', 'quilt-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_kernel_metadata
| ERROR: Could not locate BSP definition for colibri-imx7-emmc/standard and no defconfig was provided
| WARNING: /home/ubuntu/workspace/toradex/toradex-torizon/build-torizon/tmp-torizon/work/colibri_imx7_emmc-torizon-linux-gnueabi/linux-stable/5.0.8+gitAUTOINC+fc66c71607_2136d9515a-r0/temp/run.do_kernel_metadata.4657:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_kernel_metadata (log file is located at /home/ubuntu/workspace/toradex/toradex-torizon/build-torizon/tmp-torizon/work/colibri_imx7_emmc-torizon-linux-gnueabi/linux-stable/5.0.8+gitAUTOINC+fc66c71607_2136d9515a-r0/temp/log.do_kernel_metadata.4657)
ERROR: Task (/home/ubuntu/workspace/toradex/toradex-torizon/build-torizon/conf/../../layers/meta-toradex-torizon/recipes-kernel/linux/linux-stable_git.bb:do_kernel_metadata) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1657 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/ubuntu/workspace/toradex/toradex-torizon/build-torizon/conf/../../layers/meta-toradex-torizon/recipes-kernel/linux/linux-stable_git.bb:do_kernel_metadata
Summary: There were 4 WARNING messages shown.

I just modified local.conf file to meet mt requirements for package installation. The lines that i added are:

PACKAGE_CLASSES ?= "package_ipk package_deb"

EXTRA_IMAGE_FEATURES = "debug-tweaks dev-pkgs package-management"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

IMAGE_INSTALL_append +=" apt"

Kindly help ASAP

Hi @garima09,

The issue here seems to be in your machine settings. Unlike in our Angstrom build which has separate machine definitions for the raw NAND and eMMC imx7. With Torizon we simplified this by creating a generic imx7 machine definition.

So you want to make sure when you’re setting the MACHINE environment variable either manually or through the setup script that it’s colibri-imx7 and not colibri-imx7-emmc as you have it here.

Best Regards,
Jeremias

Thanks @jeremias.tx I have build image which is booting successfully from SD card. Everytime i have to enter in U-Boot and start sd-image. How can I transfer image from sdcard to emmc flash??

@garima09, In the build output there should be tezi tar archive that can be used in conjunction with Toradex Easy Installer. This will let you easily flash your custom Torizon image to the eMMC.