TorizonCore-Builder error

When I follow the tutorial Device Tree Overlays on Torizon the simple command below returned with error report as follow.

$ torizoncore-builder dt checkout
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 204, in <module>
    mainargs.func(mainargs)
  File "/builder/tcbuilder/cli/dt.py", line 44, in do_dt_checkout
    checkout_git_repo(storage_dir, None, None)
  File "/builder/tcbuilder/backend/common.py", line 346, in checkout_git_repo
    git_branch = get_branch_from_metadata(storage_dir)
  File "/builder/tcbuilder/backend/common.py", line 331, in get_branch_from_metadata
    src_sysroot = ostree.load_sysroot(src_sysroot_dir)
  File "/builder/tcbuilder/backend/ostree.py", line 46, in load_sysroot
    sysroot.load()
gi.repository.GLib.GError: g-io-error-quark: loading sysroot: opendir(/storage/sysroot): No such file or directory (1)

Greetings @ierturk

Did you run the image command and unpack an Easy Installer Torizon image into the tool as described here: TorizonCore Builder Tool - Commands Manual | Toradex Developer Center

You need to run this prior to running dt checkout so that the command knows which version of the kernel you’re working with.

Best Regards,
Jeremias

thanks @jeremias.tx , it is OK

Glad I was able to help clear this up. We’re working the error message for such issues more clear in the future.

Best Regards,
Jeremias