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.

DRA821U-Q1: Boot Linux with SBL from emmc failed

Part Number: DRA821U-Q1
Other Parts Discussed in Thread: TEST2

Tool/software:

Hi, TI

     HW: customer board

     SDK: ti-processor-sdk-rtos-j7200-evm-10_00_00_03

      Linux Kernel: ti-linux-kernel-6.6.58

Now I am try boot linux with SBL from emmc, before try it SBL form SD card is successful and linux is run.

Here is my emmc partition: /dev/mmcblk0p1 is boot, /dev/mmcblk0p2 is rootfs, I am sure there are OK as I can use it in U-boot.

Bellow is my compile command:

cd $pdk_path/packages/ti/build
    make sbl_lib_emmc BOARD=j7200_evm
    make sbl_emmc_uda_img BOARD=j7200_evm

cd $mcusw_path/build
    make -s -j can_boot_app_mcu_rtos BOARD=j7200_evm SOC=j7200 BUILD_PROFILE=release CORE=mcu1_0 BUILD_OS_TYPE=freertos BOOTMODE=emmc HLOSBOOT=linux BISTFUNC=disabled
    
cd $mcusw_path/mcuss_demos/boot_app_mcu_rtos/main_domain_apps/scripts/hlos
    ./constructappimageshlos.sh j7200_evm
    

And copy these files in boot partition in emmc: 

