NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-arm/55957: Odroid C2 can not access eMMC card



The following reply was made to PR port-arm/55957; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-arm/55957: Odroid C2 can not access eMMC card
Date: Tue, 26 Jan 2021 13:10:19 +0100

 Here is a log with no changes to mesongx_mmc.c (besides enabling the
 DEBUG there) and additional SDMMC_DEBUG enabled.
 
 Martin
 
 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 [   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
 [   1.0000000]     2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights reserved.
 
 [   1.0000000] NetBSD 9.99.79 (GENERIC64) #179: Tue Jan 26 13:02:24 CET 2021
 [   1.0000000] 	martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/evbarm/compile/GENERIC64
 [   1.0000000] total memory = 2012 MB
 [   1.0000000] avail memory = 1949 MB
 [   1.0000000] armfdt0 (root)
 [   1.0000000] simplebus0 at armfdt0: Hardkernel ODROID-C2
 [   1.0000000] simplebus1 at simplebus0
 [   1.0000000] cpus0 at simplebus0
 [   1.0000000] simplebus2 at simplebus0
 [   1.0000000] psci0 at simplebus0: PSCI 0.2
 [   1.0000000] cpu0 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x0
 [   1.0000000] cpu1 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x1
 [   1.0000000] cpu2 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x2
 [   1.0000000] cpu3 at cpus0: Arm Cortex-A53 r0p4 (v8-A), id 0x3
 [   1.0000000] simplebus3 at simplebus1
 [   1.0000000] simplebus4 at simplebus1
 [   1.0000000] simplebus5 at simplebus1
 [   1.0000000] simplebus6 at simplebus1
 [   1.0000000] simplebus7 at simplebus1
 [   1.0000000] simplebus8 at simplebus1
 [   1.0000000] gic0 at simplebus1: GIC
 [   1.0000000] armgic0 at gic0: Generic Interrupt Controller, 256 sources (238 valid)
 [   1.0000000] armgic0: 16 Priorities, 224 SPIs, 6 PPIs, 8 SGIs
 [   1.0000000] syscon0 at simplebus3: System Controller Registers
 [   1.0000000] syscon1 at simplebus4: System Controller Registers
 [   1.0000000] fclock0 at simplebus0: 24000000 Hz fixed clock (xtal)
 [   1.0000000] syscon2 at simplebus3: System Controller Registers
 [   1.0000000] gtmr0 at simplebus0: Generic Timer
 [   1.0000000] gtmr0: interrupting on GIC irq 27
 [   1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
 [   1.0000030] gxbbclkc0 at syscon1: Meson GXBB clock controller
 [   1.0000030] mesonpinctrl0 at simplebus5: Meson GXBB periphs GPIO
 [   1.0000030] gpio0 at mesonpinctrl0: 119 pins
 [   1.0000030] mesonresets0 at simplebus6
 [   1.0000030] gxbbaoclkc0 at syscon0: Meson GX AO clock controller
 [   1.0000030] mesonpinctrl1 at simplebus3: Meson GXBB AO GPIO
 [   1.0000030] mesonpinctrl1: usb-hub-reset GPIOAO_4 set to output (high)
 [   1.0000030] gpio1 at mesonpinctrl1: 14 pins
 [   1.0000030] fregulator0 at simplebus0: VCC1V8
 [   1.0000030] fregulator1 at simplebus0: TFLASH_VDD
 [   1.0000030] gregulator0 at simplebus0: TF_IO
 [   1.0000030] fregulator2 at simplebus0: VCC3V3
 [   1.0000030] fregulator3 at simplebus0: HDMI_P5V0
 [   1.0000030] fregulator4 at simplebus0: USB_OTG_PWR
 [   1.0000030] fregulator5 at simplebus0: P5V0
 [   1.0000030] fregulator6 at simplebus0: VDDIO_AO3V3
 [   1.0000030] mesonuart0 at simplebus3: console
 [   1.0000030] mesonuart0: interrupting on GIC irq 225
 [   1.0000030] fregulator7 at simplebus0: VDDIO_AO1V8
 [   1.0000030] fregulator8 at simplebus0: DDR3_1V5
 [   1.0000030] mmcpwrseq0 at simplebus0: eMMC hardware reset provider
 [   1.0000030] mesonusbphy0 at simplebus1: USB2 PHY (host)
 [   1.0000030] /soc/bus@c8100000/sys-ctrl@0/power-controller-vpu at syscon0 not configured
 [   1.0000030] /scpi at simplebus0 not configured
 [   1.0000030] /soc/bus@c883c000/mailbox@404 at simplebus4 not configured
 [   1.0000030] /soc/sram@c8000000 at simplebus1 not configured
 [   1.0000030] /soc/hdmi-tx@c883a000 at simplebus1 not configured
 [   1.0000030] /soc/bus@c8838000/video-lut@48 at simplebus7 not configured
 [   1.0000030] awge0 at simplebus1: Gigabit Ethernet Controller
 [   1.0000030] awge0: interrupting on GIC irq 40
 [   1.0000030] awge0: Core version: 00001137
 [   1.0000030] awge0: Ethernet address 00:1e:06:33:12:a6
 [   1.0000030] awge0: HW feature mask: 100d4f37
 [   1.0000030] rgephy0 at awge0 phy 0: RTL8211F 1000BASE-T media interface
 [   1.0000030] rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
 [   1.0000030] /soc/bus@c1100000/interrupt-controller@9880 at simplebus6 not configured
 [   1.0000030] /soc/vpu@d0100000 at simplebus1 not configured
 [   1.0000030] dispcon0 at simplebus0: HDMI connector
 [   1.0000030] /efuse at simplebus0 not configured
 [   1.0000030] /soc/bus@c1100000/i2c@8500 at simplebus6 not configured
 [   1.0000030] /soc/bus@c1100000/adc@8680 at simplebus6 not configured
 [   1.0000030] /soc/bus@c8100000/cec@100 at simplebus3 not configured
 [   1.0000030] /soc/bus@c8100000/ir@580 at simplebus3 not configured
 [   1.0000030] /soc/video-codec@c8820000 at simplebus1 not configured
 [   1.0000030] mesonrng0 at simplebus5: Hardware RNG
 [   1.0000030] entropy: ready
 [   1.0000030] mesongxmmc0 at simplebus8: eMMC/SD/SDIO controller
 [   1.0000030] mesongxmmc0: interrupting on GIC irq 249
 [   1.0000030] mesongxmmc1 at simplebus8: eMMC/SD/SDIO controller
 [   1.0000030] mesongxmmc1: interrupting on GIC irq 250
 [   1.0000030] /soc/apb@d0000000/gpu@c0000 at simplebus8 not configured
 [   1.0000030] dwctwo0 at simplebus1: DesignWare USB2 OTG
 [   1.0000030] dwctwo0: interrupting on GIC irq 63
 [   1.0000030] armpmu0 at simplebus0: Performance Monitor Unit
 [   1.0000030] gpioleds0 at simplebus0: c2:blue:alive
 [   1.0000030] /soc/bus@c1100000/clock-measure@8758 at simplebus6 not configured
 [   1.0000030] /soc/bus@c1100000/watchdog@98d0 at simplebus6 not configured
 [   1.0000030] cpu0 has 1 core siblings: cpu0
 [   1.0000030] cpu0 has 4 pkg siblings: cpu1 cpu2 cpu3 cpu0
 [   1.0000030] cpu0 has 1 1st siblings: cpu0
 [   1.0000030] cpu0 first in package: cpu0
 [   1.0000030] cpu1 has 1 core siblings: cpu1
 [   1.0000030] cpu1 has 4 pkg siblings: cpu2 cpu3 cpu0 cpu1
 [   1.0000030] cpu1 has 1 1st siblings: cpu0
 [   1.0000030] cpu1 first in package: cpu0
 [   1.0000030] cpu2 has 1 core siblings: cpu2
 [   1.0000030] cpu2 has 4 pkg siblings: cpu3 cpu0 cpu1 cpu2
 [   1.0000030] cpu2 has 1 1st siblings: cpu0
 [   1.0000030] cpu2 first in package: cpu0
 [   1.0000030] cpu3 has 1 core siblings: cpu3
 [   1.0000030] cpu3 has 4 pkg siblings: cpu0 cpu1 cpu2 cpu3
 [   1.0000030] cpu3 has 1 1st siblings: cpu0
 [   1.0000030] cpu3 first in package: cpu0
 [   1.6570696] sdmmc0 at mesongxmmc0
 [   1.6570696] sdmmc1 at mesongxmmc1
 [   1.6570696] usb0 at dwctwo0: USB revision 2.0
 [   1.6570696] armpmu0: interrupting on GIC irq 169
 [   1.6670787] armpmu0: interrupting on GIC irq 170
 [   1.6670787] armpmu0: interrupting on GIC irq 185
 [   1.6770711] armpmu0: interrupting on GIC irq 186
 [   1.6770711] uhub0 at usb0: NetBSD (0x0000) DWC2 root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
 [   1.7570690] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.7570690] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.7670716] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.7670716] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.7770693] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   1.7870697] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   1.7870697] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   1.7970697] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   1.8070700] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   1.8070700] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   1.8170703] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   1.8270704] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   1.8270704] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   1.8370704] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   1.8370704] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   1.8470708] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   1.8570707] sdmmc_io_send_op_cond: ocr = 0
 [   1.8570707] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.8670730] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.8770712] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.8770712] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.8870715] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   1.8870715] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   1.8970715] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   1.9070719] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   1.9070719] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   1.9170718] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   1.9270722] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   1.9270722] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   1.9370723] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   1.9470728] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   1.9470728] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   1.9570727] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   1.9670747] sdmmc_io_send_op_cond: error = 60
 [   1.9670747] sdmmc1: sdmmc_mem_send_op_cond: ocr=0
 [   1.9770733] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   1.9770733] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   1.9870736] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   1.9970735] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   1.9970735] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.0070739] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   2.0170739] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.0170739] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.0270751] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.0370743] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.0370743] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.0470747] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.0470747] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.0570747] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.0670768] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.0670768] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.0770752] sdmmc1: sdmmc_mem_send_op_cond: error=60, ocr=0
 [   2.0870755] sdmmc1: switch to MMC mode
 [   2.0870755] sdmmc1: sdmmc_mem_send_op_cond: ocr=0
 [   2.0970756] sdmmc1: sdmmc_mem_send_op_cond: error=0, ocr=0x40ff8080
 [   2.0970756] sdmmc1: host_ocr 0x00300080
 [   2.1070758] sdmmc1: card_ocr 0x40ff8080
 [   2.1070758] sdmmc1: sdmmc_mem_send_op_cond: ocr=0x40300080
 [   2.1270762] sdmmc1: sdmmc_mem_send_op_cond: error=0, ocr=0xc0ff8080
 [   2.1270762] sdmmc_dump_data: CID
 [   2.1370765] --------+--------------------------------------------------+------------------+
 [   2.1370765] offset  | +0 +1 +2 +3 +4 +5 +6 +7  +8 +9 +a +b +c +d +e +f | data             |
 [   2.1470766] --------+--------------------------------------------------+------------------+
 [   2.1570767] 00000000| a3 60 47 64 0c 43 20 64  72 61 43 4e 03 01 88 00 | .`Gd.C draCN.... |
 [   2.1670788] --------+--------------------------------------------------+------------------+
 [   2.1770772] mesongxmmc1:       00: 01000b3c 00000000 00000000 00000000
 [   2.1770772] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   2.1870775] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   2.1970775] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   2.1970775] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.2070780] mesongxmmc1:       50: 00000000 00000000 00000000 00000000
 [   2.2170778] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.2170778] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.2270783] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.2370783] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.2370783] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.2470787] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.2570787] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.2570787] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.2670809] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.2770791] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.2770791] sdmmc_dump_data: CSD
 [   2.2870796] --------+--------------------------------------------------+------------------+
 [   2.2870796] offset  | +0 +1 +2 +3 +4 +5 +6 +7  +8 +9 +a +b +c +d +e +f | data             |
 [   2.2970795] --------+--------------------------------------------------+------------------+
 [   2.3070798] 00000000| 00 40 96 e7 ff ff ff ff  03 59 0f 32 ff ff d0 00 | .@.......Y.2.... |
 [   2.3170799] --------+--------------------------------------------------+------------------+
 [   2.3270803] sdmmc1: CID: mid=0x88 oid=0x0103 pnm="NCard " rev=0x00 psn=0x0c644760 mdt=000
 [   2.3370803] sdmmc1: sdmmc_mem_set_blocklen: read_bl_len=512 sector_size=512
 [   2.3470808] mesongxmmc1:       00: 01000b68 00000000 00000000 00000000
 [   2.3470808] mesongxmmc1:       10: 00000000 00000000 00000000 00000000
 [   2.3570808] mesongxmmc1:       20: 00000000 00000000 00000000 00000000
 [   2.3570808] mesongxmmc1:       30: 00000000 00000000 00000000 00000000
 [   2.3670831] mesongxmmc1:       40: 00000000 00844890 01ff0000 00000000
 [   2.3770813] mesongxmmc1:       50: 40000000 00000000 00000000 00000000
 [   2.3770813] mesongxmmc1:       60: 00000000 00000000 00000000 00000000
 [   2.3870815] mesongxmmc1:       70: 00000000 00000000 00000000 00000000
 [   2.3970816] mesongxmmc1:       80: 00000000 00000000 00000000 00000000
 [   2.3970816] mesongxmmc1:       90: 00000000 00000000 00000000 00000000
 [   2.4070820] mesongxmmc1:       a0: 00000000 00000000 00000000 00000000
 [   2.4170820] mesongxmmc1:       b0: 00000000 00000000 00000000 00000000
 [   2.4170820] mesongxmmc1:       c0: 00000000 00000000 00000000 00000000
 [   2.4270823] mesongxmmc1:       d0: 00000000 00000000 00000000 00000000
 [   2.4370823] mesongxmmc1:       e0: 00000000 00000000 00000000 00000000
 [   2.4370823] mesongxmmc1:       f0: 00000000 00000000 00000000 00000000
 [   2.4470827] sdmmc1: can't read EXT_CSD (error=5)
 [   2.4470827] sdmmc1: mem init failed
 [   2.4570827] sdmmc1: init failed
 [   3.5871048] uhub1 at uhub0 port 1: vendor 05e3 (0x05e3) USB2.0 Hub (0x0610), class 9/0, rev 2.00/32.98, addr 2
 [   3.5871048] uhub1: multiple transaction translators
 [   3.9371117] uhub0: illegal enable change, port 1
 [   3.9371117] WARNING: 4 errors while detecting hardware; check system log.
 [   3.9371117] boot device: <unknown>
 [   3.9471136] root device: 
 


Home | Main Index | Thread Index | Old Index