imx6dl sabresd uboot can not find MMC device

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6dl sabresd uboot can not find MMC device

2,649 Views
wenmingfeng
Contributor III

I have a customer board reference to the imx6dullite sabresd board. When I setting it boot from SD card. The uboot is up. but the uboot log show no mmc card found. Anybody else has similar issue?

U-Boot 2015.04 (Jan 12 2017 - 05:10:37)

CPU: Freescale i.MX6DL rev1.3 at 792 MHz
CPU: Temperature 54 C
Reset cause: POR
Board: MX6-SabreSD
I2C: ready
DRAM: 1 GiB
PMIC: PFUZE100 ID=0x10
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
MMC Device -1 not found
No MMC card found
Using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
MMC: no card present
Net: FEC [PRIME]
Error: FEC address not set.

Normal Boot
Hit any key to stop autoboot: 0
MMC Device -1 not found
no mmc device at slot ffffffff
MMC: no card present
Booting from net ...
*** ERROR: `ethaddr' not set
*** ERROR: `ethaddr' not set
Bad Linux ARM zImage magic!
=>

The uboot is i used is uboot-imx-rel_imx_3.14.52_1.1.0_ga, command I used is make mx6dlsabresd_config.

Thanks!

Wenming

Labels (2)
0 Kudos
2 Replies

831 Views
igorpadykov
NXP Employee
NXP Employee

Hi Wenming

one can check basic emmc functionality with attached baremetal test

from sdk (please create service request for obtaining full copy), run it

for example with jtag. Recommended to check emmc signals with oscilloscope.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

831 Views
wenmingfeng
Contributor III

Thanks Igor for your quick sense. I am not going further to verify the internel emmc yet. Currently I can set boot device as SD, and the uboot can run, the serial port can print what happend. So I can using uboot do basic debugging, when I load the zImage and dtb into ddr, The CPU panic at can not find the VFS. below are the print log on console.

=> bootz 0x12000000 - 0x18000000
Kernel image @ 0x12000000 [ 0x000000 - 0x4d5158 ]
## Flattened Device Tree blob at 18000000
Booting using the fdt blob at 0x18000000
Using Device Tree in place at 18000000, end 1800d9b2
switch to ldo_bypass mode!

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 3.14.52 (lucid@ubuntu) (gcc version 4.9.4 20151028 (prerelease) (Linaro GCC 4.9-2016.02) ) #2 SMP PREEMPT Thu Jan 12 11:41:55 PST 2017
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 DualLite SABRE Smart Device Board
cma: CMA: reserved 320 MiB at 3c000000
Memory policy: Data cache writealloc
PERCPU: Embedded 7 pages/cpu @ab732000 s8192 r8192 d12288 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=:,v3,tcp
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 701608K/1048576K available (6410K kernel code, 329K rwdata, 2040K rodata, 252K init, 407K bss, 346968K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x80848c54 (8452 kB)
.init : 0x80849000 - 0x80888000 ( 252 kB)
.data : 0x80888000 - 0x808da480 ( 330 kB)
.bss : 0x808da48c - 0x809401f0 ( 408 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
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
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32050000, Cache size: 512 kB
failed to set parent of clk gpu2d_core_sel to pll2_pfd1_594m: -22
Switching to timer-based delay loop
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x1061f1e8 - 0x1061f240
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (12.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
pinctrl core: initialized pinctrl subsystem
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
CPU identified as i.MX6DL, silicon rev 1.3
Use WDOG2 as reset source
syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
vdd1p1: 800 <--> 1375 mV at 1100 mV
vdd3p0: 2625 <--> 3400 mV at 3000 mV
vdd2p5: 2000 <--> 2750 mV at 2400 mV
vddarm: 725 <--> 1450 mV
vddpu: 725 <--> 1450 mV
vddsoc: 725 <--> 1450 mV
syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered
syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
imx6dl-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
bio: create slab <bio-0> at 0
mxs-dma 110000.dma-apbh: initialized
usb_otg_vbus: 5000 mV
usb_h1_vbus: 5000 mV
wm8962-supply: no parameters
mipi_dsi_pwr_on: no parameters
sensor-supply: 3300 mV
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbphy_nop1.12 supply vcc not found, using dummy regulator
usbphy_nop2.13 supply vcc not found, using dummy regulator
i2c i2c-0: IMX I2C adapter registered
i2c i2c-1: IMX I2C adapter registered
i2c i2c-2: IMX I2C adapter registered
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@linux.it>
PTP clock support registered
imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
Switched to clocksource mxc_timer1
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
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.
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
Bus freq driver module loaded
futex hash table entries: 512 (order: 3, 32768 bytes)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.22)
msgmni has been set to 2010
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-weim 21b8000.weim: Driver registered.
backlight.28 supply power not found, using dummy regulator
mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
MIPI DSI driver module loaded
mxc_sdc_fb fb.25: registered mxc display driver ldb
imx-ipuv3 2400000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
Console: switching to colour frame buffer device 128x48
mxc_hdmi 20e0000.hdmi_video: Detected HDMI controller 0x13:0x1a:0xa0:0xc1
fbcvt: 1920x1080@60: CVT Name - 2.073M9
mxc_sdc_fb fb.26: registered mxc display driver hdmi
imx_epdc_fb 20f4000.epdc: Unable to get display PMIC regulator.err = 0xfffffdfb
imx-sdma 20ec000.sdma: no iram assigned, using external mem
imx-sdma 20ec000.sdma: no event needs to be remapped
imx-sdma 20ec000.sdma: loaded firmware 3.2
imx-sdma 20ec000.sdma: initialized
pfuze100-regulator 1-0008: Full layer: 2, Metal layer: 1
pfuze100-regulator 1-0008: FAB: 0, FIN: 0
pfuze100-regulator 1-0008: pfuze100 found.
SW1AB: 300 <--> 1875 mV at 1175 mV
SW1C: 300 <--> 1875 mV at 1175 mV
SW2: 800 <--> 3300 mV at 3000 mV
SW3A: 400 <--> 1975 mV at 1500 mV
SW3B: 400 <--> 1975 mV at 1500 mV
SW4: 800 <--> 1975 mV at 1800 mV
SWBST: 5000 <--> 5150 mV at 5000 mV
VSNVS: 1000 <--> 3000 mV at 3000 mV
VREFDDR: 750 mV
VGEN1: 800 <--> 1550 mV at 800 mV
VGEN2: 800 <--> 1550 mV at 1500 mV
VGEN3: 1800 <--> 3300 mV at 2800 mV
VGEN4: 1800 <--> 3300 mV at 1800 mV
VGEN5: 1800 <--> 3300 mV at 3000 mV
VGEN6: 1800 <--> 3300 mV at 2800 mV
Serial: IMX driver
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a IMX
console [ttymxc0] enabled
serial: Freescale lpuart driver
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
m25p80 spi0.0: found mr25h256, expected m25p32
m25p80 spi0.0: mr25h256 (32 Kbytes)
spi_imx 2008000.ecspi: probed
2188000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
fec 2188000.ethernet (unregistered net_device): Invalid MAC address: 00:00:00:00:00:00
fec 2188000.ethernet (unregistered net_device): Using random MAC address: 36:23:e0:ee:18:55
libphy: fec_enet_mii_bus: probed
fec 2188000.ethernet eth0: registered PHC device 0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
ci_hdrc ci_hdrc.1: doesn't support gadget
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
egalax_ts 1-0004: Failed to read firmware version
egalax_ts: probe of 1-0004 failed with error -5
egalax_ts 2-0004: Failed to read firmware version
egalax_ts: probe of 2-0004 failed with error -5
snvs_rtc 20cc034.snvs-rtc-lp: can't get snvs-rtc clock
snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR SANYO protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
mxc_v4l2_output v4l2_out.31: V4L2 device registered as video16
mxc_v4l2_output v4l2_out.31: V4L2 device registered as video17
mxc_v4l2_output v4l2_out.31: V4L2 device registered as video18
imx2-wdt 20c0000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc1: no vqmmc regulator found
mmc1: no vmmc regulator found
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
mmc2: no vqmmc regulator found
mmc2: no vmmc regulator found
mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
mmc3: no vqmmc regulator found
mmc3: no vmmc regulator found
mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
galcore: clk_get vg clock failed, disable vg!
Galcore version 5.0.11.33433
mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
mxc_vpu 2040000.vpu: VPU initialized
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
wm8962 0-001a: Failed to read ID register
wm8962: probe of 0-001a failed with error -5
imx-wm8962 sound.23: failed to find codec platform device
imx-wm8962: probe of sound.23 failed with error -22
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
Key type dns_resolver registered
failed to disable 1.2 GHz OPP
Registering SWP/SWPB emulation handler
SWBST: disabling
SW4: disabling
sensor-supply: disabling
wm8962-supply: disabling
usb_otg_vbus: disabling
regulator-dummy: disabling
Number of LUNs=8
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
Number of LUNs=1
no file given for LUN0
g_mass_storage ci_hdrc.0: failed to start g_mass_storage: -22
input: gpio-keys.22 as /devices/soc0/gpio-keys.22/input/input2
snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 19:10:23 UTC (69023)
fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
libphy: 2188000.ethernet:01 - Link is Up - 100/Full
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
IP-Config: Incomplete network configuration information
ALSA device list:
No soundcards found.
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
1f00 32 mtdblock0 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.14.52 #2
[<80014784>] (unwind_backtrace) from [<800116c8>] (show_stack+0x10/0x14)
[<800116c8>] (show_stack) from [<806199f4>] (dump_stack+0x7c/0xbc)
[<806199f4>] (dump_stack) from [<80013730>] (handle_IPI+0x144/0x158)
[<80013730>] (handle_IPI) from [<80008514>] (gic_handle_irq+0x58/0x5c)
[<80008514>] (gic_handle_irq) from [<80012180>] (__irq_svc+0x40/0x70)
Exception stack(0xa80dbf58 to 0xa80dbfa0)
bf40: a80dbfa0 3b9aca00
bf60: 514fedc0 00000001 50c50b10 00000001 ab73b048 80895f58 00000001 ab73b04c
bf80: a80da000 00000000 00000017 a80dbfa0 a6aaaaab 80439d98 00000113 ffffffff
[<80012180>] (__irq_svc) from [<80439d98>] (cpuidle_enter_state+0x58/0xec)
[<80439d98>] (cpuidle_enter_state) from [<80439f30>] (cpuidle_idle_call+0x104/0x158)
[<80439f30>] (cpuidle_idle_call) from [<8000efb0>] (arch_cpu_idle+0x8/0x44)
[<8000efb0>] (arch_cpu_idle) from [<80063464>] (cpu_startup_entry+0x100/0x14c)
[<80063464>] (cpu_startup_entry) from [<100085a4>] (0x100085a4)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/time/tick-broadcast.c:604 tick_handle_oneshot_broadcast+0x1ac/0x1c8()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.52 #2
[<80014784>] (unwind_backtrace) from [<800116c8>] (show_stack+0x10/0x14)
[<800116c8>] (show_stack) from [<806199f4>] (dump_stack+0x7c/0xbc)
[<806199f4>] (dump_stack) from [<80029108>] (warn_slowpath_common+0x6c/0x88)
[<80029108>] (warn_slowpath_common) from [<800291c0>] (warn_slowpath_null+0x1c/0x24)
[<800291c0>] (warn_slowpath_null) from [<80076760>] (tick_handle_oneshot_broadcast+0x1ac/0x1c8)
[<80076760>] (tick_handle_oneshot_broadcast) from [<8001d8bc>] (mxc_timer_interrupt+0x2c/0x34)
[<8001d8bc>] (mxc_timer_interrupt) from [<80063d60>] (handle_irq_event_percpu+0x50/0x180)
[<80063d60>] (handle_irq_event_percpu) from [<80063ecc>] (handle_irq_event+0x3c/0x5c)
[<80063ecc>] (handle_irq_event) from [<80066d04>] (handle_fasteoi_irq+0x84/0x14c)
[<80066d04>] (handle_fasteoi_irq) from [<800634ec>] (generic_handle_irq+0x2c/0x3c)
[<800634ec>] (generic_handle_irq) from [<8000ec80>] (handle_IRQ+0x40/0x90)
[<8000ec80>] (handle_IRQ) from [<800084e8>] (gic_handle_irq+0x2c/0x5c)
[<800084e8>] (gic_handle_irq) from [<80012180>] (__irq_svc+0x40/0x70)
Exception stack(0xa80b9d90 to 0xa80b9dd8)
9d80: 00000000 00204140 808db5c0 00000000
9da0: 00000002 00006458 00001158 f4a00100 a80b8018 808db130 a8772000 00000000
9dc0: 00000001 a80b9dd8 8002d110 8002d120 20000113 ffffffff
[<80012180>] (__irq_svc) from [<8002d120>] (__do_softirq+0xc0/0x23c)
[<8002d120>] (__do_softirq) from [<8002d55c>] (irq_exit+0xb8/0xf4)
[<8002d55c>] (irq_exit) from [<8000ec84>] (handle_IRQ+0x44/0x90)
[<8000ec84>] (handle_IRQ) from [<800084e8>] (gic_handle_irq+0x2c/0x5c)
[<800084e8>] (gic_handle_irq) from [<80012180>] (__irq_svc+0x40/0x70)
Exception stack(0xa80b9e60 to 0xa80b9ea8)
9e60: 00000001 00000000 00000001 00000000 808db130 8087b194 00008001 00000000
9e80: 00000000 808db130 a8772000 00000000 00000000 a80b9ea8 800616fc 806179a4
9ea0: 60000113 ffffffff
[<80012180>] (__irq_svc) from [<806179a4>] (panic+0x160/0x1b8)
[<806179a4>] (panic) from [<8084a024>] (mount_block_root+0x1a0/0x230)
[<8084a024>] (mount_block_root) from [<8084a2a8>] (mount_root+0x108/0x110)
[<8084a2a8>] (mount_root) from [<8084a440>] (prepare_namespace+0x190/0x1d4)
[<8084a440>] (prepare_namespace) from [<80849ce0>] (kernel_init_freeable+0x1c8/0x1d8)
[<80849ce0>] (kernel_init_freeable) from [<80615ea0>] (kernel_init+0xc/0xe8)
[<80615ea0>] (kernel_init) from [<8000e440>] (ret_from_fork+0x14/0x34)
---[ end trace d82591de0719535d ]---

This means the SD/device not working, question is why the uboot can run? Can I change the uboot environment settings to fix ?

thanks!

Wenming 

0 Kudos