You are not logged in.

#1 2017-10-30 00:23:07

stavrakis
Member
Registered: 2011-12-29
Posts: 22

[SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

EDIT: Solved partially by loading all modules the arch ISO does when booting, now reader works. Will try to isolate the required module later.

As the title says, I installed Arch on an sd card. However when booting, the initrd does not recognise the sd card. The SDHC controller is detected, however it does not use the kernel driver sdhci-pci.
The arch ISO recognises the reader and works correctly.
The device mmc0 is the internal eMMC which is recognised both times. mmc2 is the sd card reader, and only recognised when running the installation ISO

The initrd I am using has these modules:

sdhci sdhci_pci mmc_core mmc_block intel_lpss intel_lpss_pci i2c_i801 lpc_ich shpcp xhci_hcd i2c_hid idma64 usbhid hid usbcore scsi_mod usb_common xhci_pci xhci_hcd

EDIT: I managed to get it to work by including all modules loaded with the ISO. I will update the post when I have found the actual module which should be loaded.

SOLVED: /etc/mkinitcpio.conf modules:

MODULES="pinctrl_broxton vfat mmc_block i2c-dev"

From the ISO:
dmesg | grep 1b:

[    0.000000] x86/fpu: Enabled xstate features 0x1b, context size is 704 bytes, using 'compacted' format.
[    0.000000] BIOS-e820: [mem 0x0000000079e41000-0x000000007a1b8fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007a1b9000-0x000000007a1b9fff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000007a1ba000-0x000000007a1e3fff] reserved
[    0.000000] reserve setup_data: [mem 0x0000000079e41000-0x000000007a1b8fff] usable
[    0.000000] reserve setup_data: [mem 0x000000007a1b9000-0x000000007a1b9fff] ACPI NVS
[    0.000000] reserve setup_data: [mem 0x000000007a1ba000-0x000000007a1e3fff] reserved
[    0.000000]   node   0: [mem 0x0000000079e41000-0x000000007a1b8fff]
[    0.000000] PM: Registered nosave memory: [mem 0x7a1b9000-0x7a1b9fff]
[    0.000000] PM: Registered nosave memory: [mem 0x7a1ba000-0x7a1e3fff]
[    0.457963] PM: Registering ACPI NVS region [mem 0x7a1b9000-0x7a1b9fff] (4096 bytes)
[    0.636170] pci 0000:00:0e.0: reg 0x10: [mem 0x92218000-0x9221bfff 64bit]
[    0.650063] pci 0000:00:1b.0: [8086:5aca] type 00 class 0x080501
[    0.650098] pci 0000:00:1b.0: reg 0x10: [mem 0x92224000-0x92224fff 64bit]
[    0.650114] pci 0000:00:1b.0: reg 0x18: [mem 0x92223000-0x92223fff 64bit]
[    0.733162] e820: reserve RAM buffer [mem 0x7a1b9000-0x7bffffff]
[   12.812137] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.812151] sdhci-pci 0000:00:1b.0: enabling device (0000 -> 0002)
[   12.816261] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.818365] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.819999] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.821608] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.822073] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.823511] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.823946] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.824289] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.827404] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.848840] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.849259] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   12.975409] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.278522] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.580648] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.750625] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.759384] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.765089] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.823711] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.880600] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.917508] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   13.923529] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   14.942048] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.618874] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.619542] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.627351] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.627851] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.628586] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.633505] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.636278] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.636836] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.641956] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.643430] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.649384] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.649911] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.656510] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.657123] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.658823] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.670943] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.672555] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.675066] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.676266] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.685968] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.687027] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.687528] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.688275] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.696353] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.699239] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.707687] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.709135] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.711846] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.713164] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   17.718952] mmc2: SDHCI controller on PCI [0000:00:1b.0] using ADMA 64-bit

dmesg | grep mmc

