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.

MMC2启动系统到一半出错

Other Parts Discussed in Thread: TPS65217

Starting xmodem transfer.  Press Ctrl+C to cancel.
Transferring u-boot-spl.bin...
  100%      64 KB       6 KB/sec    00:00:10       0 Errors  


U-Boot SPL 2015.07 (Dec 17 2016 - 18:22:13)
CC
Transferring u-boot.img, errors 1...l+C to cancel.
  100%     365 KB       4 KB/sec    00:01:30       2 Errors  

Loaded 373788 bytes


U-Boot 2015.07 (Dec 17 2016 - 18:22:13 +0800)

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1, OMAP SD/MMC: 2
** Bad device mmc 0 **
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
Phy 4 not found
cpsw, usb_ether
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
reading zImage
4030936 bytes read in 509 ms (7.6 MiB/s)
reading am335x-evm.dtb
31504 bytes read in 11 ms (2.7 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x3d81d8 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff5000, end 8ffffb0f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.18 (root@pc) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #46 PREEMPT Fri Dec 16 19:12:05 CST 2016
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x EVM
[    0.000000] cma: Reserved 24 MiB at 0x9e800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=ccd4ebea-02 rw rootfstype=ext4 rootwait
[    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: 483092K/524288K available (7795K kernel code, 328K rwdata, 2688K rodata, 280K init, 244K bss, 16620K reserved, 24576K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 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 - 0xc0a4505c   (10485 kB)
[    0.000000]       .init : 0xc0a46000 - 0xc0a8c000   ( 280 kB)
[    0.000000]       .data : 0xc0a8c000 - 0xc0ade0c8   ( 329 kB)
[    0.000000]        .bss : 0xc0ae1000 - 0xc0b1e0d8   ( 245 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] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
[    0.000034] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000082] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000110] OMAP clocksource: timer1 at 25000000 Hz
[    0.000486] Console: colour dummy device 80x30
[    0.000537] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000554] This ensures that you still see kernel messages. Please
[    0.000569] update your kernel commandline.
[    0.000607] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[    0.067777] pid_max: default: 32768 minimum: 301
[    0.068029] Security Framework initialized
[    0.068144] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.068173] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.069694] Initializing cgroup subsys blkio
[    0.069753] Initializing cgroup subsys memory
[    0.069847] Initializing cgroup subsys devices
[    0.069884] Initializing cgroup subsys freezer
[    0.069920] Initializing cgroup subsys perf_event
[    0.069982] CPU: Testing write buffer coherency: ok
[    0.070747] Setting up static identity map for 0x80008200 - 0x80008270
[    0.074185] devtmpfs: initialized
[    0.099633] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.131689] omap_hwmod: debugss: _wait_target_disable failed
[    0.201572] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.206279] pinctrl core: initialized pinctrl subsystem
[    0.209479] NET: Registered protocol family 16
[    0.215080] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.237859] cpuidle: using governor ladder
[    0.267841] cpuidle: using governor menu
[    0.279268] OMAP GPIO hardware version 0.1
[    0.300708] No ATAGs?
[    0.300777] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.372800] edma 49000000.edma: TI EDMA DMA engine driver
[    0.380878] vgaarb: loaded
[    0.382215] SCSI subsystem initialized
[    0.382978] usbcore: registered new interface driver usbfs
[    0.383159] usbcore: registered new interface driver hub
[    0.383420] usbcore: registered new device driver usb
[    0.384758] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.385072] media: Linux media interface: v0.10
[    0.385233] Linux video capture interface: v2.00
[    0.385366] pps_core: LinuxPPS API ver. 1 registered
[    0.385387] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.385463] PTP clock support registered
[    0.387452] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.388089] Advanced Linux Sound Architecture Driver Initialized.
[    0.392035] Switched to clocksource timer1
[    0.419777] NET: Registered protocol family 2
[    0.421707] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.421849] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.421971] TCP: Hash tables configured (established 4096 bind 4096)
[    0.422297] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.422355] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.422741] NET: Registered protocol family 1
[    0.423512] RPC: Registered named UNIX socket transport module.
[    0.423545] RPC: Registered udp transport module.
[    0.423561] RPC: Registered tcp transport module.
[    0.423579] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.425537] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[    0.425643] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.430259] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.430481] audit: initializing netlink subsys (disabled)
[    0.430613] audit: type=2000 audit(0.420:1): initialized
[    0.450393] VFS: Disk quotas dquot_6.6.0
[    0.450907] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.456938] NFS: Registering the id_resolver key type
[    0.457080] Key type id_resolver registered
[    0.457103] Key type id_legacy registered
[    0.457292] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.464646] NET: Registered protocol family 38
[    0.464812] io scheduler noop registered
[    0.464848] io scheduler deadline registered
[    0.464999] io scheduler cfq registered (default)
[    0.467419] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.473536] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    0.475827] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.484940] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    1.123575] console [ttyS0] enabled
[    1.129363] [drm] Initialized drm 1.1.0 20060810
[    1.137007] tilcdc 4830e000.lcdc: no encoders/connectors found
[    1.143175] tilcdc 4830e000.lcdc: failed to initialize mode setting
[    1.177476] brd: module loaded
[    1.193995] loop: module loaded
[    1.199512] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.211863] PPP generic driver version 2.4.2
[    1.216898] PPP BSD Compression module registered
[    1.221659] PPP Deflate Compression module registered
[    1.226868] PPP MPPE Compression module registered
[    1.231723] NET: Registered protocol family 24
[    1.238319] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.245014] ehci-pci: EHCI PCI platform driver
[    1.249666] ehci-omap: OMAP-EHCI Host Controller driver
[    1.255293] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.261567] ohci-pci: OHCI PCI platform driver
[    1.266269] ohci-platform: OHCI generic platform driver
[    1.272709] usbcore: registered new interface driver cdc_acm
[    1.278413] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.286696] usbcore: registered new interface driver cdc_wdm
[    1.292658] usbcore: registered new interface driver usb-storage
[    1.299088] usbcore: registered new interface driver usbserial
[    1.305151] usbcore: registered new interface driver option
[    1.310873] usbserial: USB Serial support registered for GSM modem (1-port)
[    1.321757] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.355624] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
[    1.361669] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
[    1.371420] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.405377] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
[    1.411398] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
[    1.437665] mousedev: PS/2 mouse device common for all mice
[    1.444363] i2c /dev entries driver
[    1.448276] usbcore: registered new interface driver uvcvideo
[    1.454276] USB Video Class driver (1.1.1)
[    1.543887] ledtrig-cpu: registered to indicate activity on CPUs
[    1.550613] usbcore: registered new interface driver usbhid
[    1.556431] usbhid: USB HID core driver
[    1.564725]  remoteproc0: wkup_m3 is available
[    1.569223]  remoteproc0: Note: remoteproc is still under development and considered experimental.
[    1.578355]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[    1.589265]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
[    1.605113] usbcore: registered new interface driver snd-usb-audio
[    1.611575] usbcore: registered new interface driver snd-ua101
[    1.617624]  remoteproc0: Falling back to user helper
[    1.623991] usbcore: registered new interface driver snd-usb-caiaq
[    1.630559] usbcore: registered new interface driver snd-usb-6fire
[    1.637217] usbcore: registered new interface driver snd-usb-hiface
[    1.643917] usbcore: registered new interface driver snd-bcd2000
[    1.650149] usbcore: registered new interface driver snd_usb_pod
[    1.656349] mmc1: MAN_BKOPS_EN bit is not set
[    1.660957] usbcore: registered new interface driver snd_usb_podhd
[    1.667479] usbcore: registered new interface driver snd_usb_toneport
[    1.674245] usbcore: registered new interface driver snd_usb_variax
[    1.681308] mmc1: new high speed MMC card at address 0001
[    1.690754] oprofile: using arm/armv7
[    1.695718] mmcblk0: mmc1:0001 004G90 3.69 GiB
[    1.700747] nf_conntrack version 0.5.0 (7932 buckets, 31728 max)
[    1.706993] mmcblk0boot0: mmc1:0001 004G90 partition 1 2.00 MiB
[    1.715680] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.721482] Initializing XFRM netlink socket
[    1.726356] mmcblk0boot1: mmc1:0001 004G90 partition 2 2.00 MiB
[    1.734233] NET: Registered protocol family 17
[    1.742322] NET: Registered protocol family 15
[    1.746961] lib80211: common routines for IEEE802.11 drivers
[    1.753799] Key type dns_resolver registered
[    1.758657] omap_voltage_late_init: Voltage driver support not added
[    1.766007] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[    1.774888] cpu cpu0: cpu0 clock notifier not ready, retry
[    1.781253] ThumbEE CPU extension supported.
[    1.785699] Registering SWP/SWPB emulation handler
[    1.812597] tps65217 0-0024: Read from reg 0x16 failed
[    1.817813] vdds_dpr: failed to enable
[    1.821951] tps65217 0-0024: failed to register tps65217-pmic regulator
[    1.828774] tps65217-pmic: probe of tps65217-pmic failed with error -121
[    1.836277] tps65217 0-0024: Failed to read revision register: -121
[    1.842842] tps65217: probe of 0-0024 failed with error -121
[    1.848695] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.868362] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[    1.874929] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[    1.883348] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.890201] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.897537] usb usb1: Product: MUSB HDRC host driver
[    1.902585] usb usb1: Manufacturer: Linux 4.1.18 musb-hcd
[    1.908028] usb usb1: SerialNumber: musb-hdrc.0.auto
[    1.914752] hub 1-0:1.0: USB hub found
[    1.918646] hub 1-0:1.0: 1 port detected
[    1.964678] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.971084] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[    1.979508] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.986422] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.993740] usb usb2: Product: MUSB HDRC host driver
[    1.998749] usb usb2: Manufacturer: Linux 4.1.18 musb-hcd
[    2.004247] usb usb2: SerialNumber: musb-hdrc.1.auto
[    2.010892] hub 2-0:1.0: USB hub found
[    2.014922] hub 2-0:1.0: 1 port detected
[    2.042697] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[    2.051487] cpu cpu0: cpu0 clock notifier not ready, retry
[    2.058531] hctosys: unable to open rtc device (rtc0)
[    2.072244] ALSA device list:
[    2.075282]   No soundcards found.
[    2.080823] Waiting for root device PARTUUID=ccd4ebea-02...
[    2.532930] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
[    2.629038] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
[   61.622372]  remoteproc0: failed to load am335x-pm-firmware.elf
[   61.628401]  remoteproc0: powering up wkup_m3
[   61.633134]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
[   61.641811]  remoteproc0: Falling back to user helper
[  121.642272]  remoteproc0: request_firmware failed: -11
[  121.647462]  remoteproc0: rproc_boot failed
[  139.472088] random: nonblocking pool is initialized


