您尚未登录。

楼主 #1 2020-04-12 21:55:20

hxu
会员
注册时间: 2020-04-06
已发帖子: 3
积分: 3

请教下V3s启动内核后一直打印sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!问题

我的板子早些还是好的,忘了弄了点啥,然后就变成这样了,一直打印err,镜像确认过是好的,没有修改过,启动日志如下,请各位大佬给指点下

U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Mar 20 2020 - 07:20:13 -0700) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Mar 20 2020 - 07:20:13 -0700) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  1       0 
reading zImage
3914888 bytes read in 220 ms (17 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
9961 bytes read in 26 ms (374 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff6e8 ... OK

Starting kernel ...

[!   0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero+ (hxu@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #15 SMP Sat Apr 4 06:29:27 PDT 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @c3f62000 s24716 r8192 d24436 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 55144K/65536K available (6144K kernel code, 202K rwdata, 1424K rodata, 1024K init, 262K bss, 10392K reserved, 0K 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 : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a32a00   ( 203 kB)
[    0.000000]        .bss : 0xc0a34000 - 0xc0a7590c   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000134] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000343] Console: colour dummy device 80x30
[    0.000379] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000393] pid_max: default: 32768 minimum: 301
[    0.000528] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000542] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001238] CPU: Testing write buffer coherency: ok
[    0.001641] /cpus/cpu@0 missing clock-frequency property
[    0.001663] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002020] Setting up static identity map for 0x40100000 - 0x40100058
[    0.002751] smp: Bringing up secondary CPUs ...
[    0.002770] smp: Brought up 1 node, 1 CPU
[    0.002778] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002785] CPU: All CPU(s) started in SVC mode.
[    0.003562] devtmpfs: initialized
[    0.006555] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006848] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006875] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007031] pinctrl core: initialized pinctrl subsystem
[    0.008024] NET: Registered protocol family 16
[    0.008451] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009664] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009681] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021965] SCSI subsystem initialized
[    0.022258] usbcore: registered new interface driver usbfs
[    0.022324] usbcore: registered new interface driver hub
[    0.022419] usbcore: registered new device driver usb
[    0.022639] pps_core: LinuxPPS API ver. 1 registered
[    0.022647] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022670] PTP clock support registered
[    0.022909] Advanced Linux Sound Architecture Driver Initialized.
[    0.024688] clocksource: Switched to clocksource arch_sys_counter
[    0.035126] NET: Registered protocol family 2
[    0.035736] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.035765] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.035789] TCP: Hash tables configured (established 1024 bind 1024)
[    0.035876] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.035920] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.036132] NET: Registered protocol family 1
[    0.036730] RPC: Registered named UNIX socket transport module.
[    0.036749] RPC: Registered udp transport module.
[    0.036755] RPC: Registered tcp transport module.
[    0.036760] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.038964] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.047911] NFS: Registering the id_resolver key type
[    0.047962] Key type id_resolver registered
[    0.047970] Key type id_legacy registered
[    0.048016] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.052586] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.052608] io scheduler noop registered
[    0.052615] io scheduler deadline registered
[    0.052839] io scheduler cfq registered (default)
[    0.056994] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.125314] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.128488] console [ttyS0] disabled
[    0.148774] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.709447] console [ttyS0] enabled
[    0.713627] [drm] Initialized
[    0.719644] m25p80 spi0.0: n25q128a13 (16384 Kbytes)
[    0.725736] libphy: Fixed MDIO Bus: probed
[    0.730093] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.736708] ehci-platform: EHCI generic platform driver
[    0.742030] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.748261] ohci-platform: OHCI generic platform driver
[    0.753664] usbcore: registered new interface driver cdc_acm
[    0.759366] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.767815] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.777341] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.786294] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.793088] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.797737] i2c /dev entries driver
[    0.802603] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    0.812181] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.874731] sunxi-mmc 1c0f000.mmc: base:0xc48b0000 irq:23
[    0.921700] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.931669] mmc0: new high speed SDHC card at address b368
[    0.937681] sunxi-mmc 1c10000.mmc: base:0xc48b4000 irq:24
[    0.943984] usbcore: registered new interface driver usbhid
[    0.949652] usbhid: USB HID core driver
[    0.954490] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 52, RE !!
[    0.960184] mmcblk0: mmc0:b368 MSD   3.71 GiB 
[    0.965369] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 52, RE !!
[    0.973385] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    0.981439] sun4i-codec 1c22c00.codec: Failed to register our card
[    0.989984]  mmcblk0: p1 p2
[    0.992802] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 8, RE !!
[    0.998946] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    1.004827] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    1.010989] NET: Registered protocol family 17
[    1.015647] Key type dns_resolver registered
[    1.020050] Registering SWP/SWPB emulation handler
[    1.025458] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    1.031670] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    1.037591] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    1.043586] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    1.052151] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    1.058899] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.066820] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.072583] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.080940] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    1.087224] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 1, RE !!
[    1.094182] hub 1-0:1.0: USB hub found
[    1.098140] hub 1-0:1.0: 1 port detected
[    1.102774] using random self ethernet address
[    1.107319] using random host ethernet address
[    1.112739] usb0: HOST MAC e2:ff:a0:96:bf:82
[    1.117185] usb0: MAC 4e:a5:fc:db:ec:32
[    1.121067] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.128597] g_cdc gadget: g_cdc ready
[    1.134782] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.143461] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.151671] vcc5v0: disabling
[    1.154705] ALSA device list:
[    1.157671]   #0: V3s Audio Codec
["   1.163144] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.172566] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.213378] random: fast init done
[    1.236074] EXT4-fs (mmcblk0p2): recovery complete
[    1.243849] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.252080] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.260415] devtmpfs: mounted
[    1.264565] Freeing unused kernel memory: 1024K
[    1.391639] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
root login: [    2.224978] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 52, RE !!
[    2.231226] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 52, RE !!
[    2.240841] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 8, RE !!
[    2.246865] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    2.252836] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    2.258816] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    2.264785] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    2.270763] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    2.276829] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    2.282872] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    2.288937] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    2.295108] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 1, RE !!
[    3.424967] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 52, RE !!
[    3.431366] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 52, RE !!
[    3.441091] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 8, RE !!
[    3.447191] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    3.452977] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    3.459103] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    3.464904] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!
[    3.470732] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    3.476815] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!
[    3.482825] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 55, RE !!

