Device Tree imx6ull

Please apologize, but I am inexperienced, I have read various posts, various documents on the Toradex site, but I have not understood how to do it, probably due to my inexperience with linux compilations etc.
I built the image starting from the sources following this guide
I have used Index of /toradex-bsp-platform.git -b LinuxImage4.0

I inserted the image through Easy Installer and so far so good.
Now I would like to change the device tree to remove RTS and CTS from UART1 and use them as GPIO, also I would like
remove PWM_B 5 and PWM_C 6 and use the pins as GPIO.
By default the build uses the file
imx6ull-colibri-wifi-eval-v3.dtb by filling in the
imx6ull-colibri-wifi-eval-v3.dts present in the folder
Then make a copy of this file and edit it
Then how can I recompile it or without recompiling the whole image?
I followed this post Build custom device tree - Technical Support - Toradex Community
I downloaded the toolchain Downloads | GNU-A Downloads – Arm Developer (gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz for 64bit Arm)
Extract in oe-core and exported used:

export ARCH=arm64
export PATH=~/gcc-linaro/bin/:$PATH
export CROSS_COMPILE=aarch64-linux-gnu-

but when I launch

make imx6ull-colibri-wifi-custom.dtb

error make: *** No rule to make target
but about this I have doubts:

  1. what is the root directory for me? considering I installed everything as described on the Toradex website?
  2. To make it easier, I could edit the original file
    “imx6ull-colibri-wifi-eval-v3.dts” and relaunch bitbake -k console-tdx-image, because doing so it seems to me that it doesn’t work

I forgot: ***** edit 11 bis) setenv fdt_board custom

I followed the link procedure in this way and I would like to ask if what I did is right:

  1. Installed the gcc-arm-8.2-2019.01-x86_64-arm-linux-gnueabihf.tar.xz Toolchain and exported variables and paths

  2. Through git clone I downloaded the files from the brach as specified
    (U-boot-> ttoradex_2019.07, kernel → toradex_4.14-2.0.x-imx)

  3. now I have two linux-toradex and u-boot-toradex folders

  4. I install dtc compiler and U-Boot tools and the other bild hos tools

  5. I go into the u-boot-toradex folder, build the make and compile U-boot

  6. go into the linux-toradex folder, build the make and compile the kernel and dtb (make -j3 zImage 2> & 1 | tee build.log make imx6ull-colibri-custom.dtb and make -j3 zImage LD = $ {CROSS_COMPILE} ld.bfd | tee build.log)

  7. Download the image which will be in ~ / Downloads

  8. I extract it in a USB memory pen

  9. I enter the memory pen and replace the dtb, zimage files with those created by me that I find in ~ / linux-toradex / arch / arm / boot / dts / imx6ull-colibri-custom.dtb and ~ / linux-toradex / arch / arm / boot / zImage

  10. in the target (colibri-imx6ull) I insert Easy Installere with the USB OTG procedure and connected to a PC

  11. insert the memory pen into a USB socket on the board

  12. I connect via vnc and traite easy installer I install the image from the memory pen and it seems to work apart from two errors that it presents during startup ([FAILED] Failed to start Load Kernel Modules. And
    [FAILED] Failed to start Load default USB gadget g1.schema scheme

  13. is the procedure correct?

Dear @MaxMax ,

Thank you for your comment.

One question… Have you modified the Kernel config? If you have modified the kernel config, you have to copy the entire kernel Modules and not just the zImage. Build U-Boot and Linux Kernel from Source Code | Toradex Developer Center

But when you have not modified the Kernel config, it is enough if you just replace the device tree files. This is because the kernel wants to have modules that are built for the exact kernel build.

Hope this helps.

Best Regards,


Ok thanks

You’re welcome!

Best Regards,