打印以上的LOG,应该是管脚没配置好还是引脚配置被重置了

  设备树里面增加了

  mmc3_pins_default: pinmux_mmc3_pins {
        pinctrl-single,pins = <
            0x03c (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_ad15.mmc2_dat3 */
            0x038 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_ad14.mmc2_dat2 */
            0x034 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_ad13.mmc2_dat1 */
            0x030 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_ad12.mmc2_dat0 */
            0x08c (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_clk.mmc2_clk */
            0x088 (PIN_INPUT_PULLUP | MUX_MODE3)    /* gpmc_csn3.mmc2_cmd */
            0x047 (PIN_INPUT_PULLDOWN | MUX_MODE4)    /* gpmc_wpn.mmc2_cd */
        >;
    };

    mmc3_pins_sleep: pinmux_mmc3_pins_sleep {
        pinctrl-single,pins = <
            0x03c (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x038 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x034 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x030 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x08c (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x088 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x047 (PIN_INPUT_PULLDOWN | MUX_MODE7)
        >;
    };

然后
&mmc3 {
    pinctrl-names = "default", "sleep";
    bus-width = <0x4>;
    pinctrl-0 = <&mmc3_pins_default>;
    pinctrl-1 = <&mmc3_pins_sleep>;    
    status = "okay";
};