[   12.816141] mmc0: SDHCI controller on PCI [0000:00:1c.0] using ADMA 64-bit
[   12.817972] mmc1: SDHCI controller on PCI [0000:00:1e.0] using ADMA 64-bit
[   12.965343] mmc0: new HS200 MMC card at address 0001
[   12.967999] mmcblk0: mmc0:0001 DF4064 58.2 GiB 
[   12.968189] mmcblk0boot0: mmc0:0001 DF4064 partition 1 4.00 MiB
[   12.968348] mmcblk0boot1: mmc0:0001 DF4064 partition 2 4.00 MiB
[   12.968725] mmcblk0rpmb: mmc0:0001 DF4064 partition 3 4.00 MiB
[   12.973050]  mmcblk0: p1 p2 p3 p4
[   17.718952] mmc2: SDHCI controller on PCI [0000:00:1b.0] using ADMA 64-bit
[   19.189636] mmc2: new ultra high speed SDR104 SDXC card at address aaaa
[   19.191849] mmcblk2: mmc2:aaaa ACLCF 119 GiB 
[   19.198103]  mmcblk2: p1

lspci -k

00:00.0 Host bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge
00:00.1 Signal processing controller: Intel Corporation Device 5a8c (rev 0b)
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device
00:02.0 VGA compatible controller: Intel Corporation Device 5a85 (rev 0b)
	Subsystem: Intel Corporation Device 2212
	Kernel driver in use: i915
	Kernel modules: i915
00:03.0 Multimedia controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Imaging Unit (rev 0b)
00:0e.0 Multimedia audio controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster (rev 0b)
	Subsystem: Realtek Semiconductor Co., Ltd. Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_soc_skl
00:0f.0 Communication controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:12.0 SATA controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller
	Kernel driver in use: ahci
	Kernel modules: ahci
00:14.0 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port B #2 (rev fb)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:15.0 USB controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series USB xHCI (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series USB xHCI
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:16.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #1 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #2 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #3 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.3 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #4 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #5 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #6 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #7 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.3 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #8 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:18.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #1 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:18.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #2 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:18.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #3 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller
	Kernel modules: intel_lpss_pci
