Tool/software:
Hi experts,
Our SDK is TDA4VE SDK 9.2. We use an 8GB DDR, and config it in u-boot as the patch file(see the attachment). The linux rootfs is tiny fs. It's ok to run the sdk8.4 linux kernel. But It's fail to run the sdk9.2 linux kernel. It's blocked with the log "[ 0.000000] software IO TLB: area num 2.".
The u-boot patch is as follow:
uboot.patch.txt
Index: arch/arm/dts/k3-j721s2-ddr-evm-lp4-4266.dtsi =================================================================== --- arch/arm/dts/k3-j721s2-ddr-evm-lp4-4266.dtsi (revision 5548) +++ arch/arm/dts/k3-j721s2-ddr-evm-lp4-4266.dtsi (working copy) @@ -1,20 +1,20 @@ // SPDX-License-Identifier: GPL-2.0+ /* -#define MULTI_DDR_CFG_EMIFS_ACTIVE 3 +#define MULTI_DDR_CFG_EMIFS_ACTIVE 2 #define DDRSS0_CTL_00_DATA 0x00000B00 #define DDRSS0_CTL_01_DATA 0x00000000 Index: arch/arm/dts/k3-j721s2-som-p0.dtsi =================================================================== --- arch/arm/dts/k3-j721s2-som-p0.dtsi (revision 5548) +++ arch/arm/dts/k3-j721s2-som-p0.dtsi (working copy) @@ -13,7 +13,7 @@ device_type = "memory"; /* 16 GB RAM */ reg = <0x00000000 0x80000000 0x00000000 0x80000000>, - <0x00000008 0x80000000 0x00000003 0x80000000>; + <0x00000008 0x80000000 0x00000001 0x80000000>; bootph-pre-ram; };
The sdk9.2 linux boot log is as follow:
sdk9.2_linux_log.txt
U-Boot SPL 2023.04 (Dec 13 2024 - 11:32:48 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.2--v09.01.02 (Kool Koala)') Trying to boot from MMC2 Authentication passed Authentication passed U-Boot 2023.04 (Dec 13 2024 - 11:32:48 +0000) SoC: J721S2 SR1.0 HS-SE Model: Texas Instruments J721S2 EVM DRAM: Monitor len: 00118D40 Ram size: 80000000 Ram top: 100000000 Reserving 1123k for U-Boot at: ffed7000 Reserving 33024k for malloc() at: fde97000 Reserving 152 Bytes for Board Info at: fde96f60 Reserving 424 Bytes for Global Data at: fde96db0 Reserving 80672 Bytes for FDT at: fde83290 RAM Configuration: Bank #0: 80000000 2 GiB Bank #1: 880000000 6 GiB DRAM: 2 GiB (effective 8 GiB) New Stack Pointer is: fde83280 Relocation Offset is: 7f6d7000 Relocating to ffed7000, new gd at fde96db0, sp at fde83280 Core: 78 devices, 28 uclasses, devicetree: separate Flash: 0 Bytes MMC: mmc@4f80000: 0, mmc@4fb0000: 1 Loading Environment from nowhere... OK In: serial@2880000 Out: serial@2880000 Err: serial@2880000 uboot upgrade_main in ... set wdt enable regVal=0xbf TF card init OK!!!!!!!!!!!!!! device name mmc, dev=1, target_dev=1! Interface: mmc Device 1: Vendor: Man 000000 Snr 80000401 Rev: 1.2 Prod: APPSD Type: Removable Hard Disk Capacity: 30200.0 MB = 29.4 GB (61849600 x 512) Filesystem: FAT32 "boot " [upgrade_main]:Not found u-boot update file,fail!! ERROR:uboot update fail! [setPart]:pMediaType:0 pPartNum:0 switch to partitions #0, OK mmc0(part 0) is current device MMC read: dev # 0, block # 3072000, count 2048 ... 2048 blocks read: OK uboot version diff, old=V0.2.0_240828, new=V0.2.1_241113 MMC write: dev # 0, block # 3072000, count 2048 ... 2048 blocks written: OK MMC read: dev # 0, block # 3072000, count 2048 ... 2048 blocks read: OK uboot_getSysFlag -> uboot_mmcWrite read back ok [uboot_getSysFlag] sysFlag:0 UpdateRes:0 Mac: packtime: Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work Failed to load '/lib/firmware/j721s2-main-r5f0_0-fw' Failed to load '/lib/firmware/j721s2-main-r5f0_1-fw' Failed to load '/lib/firmware/j721s2-c71_0-fw' Failed to load '/lib/firmware/j721s2-c71_1-fw' 18670080 bytes read in 1822 ms (9.8 MiB/s) 92765 bytes read in 24 ms (3.7 MiB/s) Working FDT set to 88000000 10421 bytes read in 16 ms (635.7 KiB/s) ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Working FDT set to 88000000 Loading Device Tree to 000000008fee6000, end 000000008fffffff ... OK Working FDT set to 8fee6000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080] [ 0.000000] Linux version 6.1.80 (root@b6efe7825239) (aarch64-oe-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #2 SMP PREEMPT Thu Oct 10 01:27:59 UTC 2024 [ 0.000000] Machine model: Texas Instruments J721S2 EVM [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002880000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created CMA memory pool at 0x00000009fd000000, size 48 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-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 vision-apps-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 vision-apps-r5f-dma-memory@a1000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 31 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a1100000, 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 vision-apps-r5f-dma-memory@a3000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 31 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a3100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 28 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-rtos-ipc-memory-region@a8000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a9c00000, size 96 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-dma-memory@a9c00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000afc00000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c71-dma-memory@afc00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000afd00000, size 79 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c71_0-memory@afd00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000b4c00000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c71_1-dma-memory@b4c00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000b4d00000, size 31 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-c71_1-memory@b4d00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000b6c00000, size 40 MiB [ 0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-lo@b6c00000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000b9400000, size 432 MiB [ 0.000000] OF: reserved mem: initialized node c7x_ddr_heaps_hi-apps-core-heap-memory-hi@b9400000, compatible id shared-dma-pool [ 0.000000] OF: reserved mem: initialized node vision_apps_shared-memories, compatible id dma-heap-carveout [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal [mem 0x0000000100000000-0x00000009ffffffff] [ 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-0x00000000a4ffffff] [ 0.000000] node 0: [mem 0x00000000a5000000-0x00000000a7ffffff] [ 0.000000] node 0: [mem 0x00000000a8000000-0x00000000d43fffff] [ 0.000000] node 0: [mem 0x00000000d4400000-0x00000000ffffffff] [ 0.000000] node 0: [mem 0x0000000880000000-0x00000009ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000009ffffffff] [ 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 s41064 r8192 d32664 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] Built 1 zonelists, mobility grouping on. Total pages: 2064384 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02880000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);spi-nand0:512k(ospi_nand.tiboot3),2m(ospi_nand.tispl),4m(ospi_nand.u-boot),256k(ospi_nand.env),256k(ospi_nand.env.backup),98048k@32m(ospi_nand.rootfs),256k@130816k(ospi_nand.phypattern) root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait blkdevparts=mmcblk0:300M(rootfs.ext4),300M(vendor.ext4),300M(rootfs_b.ext4),300M(vendor_b.ext4),300M(rfu0),1M(private),1M(b_private),2M(dtc),32M(license),64M(config),1024M(update),1024M(logs),1024M(cache),-(user) [ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: area num 2.
The memory dts about linux is as follow:
0044.k3-j721s2-rtos-memory-map.dtsi.txt
// SPDX-License-Identifier: GPL-2.0 /* * Vision-apps: device-tree overlay * * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ */ #include <dt-bindings/soc/ti,sci_pm_domain.h> /dts-v1/; /plugin/; &{/} { dma_buf_phys { compatible = "ti,dma-buf-phys"; }; }; &mcu_r5fss0_core0_memory_region { status = "disabled"; }; &mcu_r5fss0_core0_dma_memory_region { status = "disabled"; }; &mcu_r5fss0_core1_dma_memory_region { status = "disabled"; }; &mcu_r5fss0_core1_memory_region { status = "disabled"; }; &main_r5fss0_core0_dma_memory_region { status = "disabled"; }; &main_r5fss0_core0_memory_region { status = "disabled"; }; &main_r5fss0_core1_dma_memory_region { status = "disabled"; }; &main_r5fss0_core1_memory_region { status = "disabled"; }; &main_r5fss1_core0_dma_memory_region { status = "disabled"; }; &main_r5fss1_core0_memory_region { status = "disabled"; }; &main_r5fss1_core1_dma_memory_region { status = "disabled"; }; &main_r5fss1_core1_memory_region { status = "disabled"; }; &c71_0_dma_memory_region { status = "disabled"; }; &c71_0_memory_region { status = "disabled"; }; &c71_1_dma_memory_region { status = "disabled"; }; &c71_1_memory_region { status = "disabled"; }; &rtos_ipc_memory_region { status = "disabled"; }; &reserved_memory { #address-cells = <2>; #size-cells = <2>; vision_apps_mcu_r5fss0_core0_dma_memory_region: vision-apps-r5f-dma-memory@a0000000 { compatible = "shared-dma-pool"; reg = <0x00 0xa0000000 0x00 0x00100000>; no-map; }; vision_apps_mcu_r5fss0_core0_memory_region: vision-apps-r5f-memory@a0100000 { compatible = "shared-dma-pool"; reg = <0x00 0xa0100000 0x00 0x00f00000>; no-map; }; vision_apps_main_r5fss0_core0_dma_memory_region: vision-apps-r5f-dma-memory@a1000000 { compatible = "shared-dma-pool"; reg = <0x00 0xa1000000 0x00 0x00100000>; no-map; }; vision_apps_main_r5fss0_core0_memory_region: vision-apps-r5f-memory@a1100000 { compatible = "shared-dma-pool"; reg = <0x00 0xa1100000 0x00 0x01f00000>; no-map; }; vision_apps_main_r5fss0_core1_dma_memory_region: vision-apps-r5f-dma-memory@a3000000 { compatible = "shared-dma-pool"; reg = <0x00 0xa3000000 0x00 0x00100000>; no-map; }; vision_apps_main_r5fss0_core1_memory_region: vision-apps-r5f-memory@a3100000 { compatible = "shared-dma-pool"; reg = <0x00 0xa3100000 0x00 0x01f00000>; no-map; }; vision_apps_rtos_ipc_memory_region: vision-apps-rtos-ipc-memory-region@a8000000 { compatible = "shared-dma-pool"; reg = <0x00 0xa8000000 0x00 0x01c00000>; no-map; }; vision_apps_memory_region: vision-apps-dma-memory@a9c00000 { compatible = "shared-dma-pool"; reg = <0x00 0xa9c00000 0x00 0x06000000>; no-map; }; vision_apps_c71_0_dma_memory_region: vision-apps-c71-dma-memory@afc00000 { compatible = "shared-dma-pool"; reg = <0x00 0xafc00000 0x00 0x00100000>; no-map; }; vision_apps_c71_0_memory_region: vision-apps-c71_0-memory@afd00000 { compatible = "shared-dma-pool"; reg = <0x00 0xafd00000 0x00 0x04f00000>; no-map; }; vision_apps_c71_1_dma_memory_region: vision-apps-c71_1-dma-memory@b4c00000 { compatible = "shared-dma-pool"; reg = <0x00 0xb4c00000 0x00 0x00100000>; no-map; }; vision_apps_c71_1_memory_region: vision-apps-c71_1-memory@b4d00000 { compatible = "shared-dma-pool"; reg = <0x00 0xb4d00000 0x00 0x01f00000>; no-map; }; vision_apps_core_heaps_lo: vision-apps-core-heap-memory-lo@b6c00000 { compatible = "shared-dma-pool"; reg = <0x00 0xb6c00000 0x00 0x02800000>; no-map; }; c7x_ddr_heaps_hi: c7x_ddr_heaps_hi-apps-core-heap-memory-hi@b9400000 { compatible = "shared-dma-pool"; reg = <0x00 0xb9400000 0x00 0x1b000000>; no-map; }; vision_apps_shared_region: vision_apps_shared-memories { compatible = "dma-heap-carveout"; reg = <0x00 0xd4400000 0x00 0x18000000>; }; vision_apps_mcu_r5fss0_core1_dma_memory_region: vision-apps-r5f-dma-memory@880000000 { compatible = "shared-dma-pool"; reg = <0x08 0x80000000 0x00 0x00100000>; no-map; status = "disabled"; }; vision_apps_mcu_r5fss0_core1_memory_region: vision-apps-r5f-memory@880100000 { compatible = "shared-dma-pool"; reg = <0x08 0x80100000 0x00 0x00f00000>; no-map; status = "disabled"; }; vision_apps_main_r5fss1_core0_dma_memory_region: vision-apps-r5f-dma-memory@881000000 { compatible = "shared-dma-pool"; reg = <0x08 0x81000000 0x00 0x00100000>; no-map; status = "disabled"; }; vision_apps_main_r5fss1_core0_memory_region: vision-apps-r5f-memory@881100000 { compatible = "shared-dma-pool"; reg = <0x08 0x81100000 0x00 0x00f00000>; no-map; status = "disabled"; }; vision_apps_main_r5fss1_core1_dma_memory_region: vision-apps-r5f-dma-memory@882000000 { compatible = "shared-dma-pool"; reg = <0x08 0x82000000 0x00 0x00100000>; no-map; status = "disabled"; }; vision_apps_main_r5fss1_core1_memory_region: vision-apps-r5f-memory@882100000 { compatible = "shared-dma-pool"; reg = <0x08 0x82100000 0x00 0x00f00000>; no-map; status = "disabled"; }; }; &mcu_r5fss0_core0 { memory-region = <&vision_apps_mcu_r5fss0_core0_dma_memory_region>, <&vision_apps_mcu_r5fss0_core0_memory_region>; }; &mcu_r5fss0_core1 { memory-region = <&vision_apps_mcu_r5fss0_core1_dma_memory_region>, <&vision_apps_mcu_r5fss0_core1_memory_region>; }; &main_r5fss0_core0 { memory-region = <&vision_apps_main_r5fss0_core0_dma_memory_region>, <&vision_apps_main_r5fss0_core0_memory_region>; }; &main_r5fss0_core1 { memory-region = <&vision_apps_main_r5fss0_core1_dma_memory_region>, <&vision_apps_main_r5fss0_core1_memory_region>; }; &main_r5fss1_core0 { memory-region = <&vision_apps_main_r5fss1_core0_dma_memory_region>, <&vision_apps_main_r5fss1_core0_memory_region>; }; &main_r5fss1_core1 { memory-region = <&vision_apps_main_r5fss1_core1_dma_memory_region>, <&vision_apps_main_r5fss1_core1_memory_region>; }; &c71_0 { memory-region = <&vision_apps_c71_0_dma_memory_region>, <&vision_apps_c71_0_memory_region>; }; &c71_1 { memory-region = <&vision_apps_c71_1_dma_memory_region>, <&vision_apps_c71_1_memory_region>; }; &mcu_r5fss0 { status = "disabled"; };
Best Regards
Hawayi