sdmmc error: "can't re-read EXT_CSD"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

sdmmc error: "can't re-read EXT_CSD"

Nathan Clement
Hello bugs,

I have an Acer Aspire ES1-111M laptop on which I am trying to install
OpenBSD. The laptop does not have a hard drive or even a "real" SSD, but
rather a 32GB eMMC card for its main internal storage. I have put
install63.fs (and install64.fs) on a usb and started the install process,
but when it comes time to write the partition table I find that the install
kernel thinks my eMMC is 1024MB instead of ~32GB. Dropping into the shell
and running dmesg I see these lines related to sdmmc:

sdhc0 at acpi0: SDHD addr 0x90a02000/0x1000 irq 44
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
...
sdmmc0: can't re-read EXT_CSD
sdmmc0: mem init failed
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, HBG4e\\005, 0000> SCSI2 0/direct
removable
sd0: 1024MB, 512 bytes/sector, 2097152 sectors

and when I try to run fdisk on sd0:

fdisk: Can't read sector 0!

I followed advice from misc and installed 6.3 to a usb so I could use
sendbug. However, on booting up the full install, I see that the kernel now
recognizes the eMMC as ~32GB. I do have that sendbug report if you deem it
useful. I tried the install64.fs and got essentially the same error message.

(1) Is there some way to fix this so I can install to eMMC from the
install63.fs?
(2) If I am determined, would it be wise/possible to install to the eMMC
from the 6.3 installation on my usb? Seems a little convoluted.

Thanks,
Nathan

Here is the full dmesg given by install63.fs:

OpenBSD 6.3 (RAMDISK_CD) #98: Sat Mar 24 14:26:39 MDT 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 2007171072 (1914MB)
avail mem = 1942614016 (1852MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x78165000 (22 entries)
bios0: vendor Insyde Corp. version "V1.03" date 07/22/2014
bios0: Acer Aspire ES1-111M
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP UEFI MSDM HPET LPIT APIC MCFG SSDT SSDT SSDT
SSDT SSDT UEFI SSDT CSRT SSDT FPDT BGRT
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU N2840 @ 2.16GHz, 2167.08 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT,MELTDOWN
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: apic clock running at 83MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 87 pins
, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiec0 at acpi0
acpicpu at acpi0 not configured
acpipwrres at acpi0 not configured
acpitz at acpi0 not configured
"INT3396" at acpi0 not configured
"10250933" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C0C" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
bytgpio0 at acpi0: GPO0 uid 1 addr 0xfed0c000/0x1000 irq 49, 102 pins
bytgpio1 at acpi0: GPO1 uid 2 addr 0xfed0d000/0x1000 irq 48, 28 pins
bytgpio2 at acpi0: GPO2 uid 3 addr 0xfed0e000/0x1000 irq 50, 44 pins
sdhc0 at acpi0: SDHD addr 0x90a02000/0x1000 irq 44
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
"80860F16" at acpi0 not configured
"INTL9C60" at acpi0 not configured
dwiic0 at acpi0: I2C1 addr 0x90a07000/0x1000 irq 32
iic0 at dwiic0
ihidev0 at iic0 addr 0x2c irq 67, vendor 0x6cb product 0x2991, SYN1B7D
ihidev0: 14 report ids
hid at ihidev0 reportid 2 not configured
hid at ihidev0 reportid 3 not configured
hid at ihidev0 reportid 4 not configured
hid at ihidev0 reportid 6 not configured
hid at ihidev0 reportid 7 not configured
hid at ihidev0 reportid 8 not configured
hid at ihidev0 reportid 9 not configured
hid at ihidev0 reportid 10 not configured
hid at ihidev0 reportid 11 not configured
hid at ihidev0 reportid 12 not configured
hid at ihidev0 reportid 13 not configured
hid at ihidev0 reportid 14 not configured
"INT33BD" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"PNP0C0A" at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"INT3401" at acpi0 not configured
"INT3400" at acpi0 not configured
"INT3403" at acpi0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Bay Trail Host" rev 0x0e
"Intel Bay Trail Video" rev 0x0e at pci0 dev 2 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel Bay Trail xHCI" rev 0x0e: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel Bay Trail TXE" rev 0x0e at pci0 dev 26 function 0 not configured
"Intel Bay Trail HD Audio" rev 0x0e at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel Bay Trail PCIE" rev 0x0e: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel Bay Trail PCIE" rev 0x0e: msi
pci2 at ppb1 bus 2
"Atheros AR9565" rev 0x01 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 2 "Intel Bay Trail PCIE" rev 0x0e: msi
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G
(0x4c00), msi, address c4:54:44:c0:98:6a
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
"Intel Bay Trail LPC" rev 0x0e at pci0 dev 31 function 0 not configured
"Intel Bay Trail SMBus" rev 0x0e at pci0 dev 31 function 3 not configured
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
efifb0 at mainbus0: 1366x768, 32bpp
wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
sdmmc0: can't re-read EXT_CSD
sdmmc0: mem init failed
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, HBG4e\\005, 0000> SCSI2
0/direct removable
sd0: 1024MB, 512 bytes/sector, 2097152 sectors
umass0 at uhub0 port 1 configuration 1 interface 0 "SanDisk Cruzer
Glide" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SanDisk, Cruzer Glide, 1.00> SCSI4
0/direct removable serial.07815575110709116593
sd1: 14664MB, 512 bytes/sector, 30031872 sectors
uhub1 at uhub0 port 2 configuration 1 interface 0 "vendor 0x05e3
USB2.0 Hub" rev 2.00/85.37 addr 3
"vendor 0x0489 product 0xe078" rev 1.10/0.01 addr 4 at uhub1 port 1
not configured
"Chicony Electronics Co.,Ltd. HD WebCam" rev 2.00/28.57 addr 5 at
uhub0 port 4 not configured
softraid0 at root
scsibus2 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
umass1 at uhub1 port 2 configuration 1 interface 0 "Samsung Flash
Drive" rev 2.10/11.00 addr 6
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd2 at scsibus3 targ 1 lun 0: <Samsung, Flash Drive, 1100> SCSI4
0/direct removable serial.090c1000117120008081
sd2: 122400MB, 512 bytes/sector, 250675200 sectors