00:18.3 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller #4 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series HSUART Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:19.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #1 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:19.1 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #2 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:19.2 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller #3 (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SPI Controller
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:1b.0 SD Host controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SDXC/MMC Host Controller (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SDXC/MMC Host Controller
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci
00:1c.0 SD Host controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series eMMC Controller (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series eMMC Controller
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci
00:1e.0 SD Host controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SDIO Controller (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SDIO Controller
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci
00:1f.0 ISA bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Low Pin Count Interface (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Low Pin Count Interface
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.1 SMBus: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SMBus Controller (rev 0b)
	Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SMBus Controller
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 Network controller: Intel Corporation Wireless 3165 (rev 91)
	Subsystem: Intel Corporation Wireless 3165
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

udevadm info (mmc0):

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1c.0/mmc_host/mmc0/mmc0:0001':
    KERNEL=="mmc0:0001"
    SUBSYSTEM=="mmc"
    DRIVER=="mmcblk"
    ATTR{cid}=="45010044463430363401b297f96a8400"
    ATTR{cmdq_en}=="0"
    ATTR{csd}=="d00f00328f5903ffffffffef8a404000"
    ATTR{date}=="08/2017"
    ATTR{dsr}=="0x404"
    ATTR{enhanced_area_offset}=="18446744073709551594"
    ATTR{enhanced_area_size}=="4294967274"
    ATTR{erase_size}=="524288"
    ATTR{ffu_capable}=="1"
    ATTR{fwrev}=="0x3131313031332020"
    ATTR{hwrev}=="0x0"
    ATTR{life_time}=="0x01 0x01"
    ATTR{manfid}=="0x000045"
    ATTR{name}=="DF4064"
    ATTR{ocr}=="00000080"
    ATTR{oemid}=="0x0100"
    ATTR{pre_eol_info}=="01"
    ATTR{preferred_erase_size}=="4194304"
    ATTR{prv}=="0x1"
    ATTR{raw_rpmb_size_mult}=="0x20"
    ATTR{rel_sectors}=="0x1"
    ATTR{serial}=="0xb297f96a"
    ATTR{type}=="MMC"

  looking at parent device '/devices/pci0000:00/0000:00:1c.0/mmc_host/mmc0':
    KERNELS=="mmc0"
    SUBSYSTEMS=="mmc_host"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1c.0':
    KERNELS=="0000:00:1c.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="sdhci-pci"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x080501"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0x5acc"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="39"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{local_cpus}=="f"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0x0b"
    ATTRS{subsystem_device}=="0x7270"
    ATTRS{subsystem_vendor}=="0x8086"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

udevadm info (mmc2)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1b.0/mmc_host/mmc2/mmc2:aaaa':
    KERNEL=="mmc2:aaaa"
    SUBSYSTEM=="mmc"
    DRIVER=="mmcblk"
    ATTR{cid}=="03534441434c43468093c31da3011400"
    ATTR{csd}=="400e00325b590003b8ab7f800a404000"
    ATTR{date}=="04/2017"
    ATTR{dsr}=="0x404"
    ATTR{erase_size}=="512"
    ATTR{fwrev}=="0x0"
    ATTR{hwrev}=="0x8"
    ATTR{manfid}=="0x000003"
    ATTR{name}=="ACLCF"
    ATTR{ocr}=="00200000"
    ATTR{oemid}=="0x5344"
    ATTR{preferred_erase_size}=="4194304"
    ATTR{scr}=="0245800300000000"
    ATTR{serial}=="0x93c31da3"
    ATTR{ssr}=="0000000008000000040090000f050a00000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    ATTR{type}=="SD"

  looking at parent device '/devices/pci0000:00/0000:00:1b.0/mmc_host/mmc2':
    KERNELS=="mmc2"
    SUBSYSTEMS=="mmc_host"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1b.0':
    KERNELS=="0000:00:1b.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="sdhci-pci"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x080501"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0x5aca"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="3"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{local_cpus}=="f"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0x0b"
    ATTRS{subsystem_device}=="0x7270"
    ATTRS{subsystem_vendor}=="0x8086"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

When booting the installed initcpio:
dmesg | grep 1b:

[    0.000000] x86/fpu: Enabled xstate features 0x1b, context size is 704 bytes, using 'compacted' format.
[    0.000000] BIOS-e820: [mem 0x0000000079e41000-0x000000007a1b8fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007a1b9000-0x000000007a1b9fff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000007a1ba000-0x000000007a1e3fff] reserved
[    0.000000]   node   0: [mem 0x0000000079e41000-0x000000007a1b8fff]
[    0.000000] PM: Registered nosave memory: [mem 0x7a1b9000-0x7a1b9fff]
[    0.000000] PM: Registered nosave memory: [mem 0x7a1ba000-0x7a1e3fff]
[    0.451248] PM: Registering ACPI NVS region [mem 0x7a1b9000-0x7a1b9fff] (4096 bytes)
[    0.629581] pci 0000:00:0e.0: reg 0x10: [mem 0x92218000-0x9221bfff 64bit]
[    0.643109] pci 0000:00:1b.0: [8086:5aca] type 00 class 0x080501
[    0.643142] pci 0000:00:1b.0: reg 0x10: [mem 0x92224000-0x92224fff 64bit]
[    0.643156] pci 0000:00:1b.0: reg 0x18: [mem 0x92223000-0x92223fff 64bit]
[    0.720885] e820: reserve RAM buffer [mem 0x7a1b9000-0x7bffffff]
[    3.408524] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.408537] sdhci-pci 0000:00:1b.0: enabling device (0000 -> 0002)
[    3.409670] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.416117] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.421340] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.427116] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.431517] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.434311] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.434882] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.435735] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.441633] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.442268] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.442944] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.452497] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.453038] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.453805] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.461527] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.462111] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.462869] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.468868] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.469541] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.470133] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.476212] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.476772] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.477508] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.478058] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.478655] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.480094] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.483406] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.493827] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.497134] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.497538] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.498907] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.499293] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.499636] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.565481] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.614472] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.620853] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.625084] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.696421] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    3.953546] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    4.200675] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    4.374024] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    4.379848] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    4.440684] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[    4.497756] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   15.320501] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   15.327681] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   16.350339] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   47.110319] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)
[   48.194271] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev b)

