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.

DRA829V: Unable to communicate with UFS

Part Number: DRA829V
Other Parts Discussed in Thread: DRA829

Hello,

With a custom board equipped with DRA829,
The UFS interface can be turned ON/OFF by an analog switch.

This ensures that there is no UFS memory during boot,
UFS memory will be present after boot.

With such a custom board,
Could you tell me how to mount UFS memory after booting?

The SDK we are using is 8.02.

  • Hi keerthy,

    I will share the log, please check it out.

    U-Boot SPL 2021.01-g44a87e3ab8 (Mar 24 2022 - 00:34:51 +0000)
    Model: Texas Instruments K3 J721E SoC
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Board: J721EX-PM1-SOM rev E2
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    i2c_write: error waiting for data ACK (status=0x116)
    read error from device: 41c8639c register: x!
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.5(release):08.01.00.006-dirty
    NOTICE:  BL31: Built : 00:06:21, Mar 24 2022
    
    U-Boot SPL 2021.01-g44a87e3ab8 (Mar 24 2022 - 00:07:23 +0000)
    Model: Texas Instruments K3 J721E SoC
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Board: J721EX-PM1-SOM rev E2
    SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Trying to boot from MMC2
    
    
    U-Boot 2021.01-g44a87e3ab8 (Mar 24 2022 - 00:07:23 +0000)
    
    SoC:   J721E SR1.1
    Model: Texas Instruments K3 J721E SoC
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Board: J721EX-PM1-SOM rev E2
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    EEPROM not available at 0x50, trying to read at 0x51
    Reading on-board EEPROM at 0x51 failed 1
    Net:   Could not get PHY for ethernet@46000000port@1: addr 0
    am65_cpsw_nuss_port ethernet@46000000port@1: phy_connect() failed
    No ethernet found.
    
    Hit any key to stop autoboot:  2  1  0 
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@22: Error reading output register
    switch to partitions #0, OK
    mmc1 is current device
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@22: Error reading output register
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    0 bytes read in 0 ms
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    19409408 bytes read in 809 ms (22.9 MiB/s)
    37627 bytes read in 11 ms (3.3 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 000000008fef3000, end 000000008fffffff ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 5.10.100-g7a7a3af903 (oe-user@oe-host) (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) #1 SMP PREEMPT Wed Feb 15 04:02:58 UTC 2023
    [    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] 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-0x000000009fffffff]
    [    0.000000]   node   0: [mem 0x00000000a0000000-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: 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),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=41616df6-02 rw rootfstype=ext4 rootwait
    [    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: 3486784K/4194304K available (10944K kernel code, 1354K rwdata, 4352K rodata, 1856K init, 749K bss, 183232K 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.008286] Console: colour dummy device 80x25
    [    0.012846] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023516] pid_max: default: 32768 minimum: 301
    [    0.028264] LSM: Security Framework initializing
    [    0.033007] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
    [    0.040574] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
    [    0.049517] rcu: Hierarchical SRCU implementation.
    [    0.054554] Platform MSI: msi-controller@1820000 domain created
    [    0.060677] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.069942] EFI services will not be available.
    [    0.074687] smp: Bringing up secondary CPUs ...
    [    0.079934] Detected PIPT I-cache on CPU1
    [    0.079959] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.079969] GICv3: CPU1: using allocated LPI pending table @0x00000008800d0000
    [    0.080003] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.080057] smp: Brought up 1 node, 2 CPUs
    [    0.109402] SMP: Total of 2 processors activated.
    [    0.114206] CPU features: detected: 32-bit EL0 Support
    [    0.119460] CPU features: detected: CRC32 instructions
    [    0.133202] CPU: All CPU(s) started at EL2
    [    0.137397] alternatives: patching kernel code
    [    0.142390] devtmpfs: initialized
    [    0.147862] KASLR disabled due to lack of seed
    [    0.152514] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.162476] futex hash table entries: 512 (order: -1, 32768 bytes, linear)
    [    0.170147] pinctrl core: initialized pinctrl subsystem
    [    0.175722] DMI not present or invalid.
    [    0.179939] NET: Registered protocol family 16
    [    0.187302] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.194602] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.202604] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.210905] thermal_sys: Registered thermal governor 'step_wise'
    [    0.210908] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.217217] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.230858] ASID allocator initialised with 65536 entries
    [    0.245259] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages
    [    0.252116] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
    [    0.258874] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.266879] cryptd: max_cpu_qlen set to 1000
    [    0.272722] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected
    [    0.281469] vsys_3v3: supplied by evm_12v0
    [    0.285829] vsys_5v0: supplied by evm_12v0
    [    0.290141] vdd_mmc1: supplied by vsys_3v3
    [    0.294664] iommu: Default domain type: Translated 
    [    0.299783] SCSI subsystem initialized
    [    0.303805] mc: Linux media interface: v0.10
    [    0.308174] videodev: Linux video capture interface: v2.00
    [    0.313799] pps_core: LinuxPPS API ver. 1 registered
    [    0.318869] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.328206] PTP clock support registered
    [    0.332225] EDAC MC: Ver: 3.0.0
    [    0.335712] FPGA manager framework
    [    0.339225] Advanced Linux Sound Architecture Driver Initialized.
    [    0.345805] clocksource: Switched to clocksource arch_sys_counter
    [    0.352234] VFS: Disk quotas dquot_6.6.0
    [    0.356284] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
    [    0.365955] NET: Registered protocol family 2
    [    0.370538] IP idents hash table entries: 65536 (order: 3, 524288 bytes, linear)
    [    0.379195] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear)
    [    0.387962] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear)
    [    0.396157] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear)
    [    0.404126] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.410877] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear)
    [    0.417772] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear)
    [    0.425154] NET: Registered protocol family 1
    [    0.429872] RPC: Registered named UNIX socket transport module.
    [    0.435937] RPC: Registered udp transport module.
    [    0.440740] RPC: Registered tcp transport module.
    [    0.445543] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.452127] PCI: CLS 0 bytes, default 64
    [    0.456460] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.466638] Initialise system trusted keyrings
    [    0.471271] workingset: timestamp_bits=46 max_order=16 bucket_order=0
    [    0.479487] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.485689] NFS: Registering the id_resolver key type
    [    0.490867] Key type id_resolver registered
    [    0.495141] Key type id_legacy registered
    [    0.499260] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.506108] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.513751] 9p: Installing v9fs 9p2000 file system support
    [    0.539343] Key type asymmetric registered
    [    0.543530] Asymmetric key parser 'x509' registered
    [    0.548528] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [    0.556086] io scheduler mq-deadline registered
    [    0.560712] io scheduler kyber registered
    [    0.565640] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
    [    0.571786] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.580744] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.588538] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    0.597529] arm-smmu-v3 36600000.iommu: allocated 524288 entries for cmdq
    [    0.606398] arm-smmu-v3 36600000.iommu: allocated 524288 entries for evtq
    [    0.614129] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
    [    0.626085] brd: module loaded
    [    0.631919] loop: module loaded
    [    0.635649] megasas: 07.714.04.00-rc1
    [    0.640657] tun: Universal TUN/TAP device driver, 1.6
    [    0.646029] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [    0.652439] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.658514] sky2: driver version 1.30
    [    0.662511] VFIO - User Level meta-driver version: 0.3
    [    0.668113] i2c /dev entries driver
    [    0.672060] sdhci: Secure Digital Host Controller Interface driver
    [    0.678379] sdhci: Copyright(c) Pierre Ossman
    [    0.682936] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.689048] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.695321] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.702314] optee: probing for conduit method.
    [    0.706870] optee: revision 3.12 (3d47a131)
    [    0.707105] optee: initialized driver
    [    0.715953] NET: Registered protocol family 17
    [    0.720560] 9pnet: Installing 9P2000 support
    [    0.724944] Key type dns_resolver registered
    [    0.729388] Loading compiled-in X.509 certificates
    [    0.738294] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
    [    0.766062] omap_i2c 2000000.i2c: bus 0 rev0.12 at 380 kHz
    [    0.772109] omap_i2c 2010000.i2c: bus 1 rev0.12 at 100 kHz
    [    0.778096] omap_i2c 2020000.i2c: bus 2 rev0.12 at 380 kHz
    [    0.784085] omap_i2c 2030000.i2c: bus 3 rev0.12 at 100 kHz
    [    0.789826] random: fast init done
    [    0.793479] omap_i2c 2040000.i2c: bus 4 rev0.12 at 100 kHz
    [    0.799628] omap_i2c 2050000.i2c: bus 5 rev0.12 at 380 kHz
    [    0.805952] omap_i2c 2060000.i2c: bus 6 rev0.12 at 380 kHz
    [    0.811735] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [    0.821698] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
    [    0.830507] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created
    [    0.840348] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [    0.960180] cdns-sierra-phy 5000000.serdes: Timeout waiting for PHY status ready
    [    0.967750] phy phy-5000000.serdes.1: phy poweron failed --> -110
    [    0.973980] j721e-pcie 2900000.pcie-ep: Failed to init phy
    [    0.979607] j721e-pcie: probe of 2900000.pcie-ep failed with error -110
    [    0.986729] j721e-pcie 2920000.pcie: host bridge /bus@100000/pcie@2920000 ranges:
    [    0.994404] j721e-pcie 2920000.pcie:       IO 0x4400001000..0x4400010fff -> 0x0000001000
    [    1.002681] j721e-pcie 2920000.pcie:      MEM 0x4400011000..0x4407ffffff -> 0x0000011000
    [    1.010957] j721e-pcie 2920000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    1.019890] printk: console [ttyS2] disabled
    [    1.024281] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 20, base_baud = 3000000) is a 8250
    [    1.033023] printk: console [ttyS2] enabled
    [    1.033023] printk: console [ttyS2] enabled
    [    1.041459] printk: bootconsole [ns16550a0] disabled
    [    1.041459] printk: bootconsole [ns16550a0] disabled
    [    1.051983] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 21, base_baud = 3000000) is a 8250
    [    1.061303] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
    [    1.071814] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
    [    1.081968] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
    [    1.092209] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
    [    1.103096] scsi host0: ufshcd
    [    1.108282] mmc0: CQHCI version 5.10
    [    1.108517] mmc1: CQHCI version 5.10
    [    1.117426] davinci_gpio 42100000.gpio: IRQ index 0 not found
    [    1.123198] davinci_gpio 42100000.gpio: error -ENXIO: IRQ not populated
    [    1.136994] j721e-pcie 2920000.pcie: host bridge /bus@100000/pcie@2920000 ranges:
    [    1.144498] j721e-pcie 2920000.pcie:       IO 0x4400001000..0x4400010fff -> 0x0000001000
    [    1.152577] j721e-pcie 2920000.pcie:      MEM 0x4400011000..0x4407ffffff -> 0x0000011000
    [    1.154411] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit
    [    1.160657] j721e-pcie 2920000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    1.277748] j721e-pcie 2920000.pcie: Link up
    [    1.282068] j721e-pcie 2920000.pcie: PCI host bridge to bus 0000:00
    [    1.288325] pci_bus 0000:00: root bus resource [bus 00-0f]
    [    1.293798] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1000-0x10fff])
    [    1.302653] pci_bus 0000:00: root bus resource [mem 0x4400011000-0x4407ffffff] (bus address [0x00011000-0x07ffffff])
    [    1.313171] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400
    [    1.319165] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    1.328798] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    1.338451] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xe8 may corrupt adjacent RW1C bits
    [    1.348173] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    1.357902] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits
    [    1.367623] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xb2 may corrupt adjacent RW1C bits
    [    1.377368] pci 0000:00:00.0: supports D1
    [    1.381365] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    1.387101] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x84 may corrupt adjacent RW1C bits
    [    1.397519] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    1.405506] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    1.415228] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    1.424947] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    1.434733] pci 0000:01:00.0: [2646:500d] type 00 class 0x010802
    [    1.440758] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
    [    1.447788] pci 0000:01:00.0: 15.752 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x2 link at 0000:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
    [    1.474422] pci_bus 0000:01: busn_res: [bus 01-0f] end is updated to 01
    [    1.481038] pci 0000:00:00.0: BAR 14: assigned [mem 0x4400100000-0x44001fffff]
    [    1.488246] pci 0000:01:00.0: BAR 0: assigned [mem 0x4400100000-0x4400103fff 64bit]
    [    1.495902] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    1.500855] pci 0000:00:00.0:   bridge window [mem 0x4400100000-0x44001fffff]
    [    1.508061] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
    [    1.514022] cdns-ufshcd 4e84000.ufs: link startup failed 1
    [    1.514266] pcieport 0000:00:00.0: PME: Signaling with IRQ 299
    [    1.519611] cdns-ufshcd 4e84000.ufs: UFS Host state=0
    [    1.526001] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
    [    1.530460] cdns-ufshcd 4e84000.ufs: outstanding reqs=0x0 tasks=0x0
    [    1.530463] cdns-ufshcd 4e84000.ufs: saved_err=0x0, saved_uic_err=0x0
    [    1.537797] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
    [    1.544000] cdns-ufshcd 4e84000.ufs: Device power mode=1, UIC link state=0
    [    1.550438] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
    [    1.557708] cdns-ufshcd 4e84000.ufs: PM in progress=0, sys. suspended=0
    [    1.557710] cdns-ufshcd 4e84000.ufs: Auto BKOPS=0, Host self-block=0
    [    1.584811] cdns-ufshcd 4e84000.ufs: Clk gate=1
    [    1.589335] cdns-ufshcd 4e84000.ufs: last_hibern8_exit_tstamp at 0 us, hibern8_exit_cnt=0
    [    1.597499] cdns-ufshcd 4e84000.ufs: last intr at 1403105 us, last intr status=0x404
    [    1.605230] cdns-ufshcd 4e84000.ufs: error handling flags=0x0, req. abort count=0
    [    1.612699] cdns-ufshcd 4e84000.ufs: hba->ufs_version=0x210, Host capabilities=0x1587031f, caps=0x0
    [    1.621730] cdns-ufshcd 4e84000.ufs: quirks=0x0, dev. quirks=0x0
    [    1.627727] cdns-ufshcd 4e84000.ufs: clk: core_clk, rate: 250000000
    [    1.633983] cdns-ufshcd 4e84000.ufs: clk: phy_clk, rate: 19200000
    [    1.640066] cdns-ufshcd 4e84000.ufs: clk: ref_clk, rate: 19200000
    [    1.646150] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[0, 0], lane[0, 0], pwr[INVALID MODE, INVALID MODE], rate = 0
    [    1.658315] host_regs: 00000000: 1587031f 00000000 00000210 00000000
    [    1.664660] host_regs: 00000010: 00000000 00000000 00000000 00000000
    [    1.671004] host_regs: 00000020: 00000000 00000470 00000000 00000000
    [    1.677346] host_regs: 00000030: 00000008 00000001 00000000 00000000
    [    1.683687] host_regs: 00000040: 00000000 00000000 00000000 00000000
    [    1.690031] host_regs: 00000050: 00000000 00000000 00000000 00000000
    [    1.696373] host_regs: 00000060: 00000000 00000000 00000000 00000000
    [    1.702717] host_regs: 00000070: 00000000 00000000 00000000 00000000
    [    1.709060] host_regs: 00000080: 00000000 00000000 00000000 00000000
    [    1.715403] host_regs: 00000090: 00000000 00000000 00000000 00000000
    [    1.721746] cdns-ufshcd 4e84000.ufs: No record of pa_err
    [    1.727049] cdns-ufshcd 4e84000.ufs: No record of dl_err
    [    1.732352] cdns-ufshcd 4e84000.ufs: No record of nl_err
    [    1.737654] cdns-ufshcd 4e84000.ufs: No record of tl_err
    [    1.742957] cdns-ufshcd 4e84000.ufs: No record of dme_err
    [    1.748346] cdns-ufshcd 4e84000.ufs: No record of auto_hibern8_err
    [    1.754517] cdns-ufshcd 4e84000.ufs: No record of fatal_err
    [    1.760081] cdns-ufshcd 4e84000.ufs: link_startup_fail[0] = 0x1 at 1404220 us
    [    1.767206] cdns-ufshcd 4e84000.ufs: No record of resume_fail
    [    1.772942] cdns-ufshcd 4e84000.ufs: No record of suspend_fail
    [    1.778765] cdns-ufshcd 4e84000.ufs: No record of dev_reset
    [    1.784329] cdns-ufshcd 4e84000.ufs: No record of host_reset
    [    1.789978] cdns-ufshcd 4e84000.ufs: No record of task_abort
    [    1.797999] ALSA device list:
    [    1.800955]   No soundcards found.
    [    2.174539] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    2.182288] Waiting for root device PARTUUID=41616df6-02...
    [    2.214775] mmc1: new high speed SDHC card at address 5048
    [    2.220588] mmcblk1: mmc1:5048 SDCIT 15.0 GiB 
    [    2.229139]  mmcblk1: p1 p2
    [    2.899638] EXT4-fs (mmcblk1p2): recovery complete
    [    2.905736] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.913845] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    2.920845] devtmpfs: mounted
    [    2.924092] Freeing unused kernel memory: 1856K
    [    2.928645] Run /sbin/init as init process
    [    3.185152] systemd[1]: System time before build time, advancing clock.
    [    3.263390] NET: Registered protocol family 10
    [    3.268245] Segment Routing with IPv6
    [    3.290110] systemd[1]: systemd 244 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    3.311583] systemd[1]: Detected architecture arm64.
    
    Welcome to Arago 2021.09!
    
    [    3.346854] systemd[1]: Set hostname to <j7-evm>.
    [    3.576033] systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
    [    3.644352] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.651088] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
    [    3.663414] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
    [    3.673268] systemd[1]: Created slice system-getty.slice.
    [  OK  ] Created slice system-getty.slice.
    [    3.693884] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.701128] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    3.721874] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.729009] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    3.749983] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
    [    3.773919] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
    [    3.797914] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    3.813863] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    3.833858] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    3.849860] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    3.867572] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    3.889887] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    3.912517] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    3.933992] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    3.972071] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    3.980378] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.002118] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.018136] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    4.042039] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    4.061966] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.084340] systemd[1]: Mounting Huge Pages File System...
             Mounting Huge Pages File System...
    [    4.104016] systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    [    4.128079] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    4.148981] systemd[1]: Mounting Temporary Directory (/tmp)...
             Mounting Temporary Directory (/tmp)...
    [    4.168807] systemd[1]: Starting Create list of static device nodes for the current kernel...
             Starting Create list of st…odes for the current kernel...
    [    4.196699] systemd[1]: Starting Start psplash boot splash screen...
             Starting Start psplash boot splash screen...
    [    4.224881] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    4.238043] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
    [    4.250081] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    4.274224] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    4.288298] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    4.306428] cryptodev: loading out-of-tree module taints kernel.
    [    4.309407] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [    4.320068] cryptodev: driver 1.10 loaded.
    [    4.320975] systemd[1]: Starting udev Coldplug all Devices...
             Starting udev Coldplug all Devices...
    [    4.348384] systemd[1]: Started RPC Bind.
    [  OK  ] Started RPC Bind.
    [    4.370140] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted Huge Pages File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Create list of sta… nodes for the current kernel.
    [FAILED] Failed to start Start psplash boot splash screen.
    See 'systemctl status psplash-start.service' for details.
    [DEPEND] Dependency failed for Star…progress communication helper.
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
    [    4.582227] systemd-journald[155]: Received client request to flush runtime journal.
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting udev Wait for Complete Device Initialization...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Create Volatile Files and Directories.
    [  OK  ] Started udev Kernel Device Manager.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Reached target System Time Synchronized.
    [    5.505862] nvme nvme0: pci function 0000:01:00.0
    [    5.560263] nvme 0000:01:00.0: enabling device (0000 -> 0002)
    [    5.571706] nvme nvme0: missing or invalid SUBNQN field.
    [    5.580144] nvme nvme0: 2/0/0 default/read/poll queues
    [    6.192753] usbcore: registered new interface driver usbfs
    [    6.208399] usbcore: registered new interface driver hub
    [    6.223062] usbcore: registered new device driver usb
    [  OK  ] Created slice system-systemd\x2dfsck.slice.
    [  OK  ] Found device /dev/mmcblk1p1.
             Starting File System Check on /dev/mmcblk1p1...
    [  OK  ] Started File System Check on /dev/mmcblk1p1.
             Mounting /run/media/mmcblk1p1...
    [  OK  ] Mounted /run/media/mmcblk1p1.
    [  OK  ] Started udev Wait for Complete Device Initialization.
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
             Starting Docker Socket for the API.
    [    7.211875] random: crng init done
    [    7.215270] random: 7 urandom warning(s) missed due to ratelimiting
    [  OK  ] Listening on dropbear.socket.
             Starting Reboot and dump vmcore via kexec...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Listening on Docker Socket for the API.
    [  OK  ] Started Reboot and dump vmcore via kexec.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started D-Bus System Message Bus.
             Starting Print notice about GPLv3 packages...
             Starting set host name as per compatible name...
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
    [  OK  ] Started irqbalance daemon.
             Starting Telephony service...
             Starting rc.pvr.service...
             Starting startwlanap...
             Starting startwlansta...
             Starting Login Service...
    [  OK  ] Started TEE Supplicant.
             Starting Update weston ini… based on the platform name...
    [  OK  ] Started IPv6 Packet Filtering Framework.
    [  OK  ] Started IPv4 Packet Filtering Framework.
    [  OK  ] Started startwlansta.
    [  OK  ] Reached target Network (Pre).
             Starting Network Service...
    [  OK  ] Started set host name as per compatible name.
    [  OK  ] Started rc.pvr.service.
    [  OK  ] Started startwlanap.
    [  OK  ] Started Network Service.
    [  OK  ] Started Update weston ini …ge based on the platform name.
    [  OK  ] Started Telephony service.
             Starting Wait for Network to be Configured...
             Starting Network Name Resolution...
             Starting weston.service...
    [    7.878844] Bluetooth: Core ver 2.22
    [    7.884092] NET: Registered protocol family 31
    [    7.892554] Bluetooth: HCI device and connection manager initialized
    [    7.904469] Bluetooth: HCI socket layer initialized
    [    7.913729] Bluetooth: L2CAP socket layer initialized
    [    7.923596] Bluetooth: SCO socket layer initialized
    [  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
    [  OK  ] Started Login Service.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Name Lookups.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Enable and configure wl18xx bluetooth stack...
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
             Starting Simple Network Ma…ent Protocol (SNMP) Daemon....
             Starting Permit User Sessions...
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Simple Network Man…ement Protocol (SNMP) Daemon..
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	autoconf
    	bash-dev
    	bash
    	bc
    	binutils
    	cifs-utils
    	coreutils-stdbuf
    	coreutils
    	cpio
    	cpp-symlinks
    	cpp
    	dosfstools
    	elfutils
    	g++-symlinks
    	g++
    	gawk
    	gcc-symlinks
    	gcc
    	gdb
    	gdbserver
    	gettext
    	glmark2
    	gstreamer1.0-libav-dev
    	gstreamer1.0-libav
    	gzip
    	less
    	libasm1
    	libbfd
    	libdw1
    	libelf1
    	libgdbm-compat4
    	libgdbm-dev
    	libgdbm6
    	libgettextlib
    	libgettextsrc
    	libgmp-dev
    	libgmp10
    	libgmpxx4
    	libidn2-0
    	libidn2-dev
    	libmpc3
    	libmpfr6
    	libreadline-dev
    	libreadline8
    	libunistring-dev
    	libunistring2
    	m4-dev
    	m4
    	make
    	nettle-dev
    	nettle
    	parted
    	python3-rfc3987
    	python3-strict-rfc3339
    	tar
    	which
    	zeromq
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Print notice about GPLv3 packages.
    [  OK  ] Started weston.service.
             Starting DEMO...
             Starting telnetd.service...
    [  OK  ] Started DEMO.
    [  OK  ] Started telnetd.service.
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org j7-evm ttyS2
    
    Arago 2021.09 j7-evm ttyS2
    
    j7-evm login: root (automatic login)
    
    root@j7-evm:~# 

    Even after powering on UFS, /dev/bsg is not found.

  • Hi,

    In the case of EVM, it can be detected because the UFS is connected when the power is turned on.

    Since our custom board connects UFS later like a USB device, it fails to detect UFS at boot time.

    Does it mean that I am missing some operation that UFS cannot detect after powering on?

    Or does it mean that if detection fails at boot time, even if UFS is connected later, it cannot be detected?

  • Hi,

    It is solved.

    After powering on UFS, rebinding the driver made it visible.

    echo 4e84000.ufs > /sys/bus/platform/drivers/cdns-ufshcd/unbind
    echo 4e84000.ufs > /sys/bus/platform/drivers/cdns-ufshcd/bind