TorizonCore Builder unexpected Exception

Hello,

i’m trying to generate a customized image and push it to Torizon OTA with torizoncore builder.

I followed the documentation: Signing and Pushing TorizonCore Packages to Torizon Platform Services | Toradex Developer Center

But i always get the following error:

fabian@WS012148:~/tcbworkdir/workdir$ tree
.
├── credentials.zip
├── image
│   ├── LA_OPT_NXP_SW.html
│   ├── image.json
│   ├── imx-boot
│   ├── marketing.tar
│   ├── prepare.sh
│   ├── toradexlinux.png
│   ├── torizon-core-docker-rt-verdin-imx8mm.ota.tar.zst
│   ├── u-boot-initial-env-sd
│   └── wrapup.sh
└── splash.png

1 directory, 11 files
fabian@WS012148:~/tcbworkdir/workdir$ torizoncore-builder splash --image splash.png
/storage/splash/usr/share/plymouth/themes/spinner/
An unexpected Exception occured. Please provide the following stack trace to
the Toradex TorizonCore support team:


Traceback (most recent call last):
  File "/builder/torizoncore-builder", line 175, in <module>
    mainargs.func(mainargs)
  File "/builder/tcbuilder/cli/splash.py", line 31, in do_splash
    splash(args.image, args.storage_directory, work_dir=args.work_dir)
  File "/builder/tcbuilder/cli/splash.py", line 26, in splash
    sbe.create_splash_initramfs(work_dir_, image_, src_ostree_archive_dir)
  File "/builder/tcbuilder/backend/splash.py", line 38, in create_splash_initramfs
    repo = ostree.open_ostree(src_ostree_archive_dir)
  File "/builder/tcbuilder/backend/ostree.py", line 29, in open_ostree
    if not repo.open(None):
gi.repository.GLib.GError: g-io-error-quark: opening repo: opendir(/storage/ostree-archive): No such file or directory (1)

The image is self built using yocto.

Thanks,
Fabian

Also, out of curiosity, is there a reason why you built a TorizonCore yourself instead of using a pre-built one?

Hi @henrique.tx
Yes, this was the problem.

Thank you.

For some testing i needed the .netcore runtime on the image. Can i achieve this with the build command and the filesystem section in the config with torizoncore-builder?

Hi, @wheeler

Applications on TorizonCore uses containers. Packages dependencies should be handled on the container level.

Take a look here: .NET Core Development and Debugging on Torizon Using Visual Studio Code | Toradex Developer Center

Hi, @wheeler

Have you unpacked your base image? This step is mandatory before you start to customize a TorizonCore image.

Reference: Splash Screen on TorizonCore | Toradex Developer Center

Best regards.