dmesg | grep mmc:

[    3.409529] mmc0: SDHCI controller on PCI [0000:00:1c.0] using ADMA 64-bit
[    3.410626] mmc1: SDHCI controller on PCI [0000:00:1e.0] using ADMA 64-bit
[    3.560020] mmc0: new HS200 MMC card at address 0001
[    3.560317] mmcblk0: mmc0:0001 DF4064 58.2 GiB 
[    3.560433] mmcblk0boot0: mmc0:0001 DF4064 partition 1 4.00 MiB
[    3.560550] mmcblk0boot1: mmc0:0001 DF4064 partition 2 4.00 MiB
[    3.560661] mmcblk0rpmb: mmc0:0001 DF4064 partition 3 4.00 MiB
[    3.564552]  mmcblk0: p1 p2 p3 p4

lspci -k

00:00.0 Class 0600: Device 8086:5af0 (rev 0b)
	Subsystem: Device 8086:7270
00:00.1 Class 1180: Device 8086:5a8c (rev 0b)
00:02.0 Class 0300: Device 8086:5a85 (rev 0b)
	Subsystem: Device 8086:2212
00:03.0 Class 0480: Device 8086:5a88 (rev 0b)
00:0e.0 Class 0401: Device 8086:5a98 (rev 0b)
	Subsystem: Device 10ec:10fc
00:0f.0 Class 0780: Device 8086:5a9a (rev 0b)
	Subsystem: Device 8086:7270
00:12.0 Class 0106: Device 8086:5ae3 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: ahci
	Kernel modules: ahci
