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.
Tool/software: Linux
Hi,
We are using TDA2p custom board and are running PSDK 3.4 with Linux running on A15.
We are able to boot the SPL - and Uboot successfully, however while the kernel is loading we are getting an issue in MMC initialization.
Find the log below.
Please note- In our custom board the PMIC is not connected to TDA thru i2c but controlled via another MCU.
In uboot also we faced some issue related to MMC power we commented some part of code in omap_hsmmc.c file (functions : omap_hsmmc_set_signal_voltage) and in mmc.c file (power_cycle function) and got the uboot running but are not able to get the kernel working.
Also can you let us know how can we disable the regulator for SD card via Device tree configuration.
Here is the kernel log:
########################################################################################################################
U-Boot 2016.05-00010-g9551b3d-dirty (Jul 30 2018 - 11:57:43 +0530)
CPU : DRA762-GP ES1.0
Model: TI DRA762 EVM
Board: DRA74x EVM REV
DRAM: 512 MiB
MMC: id :31 name:mmc
mmc@4809c000: fail to find sdr104 mode FDT_ERR_NOTFOUND
no pinctrl for sdr104
mmc@4809c000: fail to find ddr50 mode FDT_ERR_NOTFOUND
no pinctrl for ddr50
mmc@4809c000: fail to find sdr50 mode FDT_ERR_NOTFOUND
no pinctrl for sdr50
mmc@4809c000: fail to find sdr25 mode FDT_ERR_NOTFOUND
no pinctrl for sdr25
mmc@4809c000: fail to find sdr12 mode FDT_ERR_NOTFOUND
no pinctrl for sdr12
OMAP SD/MMC: 0, OMAP SD/MMC: 1
Card did not respond to voltage select!
*** Warning - MMC init failed, using default environment
Warning: fastboot.board_rev: unknown board revision
Card did not respond to voltage select!
ERROR: invalid mmc device
at arch/arm/cpu/armv7/omap-common/utils.c:193/mmc_get_part_size()
Warning: fastboot.userdata_size: unable to calc
SCSI: 0 device not found
ERROR: scsi device not found
at drivers/block/disk-uclass.c:43/scsi_init()
Net: No ethernet found.
Hit any key to stop autoboot: 0
## Error: "board_findfdt" not defined
i2c_write: error waiting for data ACK (status=0x116)
tps65903x: could not set LDO1 voltage.
switch to partitions #0, OK
mmc0 is current device
i2c_write: error waiting for data ACK (status=0x116)
tps65903x: could not set LDO1 voltage.
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
165 bytes read in 2 ms (80.1 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
i2c_write: error waiting for data ACK (status=0x116)
tps65903x: could not set LDO1 voltage.
switch to partitions #0, OK
mmc0 is current device
i2c_write: error waiting for data ACK (status=0x116)
tps65903x: could not set LDO1 voltage.
SD/MMC found on device 0
3559272 bytes read in 164 ms (20.7 MiB/s)
107988 bytes read in 24 ms (4.3 MiB/s)
Booting from mmc0 ...
Kernel image @ 0x82000000 [ 0x000000 - 0x364f68 ]
hd magic:edfe0dd0
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ffe2000, end 8ffff5d3 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.84-00027-g018eb62-dirty (kpit@L-3550) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #9 SMP PREEMPT Mo8
[ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine model: TI DRA762 EVM
[ 0.000000] Reserved memory: created DMA memory pool at 0x40300000, size 3 MiB
[ 0.000000] Reserved memory: initialized node cmem@40300000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: regions without no-map are not yet supported
[ 0.000000] Reserved memory: created CMA memory pool at 0x99000000, size 32 MiB
[ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x9b000000, size 16 MiB
[ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x9c000000, size 16 MiB
[ 0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: incorrect alignment of CMA region
[ 0.000000] Reserved memory: regions without no-map are not yet supported
[ 0.000000] Reserved memory: created DMA memory pool at 0x9d200000, size 32 MiB
[ 0.000000] Reserved memory: initialized node cmem@9D200000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: regions without no-map are not yet supported
[ 0.000000] cma: Reserved 24 MiB at 0x97800000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] OMAP4: Map 0x9fe00000 to fe600000 for dram barrier
[ 0.000000] DRA762 ES1.0
[ 0.000000] PERCPU: Embedded 11 pages/cpu @df5d1000 s14912 r8192 d21952 u45056
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 120192
[ 0.000000] Kernel command line: console=ttyO0,115200n8 vram=16M root=PARTUUID=c9762865-02 rw rootwait ip=none mem=512M
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 161728K/485376K available (6663K kernel code, 318K rwdata, 2392K rodata, 332K init, 286K bss, 233536K reserved, 90112K c)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08e000c (9057 kB)
[ 0.000000] .init : 0xc08e1000 - 0xc0934000 ( 332 kB)
[ 0.000000] .data : 0xc0934000 - 0xc09839e0 ( 319 kB)
[ 0.000000] .bss : 0xc0985000 - 0xc09cc980 ( 287 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] ti_dt_clocks_register: failed to lookup clock node gmac_gmii_ref_clk_div
[ 0.000000] OMAP clockevent source: timer1 at 32786 Hz
[ 0.000000] Architected cp15 timer(s) running at 6.14MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[ 0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[ 0.000016] Switching to timer-based delay loop, resolution 162ns
[ 0.000333] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000341] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.000806] Console: colour dummy device 80x30
[ 0.000822] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000828] This ensures that you still see kernel messages. Please
[ 0.000834] update your kernel commandline.
[ 0.000845] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[ 0.000857] pid_max: default: 32768 minimum: 301
[ 0.000951] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000961] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001501] Initializing cgroup subsys io
[ 0.001518] Initializing cgroup subsys memory
[ 0.001543] Initializing cgroup subsys devices
[ 0.001555] Initializing cgroup subsys freezer
[ 0.001565] Initializing cgroup subsys perf_event
[ 0.001577] Initializing cgroup subsys pids
[ 0.001602] CPU: Testing write buffer coherency: ok
[ 0.001808] /cpus/cpu@0 missing clock-frequency property
[ 0.001824] /cpus/cpu@1 missing clock-frequency property
[ 0.001834] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.001877] Setting up static identity map for 0x80008340 - 0x800083a0
[ 0.080092] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.080160] Brought up 2 CPUs
[ 0.080172] SMP: Total of 2 processors activated (24.59 BogoMIPS).
[ 0.080179] CPU: All CPU(s) started in HYP mode.
[ 0.080184] CPU: Virtualization extensions available.
[ 0.081223] devtmpfs: initialized
[ 0.110741] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[ 0.111689] omap_hwmod: l3_main_2 using broken dt data from ocp
[ 0.318051] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.318074] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.319931] pinctrl core: initialized pinctrl subsystem
[ 0.320808] NET: Registered protocol family 16
[ 0.321773] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.350211] cpuidle: using governor ladder
[ 0.380237] cpuidle: using governor menu
[ 0.388811] OMAP GPIO hardware version 0.1
[ 0.392970] GPIO line 161 (radio_rst) hogged as output/low
[ 0.395381] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
[ 0.420732] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.420742] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.421230] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.421240] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.421718] OMAP DMA hardware revision 0.0
[ 0.461619] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[ 0.462781] edma 43300000.edma: memcpy is disabled
[ 0.467599] edma 43300000.edma: TI EDMA DMA engine driver
[ 0.472410] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[ 0.472587] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[ 0.472757] omap-iommu 58882000.mmu: 58882000.mmu registered
[ 0.472913] omap-iommu 55082000.mmu: 55082000.mmu registered
[ 0.473196] omap-iommu 41501000.mmu: 41501000.mmu registered
[ 0.473387] omap-iommu 41502000.mmu: 41502000.mmu registered
[ 0.476452] palmas 0-0058: IRQ missing: skipping irq request
[ 0.490764] palmas: probe of 0-0058 failed with error -121
[ 0.491142] pcf857x: probe of 0-0020 failed with error -121
[ 0.491395] pcf857x: probe of 0-0021 failed with error -121
[ 0.491618] pcf857x: probe of 0-0026 failed with error -121
[ 0.491772] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[ 0.492170] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
[ 1.511247] omap_i2c 4807a000.i2c: controller timed out
[ 1.531273] pcf857x: probe of 3-0021 failed with error -110
[ 1.531309] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz
[ 1.531504] media: Linux media interface: v0.10
[ 1.531554] Linux video capture interface: v2.00
[ 1.531593] pps_core: LinuxPPS API ver. 1 registered
[ 1.531600] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.531622] PTP clock support registered
[ 1.531665] EDAC MC: Ver: 3.0.0
[ 1.532423] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[ 1.532717] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[ 1.533058] Advanced Linux Sound Architecture Driver Initialized.
[ 1.533923] clocksource: Switched to clocksource arch_sys_counter
[ 1.544305] NET: Registered protocol family 2
[ 1.544793] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 1.544831] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 1.544897] TCP: Hash tables configured (established 4096 bind 4096)
[ 1.544935] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 1.544956] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 1.545145] NET: Registered protocol family 1
[ 1.545403] RPC: Registered named UNIX socket transport module.
[ 1.545412] RPC: Registered udp transport module.
[ 1.545419] RPC: Registered tcp transport module.
[ 1.545425] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.546402] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[ 1.555492] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.556113] NFS: Registering the id_resolver key type
[ 1.556141] Key type id_resolver registered
[ 1.556149] Key type id_legacy registered
[ 1.556217] ntfs: driver 2.1.32 [Flags: R/O].
[ 1.557601] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.557619] io scheduler noop registered
[ 1.557634] io scheduler deadline registered
[ 1.557665] io scheduler cfq registered (default)
[ 1.562735] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[ 1.566074] PCI host bridge /ocp/axi@0/pcie_rc@51000000 ranges:
[ 1.566087] No bus range found for /ocp/axi@0/pcie_rc@51000000, using [bus 00-ff]
[ 1.566120] IO 0x20003000..0x20012fff -> 0x00000000
[ 1.566141] MEM 0x20013000..0x2fffffff -> 0x20013000
[ 1.596195] dra7-pcie 51000000.pcie_rc: link is not up
[ 1.596362] dra7-pcie 51000000.pcie_rc: PCI host bridge to bus 0000:00
[ 1.596375] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.596385] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 1.596395] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[ 1.596792] PCI: bus0: Fast back to back transfers disabled
[ 1.596915] PCI: bus1: Fast back to back transfers enabled
[ 1.596996] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
[ 1.597011] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
[ 1.597024] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.597239] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
[ 1.657334] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 1.660684] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 301, base_baud = 3000000) is a 8250
[ 2.665064] console [ttyS0] enabled
[ 2.669456] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 302, base_baud = 3000000) is a 8250
[ 2.679148] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 303, base_baud = 3000000) is a 8250
[ 2.689189] [drm] Initialized drm 1.1.0 20060810
[ 2.694722] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.701365] [drm] No driver support for vblank timestamp query.
[ 2.707508] [drm] Initialized vdrm 1.0.0 20110917 on minor 0
[ 2.714293] omapdss_dss 58000000.dss: master bind failed: -517
[ 2.727868] loop: module loaded
[ 2.731468] lp87565 0-0060: Failed to read OTP ID
[ 2.736275] lp87565: probe of 0-0060 failed with error -121
[ 2.742022] vmemexp device MAJOR num = 245
[ 2.746173] vmemexp class registered
[ 2.749876] /dev/vmemexp device registered
[ 2.754009] ioctl DBUFIOC_EXPORT_VIRTMEM = -1072899120
[ 2.762185] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 0, 0
[ 2.769726] libphy: Fixed MDIO Bus: probed
[ 2.823954] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
[ 2.830076] libphy: 48485000.mdio: probed
[ 2.933925] davinci_mdio 48485000.mdio: timed out waiting for user access
[ 3.033978] davinci_mdio 48485000.mdio: timed out waiting for user access
[ 3.041433] cpsw 48484000.ethernet: Detected MACID = 40:bd:32:e0:38:ae
[ 3.048091] cpsw 48484000.ethernet: cpts: overflow check period 800
[ 3.055069] cpsw 48484000.ethernet: cpsw: Detected MACID = 40:bd:32:e0:38:af
[ 3.063717] mousedev: PS/2 mouse device common for all mice
[ 3.079956] i2c /dev entries driver
[ 3.088779] omap_hsmmc 4809c000.mmc: Got CD GPIO
[ 3.093613] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr104 mode
[ 3.100102] omap_hsmmc 4809c000.mmc: no pinctrl state for ddr50 mode
[ 3.106501] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr50 mode
[ 3.112882] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr25 mode
[ 3.119278] omap_hsmmc 4809c000.mmc: no pinctrl state for sdr12 mode
[ 3.125917] vsys_3v3: supplied by vsys_12v0
[ 3.130157] vio_3v3: supplied by vsys_3v3
[ 3.143967] vio_3v3_sd: supplied by vio_3v3
[ 3.184485] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
[ 3.190869] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
[ 3.243932] davinci_mdio 48485000.mdio: timed out waiting for idle
[ 3.284779] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.295843] hwspinlock_user gatemp: requested 20 hwspinlocks
[ 3.302742] aic_dvdd: supplied by vio_3v3
[ 3.308002] davinci-mcasp 48464000.mcasp: DAI is shared
[ 3.314097] davinci-mcasp 48474000.mcasp: DAI is shared
[ 3.320540] NET: Registered protocol family 10
[ 3.335861] sit: IPv6 over IPv4 tunneling driver
[ 3.341040] NET: Registered protocol family 17
[ 3.345750] Key type dns_resolver registered
[ 3.350138] omap_voltage_late_init: Voltage driver support not added
[ 3.357023] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
[ 3.363230] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
[ 3.369482] ti_oppdm 4a003b20.oppdm: Unable to get vdd regulator:-517
[ 3.376084] Power Management for TI OMAP4+ devices.
[ 3.381178] Registering SWP/SWPB emulation handler
[ 3.387344] dmm 4e000000.dmm: workaround for errata i878 in use
[ 3.394827] dmm 4e000000.dmm: initialized all PAT entries
[ 3.421764] omapdss_dss 58000000.dss: master bind failed: -517
[ 3.429582] asoc-simple-card sound0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
[ 3.439577] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
[ 3.445806] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
[ 3.452044] ti_oppdm 4a003b20.oppdm: Unable to get vdd regulator:-517
[ 3.459572] omapdss_dss 58000000.dss: master bind failed: -517
[ 3.466279] hctosys: unable to open rtc device (rtc0)
[ 3.483549] vio_3v3_sd: disabling
[ 3.486936] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.495003] vio_1v8: disabling
[ 3.498072] aic_dvdd: disabling
[ 3.501230] pbias_mmc_omap5: disabling
[ 3.505236] ALSA device list:
[ 3.508281] #0: DRA7xx-EVM
[ 3.508300] mmc0: error -110 whilst initialising SD card
[ 3.517427] Waiting for root device PARTUUID=c9762865-02...
#########################################################################################################33
Swapnil B