$pdk_path/packages/ti/boot/sbl/binary/j7200_evm/mmcsd/bin/sbl_emmc_uda_img_mcu1_0_release.tiimage ---> tiboot3.bin
$pdk_path/packages/ti/drv/sciclient/soc/V2/tifs.bin  ---> tifs.bin
$mcusw_path/binary/can_boot_app_mcu_rtos/bin/j7200_evm/can_boot_app_mcu_rtos_mcu1_0_release.appimage  ---> app
$mcusw_path/mcuss_demos/boot_app_mcu_rtos/main_domain_apps/binary/bin/j7200_evm/tikernelimage_linux.appimage ---> tikernelimage_linux.appimage
$mcusw_path/mcuss_demos/boot_app_mcu_rtos/main_domain_apps/binary/bin/j7200_evm/tidtb_linux.appimage ---> tidtb_linux.appimage
$mcusw_path/mcuss_demos/boot_app_mcu_rtos/main_domain_apps/binary/bin/j7200_evm/atf_optee.appimage ---> atf_optee.appimage
The tiboot3.bin can load app, but when app load kernel, there are error:
NOTICE:  BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty
NOTICE:  BL31: Built : 16:09:05, Feb  9 2024
I/TC: 
I/TC: OP-TEE version: 4.2.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Apr 12 09:51:21 UTC 2024 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Fixing SA2UL firewall owner for GP device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[    0.000000] Linux version 6.6.58 (root@4e56a679f58b) (aarch64-oe-linux-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240716) #3 SMP PREEMPT Wed Mar 12 14:00:23 CST 2025
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Texas Instruments J7200 EVM
[    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[    0.000000] OF: reserved mem: OVERLAP DETECTED!
[    0.000000] optee@9e800000 (0x000000009e800000--0x00000000a0000000) overlaps with sharememory_for_dv@9ffff000 (0x000000009ffff000--0x00000000a0000000)
[    0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800000
[    0.000000] OF: reserved mem: 0x000000009ffff000..0x000000009fffffff (4 KiB) nomap non-reusable sharememory_for_dv@9ffff000
[    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] OF: reserved mem: 0x00000000a0000000..0x00000000a00fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a0000000
[    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] OF: reserved mem: 0x00000000a0100000..0x00000000a0ffffff (15360 KiB) nomap non-reusable r5f-memory@a0100000
[    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] OF: reserved mem: 0x00000000a1000000..0x00000000a10fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a1000000
[    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] OF: reserved mem: 0x00000000a1100000..0x00000000a1ffffff (15360 KiB) nomap non-reusable r5f-memory@a1100000
[    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] OF: reserved mem: 0x00000000a2000000..0x00000000a20fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a2000000
[    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] OF: reserved mem: 0x00000000a2100000..0x00000000a2ffffff (15360 KiB) nomap non-reusable r5f-memory@a2100000
[    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] OF: reserved mem: 0x00000000a3000000..0x00000000a30fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a3000000
[    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] OF: reserved mem: 0x00000000a3100000..0x00000000a3ffffff (15360 KiB) nomap non-reusable r5f-memory@a3100000
[    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a47fffff (8192 KiB) nomap non-reusable ipc-memories@a4000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
[    0.000000]   node   0: [mem 0x000000009e800000-0x00000000a47fffff]
[    0.000000]   node   0: [mem 0x00000000a4800000-0x00000000ffffffff]
[    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[    0.000000] cma: Reserved 32 MiB at 0x00000000fe000000 on node -1
[    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.4
[    0.000000] percpu: Embedded 20 pages/cpu s43176 r8192 d30552 u81920
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Spectre-v3a
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: detected: ARM erratum 1742098
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x00000000fa000000-0x00000000fe000000] (64MB)
[    0.000000] Memory: 3896068K/4194304K available (12096K kernel code, 1276K rwdata, 4044K rodata, 2496K init, 457K bss, 265468K reserved, 32768K 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 event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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: 960 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
[    0.000000] ITS [mem 0x01820000-0x0182ffff]
[    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
[    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x0000000880040000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880050000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[    0.008356] Console: colour dummy device 80x25
[    0.012921] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[    0.023593] pid_max: default: 32768 minimum: 301
[    0.028347] LSM: initializing lsm=capability,selinux,integrity
[    0.034320] SELinux:  Initializing.
[    0.037950] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.045529] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.054436] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.061704] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.069568] rcu: Hierarchical SRCU implementation.
[    0.074467] rcu:     Max phase no-delay instances is 1000.
[    0.079989] Platform MSI: msi-controller@1820000 domain created
[    0.086164] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
[    0.095545] EFI services will not be available.
[    0.100291] smp: Bringing up secondary CPUs ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
[    0.113449] Detected PIPT I-cache on CPU1
[    0.113497] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
[    0.113512] GICv3: CPU1: using allocated LPI pending table @0x0000000880060000
[    0.113544] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
[    0.113602] smp: Brought up 1 node, 2 CPUs
[    0.142955] SMP: Total of 2 processors activated.
[    0.147760] CPU features: detected: 32-bit EL0 Support
[    0.153014] CPU features: detected: CRC32 instructions
[    0.158291] CPU: All CPU(s) started at EL2
[    0.162473] alternatives: applying system-wide alternatives
[    0.169002] devtmpfs: initialized
[    0.177685] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.187667] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.195211] pinctrl core: initialized pinctrl subsystem
[    0.200814] DMI not present or invalid.
[    0.205270] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.211770] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.219087] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.227127] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.235248] audit: initializing netlink subsys (disabled)
[    0.240873] audit: type=2000 audit(0.152:1): state=initialized audit_enabled=0 res=1
[    0.241106] thermal_sys: Registered thermal governor 'step_wise'
[    0.248798] thermal_sys: Registered thermal governor 'power_allocator'
[    0.254954] cpuidle: using governor menu
[    0.265702] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.272663] ASID allocator initialised with 65536 entries
[    0.281120] /bus@100000/interrupt-controller@1800000: Fixed dependency cycle(s) with /bus@100000/interrupt-controller@1800000
[    0.297897] /bus@100000/pinctrl@a40000: Fixed dependency cycle(s) with /bus@100000/pinctrl@a40000/mcu-cpsw-cpts
[    0.309546] Modules: 27632 pages in range for non-PLT usage
[    0.309551] Modules: 519152 pages in range for PLT usage
[    0.315750] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.328123] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.334525] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.341459] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.347861] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.354794] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.361195] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.368129] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.375388] k3-chipinfo 43000014.chipid: Family:J7200 rev:SR2.0 JTAGID[0x1bb6d02f] Detected
[    0.384389] iommu: Default domain type: Translated
[    0.389303] iommu: DMA domain TLB invalidation policy: strict mode
[    0.395757] SCSI subsystem initialized
[    0.399777] usbcore: registered new interface driver usbfs
[    0.405400] usbcore: registered new interface driver hub
[    0.410849] usbcore: registered new device driver usb
[    0.416243] pps_core: LinuxPPS API ver. 1 registered
[    0.421317] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.430658] PTP clock support registered
[    0.434782] EDAC MC: Ver: 3.0.0
[    0.438249] scmi_core: SCMI protocol bus registered
[    0.443387] FPGA manager framework
[    0.446901] Advanced Linux Sound Architecture Driver Initialized.
[    0.453642] clocksource: Switched to clocksource arch_sys_counter
[    0.460019] VFS: Disk quotas dquot_6.6.0
[    0.464049] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.474616] NET: Registered PF_INET protocol family
[    0.479855] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.488921] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.497704] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.505627] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.513830] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.522529] TCP: Hash tables configured (established 32768 bind 32768)
[    0.529359] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.536282] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.543717] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.549851] RPC: Registered named UNIX socket transport module.
[    0.555910] RPC: Registered udp transport module.
[    0.560714] RPC: Registered tcp transport module.
[    0.565517] RPC: Registered tcp-with-tls transport module.
[    0.571119] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.577702] NET: Registered PF_XDP protocol family
[    0.582606] PCI: CLS 0 bytes, default 64
[    0.587291] Initialise system trusted keyrings
[    0.591954] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.598715] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.604827] NFS: Registering the id_resolver key type
[    0.610012] Key type id_resolver registered
[    0.614286] Key type id_legacy registered
[    0.618390] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.625239] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.646695] Key type asymmetric registered
[    0.650886] Asymmetric key parser 'x509' registered
[    0.655904] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.663581] io scheduler mq-deadline registered
[    0.668217] io scheduler kyber registered
[    0.672329] io scheduler bfq registered
[    0.678127] pinctrl-single 4301c000.pinctrl: 13 pins, size 52
[    0.684122] pinctrl-single 4301c038.pinctrl: 2 pins, size 8
[    0.689918] pinctrl-single 4301c068.pinctrl: 59 pins, size 236
[    0.695984] pinctrl-single 4301c174.pinctrl: 8 pins, size 32
[    0.701872] pinctrl-single 104200.pinctrl: 20 pins, size 80
[    0.707631] pinctrl-single 104280.pinctrl: 8 pins, size 32
[    0.713323] pinctrl-single 11c000.pinctrl: 67 pins, size 268
[    0.719440] pinctrl-single 11c110.pinctrl: 1 pins, size 4
[    0.725019] pinctrl-single 11c11c.pinctrl: 3 pins, size 12
[    0.730713] pinctrl-single 11c164.pinctrl: 2 pins, size 8
[    0.736588] pinctrl-single a40000.pinctrl: 512 pins, size 2048
[    0.746239] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled
[    0.758376] loop: module loaded
[    0.762201] megasas: 07.725.01.00-rc1
[    0.767719] tun: Universal TUN/TAP device driver, 1.6
[    0.773463] VFIO - User Level meta-driver version: 0.3
[    0.779347] usbcore: registered new interface driver usb-storage
[    0.785661] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
[    0.791805] file system registered
[    0.795606] i2c_dev: i2c /dev entries driver
[    0.800641] sdhci: Secure Digital Host Controller Interface driver
[    0.806964] sdhci: Copyright(c) Pierre Ossman
[    0.811532] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.817647] ledtrig-cpu: registered to indicate activity on CPUs
[    0.823950] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.830966] usbcore: registered new interface driver usbhid
[    0.836661] usbhid: USB HID core driver
[    0.841305] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.849939] optee: probing for conduit method.
I/TC: Reserved shared memory is enabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled
[    0.854502] optee: revision 4.2 (12d7c4ee)
[    0.870961] optee: dynamic shared memory is enabled
[    0.880569] random: crng init done
[    0.884110] optee: initialized driver
[    0.889093] Initializing XFRM netlink socket
[    0.893490] NET: Registered PF_PACKET protocol family
[    0.898694] Key type dns_resolver registered
[    0.906911] registered taskstats version 1
[    0.911171] Loading compiled-in X.509 certificates
[    0.920851] ti-sci 44083000.system-controller: ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
[    0.997423] ti-sci-intr 42200000.interrupt-controller: Interrupt Router 137 domain created
[    1.005972] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 131 domain created
[    1.015309] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 213 domain created
[    1.023902] ti-sci-inta 33d00000.msi-controller: Interrupt Aggregator domain 209 created
[    1.035071] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,32] sci-dev-id:235
[    1.044969] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
[    1.051733] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66349100, num_proxies:64
[    1.062299] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[120,200] sci-dev-id:211
[    1.072470] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
[    1.079230] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66349100, num_proxies:64
[    1.087234] printk: console [ttyS2] disabled
[    1.091796] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 265, base_baud = 3000000) is a 8250
[    1.100745] printk: console [ttyS2] enabled
[    1.100745] printk: console [ttyS2] enabled
[    1.109194] printk: bootconsole [ns16550a0] disabled
[    1.109194] printk: bootconsole [ns16550a0] disabled
[    1.122313] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 266, base_baud = 3000000) is a 8250
[    1.132118] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
[    1.177648] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    1.185643] mdio_bus 46000f00.mdio: MDIO device at address 0 is missing.
[    1.192352] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
[    1.205205] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
[    1.212415] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[    1.218635] pps pps0: new PPS source ptp0
[    1.222809] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
[    1.233135] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
[    1.242131] mmc0: CQHCI version 5.10
[    1.245944] mmc1: CQHCI version 5.10
[    1.251032] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
[    1.261465] ti-udma 31150000.dma-controller: Channels: 50 (tchan: 25, rchan: 25, gp-rflow: 8)
[    1.273451] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
[    1.294215] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
[    1.317647] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    1.325643] mdio_bus 46000f00.mdio: MDIO device at address 0 is missing.
[    1.332351] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
[    1.345218] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
[    1.352508] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[    1.358714] pps pps0: new PPS source ptp1
[    1.362879] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1
[    1.378826] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
[    1.391189] clk: Disabling unused clocks
[    1.407363] ALSA device list:
[    1.410376]   No soundcards found.
[    1.413838] mmc0: Command Queue Engine enabled
[    1.418293] mmc0: new HS400 MMC card at address 0001
[    1.423660] mmcblk0: mmc0:0001 G1M15L 29.6 GiB
[    1.429103]  mmcblk0: p1 p2
[    1.432253] mmcblk0boot0: mmc0:0001 G1M15L 31.5 MiB
[    1.437887] mmcblk0boot1: mmc0:0001 G1M15L 31.5 MiB
[    1.443434] mmcblk0rpmb: mmc0:0001 G1M15L 4.00 MiB, chardev (238:0)
[    2.768093] sdhci-am654 4fb0000.mmc: Power on failed
[    2.803687] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
[    2.894816] EXT4-fs (mmcblk0p2): recovery complete
[    2.900051] EXT4-fs (mmcblk0p2): mounted filesystem 77d86fda-475b-45f5-9d0d-7515a2b934e5 r/w with ordered data mode. Quota mode: none.
[    2.912164] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.918384] devtmpfs: mounted
[    2.922734] Freeing unused kernel memory: 2496K
[    2.927374] Run /sbin/init as init process
[    2.933574] mmc0: running CQE recovery
[    2.937696] I/O error, dev mmcblk0, sector 42207488 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 2
[    2.946998] Unable to handle kernel paging request at virtual address 0042c56000000038
[    2.954898] Mem abort info:
[    2.957680]   ESR = 0x0000000096000004
[    2.961416]   EC = 0x25: DABT (current EL), IL = 32 bits
[    2.966714]   SET = 0, FnV = 0
[    2.969757]   EA = 0, S1PTW = 0
[    2.972884]   FSC = 0x04: level 0 translation fault
[    2.977751] Data abort info:
[    2.980617]   ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
[    2.986089]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[    2.991126]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[    2.996424] [0042c56000000038] address between user and kernel address ranges
[    3.003543] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[    3.009792] Modules linked in:
[    3.012837] CPU: 0 PID: 43 Comm: kworker/0:1H Not tainted 6.6.58 #3
[    3.019087] Hardware name: Texas Instruments J7200 EVM (DT)
[    3.024642] Workqueue: kblockd blk_mq_requeue_work
[    3.029428] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    3.036370] pc : percpu_ref_put_many.constprop.0+0x18/0xe4
[    3.041846] lr : percpu_ref_put_many.constprop.0+0x18/0xe4
[    3.047316] sp : ffff800081933a50
[    3.050618] x29: ffff800081933a50 x28: ffff800081933c28 x27: ffff000801ae7d00
[    3.057737] x26: ffff000801ae7d48 x25: 0000000000000000 x24: 000000000000000a
[    3.064855] x23: 00000000ffffffff x22: 0000000000000001 x21: ffff8000805240c4
[    3.071973] x20: 0000000000000000 x19: b542c56000000038 x18: 0000000000000006
[    3.079091] x17: 3033783020736761 x16: 6c66202944414552 x15: 283a30783020706f
[    3.086209] x14: 2038383437303232 x13: ffff8000812ef178 x12: 000000000000038a
[    3.093327] x11: 000000000000012e x10: ffff800081347178 x9 : ffff8000812ef178
[    3.100445] x8 : 00000000ffffefff x7 : ffff800081347178 x6 : 80000000fffff000
[    3.107563] x5 : ffff8007fe685000 x4 : 00000000000015aa x3 : 0000000000000000
[    3.114681] x2 : 00000000000015aa x1 : ffff000800244740 x0 : 0000000000000001
[    3.121799] Call trace:
[    3.124234]  percpu_ref_put_many.constprop.0+0x18/0xe4
[    3.129358]  bio_endio+0x154/0x198
[    3.132748]  blk_update_request+0x218/0x3c4
[    3.136918]  blk_mq_end_request+0x24/0x138
[    3.141001]  blk_mq_dispatch_rq_list+0x3bc/0x7b4
[    3.145603]  __blk_mq_sched_dispatch_requests+0xb8/0x578
[    3.150902]  blk_mq_sched_dispatch_requests+0x38/0x74
[    3.155939]  blk_mq_run_hw_queue+0xf4/0x190
[    3.160106]  blk_mq_run_hw_queues+0x6c/0x10c
[    3.164362]  blk_mq_requeue_work+0x190/0x1c8
[    3.168617]  process_one_work+0x138/0x248
[    3.172617]  worker_thread+0x320/0x438
[    3.176355]  kthread+0x110/0x114
[    3.179571]  ret_from_fork+0x10/0x20
[    3.183137] Code: 910003fd f9000bf3 aa0003f3 97f08cf2 (f9400260) 
[    3.189212] ---[ end trace 0000000000000000 ]---