00:14.0 Class 0604: Device 8086:5ad7 (rev fb)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:15.0 Class 0c03: Device 8086:5aa8 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:16.0 Class 1180: Device 8086:5aac (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.1 Class 1180: Device 8086:5aae (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.2 Class 1180: Device 8086:5ab0 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.3 Class 1180: Device 8086:5ab2 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.0 Class 1180: Device 8086:5ab4 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.1 Class 1180: Device 8086:5ab6 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.2 Class 1180: Device 8086:5ab8 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:17.3 Class 1180: Device 8086:5aba (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:18.0 Class 1180: Device 8086:5abc (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:18.1 Class 1180: Device 8086:5abe (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:18.2 Class 1180: Device 8086:5ac0 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel modules: intel_lpss_pci
00:18.3 Class 1180: Device 8086:5aee (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:19.0 Class 1180: Device 8086:5ac2 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:19.1 Class 1180: Device 8086:5ac4 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:19.2 Class 1180: Device 8086:5ac6 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:1b.0 Class 0805: Device 8086:5aca (rev 0b)
	Subsystem: Device 8086:7270
	Kernel modules: sdhci_pci
00:1c.0 Class 0805: Device 8086:5acc (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci
00:1e.0 Class 0805: Device 8086:5ad0 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci
00:1f.0 Class 0601: Device 8086:5ae8 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.1 Class 0c05: Device 8086:5ad4 (rev 0b)
	Subsystem: Device 8086:7270
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 Class 0280: Device 8086:3165 (rev 91)
	Subsystem: Device 8086:8010

udevadm info (mmc0)

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1c.0/mmc_host/mmc0/mmc0:0001':
    KERNEL=="mmc0:0001"
    SUBSYSTEM=="mmc"
    DRIVER=="mmcblk"
    ATTR{cid}=="45010044463430363401b297f96a8400"
    ATTR{cmdq_en}=="0"
    ATTR{csd}=="d00f00328f5903ffffffffef8a404000"
    ATTR{date}=="08/2017"
    ATTR{dsr}=="0x404"
    ATTR{enhanced_area_offset}=="18446744073709551594"
    ATTR{enhanced_area_size}=="4294967274"
    ATTR{erase_size}=="524288"
    ATTR{ffu_capable}=="1"
    ATTR{fwrev}=="0x3131313031332020"
    ATTR{hwrev}=="0x0"
    ATTR{life_time}=="0x01 0x01"
    ATTR{manfid}=="0x000045"
    ATTR{name}=="DF4064"
    ATTR{ocr}=="00000080"
    ATTR{oemid}=="0x0100"
    ATTR{pre_eol_info}=="01"
    ATTR{preferred_erase_size}=="4194304"
    ATTR{prv}=="0x1"
    ATTR{raw_rpmb_size_mult}=="0x20"
    ATTR{rel_sectors}=="0x1"
    ATTR{serial}=="0xb297f96a"
    ATTR{type}=="MMC"

  looking at parent device '/devices/pci0000:00/0000:00:1c.0/mmc_host/mmc0':
    KERNELS=="mmc0"
    SUBSYSTEMS=="mmc_host"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1c.0':
    KERNELS=="0000:00:1c.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="sdhci-pci"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x080501"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0x5acc"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="39"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{local_cpus}=="f"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="-1"
    ATTRS{revision}=="0x0b"
    ATTRS{subsystem_device}=="0x7270"
    ATTRS{subsystem_vendor}=="0x8086"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

Am I missing any modules? the internal eMMC works fine, and uses the same sdhci-pci module.

EDIT: images before adding text output
The album below has screenshots of udevadm info, dmesg and lspci -k:
https://imgur.com/a/Fs7mp

Last edited by stavrakis (2018-01-26 19:21:17)

Offline

#2 2017-10-30 02:59:22

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

You can use ix.io to copy text using curl. Or copy files using a USB stick. Reading text in an image is not very accessible.

What kind of initrd is it? How is it configured?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2017-10-30 16:22:19

severach
Member
Registered: 2015-05-23
Posts: 192

Re: [SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

Does it boot when you select the "Fallback" boot option?

Offline

#4 2017-10-30 19:17:17

stavrakis
Member
Registered: 2011-12-29
Posts: 22

Re: [SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

severach wrote:

Does it boot when you select the "Fallback" boot option?

Unfortunately it doesn't. The weird thing is that both the eMMC and SD reader should be using the same module, sdhci_pci, but the module won't actually do anything else other than enable device 1b.

Offline

#5 2017-10-31 09:58:13

stavrakis
Member
Registered: 2011-12-29
Posts: 22

Re: [SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

Where is the initcpio on the arch ISO? I might be able to use that until I figure out what the differences are between that and the one installed.

Offline

#6 2018-01-26 18:59:14

gloom
Member
Registered: 2015-12-09
Posts: 2

Re: [SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

Do you try to install Arch on chuwi Hi13? I'm asking because i have the same issue and seems the same hardware.

I didn't have the issue when I installed Arch on Hi13 in April or May. To me it looks like they changed something in kernel since then.

Did you find a proper modules to get Arch booting from mmcblk2 ?

Offline

#7 2018-01-26 19:22:14

stavrakis
Member
Registered: 2011-12-29
Posts: 22

Re: [SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

Added the mkinitcpio.conf MODULES line. The listed modules seem to have solved the problem.

Offline

#8 2018-01-26 21:30:24

gloom
Member
Registered: 2015-12-09
Posts: 2

Re: [SOLVED]Arch on SD Card (Initcpio does't recognise SD card)

stavrakis wrote:

Added the mkinitcpio.conf MODULES line. The listed modules seem to have solved the problem.

Oh, thanks, it works for me too!

Offline

Board footer

Powered by FluxBB