UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer benzao
Observer
10,186 Views
Registered: ‎02-04-2014

Kernel hangs at "mmc0: no vmmc regulator found"

i use "git pull" for linux_xlnx and compile linux kernel again, 

Kernel hangs at "mmc0: no vmmc regulator found"

 

 

 

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.14.0-xilinx (root@ubuntu) (gcc version 4.7.3 (Sourcery CodeBench
Lite 2013.05-40) ) #1 SMP PREEMPT Sat Jul 12 21:42:39 PDT 2014
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Xilinx Zynq
cma: CMA: reserved 128 MiB at 17400000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @dfba0000 s9024 r8192 d15552 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttyPS0,115200
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 377684K/524288K available (4596K kernel code, 232K rwdata, 1536K rodata,
188K init, 192K bss, 146604K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc06055ac (6134 kB)
.init : 0xc0606000 - 0xc0635340 ( 189 kB)
.data : 0xc0636000 - 0xc06701a0 ( 233 kB)
.bss : 0xc06701ac - 0xc06a033c ( 193 kB)
Preemptible hierarchical RCU implementation.
Dump stacks of tasks blocking RCU-preempt GP.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
ps7-slcr mapped to e0802000
zynq_clock_init: clkc starts at e0802100
Zynq clock init
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 3298534883328ns
Console: colour dummy device 80x30
Calibrating delay loop... 1325.46 BogoMIPS (lpj=6627328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
missing device node for CPU 0
missing device node for CPU 1
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x457aa8 - 0x457b00
L310 cache controller enabled
l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72760000, Cache size: 512 kB
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
syscon f8000000.ps7-slcr: regmap [mem 0xf8000000-0xf8000fff] registered
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ps7-ocmc: ZYNQ OCM pool: 256 KiB @ 0xe0880000
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l
inux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource arm_global_timer
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 3856K (df78b000 - dfb4f000)
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
jffs2: version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 1001
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.ps7-dma: Loaded driver for PL330 DMAC-267056
dma-pl330 f8003000.ps7-dma: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Even
ts-16
xuartps e0000000.serial: clock name 'aper_clk' is deprecated.
xuartps e0000000.serial: clock name 'ref_clk' is deprecated.
e0000000.serial: ttyPS0 at MMIO 0xe0000000 (irq = 59, base_baud = 3124999) is a
xuartps
console [ttyPS0] enabled
xdevcfg f8007000.ps7-dev-cfg: ioremap 0xf8007000 to e0862000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
xemacps e000b000.ps7-ethernet: pdev->id -1, baseaddr 0xe000b000, irq 54
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ULPI transceiver vendor/product ID 0x0424/0x0007
Found SMSC USB3320 ULPI transceiver.
ULPI integrity check: passed.
zynq-ehci zynq-ehci.0: Xilinx Zynq USB EHCI Host Controller
zynq-ehci zynq-ehci.0: new USB bus registered, assigned bus number 1
zynq-ehci zynq-ehci.0: irq 53, io mem 0x00000000
zynq-ehci zynq-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-i2c e0004000.ps7-i2c: 400 kHz mmio e0004000 irq 57
zynq-edac f8006000.ps7-ddrc: ecc not enabled
cpufreq_cpu0: failed to find cpu0 node
cpufreq-cpu0: probe of cpufreq-cpu0.0 failed with error -2
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: no vmmc regulator found

 

0 Kudos
14 Replies
Xilinx Employee
Xilinx Employee
10,152 Views
Registered: ‎09-10-2008

Re: Kernel hangs at "mmc0: no vmmc regulator found"

Hi,

 

You don't give much details that might help.  What board are you using?  

 

Did it work before the pull and now it's not?

 

Did you regenerate the device tree to match the kernel or use a device tree in the kernel?  The device tree changes between kernel versions and may not be compatible if your kernel version changed.

 

Thanks

John

 

0 Kudos
Visitor sadiaq
Visitor
9,908 Views
Registered: ‎08-26-2014

Re: Kernel hangs at "mmc0: no vmmc regulator found"

I am having exactly the same issue 

 

I am using the microzed 7020 board and have compiled the linux-xlnx kernel from github.

The distribution is Xillinux but it doesnt even load the kernel properly.

I am trying to run the sample code that comes with Xillinux .

Please help

 

0 Kudos
Scholar trenz-al
Scholar
9,901 Views
Registered: ‎11-09-2013

Re: Kernel hangs at "mmc0: no vmmc regulator found"

1 you can add fixed regulator in device tree this makes the warning go away

2 please use petalinux 2014.2 evcerything else is wast of time.. my2cent

0 Kudos
Visitor ashiar01
Visitor
9,891 Views
Registered: ‎08-04-2014

Re: Kernel hangs at "mmc0: no vmmc regulator found"

We have the exact same issue. The last suggestion applies to removing the warning and not the hang itself.

We are using a custom board with a Z7030 with Petalinux 2014.2 The devicetree is imported as described in the UG. This issue happens on some of the builds and not others. The only changes to the build are in the PL so it shouldn't be affecting this. I have played around with the PL changes and it seems like the break is random rather than depending on certain logic being present or not.

0 Kudos
Scholar trenz-al
Scholar
9,882 Views
Registered: ‎11-09-2013

Re: Kernel hangs at "mmc0: no vmmc regulator found"

thats is weird - 2014.2 seems rather stable

 

and the mmc regulator warning I think is not related the real problem

0 Kudos
Visitor ali.ebrahimi
Visitor
9,877 Views
Registered: ‎12-08-2013

Re: Kernel hangs at "mmc0: no vmmc regulator found"

I am dealing with the same problem since a few days with no solution. I am using a Mars ZX3 Module on a custom board. The board is using a micro SD card. Since I am usign the SD card to boot from and micro SD does not provide CD and WP signals, I had to modify the zynq boot loader so it ignores card detection. It works fine and u-boot detects the card.

But as mentioned in the first post, it hangs when the kerenl starts and reaches the point where it loads SDHCI driver for the SD card.

I tried adding broken-cd and broken-wp to the device tree and it didn't help.

I'm using Vivado and Petalinux 14.2 and latest linux kernel 3.14 which comes with the peta linux.

0 Kudos
Scholar milosoftware
Scholar
9,870 Views
Registered: ‎10-26-2012

Re: Kernel hangs at "mmc0: no vmmc regulator found"

"broken-wp" does not exist. I submitted a patch to add support for it, but it was never accepted.

 

Connect the CD and WP lines to EMIO, do not set them as unused in Vivado (Vivado <= 2014.1 will connect unused WP/CD pins to MIO 0 instead of tying them to EMIO)

 

There is an "invert" property (wp-inverted or something like that) that you can then use to make the WP line being seen as correct if it isn't already.

0 Kudos
Visitor ali.ebrahimi
Visitor
9,861 Views
Registered: ‎12-08-2013

Re: Kernel hangs at "mmc0: no vmmc regulator found"

Thank you for the reply.

I have tried connecting the CD and WP pins to EMIO and made them external. Then in the PL I set WP= '0' and CD = '1' or CD = '0' and none of them worked.

0 Kudos
Scholar trenz-al
Scholar
9,852 Views
Registered: ‎11-09-2013

Re: Kernel hangs at "mmc0: no vmmc regulator found"

kernel would not hang no matter the CD or WP settings, its irrelevant

 

 

0 Kudos
Xilinx Employee
Xilinx Employee
5,323 Views
Registered: ‎12-17-2007

Re: Kernel hangs at "mmc0: no vmmc regulator found"

benzao -- can you please post your 2014.2 DTS and DTSI files? Are you sure that you have the TTC defined in them?
-------------------------------------------
this space intentionally left blank
0 Kudos
Visitor ali.ebrahimi
Visitor
5,317 Views
Registered: ‎12-08-2013

Re: Kernel hangs at "mmc0: no vmmc regulator found"

Please see the files attached. There are two TTC defined in ps.dtsi.

0 Kudos
Xilinx Employee
Xilinx Employee
5,308 Views
Registered: ‎12-17-2007

Re: Kernel hangs at "mmc0: no vmmc regulator found"

I took a quick look at your DTS files and I see the TTC's there as well.  The *important* thing though is that their status is marked as "disabled."

 

Embedded Linux on Zynq requires at least one TTC for use as a system timer.  Double-check your hardware design in Vivado to ensure that you've enabled the Zynq PS TTC.  Once it's enabled, re-implement the design in Vivado and re-export over to PetaLinux.  The DTS will be updated and then you'll see it show up without the "disabled" flag.

-------------------------------------------
this space intentionally left blank
Scholar milosoftware
Scholar
5,303 Views
Registered: ‎10-26-2012

Re: Kernel hangs at "mmc0: no vmmc regulator found"

kernel would not hang no matter the CD or WP settings, its irrelevant

 

Indeed, you're right. If the WP or CD signal were the problem, the kernel would "panic" there and complain about not being able to mount the root.

If the root filesystem is ext3/4, the kernel will also fail to mount it if it's read-only, even if you attempt to mount it "ro". This is because of the journal "playback" if the filesystem is in an inconsistent state.

0 Kudos
Visitor ali.ebrahimi
Visitor
5,299 Views
Registered: ‎12-08-2013

Re: Kernel hangs at "mmc0: no vmmc regulator found"

Thanks a lot tmcdowe. Enabling TTC routed to EMIO solved the problem.
I can't find the option to mark your answer as a solution, perhaps because I'm not the one who has started the thread.
0 Kudos