I am sure the kernel and dtb iamge is OK as I use it run successfully wtih SBL from SD card.
Please help me 
  • Hi,

    Assigned engineer is currently out of office, expect delay in response.

    Regards,

    Manojna

  • Hi Shicheng,

    Sorry for the la

    • Can you help us with the hardware schematics of eMMC as there is a CQE recovery and power on failed issue coming up.

    • Also,I think you have missed copying the other main domain related firmwares as below:

    Regards

    Gokul

  • Hi Gokul

    Thanks for your reply

    Can you help us with the hardware schematics of eMMC as there is a CQE recovery and power on failed issue coming up.

    Bellow is our hardware schematics of eMMC.

    Also,I think you have missed copying the other main domain related firmwares as below:

    I am use DRA821U-Q1I am use DRA821U-Q1, j7200, do not have DSP cores

  • HI Shancheng,

    Thanks for the reply.

    After discussing it internally,I found out that only bootapp using SD card and OSPI is supported.

    However,we have raised a jira to enable support for bootapp using emmc which will mostly come in future releases of the SDK.We will inform you as soon as this feature is enabled shancheng.

    Regards

    Gokul

  • Hi Gokul

    After discussing it internally,I found out that only bootapp using SD card and OSPI is supported.

    You mean, it is not support that I want to use bootapp from eMMC?

    Is there any method with SBL from eMMC? I have try SBL from SD card is OK.

  • Hi Shicheng,

    You mean, it is not support that I want to use bootapp from eMMC?

    Yes,Shicheng,you are right.

    We have raised a request to enable this feature and we will get back to you as soon as this is enabled.

    Regards

    Gokul

  • Hi Gokul

    I try some changes, and the error is different

    I add bellow codes in MCU1_0 app:

    /* Ensure all the key memory interfaces are handed off properly, for HLOS control */
    AppUtils_Printf(MSG_NORMAL, "Sciclient_pmSetModuleState Off, DevId: %d \n", TISCI_DEV_MMCSD0);
        if(Sciclient_pmSetModuleState(TISCI_DEV_MMCSD0, TISCI_MSG_VALUE_DEVICE_SW_STATE_AUTO_OFF, TISCI_MSG_FLAG_AOP, SCICLIENT_SERVICE_WAIT_FOREVER) != E_PASS)
        {
            AppUtils_Printf(MSG_NORMAL, "Sciclient_pmSetModuleState failed to power OFF eMMC, DevId: %d \n", TISCI_DEV_MMCSD0);
        }

    And the linux boot follow is hang on Waiting for root device /dev/mmcblk0p2...

    Here are error logs:

    NOTICE:  BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty
    NOTICE:  BL31: Built : 16:09:05, Feb  9 2024
    I/TC: 
    I/TC: OP-TEE version: 4.2.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Apr 12 09:51:21 UTC 2024 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: GIC redistributor base address not provided
    I/TC: Assuming default GIC group status and modifier
    I/TC: SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.6.58 (root@0ee7ce3b84a1) (aarch64-oe-linux-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240716) #5 SMP PREEMPT Tue Mar 18 11:27:53 CST 205
    [    0.000000] KASLR disabled due to lack of seed
    [    0.000000] Machine model: Texas Instruments J7200 EVM
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
    [    0.000000] OF: reserved mem: OVERLAP DETECTED!
    [    0.000000] optee@9e800000 (0x000000009e800000--0x00000000a0000000) overlaps with sharememory_for_dv@9ffff000 (0x000000009ffff000--0x00000000a0000000)
    [    0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800000
    [    0.000000] OF: reserved mem: 0x000000009ffff000..0x000000009fffffff (4 KiB) nomap non-reusable sharememory_for_dv@9ffff000
    [    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] OF: reserved mem: 0x00000000a0000000..0x00000000a00fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a0000000
    [    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] OF: reserved mem: 0x00000000a0100000..0x00000000a0ffffff (15360 KiB) nomap non-reusable r5f-memory@a0100000
    [    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] OF: reserved mem: 0x00000000a1000000..0x00000000a10fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a1000000
    [    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] OF: reserved mem: 0x00000000a1100000..0x00000000a1ffffff (15360 KiB) nomap non-reusable r5f-memory@a1100000
    [    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] OF: reserved mem: 0x00000000a2000000..0x00000000a20fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a2000000
    [    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] OF: reserved mem: 0x00000000a2100000..0x00000000a2ffffff (15360 KiB) nomap non-reusable r5f-memory@a2100000
    [    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] OF: reserved mem: 0x00000000a3000000..0x00000000a30fffff (1024 KiB) nomap non-reusable r5f-dma-memory@a3000000
    [    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] OF: reserved mem: 0x00000000a3100000..0x00000000a3ffffff (15360 KiB) nomap non-reusable r5f-memory@a3100000
    [    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a47fffff (8192 KiB) nomap non-reusable ipc-memories@a4000000
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
    [    0.000000]   node   0: [mem 0x000000009e800000-0x00000000a47fffff]
    [    0.000000]   node   0: [mem 0x00000000a4800000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] cma: Reserved 32 MiB at 0x00000000fe000000 on node -1
    [    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.4
    [    0.000000] percpu: Embedded 20 pages/cpu s43176 r8192 d30552 u81920
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: Spectre-v3a
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 2.
    [    0.000000] software IO TLB: mapped [mem 0x00000000fa000000-0x00000000fe000000] (64MB)
    [    0.000000] Memory: 3896068K/4194304K available (12096K kernel code, 1276K rwdata, 4044K rodata, 2496K init, 457K bss, 265468K reserved, 32768K 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 event tracing is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000]  Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    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: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000880040000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880050000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008359] Console: colour dummy device 80x25
    [    0.012925] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023596] pid_max: default: 32768 minimum: 301
    [    0.028350] LSM: initializing lsm=capability,selinux,integrity
    [    0.034324] SELinux:  Initializing.
    [    0.037955] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.045531] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.054435] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.061700] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.069566] rcu: Hierarchical SRCU implementation.
    [    0.074465] rcu:     Max phase no-delay instances is 1000.
    [    0.079984] Platform MSI: msi-controller@1820000 domain created
    [    0.086156] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.095537] EFI services will not be available.
    [    0.100285] smp: Bringing up secondary CPUs ...
    ERROR:   Timeout waiting for thread SP_RESPONSE to fill
    ERROR:   Thread SP_RESPONSE verification failed (-60)
    ERROR:   Message receive failed (-60)
    ERROR:   Failed to get response (-60)
    ERROR:   Transfer send failed (-60)
    ERROR:   Request to start core failed: -60
    [    1.129293] psci: failed to boot CPU1 (-22)
    [    1.133633] CPU1: failed to boot: -22
    [    1.137410] smp: Brought up 1 node, 1 CPU
    [    1.141508] SMP: Total of 1 processors activated.
    [    1.146318] CPU features: detected: 32-bit EL0 Support
    [    1.151571] CPU features: detected: CRC32 instructions
    [    1.156853] CPU: All CPU(s) started at EL2
    [    1.161035] alternatives: applying system-wide alternatives
    [    1.167508] devtmpfs: initialized
    [    1.176172] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    1.186157] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    1.193719] pinctrl core: initialized pinctrl subsystem
    [    1.199314] DMI not present or invalid.
    [    1.203755] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    1.210243] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    1.217556] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    1.225596] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    1.233715] audit: initializing netlink subsys (disabled)
    [    1.239330] audit: type=2000 audit(0.136:1): state=initialized audit_enabled=0 res=1
    [    1.247475] thermal_sys: Registered thermal governor 'step_wise'
    [    1.247479] thermal_sys: Registered thermal governor 'power_allocator'
    [    1.253639] cpuidle: using governor menu
    [    1.264397] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    1.271348] ASID allocator initialised with 65536 entries
    [    1.279886] /bus@100000/interrupt-controller@1800000: Fixed dependency cycle(s) with /bus@100000/interrupt-controller@1800000
    [    1.296756] /bus@100000/pinctrl@a40000: Fixed dependency cycle(s) with /bus@100000/pinctrl@a40000/mcu-cpsw-cpts
    [    1.308416] Modules: 27632 pages in range for non-PLT usage
    [    1.308421] Modules: 519152 pages in range for PLT usage
    [    1.314550] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    1.326919] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    1.333321] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    1.340254] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    1.346657] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    1.353590] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    1.359992] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    1.366926] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    1.374101] k3-chipinfo 43000014.chipid: Family:J7200 rev:SR2.0 JTAGID[0x1bb6d02f] Detected
    [    1.383568] iommu: Default domain type: Translated
    [    1.388489] iommu: DMA domain TLB invalidation policy: strict mode
    [    1.394933] SCSI subsystem initialized
    [    1.398931] usbcore: registered new interface driver usbfs
    [    1.404548] usbcore: registered new interface driver hub
    [    1.409986] usbcore: registered new device driver usb
    [    1.415353] pps_core: LinuxPPS API ver. 1 registered
    [    1.420424] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    1.429762] PTP clock support registered
    [    1.433883] EDAC MC: Ver: 3.0.0
    [    1.437339] scmi_core: SCMI protocol bus registered
    [    1.442486] FPGA manager framework
    [    1.445997] Advanced Linux Sound Architecture Driver Initialized.
    [    1.452737] clocksource: Switched to clocksource arch_sys_counter
    [    1.459119] VFS: Disk quotas dquot_6.6.0
    [    1.463144] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    1.473415] NET: Registered PF_INET protocol family
    [    1.478658] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    1.487826] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    1.496577] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    1.504502] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    1.512709] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    1.521407] TCP: Hash tables configured (established 32768 bind 32768)
    [    1.528233] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    1.535148] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    1.542579] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    1.548660] RPC: Registered named UNIX socket transport module.
    [    1.554719] RPC: Registered udp transport module.
    [    1.559522] RPC: Registered tcp transport module.
    [    1.564325] RPC: Registered tcp-with-tls transport module.
    [    1.569938] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    1.576523] NET: Registered PF_XDP protocol family
    [    1.581427] PCI: CLS 0 bytes, default 64
    [    1.586147] Initialise system trusted keyrings
    [    1.590821] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    1.597571] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    1.603671] NFS: Registering the id_resolver key type
    [    1.608850] Key type id_resolver registered
    [    1.613121] Key type id_legacy registered
    [    1.617223] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    1.624071] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    1.645848] Key type asymmetric registered
    [    1.650035] Asymmetric key parser 'x509' registered
    [    1.655044] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
    [    1.662692] io scheduler mq-deadline registered
    [    1.667323] io scheduler kyber registered
    [    1.671433] io scheduler bfq registered
    [    1.677187] pinctrl-single 4301c000.pinctrl: 13 pins, size 52
    [    1.683190] pinctrl-single 4301c038.pinctrl: 2 pins, size 8
    [    1.689009] pinctrl-single 4301c068.pinctrl: 59 pins, size 236
    [    1.695097] pinctrl-single 4301c174.pinctrl: 8 pins, size 32
    [    1.700997] pinctrl-single 104200.pinctrl: 20 pins, size 80
    [    1.706769] pinctrl-single 104280.pinctrl: 8 pins, size 32
    [    1.712477] pinctrl-single 11c000.pinctrl: 67 pins, size 268
    [    1.718619] pinctrl-single 11c110.pinctrl: 1 pins, size 4
    [    1.724211] pinctrl-single 11c11c.pinctrl: 3 pins, size 12
    [    1.729930] pinctrl-single 11c164.pinctrl: 2 pins, size 8
    [    1.735809] pinctrl-single a40000.pinctrl: 512 pins, size 2048
    [    1.745420] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled
    [    1.757436] loop: module loaded
    [    1.761292] megasas: 07.725.01.00-rc1
    [    1.766788] tun: Universal TUN/TAP device driver, 1.6
    [    1.772536] VFIO - User Level meta-driver version: 0.3
    [    1.778405] usbcore: registered new interface driver usb-storage
    [    1.784714] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
    [    1.790862] file system registered
    [    1.794637] i2c_dev: i2c /dev entries driver
    [    1.799649] sdhci: Secure Digital Host Controller Interface driver
    [    1.805988] sdhci: Copyright(c) Pierre Ossman
    [    1.810591] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.816699] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.822996] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    1.830005] usbcore: registered new interface driver usbhid
    [    1.835701] usbhid: USB HID core driver
    [    1.840326] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    1.848974] optee: probing for conduit method.
    I/TC: Reserved shared memory is enabled
    I/TC: Dynamic shared memory is enabled
    I/TC: Normal World virtualization support is disabled
    I/TC: Asynchronous notifications are disabled
    [    1.853537] optee: revision 4.2 (12d7c4ee)
    [    1.869993] optee: dynamic shared memory is enabled
    [    1.879629] random: crng init done
    [    1.883272] optee: initialized driver
    [    1.888210] Initializing XFRM netlink socket
    [    1.892626] NET: Registered PF_PACKET protocol family
    [    1.897846] Key type dns_resolver registered
    [    1.906095] registered taskstats version 1
    [    1.910363] Loading compiled-in X.509 certificates
    [    2.920748] ti-sci 44083000.system-controller: Mbox timedout in resp(caller: platform_probe+0x68/0xc4)
    [    2.930282] ti-sci 44083000.system-controller: Mbox send fail -110
    [    2.936597] ti-sci 44083000.system-controller: Unable to communicate with TISCI(-110)
    [    2.944627] ti-sci: probe of 44083000.system-controller failed with error -110
    [    2.956608] clk: Disabling unused clocks
    [    2.960661] ALSA device list:
    [    2.963704]   No soundcards found.
    [    2.967216] Warning: unable to open an initial console.
    [    2.972603] Waiting for root device /dev/mmcblk0p2...
    [   13.194657] omap8250 2800000.serial: deferred probe timeout, ignoring dependency
    [   13.202332] omap8250: probe of 2800000.serial failed with error -110
    [   13.209194] platform 2430000.timer: deferred probe pending
    [   13.214820] platform 2440000.timer: deferred probe pending
    [   13.220442] platform 2450000.timer: deferred probe pending
    [   13.226049] platform 2460000.timer: deferred probe pending
    [   13.231653] platform 2470000.timer: deferred probe pending
    [   13.237266] platform 2480000.timer: deferred probe pending
    [   13.242870] platform 2490000.timer: deferred probe pending
    [   13.248473] platform 24a0000.timer: deferred probe pending
    [   13.254085] platform 24b0000.timer: deferred probe pending
    [   13.259689] platform 24c0000.timer: deferred probe pending
    [   13.265292] platform 24d0000.timer: deferred probe pending
    [   13.270903] platform 24e0000.timer: deferred probe pending
    [   13.276507] platform 24f0000.timer: deferred probe pending
    [   13.282110] platform 2500000.timer: deferred probe pending
    [   13.287722] platform 2510000.timer: deferred probe pending
    [   13.293326] platform 2520000.timer: deferred probe pending
    [   13.298931] platform 2530000.timer: deferred probe pending
    [   13.304543] platform 42110000.gpio: deferred probe pending
    [   13.310146] platform 600000.gpio: deferred probe pending
    [   13.315572] platform 42200000.interrupt-controller: deferred probe pending
    [   13.322610] platform bus@100000:interrupt-controller@a00000: deferred probe pending
    [   13.330436] platform 310e0000.interrupt-controller: deferred probe pending
    [   13.337470] platform 33d00000.msi-controller: deferred probe pending
    [   13.343962] platform bus@100000:wiz@5060000: deferred probe pending
    [   13.350364] platform 285c0000.dma-controller: deferred probe pending
    [   13.356864] platform 31150000.dma-controller: deferred probe pending
    [   13.363356] platform 2b800000.ringacc: deferred probe pending
    [   13.369225] platform 3c000000.ringacc: deferred probe pending
    [   13.375103] platform 4f80000.mmc: deferred probe pending
    [   13.380530] platform 2800000.serial: deferred probe pending
    [   13.386222] platform 2810000.serial: deferred probe pending
    [   13.391922] platform 47040000.spi: deferred probe pending
    [   13.397437] platform 46000000.ethernet: deferred probe pending
    [   13.403397] platform 310d0000.cpts: deferred probe pending
    [   13.409009] platform 4fb0000.mmc: deferred probe pending
    

    Is there any resaon about MCU1_0? Thanks

  • Hi Shincheng,

    Waiting for root device /dev/mmcblk0p2...

    You have powered off the emmc ,hence it is not able to fetch the rootfs from emmc.

    Is there any method with SBL from eMMC

    I just found out that the feature for using bootapp wirh eMMC UDA has been enabled in  10.01.00.04 RTOS SDK of J7200.

    Can you try the following steps to boot using BOOTAPP with eMMC UDA:

    **Booting Linux via EMMC UDA**

    • Download the  10.01.00.04 RTOS SDK of J7200.
    • Generate lateapps by using the following commands
               * goto <PDK>/packages/ti/boot/sbl/example/boot_app/scripts
               * Run ./make_multicore_appimages.sh <board_name>
               * Multicore images(lateapps) will be generated in <PDK>/packages/ti/boot/sbl/example/boot_app/multicore_images/$BOARD/.
               * Stage1 image corresponds to lateapp1, stage2 image corresponds to lateapp2 and stage3 image corresponds to lateapp3.
            
    • Copy sbl_emmc_uda_img_mcu1_0_release.tiimage as tiboot3.bin to /media/$USER/rootfs/home/root in the SD card
    • Copy tifs.bin to /media/$USER/rootfs/home/root in the SD card
           
    • Build boot_app_emmc_uda_linux by using the following command
               * make BOARD=<board_name> CORE=mcu1_0 boot_app_emmc_uda_linux -sj
    • Copy sbl_boot_app_emmc_uda_linux_<board_name>_mcu1_0_freertos_TestApp_release.appimage image as app to /media/$USER/rootfs/home/root in the SD card.
    • Copy stage1 image as lateapp1, stage2 image as lateapp2 to /media/$USER/rootfs/home/root in the SD card.
    • Copy atf_optee.appimage, tidtb_linux.appimage, tikernelimage_linux.appimage to the boot partition of SD card.
    • Boot in SD boot mode: SW8: 1000 0010 SW9: 0000 0000
    • Login as root
    • Copy the following images to eMMC FAT32 partition(/dev/mmcblk0p1) from the SD card
               * mkdir eMMC
               * mount /dev/mmcblk0p1 eMMC
               * cp tiboot3.bin eMMC
               * cp tifs.bin eMMC
               * cp app eMMC
               * cp lateapp1 eMMC
               * cp lateapp2 eMMC
               * cp tidtb_linux.appimage eMMC
               * cp tikernelimage_linux.appimage eMMC
               * cp atf_optee.appimage eMMC
    • Change boot mode to eMMC UDA partition and boot the board: SW8: 1000 0000 SW9: 0000 0000

    Regards

    Gokul

  • Hi Gokul

    I just found out that the feature for using bootapp wirh eMMC UDA has been enabled in  10.01.00.04 RTOS SDK of J7200.

    Can you try the following steps to boot using BOOTAPP with eMMC UDA:

    Now we  are using 10_00_00_03 and it is not convenient and easy to change to 10.01.00.04.

    Could you pelases show me the patch about the differents with SBL from eMMC between 10.01.00.04 and 10_00_00_03?

    I try to add patch to 10_00_00_03.

    Thanks very much

  • Hi Gokul

    Thanks for your reply. 

    I have add the patches to our SDK 10_00_00_03, but there are two questions:

    Q1. I follow below steps and use sbl_boot_app_emmc_uda_j7200_evm_mcu1_0_freertos_TestApp_release.appimage as bootApp to boot from eMMC UDA, there are error:

    Can you try the following steps to boot using BOOTAPP with eMMC UDA:

    **Booting Linux via EMMC UDA**

    • Download the  10.01.00.04 RTOS SDK of J7200.
    • Generate lateapps by using the following commands
               * goto <PDK>/packages/ti/boot/sbl/example/boot_app/scripts
               * Run ./make_multicore_appimages.sh <board_name>
               * Multicore images(lateapps) will be generated in <PDK>/packages/ti/boot/sbl/example/boot_app/multicore_images/$BOARD/.
               * Stage1 image corresponds to lateapp1, stage2 image corresponds to lateapp2 and stage3 image corresponds to lateapp3.
            
    • Copy sbl_emmc_uda_img_mcu1_0_release.tiimage as tiboot3.bin to /media/$USER/rootfs/home/root in the SD card
    • Copy tifs.bin to /media/$USER/rootfs/home/root in the SD card
           
    • Build boot_app_emmc_uda_linux by using the following command
               * make BOARD=<board_name> CORE=mcu1_0 boot_app_emmc_uda_linux -sj
    • Copy sbl_boot_app_emmc_uda_linux_<board_name>_mcu1_0_freertos_TestApp_release.appimage image as app to /media/$USER/rootfs/home/root in the SD card.
    • Copy stage1 image as lateapp1, stage2 image as lateapp2 to /media/$USER/rootfs/home/root in the SD card.
    • Copy atf_optee.appimage, tidtb_linux.appimage, tikernelimage_linux.appimage to the boot partition of SD card.
    • Boot in SD boot mode: SW8: 1000 0010 SW9: 0000 0000
    • Login as root
    • Copy the following images to eMMC FAT32 partition(/dev/mmcblk0p1) from the SD card
               * mkdir eMMC
               * mount /dev/mmcblk0p1 eMMC
               * cp tiboot3.bin eMMC
               * cp tifs.bin eMMC
               * cp app eMMC
               * cp lateapp1 eMMC
               * cp lateapp2 eMMC
               * cp tidtb_linux.appimage eMMC
               * cp tikernelimage_linux.appimage eMMC
               * cp atf_optee.appimage eMMC
    • Change boot mode to eMMC UDA partition and boot the board: SW8: 1000 0000 SW9: 0000 0000

    Q2. I carefully checked the content of the patches,most of the modifications revolve around the bootapp under the path:$(pdk_path)/packages/ti/boot/sbl/example/boot_app; 

    But in fact, what bootapp we are using is called can_boot_app_mcu_rtos_mcu1_0_release.appimage under the path:$mcusw_path/mcuss_demos/boot_app_mcu_rtos. It also has function to boot linux. The error message is the same as when I first report the question.

    So that, how to fix problem 1, I would prefer to solve problem 2 because it is the program we are actually using in our project.

    Thanks

  • Hi Gokul

    Add some supplements。

    In the previous reply post, The error in question 1 has been confirmed because I copied the wrong image:sbl_boot_app_emmc_uda_j7200_evm_mcu1_0_freertos_TestApp_release.appimage, I sould copy sbl_boot_app_emmc_uda_linux_j7200_evm_mcu1_0_freertos_TestApp_release.appimage.

    And when use sbl_boot_app_emmc_uda_linux_j7200_evm_mcu1_0_freertos_TestApp_release.appimage, the errors is same as Q2.

    So now Q1 and Q2 have same error that can not boot from emmc UDA

  • Hi Shicheng,

    Can you try the following steps:

    • Follow all the steps mentioned above.
    • Download the 10.0 linux SDK of J7200.
    • Go to <LINUX_SDK>/board-support/<Linux folder>/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts and make the following edits:
      • ie:the bootargs parameter needs to be added as per the below image.
    • After that go back to the <Linux SDK> directory and run the following command :
      • make linux-dtbs
    • Copy the dtb present in <LINUX_SDK>/board-support/<Linux folder>/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dtb to the the following folder:

      • <PDK FOLDER>/packages/ti/boot/sbl/tools/combined_appimage/bin/j7200_evm
    • Copy the  k3-j7200-common-proc-board.dtb  to <PDK FOLDER>/packages/ti/boot/sbl/tools/combined_appimage/bin/j7200_evm and rename it as  as base-board.dtb
    • Now,Run the constructappimageshlos.sh present in <PDK>/packages/ti/boot/sbl/example/boot_app/scripts/hlos
    • Copy the tidtb_linux.appimage to the eMMC FAT32 partition

    Regards

    Gokul

  • Hi Gokul

    Now,Run the constructappimageshlos.sh present in <PDK>/packages/ti/boot/sbl/example/boot_app/scripts/hlos

    Q1. There is no such path and file in SDK 10.0.0.3, see bellow pitcure:

    Q2. I only find a file called constructappimageshlos.sh  in path:<RTOS_SDK FOLDER>/mcusw/mcuss_demos/boot_app_mcu_rtos/main_domain_apps/scripts/hlos

    And the Q2 method is what we are actually using, which is what I mentioned to you in my previous reply,  use can_boot_app_mcu_rtos_mcu1_0_release.appimage.

    By the way, I use constructappimageshlos.sh  in path:<RTOS_SDK FOLDER>/mcusw/mcuss_demos/boot_app_mcu_rtos/main_domain_apps/scripts/hlos generate tidtb_linux.appimage, tikernelimage_linux.appimage, atf_optee.appimage and copy those to the eMMC FAT32 partition, it report same errors.

    So I think it's no problem with linux kernel and dtb, Based on this, I made the following attempts,Please carefully review:

    Firstly, do the same steps to generate and copy files :tiboot3.bin , tifs.bin, app, lateapp1, tidtb_linux.appimage, tikernelimage_linux.appimage, atf_optee.appimage to  SD card boot partition 

    Tes1: SBL from SD card, and rootfs in SD card too eg:root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait

    copy sbl_mmcsd_img_mcu1_0_release.tiimage to SD card boot partition and rename it as tiboo3.bin

    copy sbl_boot_app_mmcsd_linux_j7200_evm_mcu1_0_freertos_TestApp_release.appimage and rename it as app

    RESULT: It can boot linux and login successfully!

    Tes2: SBL from SD card, and rootfs in eMMC UDA eg:root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait

    Just rebuild the dtb as the bootargs changed and replace it in SD card boot partition. All other files are same with TEST1

    RESULT: It can boot linux and login successfully!

    TEST3: SBL from SD card, but rootfs in eMMC UDA  eg:root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait

    still copy sbl_mmcsd_img_mcu1_0_release.tiimage to SD card boot partition and rename it as tiboo3.bin

    copy sbl_boot_app_emmc_uda_linux_j7200_evm_mcu1_0_freertos_TestApp_release.appimage  to SD card boot partition and rename it as app

    Keep only three files in boot partition of SD card and delete other files.

    Because other files are in boot parition in eMMC UDA, rootfs is also in rootfs partition in eMMC UDA.

    RESULT: SBL from SD card can load app, and app can load kernel, but when kernel load roots, it report the same errors as I mentioned before

    So I think there are some problems in app: sbl_boot_app_emmc_uda_linux_j7200_evm_mcu1_0_freertos_TestApp_release.appimage

    Am I right? Please check

    Thanks

  • Hi Shicheng,

    Just to confirm in Test 3 ,you have taken SBL from emmc uda and not SD card right?Also you are using the tidtb_linux.appimage respective to emmc [ie:dtb with bootargs changed to emmc(/dev/mmcblk0p2)] right,while booting sbl from emmc UDA?

    Regards

    Gokul

  • Hi Gokul

    you have taken SBL from emmc uda and not SD card right?

    No I use sbl_mmcsd_img_mcu1_0_release.tiimage to taken SBL from SD card

    Also you are using the tidtb_linux.appimage respective to emmc [ie:dtb with bootargs changed to emmc(/dev/mmcblk0p2)] right,while booting sbl from emmc UDA?

    There are only three files in SD card: tiboo3.bin, app, tifs.bin. And lateapp1, tidtb_linux.appimage, tikernelimage_linux.appimage, atf_optee.appimage are all in eMMC FAT32 partition.

    In this case, load tiboot3.bin from SD card, and then load tifs.bin, next load app. (app is sbl_boot_app_emmc_uda_linux_j7200_evm_mcu1_0_freertos_TestApp_release.appimage compile with command: make BOARD=j7200_evm CORE=mcu1_0 boot_app_emmc_uda_linux -sj)

    But app load lateapp1, tidtb_linux.appimage, tikernelimage_linux.appimage, atf_optee.appimage from eMMC UDA and it's successful.

    But kernel load rootfs  which is in /dev/mmcblk0p2 failed.

    The purpose of my doing this is to compare with TEST2, only change app. And kernel is load successful, but rootfs in eMMC is failed

  • Hi Shicheng,

    Have you tried booting everything including SBL and bootapp from emmc UDA?

    The reason I am asking this is because,we do not currently support taking SBL and bootapp from SD mixed with taking the other files like lateapp,atf/optee,kernel and dtb app image from eMMC.

    Regards

    Gokul

  • Hi Gokul

    Thanks for your replyYes,

    Have you tried booting everything including SBL and bootapp from emmc UDA?

    Yes, I have indeed done so, And this was the context when I first raised this question. I have add new patches in current SDK 10.0, but it not worked, still report error when loading rootfs eg: mmc0: running CQE recovery

    The reason I am asking this is because,we do not currently support taking SBL and bootapp from SD mixed with taking the other files like lateapp,atf/optee,kernel and dtb app image from eMMC.

    The mixed method was solely employed for comparative tesing to indentify the reason of the issues. In practice, such a mixed methodology would not be implemented in actual projects.

    So now, SBL booting every thing from emmc UDA, still report error: mmc0: running CQE recovery, but SBL from SD card is OK.

    How to fix it? 

    And have your help check the hardware schematics of eMMC. Is there any problem?

    Thanks

  • Hi Shicheng,

    Regarding this , I will try it on our end and get back to you.

    I will also loop in the hardware expert to see if there any issues in the hardware schematics.

    Regards

    Gokul

  • Hi Gokul

    Add some information.

    We add some debug print in mmc driver, and found that error:

    mmc0: cqhci:IRQ status: 0x00000002   cmd_err0r=0 data_error=-5

    Maybe you can see some useful information from this.

    Thanks

  • Hi Shicheng,

    I have reproduced this issue on my end and have reported this issue to the internal team.

    An alternative that I would suggest would be to use the SBL development workflow which goes through u-boot:

    I am attaching the steps for the same below:

    • Copy the below file as tiboot3.bin to the boot partition (fat32) partition of emmc uda/

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/sbl_5F00_emmc_5F00_uda_5F00_img_5F00_hlos_5F00_mcu1_5F00_0_5F00_release.tiimage

    • Copy the below file as app to the boot partition (fat32) partition of emmc uda.
      • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/combined_5F00_dev.appimage
    • Copy the below file as tifs.bin to the boot partition (fat32) partition of emmc uda.
      • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/2746.tifs.bin
    • Copy the below file as u-boot.img to the boot partition (fat32) partition of emmc uda.
      • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/5460.u_2D00_boot.img
    • Once that is done,boot using emmc uda and get into the uboot command prompt and enter the following commands:
      • >setenv args_mmc "run finduuid;setenv bootargs console=ttyS2,115200n8  root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait"
        >setenv bootdev 0
        >setenv mmcdev 0
        >setenv bootpart 0:2

    NOTE:ENSURE that rootfs is present in (/dev/mmcblk0p2)[EXT4] partition of emmc.

    Regards

    Gokul

  • Hi Gokul

    Thanks for your reply.

    An alternative that I would suggest would be to use the SBL development workflow which goes through u-boot:

    We have already verified that boot with u-boot from emmc is OK.

    The finally method we want to use is still boot with SBL from emmc.

    I have reproduced this issue on my end and have reported this issue to the internal team.

    It is a good news that you can reproduce the problem. Is there any process?

  • HI Shicheng,

    I have reproduced this issue on my end and have reported this issue to the internal team.

    We have filed a Jira for the same and they have prioritized this issue.This issue will mostly be fixed in the next release which is in july-august.

    Really sorry for reproducing this issue late and for the inconvenience.

    Regards

    Gokul

  • Hi Gokul

    We have filed a Jira for the same and they have prioritized this issue.This issue will mostly be fixed in the next release which is in july-august.

    That is a good news.

    And can you send me the patch if there are any modify, wo do not want to change the new release SDK as the current version is already stable.

    Thanks