Other Parts Discussed in Thread: TPS65218
Tool/software: Linux
Dear Sir,
We designed a board based on am437x-gp-evm. I am trying to boot from eMMC. I have changed "boot part " to "1:2" in uboot source code to boot from eMMC.
Now i am getting below error while boot from eMMC.
U-Boot SPL 2015.07-00114-gf8d68d1-dirty (Apr 12 2017 - 16:23:48)
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img
U-Boot 2015.07-00114-gf8d68d1-dirty (Apr 12 2017 - 15:00:57 +0530)
I2C: ready
DRAM: 2 GiB
PMIC: TPS65218
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Card did not respond to voltage select!
** Bad device mmc 0 **
Using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 1 [08][08][08] 0
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 2
MMC Device 2 not found
** Bad device mmc 2 **
3262760 bytes read in 167 ms (18.6 MiB/s)
46105 bytes read in 21 ms (2.1 MiB/s)
Booting from mmc0
Card did not respond to voltage select!
** Bad device mmc 0 **
Kernel image @ 0x82000000 [ 0x000000 - 0x31c928 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff1000, end 8ffff418 ... 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.1.6-g52c4aa7 (winiston@winiston-HP) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) ) #2 PREEMPT Wed Jan 4 18:12:45 IST 2017
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM437x GP EVM
[ 0.000000] cma: Reserved 24 MiB at 0xfe400000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM437x ES1.2 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 522577
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID= rw rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 2043908K/2097148K available (6251K kernel code, 261K rwdata, 2104K rodata, 272K init, 243K bss, 28664K reserved, 24576K cma-reserved, 1294332K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc083106c (8357 kB)
[ 0.000000] .init : 0xc0832000 - 0xc0876000 ( 272 kB)
[ 0.000000] .data : 0xc0876000 - 0xc08b7560 ( 262 kB)
[ 0.000000] .bss : 0xc08ba000 - 0xc08f6ce8 ( 244 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] OMAP L2C310: ROM does not support power control setting
[ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
[ 0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x7e430000
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000030] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000038] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000177] Console: colour dummy device 80x30
[ 0.000199] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000203] This ensures that you still see kernel messages. Please
[ 0.000207] update your kernel commandline.
[ 0.000223] Calibrating delay loop... 1993.93 BogoMIPS (lpj=9969664)
[ 0.059263] pid_max: default: 32768 minimum: 301
[ 0.059360] Security Framework initialized
[ 0.059400] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.059409] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.060044] Initializing cgroup subsys blkio
[ 0.060070] Initializing cgroup subsys memory
[ 0.060114] Initializing cgroup subsys devices
[ 0.060128] Initializing cgroup subsys freezer
[ 0.060141] Initializing cgroup subsys perf_event
[ 0.060164] CPU: Testing write buffer coherency: ok
[ 0.060509] Setting up static identity map for 0x80008200 - 0x80008270
[ 0.062027] devtmpfs: initialized
[ 0.071119] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.082481] omap_hwmod: tptc0 using broken dt data from edma
[ 0.082604] omap_hwmod: tptc1 using broken dt data from edma
[ 0.082704] omap_hwmod: tptc2 using broken dt data from edma
[ 0.085577] omap_hwmod: rtc: no dt node
[ 0.085588] ------------[ cut here ]------------
[ 0.085617] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2526 _init+0x3d0/0x428()
[ 0.085622] omap_hwmod: rtc: doesn't have mpu register target base
[ 0.085627] Modules linked in:
[ 0.085640] CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.6-g52c4aa7 #2
[ 0.085646] Hardware name: Generic AM43 (Flattened Device Tree)
[ 0.085652] Backtrace:
[ 0.085682] [<c0012968>] (dump_backtrace) from [<c0012b7c>] (show_stack+0x18/0x1c)
[ 0.085688] r6:000009de r5:c083ebd8 r4:00000000 r3:00000000
[ 0.085710] [<c0012b64>] (show_stack) from [<c061a900>] (dump_stack+0x20/0x28)
[ 0.085729] [<c061a8e0>] (dump_stack) from [<c0039e2c>] (warn_slowpath_common+0x80/0xb8)
[ 0.085740] [<c0039dac>] (warn_slowpath_common) from [<c0039e9c>] (warn_slowpath_fmt+0x38/0x40)
[ 0.085745] r8:c083f398 r7:c08ba000 r6:00000000 r5:00000000 r4:c0881b08
[ 0.085765] [<c0039e68>] (warn_slowpath_fmt) from [<c083ebd8>] (_init+0x3d0/0x428)
[ 0.085770] r3:c07cd1e4 r2:c0786860
[ 0.085784] [<c083e808>] (_init) from [<c083f3e0>] (__omap_hwmod_setup_all+0x48/0x94)
[ 0.085789] r9:00000000 r8:c083f398 r7:c08ba000 r6:ee0cd680 r5:c087d218 r4:c0881b08
[ 0.085808] [<c083f398>] (__omap_hwmod_setup_all) from [<c00096cc>] (do_one_initcall+0x88/0x1e0)
[ 0.085813] r5:c087aca0 r4:c087aca0
[ 0.085836] [<c0009644>] (do_one_initcall) from [<c0832e90>] (kernel_init_freeable+0x174/0x23c)
[ 0.085841] r10:c0867e78 r9:00000094 r8:c0867e58 r7:c08ba000 r6:c08ba000 r5:00000001
[ 0.085854] r4:c0873d38
[ 0.085877] [<c0832d1c>] (kernel_init_freeable) from [<c0616cf8>] (kernel_init+0x10/0xf4)
[ 0.085882] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0616ce8
[ 0.085893] r4:00000000
[ 0.085905] [<c0616ce8>] (kernel_init) from [<c000f7c8>] (ret_from_fork+0x14/0x2c)
[ 0.085910] r4:00000000 r3:ee062000
[ 0.085939] ---[ end trace bf120f641656956a ]---
[ 0.142563] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.144290] pinctrl core: initialized pinctrl subsystem
[ 0.145348] NET: Registered protocol family 16
[ 0.146617] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.169308] cpuidle: using governor ladder
[ 0.199298] cpuidle: using governor menu
[ 0.200615] omap_l3_noc 44000000.ocp: L3 debug error: target 8 mod:0 (unclearable)
[ 0.200668] omap_l3_noc 44000000.ocp: L3 application error: target 8 mod:0 (unclearable)
[ 0.203250] OMAP GPIO hardware version 0.1
[ 0.203724] omap_gpio 4804c000.gpio: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/gpio1_pins_default, deferring probe
[ 0.203975] omap_gpio 481ac000.gpio: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/gpio2_pins_default, deferring probe
[ 0.204197] omap_gpio 481ae000.gpio: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/gpio3_pins_default, deferring probe
[ 0.211253] No ATAGs?
[ 0.211285] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.211296] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.245869] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.249474] vgaarb: loaded
[ 0.249910] SCSI subsystem initialized
[ 0.250423] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe
[ 0.250470] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins_default, deferring probe
[ 0.250618] pps_core: LinuxPPS API ver. 1 registered
[ 0.250625] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.250651] PTP clock support registered
[ 0.251301] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.251545] Advanced Linux Sound Architecture Driver Initialized.
[ 0.252167] Switched to clocksource timer1
[ 0.260022] NET: Registered protocol family 2
[ 0.260702] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.260774] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.260848] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.260993] UDP hash table entries: 512 (order: 1, 8192 bytes)
[ 0.261015] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
[ 0.261173] NET: Registered protocol family 1
[ 0.261491] RPC: Registered named UNIX socket transport module.
[ 0.261503] RPC: Registered udp transport module.
[ 0.261508] RPC: Registered tcp transport module.
[ 0.261513] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.263486] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.263565] audit: initializing netlink subsys (disabled)
[ 0.263619] audit: type=2000 audit(0.250:1): initialized
[ 0.268564] VFS: Disk quotas dquot_6.6.0
[ 0.268730] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.270285] NFS: Registering the id_resolver key type
[ 0.270334] Key type id_resolver registered
[ 0.270341] Key type id_legacy registered
[ 0.270407] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.272649] NET: Registered protocol family 38
[ 0.272743] bounce: pool size: 64 pages
[ 0.272759] io scheduler noop registered
[ 0.272770] io scheduler deadline registered
[ 0.272827] io scheduler cfq registered (default)
[ 0.274715] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796
[ 0.276691] backlight supply power not found, using dummy regulator
[ 0.278237] 4832a000.dss supply vdda_video not found, using dummy regulator
[ 0.278344] OMAP DSS rev 2.0
[ 0.278768] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops)
[ 0.280435] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 0.281389] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.283879] omap8250 44e09000.serial: No clock speed specified: using default: 48000000
[ 0.284324] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 25, base_baud = 3000000) is a 8250
[ 1.232559] console [ttyS0] enabled
[ 1.236514] omap8250 481a6000.serial: No clock speed specified: using default: 48000000
[ 1.244979] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 26, base_baud = 3000000) is a 8250
[ 1.254716] [drm] Initialized drm 1.1.0 20060810
[ 1.269143] brd: module loaded
[ 1.276770] loop: module loaded
[ 1.280821] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.289616] mousedev: PS/2 mouse device common for all mice
[ 1.295351] i2c /dev entries driver
[ 1.416125] mmc1: MAN_BKOPS_EN bit is not set
[ 1.424174] mmc1: new high speed MMC card at address 0001
[ 1.430027] mmcblk0: mmc1:0001 MMC04G 3.60 GiB
[ 1.434869] mmcblk0boot0: mmc1:0001 MMC04G partition 1 16.0 MiB
[ 1.440961] mmcblk0boot1: mmc1:0001 MMC04G partition 2 16.0 MiB
[ 1.448969] mmcblk0: p1 p2
[ 1.492536] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.498914] omap-aes 53501000.aes: OMAP AES hw accel rev: 0.1
[ 1.507014] omap-des 53701000.des: OMAP DES hw accel rev: 0.33
[ 1.516185] omap-sham 53100000.sham: hw accel on OMAP rev 0.0
[ 1.524134] remoteproc0: wkup_m3 is available
[ 1.528611] remoteproc0: Note: remoteproc is still under development and considered experimental.
[ 1.537823] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 1.548538] remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
[ 1.560750] oprofile: no performance counters
[ 1.565292] remoteproc0: Falling back to user helper
[ 1.570696] oprofile: using timer interrupt.
[ 1.575434] Initializing XFRM netlink socket
[ 1.579784] NET: Registered protocol family 17
[ 1.584354] NET: Registered protocol family 15
[ 1.588825] can: controller area network core (rev 20120528 abi 9)
[ 1.595137] NET: Registered protocol family 29
[ 1.599700] Key type dns_resolver registered
[ 1.604169] omap_voltage_late_init: Voltage driver support not added
[ 1.610979] ThumbEE CPU extension supported.
[ 1.615340] Registering SWP/SWPB emulation handler
[ 1.622735] omapdrm omapdrm.0: DMM not available, disable DMM support
[ 1.630507] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.637248] [drm] No driver support for vblank timestamp query.
[ 1.685882] Console: switching to colour frame buffer device 80x30
[ 1.708822] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[ 1.714787] omapdrm omapdrm.0: registered panic notifier
[ 1.742196] [drm] Initialized omapdrm 1.0.0 20110917 on minor 0
[ 1.748756] GPIO line 65 (p1) hogged as output/high
[ 1.753761] GPIO line 92 (eMMC Resetn) hogged as output/high
[ 1.760005] GPIO line 96 (LCD_BK_EN) hogged as output/high
[ 1.766033] GPIO line 152 (p24) hogged as output/high
[ 1.808234] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz
[ 1.814842] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz
[ 1.882198] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.888330] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.895199] libphy: 4a101000.mdio: probed
[ 1.899242] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver unknown
[ 1.907928] cpsw 4a100000.ethernet: Missing slave[0] phy_id property
[ 1.914533] cpsw 4a100000.ethernet: Detected MACID = c4:be:84:cb:1c:76
[ 1.922002] hctosys: unable to open rtc device (rtc0)
[ 1.930600] vmmcwl_fixed: disabling
[ 1.934415] ALSA device list:
[ 1.937398] No soundcards found.
[ 1.941205] VFS: PARTUUID= is invalid.
[ 1.941205] Expected PARTUUID=<valid-uuid-id>[/PARTNROFF=%d]
[ 1.950728] Disabling rootwait; root= is invalid.
[ 1.955690] VFS: Cannot open root device "PARTUUID=" or unknown-block(0,0): error -6
[ 1.963576] Please append a correct "root=" boot option; here are the available partitions:
[ 1.971975] 0100 16384 ram0 (driver?)
[ 1.976661] 0101 16384 ram1 (driver?)
[ 1.981304] 0102 16384 ram2 (driver?)
[ 1.985979] 0103 16384 ram3 (driver?)
[ 1.990622] 0104 16384 ram4 (driver?)
[ 1.995292] 0105 16384 ram5 (driver?)
[ 1.999934] 0106 16384 ram6 (driver?)
[ 2.004597] 0107 16384 ram7 (driver?)
[ 2.009239] 0108 16384 ram8 (driver?)
[ 2.013894] 0109 16384 ram9 (driver?)
[ 2.018536] 010a 16384 ram10 (driver?)
[ 2.023278] 010b 16384 ram11 (driver?)
[ 2.028008] 010c 16384 ram12 (driver?)
[ 2.032748] 010d 16384 ram13 (driver?)
[ 2.037477] 010e 16384 ram14 (driver?)
[ 2.042256] 010f 16384 ram15 (driver?)
[ 2.046994] b300 3776512 mmcblk0 driver: mmcblk
[ 2.052353] b301 16384 mmcblk0p1 dd26bb8c-01
[ 2.057693] b302 3759104 mmcblk0p2 dd26bb8c-02
[ 2.063044] b310 16384 mmcblk0boot1 (driver?)
[ 2.068385] b308 16384 mmcblk0boot0 (driver?)
[ 2.073737] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.082037] drm_kms_helper: panic occurred, switching back to text console
[ 2.088963] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
if i enter below command from u-boot# prompt,
"setenv finduuid part uuid mmc 1:2 uuid "
After giving above command, it is booting from eMMC properly. But when i reset the board,It is not booting and it gives same error which i have mentioned above.
How do i save above variable to eMMC ?
If i enter "saveenv" , it gives below error
"Saving Environment to FAT...
Card did not respond to voltage select!
** Bad device mmc 0 ** "
How do i solve this issue?
Regards,
Winiston.P