iMX6ULL SPI Bus Enabling

Hello,
Until now I used some Colibri iMX6ULL 512MB WB IT V1.0A with an Image that I built a long time ago (around 2018, Angström) with a number of cryptic commands from a toradex documentation. That time I was able to enable the SPI bus by changing the status in the imx6ull-colibri-eval-v3.dtsi. This Image is not working correctly with a Colibri iMX6ULL 512MB WB IT V1.1A, the Wifi module is not usable.
The Wifi is essentail for my application as well as the SPI bus.

I tried my best with the current documentation:

There were a number of “challenges” during the process. I am using a virtual machine with a Unbuntu 22.04 and had to resize it for the image building process (got some errors, deleted some files, resized, restarted process…). My current status for the
“bitbake tdx-reference-minimal-image” command is this output:

Sstate summary: Wanted 2338 Local 0 Mirrors 0 Missed 2338 Current 1341 (0% match, 36% complete)###         | ETA:  0:00:00

Initialising tasks: 100% |#################################################################################| Time: 0:00:05

NOTE: Executing Tasks

ERROR: rust-llvm-native-1.75.0-r0 do_compile: ExecutionError('/home/erik/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/run.do_compile.7240', 127, None, None)

ERROR: Logfile of failure stored in: /home/erik/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/log.do_compile.7240

Log data follows:

| DEBUG: Executing shell function do_compile

| NOTE: VERBOSE=1 cmake --build /home/erik/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/build --target all --

| /home/erik/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/run.do_compile.7240: 1: eval: cmake: not found

| WARNING: exit code 127 from a shell command.

ERROR: Task (virtual:native:/home/erik/build/../layers/openembedded-core/meta/recipes-devtools/rust/rust-llvm_1.75.0.bb:do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2375 tasks of which 2373 didn't need to be rerun and 1 failed.

NOTE: Writing buildhistory

NOTE: Writing buildhistory took: 2 seconds



Summary: 1 task failed:

  virtual:native:/home/erik/build/../layers/openembedded-core/meta/recipes-devtools/rust/rust-llvm_1.75.0.bb:do_compile

Summary: There was 1 ERROR message, returning a non-zero exit code.

  1. How to fix this?
  2. Where is the .dtsi file to find to enable the SPI bus?
  3. Which files do I need to copy to a USB stick to install it on the module with the ToradexEasyInstaller?
  4. Where can I find these files?

I would not like to be a Yocto expert, my intention is to develop/improve my C application for the module.
Hopefully the old fashioned way with eclipse is still working with the new image and Colibri V1.1A (for the old one it works, Colibri V1.0A). I need some advice, please help.

Best Regards
Erik

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Erik,

Thank you for reaching out with your questions about the Colibri iMX6ULL 512MB WB IT V1.1A module. Let’s address each of your concerns:

  1. Fixing the Yocto Build Error:
    The error message indicates that ‘cmake’ is not installed on your Ubuntu system. You can resolve this by installing ‘cmake’ with the following command:

    sudo apt-get install cmake
    

    After installation, please try running the bitbake tdx-reference-minimal-image command again.

  2. Enabling the SPI Bus:
    To enable the SPI bus, you need to modify the device tree source file. Look for the imx6ull-colibri-eval-v3.dtsi file in your build environment. Ensure the SPI node’s status is set to “okay” like this:

    &ecspi1 {
        status = "okay";
    };
    

    After making these changes, rebuild your image to apply them.

  3. Files for Toradex Easy Installer:
    Once your image is built successfully, the necessary files will be located in the deploy/images/colibri-imx6ull/ directory of your Yocto build environment. You will need the .tar file for the Toradex Easy Installer.

  4. Using Toradex Easy Installer:
    Copy the .tar file to a USB stick. Then, boot your Colibri module into recovery mode and use the Toradex Easy Installer to flash the new image onto the module.

I hope this helps you get your system up and running. If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

https://community.nxp.com/t5/i-MX-Processors/IMX8MP-in-Yocto-LF6-1-22-2-0-0-rust-llvm-1-68-1-bb-do-compile/td-p/1703785.

Thanks, but cmake is installed (3.22.1-1ubuntu1.22.04.2) the error is still there. Do you need additional log files?
Best Regards Erik