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.

TDA4VM: MCSPI_MasterSlave_App_release.xer5f load application from u-boot

Other Parts Discussed in Thread: SYSBIOS

Hi All,

I have the question about loading app from u-boot, I have tried the method below.

I try to modify the psdk_rtos_auto_j7_06_02_00_21/pdk/packages/ti/drv/spi/example/mcspi_slavemode/j721e/linker_mcu_sysbios.lds.

/* linker options */
--fill_value=0
--stack_size=0x2000
--heap_size=0x1000

-e __VECS_ENTRY_POINT

MEMORY
{
    /* MCU0_R5F_0 local view */
    MCU0_R5F_TCMA_SBL_RSVD (X)  : origin=0x0        length=0x100
    MCU0_R5F_TCMA (X)       : origin=0x100      length=0x8000 - 0x100

    /* MCU0_R5F_0 SoC view */
    MCU0_R5F0_ATCM (RWIX)   : origin=0x41000000 length=0x8000
    MCU0_R5F0_BTCM (RWIX)   : origin=0x41010000 length=0x8000

    /* j721e MCMS3 locations */
    /* j721e Reserved Memory for ARM Trusted Firmware */
    MSMC3_ARM_FW   (RWIX)   : origin=0x70000000 length=0x40000         /* 256KB */
    MSMC3   (RWIX)          : origin=0x70040000 length=0x7B0000        /* 8MB - 320KB */
    /* j721e Reserved Memory for DMSC Firmware */
    MSMC3_DMSC_FW  (RWIX)   : origin=0x707F0000 length=0x10000         /* 64KB */

    DDR0    (RWIX)          : origin=0x80000000 length=0x8000000      /* 2GB */

    /* Used in this file */
    DDR0_MCU_1_0 (RWIX)     : origin=0x97000000 length=0x1000000       /* 16MB */

    VECTORS (X)             : origin=0x41C3C100 length=0x1000
    RESET_VECTORS (X)       : origin=0x41C40000 length=0x100
    MCU1_0_MSRAM            : origin=0x41C40100 length=0x5C000 - 0x100

}  /* end of MEMORY */

SECTIONS
{
    .vecs       : {
        __VECS_ENTRY_POINT = .;
    } palign(8) > MCU0_R5F_TCMA_SBL_RSVD

    .text_boot {
        *boot.aer5f<*boot.o*>(.text)
     }  palign(8)   > MCU0_R5F_TCMA
    .text:xdc_runtime_Startup_reset__I     : {} palign(8) > MCU0_R5F_TCMA
    .text:ti_sysbios_family_arm_v7r_Cache* : {} palign(8) > MCU0_R5F_TCMA
    .text:ti_sysbios_family_arm_MPU*       : {} palign(8) > MCU0_R5F_TCMA
    //.utilsCopyVecsToAtcm                   : {} palign(8) > R5F_TCMB0

    .text       : {} palign(8)   > MCU1_0_MSRAM
    .cinit      : {} palign(8)   > MCU1_0_MSRAM
    .bss        : {} align(8)    > MCU1_0_MSRAM
    .far        : {} align(8)    > MCU1_0_MSRAM
    .const      : {} palign(8)   > MCU1_0_MSRAM
    .data       : {} palign(128) > MCU1_0_MSRAM
    .sysmem     : {} align(8)    > MCU1_0_MSRAM
    .stack      : {} align(4)    > MCU1_0_MSRAM
    .data_buffer: {} palign(128) > MCU1_0_MSRAM
}

Rebuild and put the MCSPI_MasterSlave_j721e_evm_mcu1_0TestApp_release.xer5f (rename j7-mcu-r5f0_0-fw) into /lib/firmware/ on my EMMC rootfs.

I load app on u-boot form maunal or auto load, but still no any output_log on any UART.
Is there any patch can provide us?