离线

#2 2020-04-12 22:04:44

异乡是故乡
会员
注册时间: 2019-11-15
已发帖子: 74
积分: 73.5

Re: 请教下V3s启动内核后一直打印sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!问题

rootfs 所在的 mmc0/sdio0 (TF卡) 没有问题, 现在只是你的 sdio1/sdio2 有问题而已, 是不是没上拉, 或者在dts这组io口被其他功能占用了.

离线

楼主 #3 2020-04-12 22:19:08

hxu
会员
注册时间: 2020-04-06
已发帖子: 3
积分: 3

Re: 请教下V3s启动内核后一直打印sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!问题

异乡是故乡 说:

rootfs 所在的 mmc0/sdio0 (TF卡) 没有问题, 现在只是你的 sdio1/sdio2 有问题而已, 是不是没上拉, 或者在dts这组io口被其他功能占用了.

应该不是吧,我用的是zero板,调试时是烧到Flash里的,出了问题后才换成SD卡启动验证的,SD卡里烧的是第一次编译使用的镜像,没有改过,确认是没问题的,应该不是IO被其他功能占用吧

离线

楼主 #4 2020-04-12 22:27:42

hxu
会员
注册时间: 2020-04-06
已发帖子: 3
积分: 3

Re: 请教下V3s启动内核后一直打印sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!问题

我想起来了,我好像强制把RGB灯接到GNG上测试过,然后就出现这个问题的,而RGB灯是接到SDC1_CLK、SDC1_D0、SDC1_CMD,我刚把RGB灯接GNG后日志打印变成

 sunxi-mmc 1c10000.mmc: fatal err update clk timeout

这个我是要怎么才能恢复回来

离线

#5 2020-04-12 22:43:40

异乡是故乡
会员
注册时间: 2019-11-15
已发帖子: 74
积分: 73.5

Re: 请教下V3s启动内核后一直打印sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!问题

dts 把  那几个灯的注册取消.

离线

#6 2020-06-01 17:37:34

我思故我在
会员
注册时间: 2019-09-03
已发帖子: 244
积分: 243.5

Re: 请教下V3s启动内核后一直打印sunxi-mmc 1c10000.mmc: smc 1 err, cmd 5, RE !!问题

请问这个问题最后解决了吗?我的板子也出这个问题了。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn