This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM64X: AM642

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: AM6442

Tool/software:

I'm trying to add, remove, and change the GPIO and Serial Ports in the DTS file using processor-sdk-08.06.00 (1.2. Building the SDK — Processor SDK AM64X Documentation). Could you please tell me which file (k3-am642-evm.dts or others) I should modify? I've done this in both Linux (/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/git/arch/arm64/boot/dts/ti) but it's not working anything, also even with USB too it not recognize usb.

The error message is as follows:

[   11.272609] usbcore: registered new interface driver usbfs
[   11.304515] usbcore: registered new interface driver hub
[   11.354920] usbcore: registered new device driver usb
[   11.551351] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[   11.557242] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1                                                                                        
[   21.577883] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
[   21.586559] xhci-hcd: probe of xhci-hcd.0.auto failed with error -110

 

  • Hi Jeevan,

    For AM64x devices, kernel has two board devicetree files under arch/arm64/boot/dts/ti/ directory: k3-am642-evm.dts and k3-am642-sk.dts.

    One of them should be the one you modify depending which one you pick for reference.

  • Hi Bin Liu, According to changes for GPIO and Serial ports which is suitable also can you guide how to do the changes.

  • Hi Jeevan,

    Please explain what you need for GPIO, what you have you done, and what problem with GPIO with your work?

    We will do the same process for UART after we resolve the GPIO problem.

  • I need GPIO to control a hardware pin on the AM6442, In which specific device tree files i should make the changes, can you please guide me with a sample changes with examples

  • My previous response answers your GPIO config question too:

    For AM64x devices, kernel has two board devicetree files under arch/arm64/boot/dts/ti/ directory: k3-am642-evm.dts and k3-am642-sk.dts.

    One of them should be the one you modify depending which one you pick for reference.

  • Hi Bin Liu, I know where I can make modifications, but it's not working, so I asked if you could provide an example inside the root or outside of the k3-am642-evm.dts in a specific line. I've tried &main_gpio, but it's not working. Could you provide any sample code for this?

  • There are several ways to use GPIO pins in Linux, and kernel devicetree already defines a few of the usages. Please explain how do you exactly will use the GPIO in your project, so I can provide further guidance.

    I've tried &main_gpio, but it's not working.

    Without showing your code change and explain how it is not working, I am unable to comment on it.

  • This is path tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/arch/arm64/boot/dts/ti/k3-am642-evm.dts: 

    // SPDX-License-Identifier: GPL-2.0
    /*
    * Copyright (C) 2021 PHYTEC America, LLC - https://www.phytec.com
    * Author: Matt McKee <mmckee@phytec.com>
    *
    * Copyright (C) 2022 PHYTEC Messtechnik GmbH
    * Author: Wadim Egorov <w.egorov@phytec.de>
    *
    * Product homepage:
    * www.phytec.com/.../phyboard-am64x
    */
    
    /dts-v1/;
    
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/input/input.h>
    #include <dt-bindings/leds/common.h>
    #include <dt-bindings/leds/leds-pca9532.h>
    #include <dt-bindings/phy/phy.h>
    #include "k3-am642.dtsi"
    #include "k3-am64-phycore-som.dtsi"
    
    #include "k3-serdes.h"
    
    / {
    compatible = "phytec,am642-phyboard-electra-rdk",
    "phytec,am64-phycore-som", "ti,am642";
    model = "PHYTEC phyBOARD-Electra-AM64x RDK";
    
    aliases {
    mmc1 = &sdhci1;
    serial2 = &main_uart0;
    serial3 = &main_uart1;
    serial4 = &main_uart2;
    };
    
    chosen {
    stdout-path = &main_uart0;
    };
    
    can_tc1: can-phy0 {
    compatible = "ti,tcan1042";
    pinctrl-names = "default";
    pinctrl-0 = <&can_tc1_pins_default>;
    #phy-cells = <0>;
    max-bitrate = <5000000>;
    standby-gpios = <&main_gpio0 32 GPIO_ACTIVE_HIGH>;
    };
    
    can_tc2: can-phy1 {
    compatible = "ti,tcan1042";
    pinctrl-names = "default";
    pinctrl-0 = <&can_tc2_pins_default>;
    #phy-cells = <0>;
    max-bitrate = <5000000>;
    standby-gpios = <&main_gpio0 35 GPIO_ACTIVE_HIGH>;
    };
    
    keys {
    compatible = "gpio-keys";
    autorepeat;
    pinctrl-names = "default";
    pinctrl-0 = <&gpio_keys_pins_default>;
    
    key-home {
    label = "home";
    linux,code = <KEY_HOME>;
    gpios = <&main_gpio0 17 GPIO_ACTIVE_HIGH>;
    };
    
    key-menu {
    label = "menu";
    linux,code = <KEY_MENU>;
    gpios = <&main_gpio0 21 GPIO_ACTIVE_HIGH>;
    };
    };
    
    leds {
    compatible = "gpio-leds";
    pinctrl-names = "default";
    pinctrl-0 = <&leds_pins_default>, <&user_leds_pins_default>;
    
    led-1 {
    color = <LED_COLOR_ID_RED>;
    gpios = <&main_gpio0 15 GPIO_ACTIVE_HIGH>;
    linux,default-trigger = "mmc0";
    function = LED_FUNCTION_DISK;
    };
    
    led-2 {
    color = <LED_COLOR_ID_GREEN>;
    gpios = <&main_gpio0 16 GPIO_ACTIVE_HIGH>;
    linux,default-trigger = "mmc1";
    function = LED_FUNCTION_DISK;
    };
    
    /* New LED added for GPIO1_17 (B17) */
    hbled: led0 {
    label = "hbled";
    gpios = <&main_gpio1 17 GPIO_ACTIVE_HIGH>; /* GPIO1_17 */
    default-state = "off";
    linux,default-trigger = "none";
    };
    
    };
    
    vcc_3v3_mmc: regulator-sd {
    /* TPS22963C */
    compatible = "regulator-fixed";
    regulator-name = "VCC_3V3_MMC";
    regulator-min-microvolt = <3300000>;
    regulator-max-microvolt = <3300000>;
    regulator-boot-on;
    regulator-always-on;
    };
    };
    
    &main_pmx0 {
    can_tc1_pins_default: can-tc1-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0084, PIN_OUTPUT, 7) /* (P16) GPMC0_ADVn_ALE.GPIO0_32 */
    >;
    };
    
    can_tc2_pins_default: can-tc2-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0090, PIN_OUTPUT, 7) /* (P17) GPMC0_BE0n_CLE.GPIO0_35 */
    >;
    };
    
    gpio_keys_pins_default: gpio-keys-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0044, PIN_INPUT, 7) /* (T18) GPMC0_AD2.GPIO0_17 */
    AM64X_IOPAD(0x0054, PIN_INPUT, 7) /* (V20) GPMC0_AD6.GPIO0_21 */
    >;
    };
    
    main_i2c1_pins_default: main-i2c1-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0268, PIN_INPUT, 0) /* (C18) I2C1_SCL */
    AM64X_IOPAD(0x026c, PIN_INPUT, 0) /* (B19) I2C1_SDA */
    >;
    };
    
    main_mcan0_pins_default: main-mcan0-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0250, PIN_OUTPUT, 0) /* (A17) MCAN0_TX */
    AM64X_IOPAD(0x0254, PIN_INPUT, 0) /* (B17) MCAN0_RX */
    >;
    };
    
    main_mcan1_pins_default: main-mcan1-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (C17) MCAN1_TX */
    AM64X_IOPAD(0x025c, PIN_INPUT, 0) /* (D17) MCAN1_RX */
    >;
    };
    
    main_mmc1_pins_default: main-mmc1-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x027c, PIN_INPUT_PULLUP, 0) /* (K18) MMC1_DAT3 */
    AM64X_IOPAD(0x0280, PIN_INPUT_PULLUP, 0) /* (K19) MMC1_DAT2 */
    AM64X_IOPAD(0x0284, PIN_INPUT_PULLUP, 0) /* (L21) MMC1_DAT1 */
    AM64X_IOPAD(0x0288, PIN_INPUT_PULLUP, 0) /* (K21) MMC1_DAT0 */
    AM64X_IOPAD(0x028c, PIN_INPUT_PULLDOWN, 0) /* (L20) MMC1_CLK */
    AM64X_IOPAD(0x0290, PIN_INPUT, 0) /* MMC1_CLKLB */
    AM64X_IOPAD(0x0294, PIN_INPUT_PULLUP, 0) /* (J19) MMC1_CMD */
    AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */
    >;
    };
    
    main_spi0_pins_default: main-spi0-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x020c, PIN_OUTPUT, 7) /* (C13) SPI0_CS1.GPIO1_43 */
    AM64X_IOPAD(0x0210, PIN_INPUT, 0) /* (D13) SPI0_CLK */
    AM64X_IOPAD(0x0214, PIN_OUTPUT, 0) /* (A13) SPI0_D0 */
    AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */
    >;
    };
    
    main_uart0_pins_default: main-uart0-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */
    AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */
    >;
    };
    
    main_uart1_pins_default: main-uart1-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0248, PIN_INPUT, 0) /* (D16) UART1_CTSn */
    /*AM64X_IOPAD(0x024C, PIN_OUTPUT, 7)*/ /* (E16) UART1_RTSn */
    AM64X_IOPAD(0x0240, PIN_INPUT, 0) /* (E15) UART1_RXD */
    AM64X_IOPAD(0x0244, PIN_OUTPUT, 0) /* (E14) UART1_TXD */
    >;
    };
    
    main_uart2_pins_default: main-uart2-default-pins {
    pinctrl-single,pins = <
    /*AM64X_IOPAD(0x0168, PIN_OUTPUT, 7)*/ /* (U2) UART2_RTSn */
    AM64X_IOPAD(0x01A8, PIN_INPUT, 10) /* (V1) UART2_RXD */
    AM64X_IOPAD(0x0164, PIN_OUTPUT, 10) /* (R4) UART2_TXD */
    >;
    };
    
    main_usb0_pins_default: main-usb0-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
    >;
    };
    
    pcie_usb_sel_pins_default: pcie-usb-sel-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x017c, PIN_OUTPUT, 7) /* (T1) PRG0_PRU0_GPO7.GPIO1_7 */
    >;
    };
    
    pcie0_pins_default: pcie0-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x0098, PIN_OUTPUT, 7) /* (W19) GPMC0_WAIT0.GPIO0_37 */
    >;
    };
    
    user_leds_pins_default: user-leds-default-pins {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x003c, PIN_OUTPUT, 7) /* (T20) GPMC0_AD0.GPIO0_15 */
    AM64X_IOPAD(0x0040, PIN_OUTPUT, 7) /* (U21) GPMC0_AD1.GPIO0_16 */
    >;
    };
    /* New GPIO controller node for GPIO1 */
    
    &main_gpio1 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&gpio1_pins_default>;
    };
    
    };
    
    &main_i2c1 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_i2c1_pins_default>;
    clock-frequency = <400000>;
    
    eeprom@51 {
    compatible = "atmel,24c02";
    pagesize = <16>;
    reg = <0x51>;
    };
    
    led-controller@62 {
    compatible = "nxp,pca9533";
    reg = <0x62>;
    
    led-3 {
    label = "red:user";
    type = <PCA9532_TYPE_LED>;
    };
    
    led-4 {
    label = "green:user";
    type = <PCA9532_TYPE_LED>;
    };
    
    led-5 {
    label = "blue:user";
    type = <PCA9532_TYPE_LED>;
    };
    };
    };
    
    &main_mcan0 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_mcan0_pins_default>;
    phys = <&can_tc1>;
    };
    
    &main_mcan1 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_mcan1_pins_default>;
    phys = <&can_tc2>;
    };
    
    &main_spi0 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_spi0_pins_default>;
    cs-gpios = <0>, <&main_gpio1 43 GPIO_ACTIVE_LOW>;
    ti,pindir-d0-out-d1-in;
    
    tpm@1 {
    compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
    reg = <1>;
    spi-max-frequency = <10000000>;
    };
    };
    
    &main_uart0 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_uart0_pins_default>;
    current-speed = <115200>;
    };
    
    &main_uart1 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_uart1_pins_default>;
    uart-has-rtscts;
    current-speed = <115200>;
    };
    
    &main_uart2 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_uart2_pins_default>;
    uart-has-rtscts;
    current-speed = <115200>;
    };
    
    &sdhci1 {
    status = "okay";
    vmmc-supply = <&vcc_3v3_mmc>;
    pinctrl-names = "default";
    pinctrl-0 = <&main_mmc1_pins_default>;
    bus-width = <4>;
    disable-wp;
    no-1-8-v;
    };
    
    &serdes0 {
    serdes0_pcie_usb_link: phy@0 {
    reg = <0>;
    cdns,num-lanes = <1>;
    #phy-cells = <0>;
    cdns,phy-type = <PHY_TYPE_USB3>;
    resets = <&serdes_wiz0 1>;
    };
    };
    
    &serdes_ln_ctrl {
    idle-states = <AM64_SERDES0_LANE0_USB>;
    };

    This is my code can guide where I'm going wrong and after change the code, I'm running the with "MACHINE=am64xx-evm bitbake -f -c compile linux-ti-staging" is this proper way to do it and this is error i'm facing 

    Initialising tasks: 100% |#####################################| Time: 0:00:06
    Sstate summary: Wanted 0 Found 0 Missed 0 Current 45 (0% match, 100% complete)
    NOTE: Executing Tasks
    ERROR: linux-ti-staging-5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 do_compile: oe_runmake failed
    ERROR: linux-ti-staging-5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 do_compile: Execution of '/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/temp/run.do_compile.49732' failed with exit code 1
    ERROR: Logfile of failure stored in: /home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/temp/log.do_compile.49732
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | NOTE: KBUILD_BUILD_TIMESTAMP: Fri May 23 11:36:33 UTC 2025
    | NOTE: make -j 12 HOSTCC=gcc -isystem/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/include -O2 -pipe -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E HOSTCXX=g++ -isystem/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/include -O2 -pipe -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-O1 Image CC=aarch64-none-linux-gnu-gcc -fuse-ld=bfd -fmacro-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5=/usr/src/debug/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5=/usr/src/debug/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot= -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native= -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-build-artifacts=/usr/src/kernel LD=aarch64-none-linux-gnu-ld.bfd LOADADDR=0x80008000 DTC_FLAGS=-@
    | GEN Makefile
    | CALL /home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/scripts/atomic/check-atomics.sh
    | CALL /home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/scripts/checksyscalls.sh
    | CHK include/generated/compile.h
    | UPD include/generated/compile.h
    | CC init/version.o
    | AR init/built-in.a
    | GEN .version
    | CHK include/generated/compile.h
    | LD vmlinux.o
    | MODPOST vmlinux.symvers
    | MODINFO modules.builtin.modinfo
    | GEN modules.builtin
    | LD .tmp_vmlinux.kallsyms1
    | KSYMS .tmp_vmlinux.kallsyms1.S
    | AS .tmp_vmlinux.kallsyms1.S
    | LD .tmp_vmlinux.kallsyms2
    | KSYMS .tmp_vmlinux.kallsyms2.S
    | AS .tmp_vmlinux.kallsyms2.S
    | LD vmlinux
    | SORTTAB vmlinux
    | SYSMAP System.map
    | OBJCOPY arch/arm64/boot/Image
    | NOTE: make -j 12 HOSTCC=gcc -isystem/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/include -O2 -pipe -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E HOSTCXX=g++ -isystem/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/include -O2 -pipe -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-O1 Image CC=aarch64-none-linux-gnu-gcc -fuse-ld=bfd -fmacro-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5=/usr/src/debug/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5=/usr/src/debug/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot= -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native= -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-build-artifacts=/usr/src/kernel LD=aarch64-none-linux-gnu-ld.bfd LOADADDR=0x80008000 DTC_FLAGS=-@
    | GEN Makefile
    | CALL /home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/scripts/atomic/check-atomics.sh
    | CALL /home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/scripts/checksyscalls.sh
    | CHK include/generated/compile.h
    | NOTE: make -j 12 HOSTCC=gcc -isystem/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/include -O2 -pipe -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E HOSTCXX=g++ -isystem/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/include -O2 -pipe -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -L/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native/lib -Wl,-O1 ti/k3-am642-evm.dtb CC=aarch64-none-linux-gnu-gcc -fuse-ld=bfd -fmacro-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5=/usr/src/debug/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5=/usr/src/debug/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5 -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot= -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/recipe-sysroot-native= -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-build-artifacts=/usr/src/kernel LD=aarch64-none-linux-gnu-ld.bfd LOADADDR=0x80008000 DTC_FLAGS=-@
    | DTC arch/arm64/boot/dts/ti/k3-am642-evm.dtb
    | Error: /home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/arch/arm64/boot/dts/ti/k3-am642-evm.dts:231.2-13 syntax error
    | FATAL ERROR: Unable to parse input tree
    | make[2]: *** [scripts/Makefile.lib:328: arch/arm64/boot/dts/ti/k3-am642-evm.dtb] Error 1
    | make[1]: *** [/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/Makefile:1370: ti/k3-am642-evm.dtb] Error 2
    | make: *** [/home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/Makefile:185: __sub-make] Error 2
    | ERROR: oe_runmake failed
    | WARNING: /home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/temp/run.do_compile.49732:1 exit 1 from 'exit 1'
    | ERROR: Execution of '/home/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging/5.10.168+gitAUTOINC+2c23e6c538-r0b.arago5/temp/run.do_compile.49732' failed with exit code 1
    ERROR: Task (/home/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 405 tasks of which 404 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds

    Summary: 1 task failed:
    /home/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

  • The log shows the error:

    | Error: /home/tisdk/build/arago-tmp-external-arm-glibc/work-shared/am64xx-evm/kernel-source/arch/arm64/boot/dts/ti/k3-am642-evm.dts:231.2-13 syntax error

  • Hi Bin Lin, thanks it working can you resolve USB issue 

    The error message is as follows:

    [   11.272609] usbcore: registered new interface driver usbfs
    [   11.304515] usbcore: registered new interface driver hub
    [   11.354920] usbcore: registered new device driver usb
    [   11.551351] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [   11.557242] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1                                                                                        
    [   21.577883] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
    [   21.586559] xhci-hcd: probe of xhci-hcd.0.auto failed with error -110
  • Hi, I am out of office for the next two weeks. Please expect delayed response. 

  • The error message is as follows:

    [   11.272609] usbcore: registered new interface driver usbfs
    [   11.304515] usbcore: registered new interface driver hub
    [   11.354920] usbcore: registered new device driver usb
    [   11.551351] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [   11.557242] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1                                                                                        
    [   21.577883] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
    [   21.586559] xhci-hcd: probe of xhci-hcd.0.auto failed with error -110

    Do the two patches mentioned in the thread linked below resolve the USB problem?

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1493716/re-processor-sdk-am64x-removing-and-adding-packages-in-processor-sdk-linux-for-am64x