Best Regard,
Leo Ho

  • Hi All,

    I modified the psdk_rtos_auto_j7_06_02_00_21/pdk/packages/ti/drv/spi/example/mcspi_slavemode/j721e/linker_mcu_sysbios.lds to use ATCM in case of BTCM and load using u-boot.
    Attach the file below.

    /* linker options */
    --fill_value=0
    --stack_size=0x2000
    --heap_size=0x1000
    
    -e __VECS_ENTRY_POINT
    
    MEMORY
    {
        R5F_TCMA_SBL_RSVD(X)  : ORIGIN = 0x00000000 , LENGTH = 0x100
        MCU0_R5F_TCMA (X)     : origin = 0x100      , length = 0x8000 - 0x100
        RESET_VECTORS(X)      : ORIGIN = 0x41c40000 , LENGTH = 0x100  /* Bottom 256 KB used by SBL */
        R5F_TCMB0(RWIX)       : ORIGIN = 0x41010000 , LENGTH = 0x00008000
        MSMC3(RWIX)           : ORIGIN = 0x70080000 , LENGTH = 0x770000
        DDR0(RWIX)            : ORIGIN = 0x80000000 , LENGTH = 0x80000000
        MCU1_0_MSRAM          : origin = 0x41C40100 , length = 0x5C000 - 0x100
    }
    
    SECTIONS
    {
        .vecs       : {
            __VECS_ENTRY_POINT = .;
        } palign(8) > R5F_TCMA_SBL_RSVD
        .text_boot {
            *boot.aer5f<*boot.o*>(.text)
         }  palign(8)   > MCU0_R5F_TCMA
        .text:xdc_runtime_Startup_reset__I     : {} palign(8) > MCU0_R5F_TCMA
        .text:ti_sysbios_family_arm_v7r_Cache* : {} palign(8) > MCU0_R5F_TCMA
        .text:ti_sysbios_family_arm_MPU*       : {} palign(8) > MCU0_R5F_TCMA
        .rstvectors : {} palign(8)      	> MCU1_0_MSRAM
    
        /* For NDK packet memory, we need to map this sectionsbefore .bss*/
        .bss:NDK_MMBUFFER  (NOLOAD) {} ALIGN (128) > MCU1_0_MSRAM
        .bss:NDK_PACKETMEM (NOLOAD) {} ALIGN (128) > MCU1_0_MSRAM
    
        .intvecs 	: {} palign(8) 	 > MCU1_0_MSRAM
        .bss     	: {} align(4)  	 > MCU1_0_MSRAM
        .text       : {} palign(8)   > MCU1_0_MSRAM
        .cinit      : {} palign(8)   > MCU1_0_MSRAM
        .bss        : {} align(8)    > MCU1_0_MSRAM
        .far        : {} align(8)    > MCU1_0_MSRAM
        .const      : {} palign(8)   > MCU1_0_MSRAM
        .data       : {} palign(128) > MCU1_0_MSRAM
        .sysmem     : {} align(8)    > MCU1_0_MSRAM
        .stack      : {} align(4)    > MCU1_0_MSRAM
        .data_buffer: {} palign(128) > MCU1_0_MSRAM
    }
    
    

    I rebuild the app and load on u-boot from manual way and boot, when boot in kernel, it stuck in ti-sci in our custom board, I think the memory map conflict with it.
    The error log below:

    U-Boot SPL 2019.01-g753252f622-dirty (Aug 06 2020 - 06:45:51 +0000)
    SYSFW ABI: 2.9 (firmware rev 0x0013 '19.12.1-v2019.12a (Terrific Lla')
    Reading on-board EEPROM at 0x50 failed 1
    Trying to boot from SPI
    Loading Environment from MMC... spl: unsupported mmc boot device.
    sdhci@4f80000 - probe failed: -19
    *** Warning - No MMC card found, using default environment
    
    Loading rproc fw image from device 3 not supported!
    Loading rproc fw image from device 3 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.2(release):ti2019.05-rc1
    NOTICE:  BL31: Built : 03:48:29, Jun 18 2020
    I/TC:
    I/TC: OP-TEE version: ti2019.05-rc1-dev (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 Thu Jun 18 03:53:19 UTC 2020 aarch64
    I/TC: Initialized
    
    U-Boot SPL 2019.01-g753252f622-dirty (Aug 06 2020 - 07:03:57 +0000)
    Reading on-board EEPROM at 0x50 failed 1
    Trying to boot from SPI
    
    
    U-Boot 2019.01-g753252f622-dirty (Aug 06 2020 - 07:03:57 +0000)
    
    SoC:   J721E PG 1.0
    Model: Texas Instruments K3 J721E SoC
    Reading on-board EEPROM at 0x50 failed 1
    Board: J721EX-PM1-SOM rev E2
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Reading on-board EEPROM at 0x50 failed 1
    Net:   Sentinen Print pull high reset
    eth0: ethernet@046000000
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    SD/MMC found on device 0
    ** File not found boot.scr **
    ** Unrecognized filesystem type **
    2726224 bytes read in 12 ms (216.7 MiB/s)
    Load Remote Processor 0 with data@addr=0x80080000 2726224 bytes: Success!
    ** File not found /lib/firmware/j7-main-r5f0_1-fw **
    ** File not found /lib/firmware/j7-main-r5f1_0-fw **
    ** File not found /lib/firmware/j7-c66_0-fw **
    ** File not found /lib/firmware/j7-c66_1-fw **
    ** File not found /lib/firmware/j7-c71_0-fw **
    17303560 bytes read in 58 ms (284.5 MiB/s)
    100148 bytes read in 1 ms (95.5 MiB/s)
    ## Flattened Device Tree blob at 82000000
       Booting using the fdt blob at 0x82000000
       Loading Device Tree to 00000000fdda3000, end 00000000fdebefff ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 4.19.94-gf5fb92aa92 (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Tue Aug 11 00:38:43 UTC 2020
    [    0.000000] Machine model: Texas Instruments K3 J721E SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] bootconsole [ns16550a0] enabled
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 512 MiB at 0x00000000c0000000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.1
    [    0.000000] random: get_random_bytes called from start_kernel+0x94/0x3e4 with crng_init=0
    [    0.000000] percpu: Embedded 2 pages/cpu s48536 r8192 d74344 u131072
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: enabling workaround for EL2 vector hardening
    [    0.000000] Speculative Store Bypass Disable mitigation not required
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 62339
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),-@8m(ospi.rootfs) root=PARTUUID=a3179f72-7984-407e-bdf3-c374e0d3d24f rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes)
    [    0.000000] software IO TLB: mapped [mem 0xf9da0000-0xfdda0000] (64MB)
    [    0.000000] Memory: 3373696K/3993600K available (10814K kernel code, 1410K rwdata, 3968K rodata, 640K init, 718K bss, 95616K reserved, 524288K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2.
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: no VLPI support, no direct LPI support
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GIC: using LPI property table @0x00000008c00a0000
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] CPU0: using LPI pending table @0x00000008c00b0000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000002] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008374] Console: colour dummy device 80x25
    [    0.012928] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023596] pid_max: default: 32768 minimum: 301
    [    0.028334] Security Framework initialized
    [    0.032538] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes)
    [    0.039393] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes)
    [    0.070727] ASID allocator initialised with 32768 entries
    [    0.084252] rcu: Hierarchical SRCU implementation.
    [    0.097196] Platform MSI: gic-its@1820000 domain created
    [    0.102732] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain created
    [    0.120167] smp: Bringing up secondary CPUs ...
    [    0.157066] Detected PIPT I-cache on CPU1
    [    0.157082] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.157111] CPU1: using LPI pending table @0x00000008c0310000
    [    0.157133] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.157172] smp: Brought up 1 node, 2 CPUs
    [    0.185009] SMP: Total of 2 processors activated.
    [    0.189819] CPU features: detected: GIC system register CPU interface
    [    0.196401] CPU features: detected: 32-bit EL0 Support
    [    0.201883] CPU: All CPU(s) started at EL2
    [    0.206070] alternatives: patching kernel code
    [    0.211055] devtmpfs: initialized
    [    0.218805] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.228768] futex hash table entries: 512 (order: -1, 32768 bytes)
    [    0.235469] pinctrl core: initialized pinctrl subsystem
    [    0.241139] NET: Registered protocol family 16
    [    0.246047] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
    [    0.253610] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.262798] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.283522] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.290375] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
    [    0.297780] cryptd: max_cpu_qlen set to 1000
    [    0.302636] vsys_3v3: supplied by evm_12v0
    [    0.306899] vsys_5v0: supplied by evm_12v0
    [    0.311407] SCSI subsystem initialized
    [    0.315291] usbcore: registered new interface driver usbfs
    [    0.320906] usbcore: registered new interface driver hub
    [    0.326353] usbcore: registered new device driver usb
    [    0.331707] media: Linux media interface: v0.10
    [    0.336342] videodev: Linux video capture interface: v2.00
    [    0.341955] pps_core: LinuxPPS API ver. 1 registered
    [    0.347024] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.356360] PTP clock support registered
    [    0.360371] EDAC MC: Ver: 3.0.0
    [    0.364199] Advanced Linux Sound Architecture Driver Initialized.
    [    0.370592] Bluetooth: Core ver 2.22
    [    0.374249] NET: Registered protocol family 31
    [    0.378789] Bluetooth: HCI device and connection manager initialized
    [    0.385281] Bluetooth: HCI socket layer initialized
    [    0.390262] Bluetooth: L2CAP socket layer initialized
    [    0.395430] Bluetooth: SCO socket layer initialized
    [    0.400627] clocksource: Switched to clocksource arch_sys_counter
    [    0.406906] VFS: Disk quotas dquot_6.6.0
    [    0.410950] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
    [    0.420298] NET: Registered protocol family 2
    [    0.425038] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes)
    [    0.433106] TCP established hash table entries: 32768 (order: 2, 262144 bytes)
    [    0.440591] TCP bind hash table entries: 32768 (order: 3, 524288 bytes)
    [    0.447596] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.454336] UDP hash table entries: 2048 (order: 0, 65536 bytes)
    [    0.460518] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes)
    [    0.467187] NET: Registered protocol family 1
    [    0.471861] RPC: Registered named UNIX socket transport module.
    [    0.477914] RPC: Registered udp transport module.
    [    0.482717] RPC: Registered tcp transport module.
    [    0.487520] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.494564] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
    [    0.504164] Initialise system trusted keyrings
    [    0.508773] workingset: timestamp_bits=46 max_order=16 bucket_order=0
    [    0.516760] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.522908] NFS: Registering the id_resolver key type
    [    0.528078] Key type id_resolver registered
    [    0.532350] Key type id_legacy registered
    [    0.536448] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.543351] 9p: Installing v9fs 9p2000 file system support
    [    0.550481] Key type asymmetric registered
    [    0.554668] Asymmetric key parser 'x509' registered
    [    0.559668] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.567228] io scheduler noop registered
    [    0.571233] io scheduler deadline registered
    [    0.575633] io scheduler cfq registered (default)
    [    0.580439] io scheduler mq-deadline registered
    [    0.585065] io scheduler kyber registered
    [    0.589953] pinctrl-single 4301c000.pinmux: 94 pins, size 376
    [    0.596031] pinctrl-single 11c000.pinmux: 173 pins, size 692
    [    0.602143] pinctrl-single a40000.timesync_router: 512 pins, size 2048
    [    0.611085] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.617508] ti-pat 31010000.pat: Failed to create 31010000.pat debugfs directory
    [    0.625193] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.631606] ti-pat 31011000.pat: Failed to create 31011000.pat debugfs directory
    [    0.639266] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.645678] ti-pat 31012000.pat: Failed to create 31012000.pat debugfs directory
    [    0.653361] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.659685] ti-pat 31013000.pat: Failed to create 31013000.pat debugfs directory
    [    0.667332] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.673655] ti-pat 31014000.pat: Failed to create 31014000.pat debugfs directory
    [    0.682604] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.693831] brd: module loaded
    [    0.699576] loop: module loaded
    [    0.703882] libphy: Fixed MDIO Bus: probed
    [    0.708234] tun: Universal TUN/TAP device driver, 1.6
    [    0.713634] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
    [    0.721643] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.727707] sky2: driver version 1.30
    [    0.731976] RTW: module init start
    [    0.735455] RTW: rtl88x2ce v5.7.3_35403.20191028
    [    0.740170] RTW: build time: Aug 11 2020 00:46:26
    [    0.744975] RTW: rtl88x2ce BT-Coex version = COEX20190318-00
    [    0.750766] RTW: rtw_inetaddr_notifier_register
    [    0.755404] RTW: module init ret=0
    [    0.758888] usbcore: registered new interface driver asix
    [    0.764420] usbcore: registered new interface driver ax88179_178a
    [    0.770654] usbcore: registered new interface driver cdc_ether
    [    0.776625] usbcore: registered new interface driver net1080
    [    0.782417] usbcore: registered new interface driver cdc_subset
    [    0.788472] usbcore: registered new interface driver zaurus
    [    0.794177] usbcore: registered new interface driver cdc_ncm
    [    0.799966] usbcore: registered new interface driver qmi_wwan
    [    0.805846] usbcore: registered new interface driver qmi_wwan_q
    [    0.811901] usbcore: registered new interface driver cdc_mbim
    [    0.817822] VFIO - User Level meta-driver version: 0.3
    [    0.823317] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    0.829641] ohci-pci: OHCI PCI platform driver
    [    0.834190] ohci-platform: OHCI generic platform driver
    [    0.839625] usbcore: registered new interface driver cdc_wdm
    [    0.845421] usbcore: registered new interface driver usb-storage
    [    0.851584] usbcore: registered new interface driver option
    [    0.857284] usbserial: USB Serial support registered for GSM modem (1-port)
    [    0.864693] i2c /dev entries driver
    [    0.868520] rtk_btusb: Realtek Bluetooth USB driver ver 3.1
    [    0.874214] rtk_btcoex: rtk_btcoex_init: version: 1.2
    [    0.879372] rtk_btcoex: create workqueue
    [    0.883437] rtk_btcoex: alloc buffers 1792, 2432 for ev and l2
    [    0.889415] usbcore: registered new interface driver rtk_btusb
    [    0.895541] sdhci: Secure Digital Host Controller Interface driver
    [    0.901856] sdhci: Copyright(c) Pierre Ossman
    [    0.906451] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.912679] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.918992] usbcore: registered new interface driver usbhid
    [    0.924704] usbhid: USB HID core driver
    [    0.929126] optee: probing for conduit method from DT.
    [    0.934390] optee: revision 3.7 (5208e5c1)
    [    0.934538] optee: initialized driver
    [    0.942715] mhi_init Quectel_Linux_PCIE_MHI_Driver_V1.2.0
    [    0.948691] NET: Registered protocol family 17
    [    0.953290] 9pnet: Installing 9P2000 support
    [    0.957671] Key type dns_resolver registered
    [    0.962264] registered taskstats version 1
    [    0.966451] Loading compiled-in X.509 certificates
    [    0.975789] ti-sci 44083000.dmsc: ABI: 2.9 (firmware rev 0x0013 '19.12.1-v2019.12a (Terrific Lla')
    [    1.000732] random: fast init done
    [    1.036896] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 400 kHz
    [    1.042856] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.048829] omap_i2c 42120000.i2c: bus 2 rev0.12 at 400 kHz
    [    1.054794] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
    [    1.060663] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
    [    1.066541] omap_i2c 2020000.i2c: bus 5 rev0.12 at 400 kHz
    [    1.072405] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
    [    1.078255] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
    [    1.084107] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
    [    1.099080] cdns-torrent-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps
    [    1.107935] cdns-pcie-host d000000.pcie: cdns_pcie_host_probe : pcie_3v3_enable : gpio_valid OK : ret=0
    [    1.117631] cdns-pcie-host d000000.pcie: cdns_pcie_host_probe : pcie_3v3_enable : gpio_request failed : ret=-517
    [    1.128159] cdns-pcie-host d000000.pcie: missing "mem"
    [    1.133411] cdns-pcie-host d000000.pcie: cdns_pcie_host_probe : devm_gpiod_get_optional : GPIOD_OUT_LOW
    [   11.324643] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_get_device+0x20/0x38)
    [   11.333629] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.092644] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.101629] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.110613] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.119596] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.128579] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.137562] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.146544] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.155526] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.164509] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.169671] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.174833] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.179995] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.185156] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.190318] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.195480] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.200641] ti-sci 44083000.dmsc: Mbox send fail -110
    [   12.348633] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x20/0x38)
    [   12.357615] ti-sci 44083000.dmsc: Mbox send fail -110
    [   21.564633] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_get_device+0x20/0x38)
    [   21.573613] ti-sci 44083000.dmsc: Mbox send fail -110
    [   31.804636] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_get_resource_range+0x28/0x40)
    [   31.814328] ti-sci 44083000.dmsc: Mbox send fail -110
    [   31.819490] k3-ringacc: probe of 2b800000.ringacc failed with error -22
    [   42.044638] ti-sci 44083000.dmsc: Mbox timedout in resp(caller: ti_sci_cmd_get_resource_range+0x28/0x40)
    [   42.054330] ti-sci 44083000.dmsc: Mbox send fail -110
    [   42.059491] k3-ringacc: probe of 3c000000.ringacc failed with error -22
    

    Is there any modification error in the linker file? 

    Best Regard,
    Leo Ho

  • Does it work without any modification to the linker command file ?

    Regards

    Vineet

  • Hi Vineet,

    There has no any log output without any modification to the linker command file in our custom board.

    Best Regard,
    Leo Ho

  • Hi,

    Saw this other thread

    Is this a duplicate ?

    Regards

    Vineet

  • Hi Vineet,

    Yes, is a duplicate.

    Thanks.

    Best Regard,
    Leo Ho