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.
Hi,
I want to boot from ospi using sbl mode, but the kernel fails to load the OSPI driver. It dose not recognize the ospi partitions and cannot enter ubifs.
This SDK version is 08_02_00_04.(BOARD=j721e_evm)
Here are my steps:
1.ospi partitions:
mtdparts=47040000.spi.0:512k(ospi.tiboot3),512k(ospi.tifs),24M(ospi.app),20M(ospi.reserve),19328k@45m(ospi.rootfs),128k(ospi.phypattern)
2.use dfu to burn images to the corresponding partitions of ospi respectively
(The app is generated by combined_appimage/makefile, including ipc_echo_testb_freertos_mcu1_0_release_strip.xer5f, bl32.bin, Image, k3-j721e-common-proc-board.dtb, bl31.bin )
(bootargs in devicetree is bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),512k(ospi.tifs),24M(ospi.app),20M(ospi.reserve),19328k@45m(ospi.rootfs),128k(ospi.phypattern) root=ubi0:rootfs rw ubi.mtd=ospi.rootfs rootfstype=ubifs rootwait=1)
3.set the boot pin to boot from ospi
4.kernel print
Hi,
Could you please share the boot sequence? Is it SBL --> ATF --> Linux. Please share that.
Its possible that SBL leaves OSPI in a state that Kernel is not able to comprehend.
Please share the complete boot logs in a text file.
Also can you try to boot using SPL/U-boot?
- Keerthy
Hi,
1.the boot sequence is SBL --> ATF --> Linux.
2.'ospi_sbl_log-MCU_Serial2.txt' and 'ospi_kernel_log-Main_Serial1.txt' are the boot logs.
3.to optimize boot time, I'm not going to use SPL/U-boot.
4.there is a similar case - https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1048083/tda4vm-tda4-cannot-partition-ospi-flash-when-booting-through-ospi-flash
SBL Revision: 01.00.10.01 (Jul 6 2022 - 09:32:24) TIFS ver: 22.1.1--v2022.01 (Terrific Llam
NOTICE: BL31: v2.5(release):08.01.00.006-dirty NOTICE: BL31: Built : 21:03:57, Mar 23 2022 ERROR: GTC_CNTFID0 is 0! Assuming 200000000 Hz. Fix Bootloader [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080] [ 0.000000] Linux version 5.10.100-g261e0a90da96-dirty (chens@ubuntu) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #22 SMP PREEMPT Fri Jul 15 13:42:56 CST 2022 [ 0.000000] Machine model: Texas Instruments K3 J721E SoC [ 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] 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] Reserved memory: created DMA memory pool at 0x00000000ac000000, size 2 MiB [ 0.000000] OF: reserved mem: initialized node r5f-virtual-eth-queues@ac000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000ac200000, size 30 MiB [ 0.000000] OF: reserved mem: initialized node r5f-virtual-eth-buffers@ac200000, compatible id shared-dma-pool [ 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-0x00000000a8ffffff] [ 0.000000] node 0: [mem 0x00000000a9000000-0x00000000a9ffffff] [ 0.000000] node 0: [mem 0x00000000aa000000-0x00000000abbfffff] [ 0.000000] node 0: [mem 0x00000000abc00000-0x00000000abffffff] [ 0.000000] node 0: [mem 0x00000000ac000000-0x00000000adffffff] [ 0.000000] node 0: [mem 0x00000000ae000000-0x00000000ffffffff] [ 0.000000] node 0: [mem 0x0000000880000000-0x00000008ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff] [ 0.000000] cma: Reserved 512 MiB at 0x00000000e0000000 [ 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.2 [ 0.000000] percpu: Embedded 2 pages/cpu s49880 r8192 d73000 u131072 [ 0.000000] Detected PIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: EL2 vector hardening [ 0.000000] CPU features: kernel page table isolation forced ON by KASLR [ 0.000000] CPU features: detected: Kernel page table isolation (KPTI) [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65472 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),512k(ospi.tifs),24M(ospi.app),20M(ospi.reserve),19328k@45m(ospi.rootfs),128k(ospi.phypattern) root=ubi0:rootfs rw ubi.mtd=ospi.rootfs rootfstype=ubifs rootwait=1 [ 0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes, linear) [ 0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x00000000dc000000-0x00000000e0000000] (64MB) [ 0.000000] Memory: 3339136K/4194304K available (10880K kernel code, 1288K rwdata, 4352K rodata, 1856K init, 755K bss, 330880K 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 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] 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] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: 16 PPIs implemented [ 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: allocated 1048576 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 @0x00000008800b0000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008800c0000 [ 0.000000] random: get_random_bytes called from start_kernel+0x31c/0x4c4 with crng_init=0 [ 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.008401] Console: colour dummy device 80x25 [ 0.012962] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000) [ 0.023633] pid_max: default: 32768 minimum: 301 [ 0.028379] LSM: Security Framework initializing [ 0.033122] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) [ 0.040689] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) [ 0.049630] rcu: Hierarchical SRCU implementation. [ 0.054689] Platform MSI: msi-controller@1820000 domain created [ 0.060935] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created [ 0.070234] EFI services will not be available. [ 0.074980] smp: Bringing up secondary CPUs ... ERROR: GTC_CNTFID0 is 0! Assuming 200000000 Hz. Fix Bootloader [ 0.085985] Detected PIPT I-cache on CPU1 [ 0.086010] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000 [ 0.086020] GICv3: CPU1: using allocated LPI pending table @0x00000008800d0000 [ 0.086054] CPU1: Booted secondary processor 0x0000000001 [0x411fd080] [ 0.086101] smp: Brought up 1 node, 2 CPUs [ 0.115447] SMP: Total of 2 processors activated. [ 0.120252] CPU features: detected: 32-bit EL0 Support [ 0.125505] CPU features: detected: CRC32 instructions [ 0.139209] CPU: All CPU(s) started at EL2 [ 0.143403] alternatives: patching kernel code [ 0.148397] devtmpfs: initialized [ 0.157183] KASLR disabled due to lack of seed [ 0.161838] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.171801] futex hash table entries: 512 (order: -1, 32768 bytes, linear) [ 0.179485] pinctrl core: initialized pinctrl subsystem [ 0.185062] DMI not present or invalid. [ 0.189278] NET: Registered protocol family 16 [ 0.196617] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations [ 0.203920] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.211922] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.220229] thermal_sys: Registered thermal governor 'step_wise' [ 0.220232] thermal_sys: Registered thermal governor 'power_allocator' [ 0.226680] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.240324] ASID allocator initialised with 32768 entries [ 0.265430] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages [ 0.272286] HugeTLB registered 512 MiB page size, pre-allocated 0 pages [ 0.279043] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.286884] cryptd: max_cpu_qlen set to 1000 [ 0.292864] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected [ 0.301714] vsys_3v3: supplied by evm_12v0 [ 0.306085] vsys_5v0: supplied by evm_12v0 [ 0.310841] iommu: Default domain type: Translated [ 0.316019] SCSI subsystem initialized [ 0.320133] mc: Linux media interface: v0.10 [ 0.324508] videodev: Linux video capture interface: v2.00 [ 0.330137] pps_core: LinuxPPS API ver. 1 registered [ 0.335210] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.344547] PTP clock support registered [ 0.348564] EDAC MC: Ver: 3.0.0 [ 0.352336] FPGA manager framework [ 0.355852] Advanced Linux Sound Architecture Driver Initialized. [ 0.362448] clocksource: Switched to clocksource arch_sys_counter [ 0.368859] VFS: Disk quotas dquot_6.6.0 [ 0.372903] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes) [ 0.382572] NET: Registered protocol family 2 [ 0.387153] IP idents hash table entries: 65536 (order: 3, 524288 bytes, linear) [ 0.395707] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear) [ 0.404474] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear) [ 0.412669] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear) [ 0.420465] TCP: Hash tables configured (established 32768 bind 32768) [ 0.427209] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear) [ 0.434103] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear) [ 0.441484] NET: Registered protocol family 1 [ 0.446169] RPC: Registered named UNIX socket transport module. [ 0.452230] RPC: Registered udp transport module. [ 0.457034] RPC: Registered tcp transport module. [ 0.461836] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.468419] PCI: CLS 0 bytes, default 64 [ 0.472750] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 0.483027] Initialise system trusted keyrings [ 0.487636] workingset: timestamp_bits=46 max_order=16 bucket_order=0 [ 0.496048] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.502273] NFS: Registering the id_resolver key type [ 0.507450] Key type id_resolver registered [ 0.511720] Key type id_legacy registered [ 0.515840] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.522688] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.530326] 9p: Installing v9fs 9p2000 file system support [ 0.555546] Key type asymmetric registered [ 0.559734] Asymmetric key parser 'x509' registered [ 0.564730] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243) [ 0.572288] io scheduler mq-deadline registered [ 0.576913] io scheduler kyber registered [ 0.582210] pinctrl-single 4301c000.pinctrl: 94 pins, size 376 [ 0.588390] pinctrl-single 11c000.pinctrl: 173 pins, size 692 [ 0.597057] k3-ringacc 2b800000.ringacc: Failed to get MSI domain [ 0.603329] k3-ringacc 3c000000.ringacc: Failed to get MSI domain [ 0.611182] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled [ 0.619303] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf) [ 0.628266] arm-smmu-v3 36600000.iommu: allocated 524288 entries for cmdq [ 0.637092] arm-smmu-v3 36600000.iommu: allocated 524288 entries for evtq [ 0.644792] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs [ 0.657695] brd: module loaded [ 0.663645] loop: module loaded [ 0.667484] megasas: 07.714.04.00-rc1 [ 0.673035] tun: Universal TUN/TAP device driver, 1.6 [ 0.678491] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 0.684895] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 0.690965] sky2: driver version 1.30 [ 0.695231] VFIO - User Level meta-driver version: 0.3 [ 0.700897] i2c /dev entries driver [ 0.705177] sdhci: Secure Digital Host Controller Interface driver [ 0.711499] sdhci: Copyright(c) Pierre Ossman [ 0.716137] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.722494] ledtrig-cpu: registered to indicate activity on CPUs [ 0.728818] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 0.735949] optee: probing for conduit method. [ 0.740505] optee: revision 3.12 (3d47a131) [ 0.740740] optee: initialized driver [ 0.750141] NET: Registered protocol family 17 [ 0.754753] 9pnet: Installing 9P2000 support [ 0.759142] Key type dns_resolver registered [ 0.763586] Loading compiled-in X.509 certificates [ 0.773241] k3-ringacc 2b800000.ringacc: Failed to get MSI domain [ 0.779578] k3-ringacc 3c000000.ringacc: Failed to get MSI domain [ 0.787854] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam') [ 0.817751] random: fast init done [ 0.849282] davinci-mcasp 2ba0000.mcasp: IRQ common not found [ 0.856961] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz [ 0.863060] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz [ 0.869119] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz [ 0.875587] pca953x 3-0020: supply vcc not found, using dummy regulator [ 0.882416] pca953x 3-0020: using no AI [ 0.907308] pca953x 3-0022: supply vcc not found, using dummy regulator [ 0.914109] pca953x 3-0022: using AI [ 0.918397] gpio-480 (CTRL_PM_I2C_OE): hogged as output/high [ 0.924383] gpio-481 (MCASP/TRACE_MUX_S0): hogged as output/low [ 0.930630] gpio-482 (MCASP/TRACE_MUX_S1): hogged as output/high [ 0.937138] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz [ 0.943610] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz [ 0.953859] omap_i2c 2020000.i2c: bus 5 rev0.12 at 400 kHz [ 0.960201] pca953x 6-0020: supply vcc not found, using dummy regulator [ 0.967016] pca953x 6-0020: using no AI [ 0.995167] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz [ 1.001230] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz [ 1.007197] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz [ 1.013489] pca953x 9-0020: supply vcc not found, using dummy regulator [ 1.020308] pca953x 9-0020: using no AI [ 1.046778] omap_i2c 2060000.i2c: bus 9 rev0.12 at 400 kHz [ 1.053212] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created [ 1.063195] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created [ 1.071999] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created [ 1.081837] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created [ 1.103162] j721e-pcie 2900000.pcie: host bridge /bus@100000/pcie@2900000 ranges: [ 1.110839] j721e-pcie 2900000.pcie: IO 0x0010001000..0x0010010fff -> 0x0010001000 [ 1.119115] j721e-pcie 2900000.pcie: MEM 0x0010011000..0x0017ffffff -> 0x0010011000 [ 1.127392] j721e-pcie 2900000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000 [ 2.142979] j721e-pcie 2900000.pcie: PCI host bridge to bus 0000:00 [ 2.149406] pci_bus 0000:00: root bus resource [bus 00-ff] [ 2.155012] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x10001000-0x10010fff]) [ 2.164702] pci_bus 0000:00: root bus resource [mem 0x10011000-0x17ffffff] [ 2.171756] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400 [ 2.177895] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits [ 2.187764] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits [ 2.197657] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xe8 may corrupt adjacent RW1C bits [ 2.207618] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits [ 2.217586] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits [ 2.227546] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xb2 may corrupt adjacent RW1C bits [ 2.237543] pci 0000:00:00.0: supports D1 [ 2.241637] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 2.247508] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x84 may corrupt adjacent RW1C bits [ 2.257473] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x208 may corrupt adjacent RW1C bits [ 2.267529] pci 0000:00:00.0: reg 0x224: [mem 0x00000000-0x003fffff 64bit] [ 2.274555] pci 0000:00:00.0: VF(n) BAR0 space: [mem 0x00000000-0x00ffffff 64bit] (contains BAR0 for 4 VFs) [ 2.284521] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits [ 2.294568] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits [ 2.306517] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 2.316417] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 2.323191] pci 0000:00:00.0: BAR 7: assigned [mem 0x10400000-0x113fffff 64bit] [ 2.330669] pci 0000:00:00.0: PCI bridge to [bus 01] [ 2.335965] pcieport 0000:00:00.0: PME: Signaling with IRQ 61 [ 2.342260] j721e-pcie 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges: [ 2.349925] j721e-pcie 2910000.pcie: IO 0x0018001000..0x0018010fff -> 0x0018001000 [ 2.358200] j721e-pcie 2910000.pcie: MEM 0x0018011000..0x001fffffff -> 0x0018011000 [ 2.366478] j721e-pcie 2910000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000 [ 3.375099] j721e-pcie 2910000.pcie: PCI host bridge to bus 0001:00 [ 3.381510] pci_bus 0001:00: root bus resource [bus 00-ff] [ 3.387115] pci_bus 0001:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x18001000-0x18010fff]) [ 3.396984] pci_bus 0001:00: root bus resource [mem 0x18011000-0x1fffffff] [ 3.404027] pci 0001:00:00.0: [104c:b00d] type 01 class 0x060400 [ 3.410226] pci 0001:00:00.0: supports D1 [ 3.414320] pci 0001:00:00.0: PME# supported from D0 D1 D3hot [ 3.422018] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 3.431902] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01 [ 3.438673] pci 0001:00:00.0: PCI bridge to [bus 01] [ 3.443942] pcieport 0001:00:00.0: PME: Signaling with IRQ 64 [ 3.450220] j721e-pcie 2920000.pcie: host bridge /bus@100000/pcie@2920000 ranges: [ 3.457886] j721e-pcie 2920000.pcie: IO 0x4400001000..0x4400010fff -> 0x0000001000 [ 3.466161] j721e-pcie 2920000.pcie: MEM 0x4400011000..0x4407ffffff -> 0x0000011000 [ 3.474438] j721e-pcie 2920000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000 [ 4.485799] j721e-pcie 2920000.pcie: PCI host bridge to bus 0002:00 [ 4.492227] pci_bus 0002:00: root bus resource [bus 00-ff] [ 4.497833] pci_bus 0002:00: root bus resource [io 0x20000-0x2ffff] (bus address [0x1000-0x10fff]) [ 4.507080] pci_bus 0002:00: root bus resource [mem 0x4400011000-0x4407ffffff] (bus address [0x00011000-0x07ffffff]) [ 4.517853] pci 0002:00:00.0: [104c:b00d] type 01 class 0x060400 [ 4.524053] pci 0002:00:00.0: supports D1 [ 4.528147] pci 0002:00:00.0: PME# supported from D0 D1 D3hot [ 4.535834] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 4.545704] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01 [ 4.552476] pci 0002:00:00.0: PCI bridge to [bus 01] [ 4.557741] pcieport 0002:00:00.0: PME: Signaling with IRQ 67 [ 4.564471] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235 [ 4.574349] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled [ 4.581107] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64 [ 4.590088] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211 [ 4.600241] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled [ 4.607004] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64 [ 4.614971] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 15, base_baud = 6000000) is a 8250 [ 4.624345] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 33, base_baud = 3000000) is a 8250 [ 4.633092] printk: console [ttyS2] enabled [ 4.633092] printk: console [ttyS2] enabled [ 4.641529] printk: bootconsole [ns16550a0] disabled [ 4.641529] printk: bootconsole [ns16550a0] disabled [ 4.651990] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 34, base_baud = 3000000) is a 8250 [ 4.660929] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 35, base_baud = 3000000) is a 8250 [ 4.671476] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled [ 4.681988] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled [ 4.692144] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled [ 4.702382] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled [ 4.713243] scsi host0: ufshcd [ 4.735156] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0 [ 4.758455] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 4.767433] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867 [ 4.775734] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000 [ 4.789675] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0 [ 4.798129] k3-j72xx-soc-thermal 42040000.wkup_vtm0: work around NOT needed!! [ 4.809944] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2 [ 4.821599] cdns-ufshcd 4e84000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0 [ 4.832858] scsi 0:0:0:49488: Well-known LUN TOSHIBA THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6 [ 4.841630] scsi 0:0:0:49476: Well-known LUN TOSHIBA THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6 [ 4.850334] cdns-ufshcd 4e84000.ufs: ufshcd_scsi_add_wlus: BOOT WLUN not found [ 4.857718] scsi 0:0:0:0: Direct-Access TOSHIBA THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6 [ 4.865987] sd 0:0:0:0: Power-on or device reset occurred [ 4.871480] scsi 0:0:0:1: Direct-Access TOSHIBA THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6 [ 4.871527] sd 0:0:0:0: [sda] 8192 4096-byte logical blocks: (33.6 MB/32.0 MiB) [ 4.887176] sd 0:0:0:1: Power-on or device reset occurred [ 4.892589] sd 0:0:0:0: [sda] Write Protect is off [ 4.897463] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 4.905977] sd 0:0:0:1: [sdb] 7808000 4096-byte logical blocks: (32.0 GB/29.8 GiB) [ 4.913553] sd 0:0:0:1: [sdb] Write Protect is off [ 4.918346] sd 0:0:0:0: [sda] Optimal transfer size 65536 bytes [ 4.924281] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 4.930201] davinci-mcasp 2ba0000.mcasp: IRQ common not found [ 4.938615] sd 0:0:0:1: [sdb] Optimal transfer size 65536 bytes [ 4.938863] mmc0: CQHCI version 5.10 [ 4.945314] sd 0:0:0:0: [sda] Attached SCSI disk [ 4.953627] sdb: sdb1 [ 4.956008] sdb: p1 size 499711744 extends beyond EOD, enabling native capacity [ 4.959102] vdd_mmc1: supplied by vsys_3v3 [ 4.967429] sdb: sdb1 [ 4.968270] pca953x 4-0020: supply vcc not found, using dummy regulator [ 4.969799] sdb: p1 size 499711744 extends beyond EOD, truncated [ 4.976440] pca953x 4-0020: using no AI [ 4.986700] sd 0:0:0:1: [sdb] Attached SCSI disk [ 4.994456] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit [ 5.007460] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100 [ 5.014425] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100 [ 5.021364] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100 [ 5.028293] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100 [ 5.035162] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100 [ 5.045637] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8) [ 5.056146] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16) [ 5.070474] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff [ 5.077353] spi-nor: probe of spi0.0 failed with error -2 [ 5.085081] spi-nor spi1.0: mt25qu512a (65536 Kbytes) [ 5.123321] mmc0: Command Queue Engine enabled [ 5.127765] mmc0: new HS200 MMC card at address 0001 [ 5.130457] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 5.140552] mmcblk0: mmc0:0001 S0J56X 14.8 GiB [ 5.141678] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867 [ 5.145231] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB [ 5.153393] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000 [ 5.159359] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB [ 5.172876] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48 [ 5.177985] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (237:0) [ 5.184967] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4 [ 5.198897] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64 [ 5.205242] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0 [ 5.215686] davinci-mcasp 2ba0000.mcasp: IRQ common not found [ 5.215891] mmc1: CQHCI version 5.10 [ 5.233348] debugfs: Directory 'pd:27' with parent 'pm_genpd' already present! [ 5.240599] debugfs: Directory 'pd:26' with parent 'pm_genpd' already present! [ 5.248804] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present! [ 5.256134] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present! [ 5.263480] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present! [ 5.270787] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present! [ 5.278622] UBI error: cannot open mtd ospi.rootfs, error -2 [ 5.284673] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 5.304913] ALSA device list: [ 5.307910] No soundcards found. [ 6.279240] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit [ 6.287482] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19 [ 6.295487] Please append a correct "root=" boot option; here are the available partitions: [ 6.303827] 0100 4096 ram0 [ 6.303828] (driver?) [ 6.309968] 0101 4096 ram1 [ 6.309969] (driver?) [ 6.316112] 0102 4096 ram2 [ 6.316113] (driver?) [ 6.322250] 0103 4096 ram3 [ 6.322252] (driver?) [ 6.328394] 0104 4096 ram4 [ 6.328395] (driver?) [ 6.334494] 0105 4096 ram5 [ 6.334495] (driver?) [ 6.340583] 0106 4096 ram6 [ 6.340584] (driver?) [ 6.346679] 0107 4096 ram7 [ 6.346680] (driver?) [ 6.352769] 0108 4096 ram8 [ 6.352770] (driver?) [ 6.358855] 0109 4096 ram9 [ 6.358857] (driver?) [ 6.364944] 010a 4096 ram10 [ 6.364946] (driver?) [ 6.371123] 010b 4096 ram11 [ 6.371125] (driver?) [ 6.377301] 010c 4096 ram12 [ 6.377302] (driver?) [ 6.383481] 010d 4096 ram13 [ 6.383483] (driver?) [ 6.389662] 010e 4096 ram14 [ 6.389664] (driver?) [ 6.395859] 010f 4096 ram15 [ 6.395860] (driver?) [ 6.402050] 0800 32768 sda [ 6.402052] driver: sd [ 6.408149] 0810 31232000 sdb [ 6.408150] driver: sd [ 6.414245] 0811 31231872 sdb1 00000000-01 [ 6.414246] [ 6.420591] 1f00 65536 mtdblock0 [ 6.420592] (driver?) [ 6.427115] b300 15540224 mmcblk0 [ 6.427116] driver: mmcblk [ 6.433895] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 6.442139] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.100-g261e0a90da96-dirty #22 [ 6.450033] Hardware name: Texas Instruments K3 J721E SoC (DT) [ 6.455847] Call trace: [ 6.458291] dump_backtrace+0x0/0x1a0 [ 6.461939] show_stack+0x18/0x68 [ 6.465243] dump_stack+0xd0/0x12c [ 6.468630] panic+0x16c/0x334 [ 6.471675] mount_block_root+0x1c4/0x254 [ 6.475669] prepare_namespace+0x90/0x170 [ 6.479664] kernel_init_freeable+0x25c/0x2a0 [ 6.484005] kernel_init+0x14/0x114 [ 6.487478] ret_from_fork+0x10/0x34 [ 6.491042] SMP: stopping secondary CPUs [ 6.494954] Kernel Offset: 0x80000 from 0xffff800010000000 [ 6.500420] PHYS_OFFSET: 0x80000000 [ 6.503894] CPU features: 0x0040022,20806008 [ 6.508148] Memory Limit: none [ 6.511193] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
SBL seems to initialize SPI in a mode different from 1S mode expected by Linux kernel. Can you soft reset the flash in SBL?
Do you see this behavior with other boot modes like MMC or eMMC?
- Keerthy
Hi,
Is there any examples to achieve that the ospi configuration in sbl is consistent with the ospi configuration in the Linux kernel,like both 1S mode?
I tried adding a soft reset after SBL exits OSPI, the Linux kernel can successfully initialize OSPI, but the app running on mcu1_0 cannot open OSPI.
After the SBL is started, the app of mcu1_0 needs to read the data of ospi, and the linux kernel can also initialize and access ospi. The ospi configuration should be the same in all three cases.
After the SBL is started, the app of mcu1_0 needs to read the data of ospi, and the linux kernel can also initialize and access ospi. The ospi configuration should be the same in all three cases
Sharing of OSPI between MCU & Linux will be an issue. Can you try rmmod of OSPI from kernel & then use it from MCU1_0?
You will need to build OSPI as a module in Linux. By default it is built in kernel. I have not tried that. Just a work around.
- Keerthy
Thank you for your reply.
Sharing of OSPI between MCU & Linux will be an issue. Can you try rmmod of OSPI from kernel & then use it from MCU1_0?
We want to implement monitoring A72 using mcu1_0. After the Linux system crashes, the mcu1_0 is responsible for resetting and rebootting the A72 (already done).Therefore, exiting Linux abnormally does not guarantee that the ospi driver will be successfully uninstalled every time.
Is there any examples to achieve that the ospi configuration in sbl is consistent with the ospi configuration in the Linux kernel,like both 1S mode?
ospi should be initialized with the same configuration in mcu1_0 and Linux so that mcu1_0 can use ospi normally after Linux exits abnormally. mcu1_0 reads image data from ospi to start A72.
Ospi can be owned only by one core. Dynamically sharing OSPI by more than one core is not supported in the SDK
Closing this thread.
Best Regards,
Keerthy