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.

TDA4VH-Q1: How to boot Kernel and DTB from UFS flash from U-boot command.

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Hi team,

    Could you please share me the u-boot commands to load kernel and dtb from UFS flash?

Thanks & regards,

Albin Raj R J

  • Hi,

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/890300/j721e---ufs-flash/3292089#3292089

    Is that working for you on the TDA4VH? Also are you using the custom board or TI EVM?

    - Keerthy

  • Hi Keerthy,

       thanks for your response. It's working fine. I need to load kernel and dtb from ufs.

    thanks.

  • Hi,

    U-Boot source directory file: include/environment/ti/ufs.h

    Commands:

    #define DEFAULT_UFS_TI_ARGS \
            "scsirootfstype=ext4 rootwait\0" \
            "ufs_finduuid=part uuid scsi ${bootpart} uuid\0" \
            "args_ufs=setenv devtype scsi;setenv bootpart 1:1;" \
            "run ufs_finduuid;setenv bootargs console = ${console} " \
                    "${optargs}" \
                    "root=PARTUUID=${uuid} rw " \
                    "rootfstype=${scsirootfstype};" \
                    "setenv devtype scsi;" \
                    "setenv bootpart 1:1\0" \
            "init_ufs=ufs init; scsi scan; run args_ufs\0" \
            "get_kern_ufs=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${name_kern}\0" \
            "get_fdt_ufs=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
            "get_overlay_ufs=" \
                    "fdt address ${fdtaddr};" \
                    "fdt resize 0x100000;" \
                    "for overlay in $name_overlays;" \
                    "do;" \
                    "load scsi ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && " \
                    "fdt apply ${dtboaddr};" \
                    "done;\0"
    
    #endif

    This was tested a while back. Please check.

    - Keerthy

  • Hi Kreethy,

        Thanks for your response, I used the default configuration and try to boot using following u-boot commands.

    setenv name_kern Image
    setenv get_kern_ufs 'load scsi ${bootpart} ${loadaddr} ${bootdir}/Image'
    setenv get_fdt_ufs 'load scsi ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}'
    setenv findfdt 'setenv name_fdt ${default_device_tree}; if test $board_name = am69-sk; then setenv name_fdt ti/k3-am69-sk.dtb; fi; if test $board_name = j784s4; then setenv name_fdt dtb/ti/k3-j784s4-evm.dtb; fi;'
    setenv bootcmd 'setenv bootpart 1:1; run init_ufs;run findfdt;run get_kern_ufs;run get_fdt_ufs;run run_kern;run ufs_finduuid;run args_ufs'

    But it struck in rootfs. 

    Here I have added the logs,

    U-Boot 2023.04-g71b8c840ca (Nov 27 2023 - 08:55:35 +0000)
    
    SoC:   J784S4 SR1.0 GP
    Model: Texas Instruments J784S4 EVM
    Board: J784S4X-EVM rev E4
    DRAM:  32 GiB
    idle-statesCore:  94 devices, 34 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
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    Net:   eth0: ethernet@46000000port@1
    Hit any key to stop autoboot:  0 
    => setenv name_kern Image
    => setenv get_kern_ufs 'load scsi ${bootpart} ${loadaddr} ${bootdir}/Image'
    => setenv get_fdt_ufs 'load scsi ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}'
    => setenv findfdt 'setenv name_fdt ${default_device_tree}; if test $board_name = am69-sk; then setenv name_fdt ti/k3-am69-sk.dtb; fi; if test $board_name = j784s4; then setenv name_fdt dtb/ti/k3-j784s4-'
    => setenv bootcmd 'setenv bootpart 1:1; run init_ufs;run findfdt;run get_kern_ufs;run get_fdt_ufs;run run_kern;run ufs_finduuid;run args_ufs'
    => boot
    Device at ufs@4e84000 up at:cdns-ufs-pltfm ufs@4e84000: [RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
    scanning bus for devices...
      Device 0: (0:0) Vendor: TOSHIBA Prod.: THGAF8G8T23BAILB Rev: 0300
                Type: Hard Disk
                Capacity: 31.9 MB = 0.0 GB (8191 x 4096)
      Device 1: (0:1) Vendor: TOSHIBA Prod.: THGAF8G8T23BAILB Rev: 0300
                Type: Hard Disk
                Capacity: 30499.9 MB = 29.7 GB (7807999 x 4096)
    20367872 bytes read in 49 ms (396.4 MiB/s)
    108306 bytes read in 24 ms (4.3 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Loading Device Tree to 000000008ffe2000, end 000000008ffff711 ... OK
    Working FDT set to 8ffe2000
    
    Starting kernel ...
    
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    I/TC: Secondary CPU 2 initializing
    I/TC: Secondary CPU 2 switching to normal world boot
    I/TC: Secondary CPU 3 initializing
    I/TC: Secondary CPU 3 switching to normal world boot
    I/TC: Secondary CPU 4 initializing
    I/TC: Secondary CPU 4 switching to normal world boot
    I/TC: Secondary CPU 5 initializing
    I/TC: Secondary CPU 5 switching to normal world boot
    I/TC: Secondary CPU 6 initializing
    I/TC: Secondary CPU 6 switching to normal world boot
    I/TC: Secondary CPU 7 initializing
    I/TC: Secondary CPU 7 switching to normal world boot
    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.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.1.46-dirty (dlhs4hwt3@dlhs4hwt3-Precision-5820-Tower) (aarch64-oe-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #2 SMP PREEMPT Thu Feb  1 09:37:26 IST 2024
    [    0.000000] Machine model: Texas Instruments J784S4 EVM
    [    0.000000] Malformed early option 'console'
    [    0.000000] efi: UEFI not found.
    [    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 r5f-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 r5f-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 r5f-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 r5f-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 0x00000000a9000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@a9000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@a9100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@aa000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000aa100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@aa100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ab000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@ab000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ab100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@ab100000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x0000000fffffefff]
    [    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-0x00000000abffffff]
    [    0.000000]   node   0: [mem 0x00000000ac000000-0x00000000ffffefff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x0000000fffffefff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000fffffefff]
    [    0.000000] On node 0, zone Normal: 1 pages in unavailable ranges
    [    0.000000] On node 0, zone Normal: 1 pages in unavailable ranges
    [    0.000000] cma: Reserved 32 MiB at 0x00000000fde00000
    [    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 19 pages/cpu s38376 r8192 d31256 u77824
    [    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: 8257534
    [    0.000000] Kernel command line: console = ttyS2,115200n8 root=PARTUUID=265f879d-01 rw rootfstype=ext4 rootwait
    [    0.000000] Unknown kernel command line parameters "console = ttyS2,115200n8", will be passed to user space.
    [    0.000000] Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 8.
    [    0.000000] software IO TLB: mapped [mem 0x00000000f9e00000-0x00000000fde00000] (64MB)
    [    0.000000] Memory: 32573936K/33554424K available (12352K kernel code, 1266K rwdata, 4028K rodata, 2112K init, 432K bss, 947720K reserved, 32768K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, 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=8.
    [    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=8
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: [Firmware Bug]: GICR region 0x0000000001900000 has overlapping address
    [    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 @0x0000000880050000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880060000
    [    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.000201] Console: colour dummy device 80x25
    [    0.000622] printk: console [tty0] enabled
    [    0.000652] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.000665] pid_max: default: 32768 minimum: 301
    [    0.000693] LSM: Security Framework initializing
    [    0.000796] Mount-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.000862] Mountpoint-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.001783] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.001794] cblist_init_generic: Setting shift to 3 and lim to 1.
    [    0.001838] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.001845] cblist_init_generic: Setting shift to 3 and lim to 1.
    [    0.001929] rcu: Hierarchical SRCU implementation.
    [    0.001935] rcu:     Max phase no-delay instances is 1000.
    [    0.002076] Platform MSI: msi-controller@1820000 domain created
    [    0.002196] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.002356] EFI services will not be available.
    [    0.002562] smp: Bringing up secondary CPUs ...
    [    0.011005] Detected PIPT I-cache on CPU1
    [    0.011059] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.011073] GICv3: CPU1: using allocated LPI pending table @0x0000000880070000
    [    0.011102] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.019563] Detected PIPT I-cache on CPU2
    [    0.019598] GICv3: CPU2: found redistributor 2 region 0:0x0000000001940000
    [    0.019611] GICv3: CPU2: using allocated LPI pending table @0x0000000880080000
    [    0.019633] CPU2: Booted secondary processor 0x0000000002 [0x411fd080]
    [    0.028035] Detected PIPT I-cache on CPU3
    [    0.028078] GICv3: CPU3: found redistributor 3 region 0:0x0000000001960000
    [    0.028090] GICv3: CPU3: using allocated LPI pending table @0x0000000880090000
    [    0.028113] CPU3: Booted secondary processor 0x0000000003 [0x411fd080]
    [    0.036559] Detected PIPT I-cache on CPU4
    [    0.036638] GICv3: CPU4: found redistributor 100 region 0:0x0000000001980000
    [    0.036651] GICv3: CPU4: using allocated LPI pending table @0x00000008800a0000
    [    0.036682] CPU4: Booted secondary processor 0x0000000100 [0x411fd080]
    [    0.045139] Detected PIPT I-cache on CPU5
    [    0.045190] GICv3: CPU5: found redistributor 101 region 0:0x00000000019a0000
    [    0.045202] GICv3: CPU5: using allocated LPI pending table @0x00000008800b0000
    [    0.045227] CPU5: Booted secondary processor 0x0000000101 [0x411fd080]
    [    0.053649] Detected PIPT I-cache on CPU6
    [    0.053699] GICv3: CPU6: found redistributor 102 region 0:0x00000000019c0000
    [    0.053711] GICv3: CPU6: using allocated LPI pending table @0x00000008800c0000
    [    0.053735] CPU6: Booted secondary processor 0x0000000102 [0x411fd080]
    [    0.062152] Detected PIPT I-cache on CPU7
    [    0.062203] GICv3: CPU7: found redistributor 103 region 0:0x00000000019e0000
    [    0.062216] GICv3: CPU7: using allocated LPI pending table @0x00000008800d0000
    [    0.062238] CPU7: Booted secondary processor 0x0000000103 [0x411fd080]
    [    0.062283] smp: Brought up 1 node, 8 CPUs
    [    0.062388] SMP: Total of 8 processors activated.
    [    0.062393] CPU features: detected: 32-bit EL0 Support
    [    0.062399] CPU features: detected: CRC32 instructions
    [    0.062448] CPU: All CPU(s) started at EL2
    [    0.062453] alternatives: applying system-wide alternatives
    [    0.063357] devtmpfs: initialized
    [    0.072773] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.072802] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
    [    0.073303] pinctrl core: initialized pinctrl subsystem
    [    0.073544] DMI not present or invalid.
    [    0.073858] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.074963] DMA: preallocated 4096 KiB GFP_KERNEL pool for atomic allocations
    [    0.075816] DMA: preallocated 4096 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.076557] DMA: preallocated 4096 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.076589] audit: initializing netlink subsys (disabled)
    [    0.076669] audit: type=2000 audit(0.076:1): state=initialized audit_enabled=0 res=1
    [    0.076842] thermal_sys: Registered thermal governor 'step_wise'
    [    0.076847] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.076871] cpuidle: using governor menu
    [    0.076934] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.077026] ASID allocator initialised with 65536 entries
    [    0.084988] platform 4800000.dsi: Fixed dependency cycle(s) with /bus@100000/dss@4a00000
    [    0.085010] platform 4800000.dsi: Fixed dependency cycle(s) with /bus@100000/i2c@2040000/dsi-edp-bridge@2c
    [    0.085107] platform a000000.dp-bridge: Fixed dependency cycle(s) with /bus@100000/dss@4a00000
    [    0.087038] platform a000000.dp-bridge: Fixed dependency cycle(s) with /dp0-connector
    [    0.087344] platform panel: Fixed dependency cycle(s) with /bus@100000/i2c@2040000/dsi-edp-bridge@2c
    [    0.087885] KASLR disabled due to lack of seed
    [    0.090691] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.090701] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.090708] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.090713] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.090718] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.090723] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.090727] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.090732] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.091405] k3-chipinfo 43000014.chipid: Family:J784S4 rev:SR1.0 JTAGID[0x0bb8002f] Detected
    [    0.092221] iommu: Default domain type: Translated 
    [    0.092229] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.092338] SCSI subsystem initialized
    [    0.092485] usbcore: registered new interface driver usbfs
    [    0.092503] usbcore: registered new interface driver hub
    [    0.092520] usbcore: registered new device driver usb
    [    0.092712] pps_core: LinuxPPS API ver. 1 registered
    [    0.092718] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.092729] PTP clock support registered
    [    0.092809] EDAC MC: Ver: 3.0.0
    [    0.093264] FPGA manager framework
    [    0.093302] Advanced Linux Sound Architecture Driver Initialized.
    [    0.093700] clocksource: Switched to clocksource arch_sys_counter
    [    0.093800] VFS: Disk quotas dquot_6.6.0
    [    0.093824] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.096588] NET: Registered PF_INET protocol family
    [    0.096902] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.101965] tcp_listen_portaddr_hash hash table entries: 16384 (order: 6, 262144 bytes, linear)
    [    0.102108] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.102128] TCP established hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.102951] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
    [    0.103784] TCP: Hash tables configured (established 262144 bind 65536)
    [    0.103885] UDP hash table entries: 16384 (order: 7, 524288 bytes, linear)
    [    0.104202] UDP-Lite hash table entries: 16384 (order: 7, 524288 bytes, linear)
    [    0.104612] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.104887] RPC: Registered named UNIX socket transport module.
    [    0.104898] RPC: Registered udp transport module.
    [    0.104903] RPC: Registered tcp transport module.
    [    0.104907] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.104914] NET: Registered PF_XDP protocol family
    [    0.104927] PCI: CLS 0 bytes, default 64
    [    0.105508] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.106398] Initialise system trusted keyrings
    [    0.106500] workingset: timestamp_bits=46 max_order=23 bucket_order=0
    [    0.108444] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.108678] NFS: Registering the id_resolver key type
    [    0.108698] Key type id_resolver registered
    [    0.108703] Key type id_legacy registered
    [    0.108730] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.108738] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.128443] Key type asymmetric registered
    [    0.128451] Asymmetric key parser 'x509' registered
    [    0.128484] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.128555] io scheduler mq-deadline registered
    [    0.128563] io scheduler kyber registered
    [    0.130804] pinctrl-single 4301c000.pinctrl: 13 pins, size 52
    [    0.130893] pinctrl-single 4301c038.pinctrl: 11 pins, size 44
    [    0.131015] pinctrl-single 4301c068.pinctrl: 72 pins, size 288
    [    0.131074] pinctrl-single 4301c190.pinctrl: 1 pins, size 4
    [    0.131197] pinctrl-single 11c000.pinctrl: 72 pins, size 288
    [    0.134647] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.139135] loop: module loaded
    [    0.139714] megasas: 07.719.03.00-rc1
    [    0.141209] tun: Universal TUN/TAP device driver, 1.6
    [    0.141589] thunder_xcv, ver 1.0
    [    0.141607] thunder_bgx, ver 1.0
    [    0.141622] nicpf, ver 1.0
    [    0.141734] e1000: Intel(R) PRO/1000 Network Driver
    [    0.141739] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [    0.141756] e1000e: Intel(R) PRO/1000 Network Driver
    [    0.141761] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [    0.141778] igb: Intel(R) Gigabit Ethernet Network Driver
    [    0.141783] igb: Copyright (c) 2007-2014 Intel Corporation.
    [    0.141801] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.141806] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.141879] sky2: driver version 1.30
    [    0.142295] VFIO - User Level meta-driver version: 0.3
    [    0.142676] usbcore: registered new interface driver usb-storage
    [    0.142999] i2c_dev: i2c /dev entries driver
    [    0.143563] sdhci: Secure Digital Host Controller Interface driver
    [    0.143569] sdhci: Copyright(c) Pierre Ossman
    [    0.143692] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.144167] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.144262] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.144415] usbcore: registered new interface driver usbhid
    [    0.144420] usbhid: USB HID core driver
    [    0.144910] optee: probing for conduit method.
    [    0.144932] optee: revision 4.0 (2a5b1d12)
    [    0.161313] optee: dynamic shared memory is enabled
    [    0.161534] optee: initialized driver
    [    0.162574] Initializing XFRM netlink socket
    [    0.162599] NET: Registered PF_PACKET protocol family
    [    0.162636] Key type dns_resolver registered
    [    0.162799] registered taskstats version 1
    [    0.162817] Loading compiled-in X.509 certificates
    [    0.168595] ti-sci 44083000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.1.2--v09.01.02 (Kool Koala)')
    [    0.199403] pca953x 0-0020: supply vcc not found, using dummy regulator
    [    0.199471] pca953x 0-0020: using no AI
    [    0.222345] pca953x 0-0022: supply vcc not found, using dummy regulator
    [    0.222396] pca953x 0-0022: using AI
    [    0.223039] omap_i2c 2000000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.223529] pca953x 1-0020: supply vcc not found, using dummy regulator
    [    0.223575] pca953x 1-0020: using no AI
    [    0.246205] omap_i2c 2040000.i2c: bus 1 rev0.12 at 400 kHz
    [    0.246748] pca953x 2-0020: supply vcc not found, using dummy regulator
    [    0.246796] pca953x 2-0020: using no AI
    [    0.270009] omap_i2c 2050000.i2c: bus 2 rev0.12 at 400 kHz
    [    0.270184] ti-sci-intr 42200000.interrupt-controller: Interrupt Router 177 domain created
    [    0.270271] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 10 domain created
    [    0.270360] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 283 domain created
    [    0.270517] ti-sci-inta 33d00000.msi-controller: Interrupt Aggregator domain 321 created
    [    0.274332] ti-udma 311a0000.dma-controller: Number of rings: 48
    [    0.274962] ti-udma 311a0000.dma-controller: Channels: 24 (bchan: 0, tchan: 8, rchan: 16)
    [    0.275741] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:328
    [    0.275753] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    0.275760] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    0.277154] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[878,128] sci-dev-id:315
    [    0.277166] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    0.277172] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66349100, num_proxies:64
    [    0.277544] 2880000.serial: ttyS2 at MMIO 0x2880000 (irq = 215, base_baud = 3000000) is a 8250
    [    2.247236] printk: console [ttyS2] enabled
    [    2.251632] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x3c (0x34)
    [    2.259109] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-fss0-ospi0-pins-default 60x
    [    2.269137] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x40 (0x34)
    [    2.276616] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-fss0-ospi1-pins-default 64x
    [    2.286451] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x94 (0x34)
    [    2.293925] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-cpsw-pins-default 148x
    [    2.302963] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x9c (0x34)
    [    2.310431] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-mdio-pins-default 156x
    [    2.357707] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    2.366514] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    2.374788] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    2.387646] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    2.394859] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    2.401061] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:0
    [    2.449708] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    2.458309] davinci_mdio c200f00.mdio: phy[0]: device c200f00.mdio:00, driver TI DP83867
    [    2.466406] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    2.479147] am65-cpsw-nuss c200000.ethernet: Use random MAC address
    [    2.485406] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4
    [    2.492527] am65-cpsw-nuss c200000.ethernet: ALE Table size 64
    [    2.498618] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:250000000, add_val:3 pps:0
    [    2.508668] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010c, freq:250000000, add_val:3 pps:0
    [    2.517739] mmc0: CQHCI version 5.10
    [    2.521989] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fca100
    [    2.528775] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fca100
    [    2.535549] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fca100
    [    2.542323] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fca100
    [    2.549098] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fca100
    [    2.555874] omap-mailbox 31f85000.mailbox: omap mailbox rev 0x66fca100
    [    2.560287] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    2.565901] ti-udma 285c0000.dma-controller: Channels: 22 (tchan: 11, rchan: 11, gp-rflow: 8)
    [    2.579774] ti-udma 31150000.dma-controller: Channels: 66 (tchan: 33, rchan: 33, gp-rflow: 16)
    [    2.589639] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x3c (0x34)
    [    2.597116] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-fss0-ospi0-pins-default 60x
    [    2.608965] spi-nor spi0.0: s28hs512t (65536 Kbytes)
    [    2.614799] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x40 (0x34)
    [    2.622280] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-fss0-ospi1-pins-default 64x
    [    2.633325] spi-nor spi1.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00
    [    2.640293] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x94 (0x34)
    [    2.647770] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-cpsw-pins-default 148x
    [    2.656808] pinctrl-single 4301c000.pinctrl: mux offset out of range: 0x9c (0x34)
    [    2.664285] pinctrl-single 4301c000.pinctrl: could not add functions for mcu-mdio-pins-default 156x
    [    2.664446] mmc0: Command Queue Engine enabled
    [    2.677763] mmc0: new HS400 MMC card at address 0001
    [    2.683043] mmcblk0: mmc0:0001 G1M15L 29.6 GiB 
    [    2.688500] mmcblk0boot0: mmc0:0001 G1M15L 31.5 MiB 
    [    2.694081] mmcblk0boot1: mmc0:0001 G1M15L 31.5 MiB 
    [    2.699548] mmcblk0rpmb: mmc0:0001 G1M15L 4.00 MiB, chardev (240:0)
    [    2.709714] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    2.718523] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    2.726801] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    2.739669] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    2.746882] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    2.753081] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:0
    [    2.762923] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    2.809710] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    2.818335] davinci_mdio c200f00.mdio: phy[0]: device c200f00.mdio:00, driver TI DP83867
    [    2.826432] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000
    [    2.839186] am65-cpsw-nuss c200000.ethernet: Use random MAC address
    [    2.845478] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4
    [    2.852604] am65-cpsw-nuss c200000.ethernet: ALE Table size 64
    [    2.858708] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0
    [    2.868493] am65-cpsw-nuss c200000.ethernet: set new flow-id-base 82
    [    2.876370] mmc1: CQHCI version 5.10
    [    2.920802] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    3.013704] mmc1: new high speed SDHC card at address 5048
    [    3.019499] mmcblk1: mmc1:5048 SD16G 14.4 GiB 
    [    3.025737]  mmcblk1: p1 p2
    [    3.582306] debugfs: Directory 'pd:74' with parent 'pm_genpd' already present!
    [    3.589542] debugfs: Directory 'pd:73' with parent 'pm_genpd' already present!
    [    3.596818] debugfs: Directory 'pd:72' with parent 'pm_genpd' already present!
    [    3.604559] debugfs: Directory 'pd:335' with parent 'pm_genpd' already present!
    [    3.611875] debugfs: Directory 'pd:333' with parent 'pm_genpd' already present!
    [    3.619195] debugfs: Directory 'pd:332' with parent 'pm_genpd' already present!
    [    3.636770] ALSA device list:
    [    3.639743]   No soundcards found.
    [    3.643332] Waiting for root device PARTUUID=265f879d-01...
    
    

    could you please help me to solve this?

    thanks 

    Albin Raj R J

  • Hi,

    Can you make sure that the UFS driver in kernel is probed? Can you add prints in the probe function and check if that returns success aka 0?

    - Keerthy

  • Hi Keerthy,

             Thanks for your response. You are correct. Default UFS is in LKM I change to static driver. Now it's working fine. Thanks for your support.