View previous topic :: View next topic |
Author |
Message |
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Wed Jun 23, 2021 2:58 pm Post subject: Issues getting Gentoo to boot from SDHCI device |
|
|
I recently purchased one of these, and I'm trying to get Gentoo to run on it.
On the LiveCD, I've observed the following:
- Internal storage is recognized as a mmcblk0 device (64 GB)
- dmesg reflects the following entries showing the driver being loaded
Code: | [ 19.634668] sdhci: Secure Digital Host Controller Interface driver
[ 19.634674] sdhci: Copyright(c) Pierre Ossman
[ 19.668583] mmc0: SDHCI controller on ACPI [80860F14:00] using ADMA
[ 19.669836] mmc1: SDHCI controller on ACPI [80860F14:01] using ADMA
[ 19.731364] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 19.732918] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 19.734454] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 19.737225] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 19.740579] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[ 19.816557] mmc0: new HS200 MMC card at address 0001
[ 19.826386] thermal LNXTHERM:00: registered as thermal_zone0
[ 19.826392] ACPI: Thermal Zone [TZ00] (0 C)
[ 19.839895] mmc1: new ultra high speed SDR104 SDIO card at address 0001
[ 19.910909] r8169 0000:01:00.0 enp1s0: renamed from eth0
[ 19.912326] i2c_designware 808622C1:06: I2C bus managed by PUNIT
[ 19.951977] ACPI: AC: found native INT33F4 PMIC, not loading
[ 19.956846] intel_sst_acpi 808622A8:00: LPE base: 0x91400000 size:0x200000
[ 19.956853] intel_sst_acpi 808622A8:00: IRAM base: 0x914c0000
[ 19.956890] intel_sst_acpi 808622A8:00: DRAM base: 0x91500000
[ 19.956905] intel_sst_acpi 808622A8:00: SHIM base: 0x91540000
[ 19.956917] intel_sst_acpi 808622A8:00: Mailbox base: 0x91544000
[ 19.956927] intel_sst_acpi 808622A8:00: DDR base: 0x20000000
[ 19.957130] mmc2: SDHCI controller on ACPI [80860F14:02] using ADMA
[ 19.957253] intel_sst_acpi 808622A8:00: Got drv data max stream 25
[ 20.070463] mmcblk0: mmc0:0001 SLD64G 57.6 GiB
[ 20.070738] mmcblk0boot0: mmc0:0001 SLD64G partition 1 4.00 MiB
[ 20.071020] mmcblk0boot1: mmc0:0001 SLD64G partition 2 4.00 MiB
[ 20.071166] mmcblk0rpmb: mmc0:0001 SLD64G partition 3 4.00 MiB, chardev (250:0)
[ 20.148034] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 20.156578] mmcblk0: p1 p2 p3
[ 20.157003] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 20.298421] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 20.299942] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 20.301467] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 20.304203] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 20.307537] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[ 20.397588] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 20.397752] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.bin failed with error -2 |
So, I've enabled the SDHCI drivers into the kernel (embedded). Here is the relevant kernel config options:
Code: | #
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not set
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_IO_ACCESSORS=y
CONFIG_MMC_SDHCI_PCI=y
CONFIG_MMC_RICOH_MMC=y
CONFIG_MMC_SDHCI_ACPI=y
# CONFIG_MMC_SDHCI_PLTFM is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SDRICOH_CS is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set
CONFIG_MMC_USHC=y
# CONFIG_MMC_USDHI6ROL0 is not set
CONFIG_MMC_CQHCI=y
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MEMSTICK is not set
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_CLASS_MULTICOLOR is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set |
Output of lspci:
Code: | livecd ~ # lspci
00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36)
00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 36)
00:03.0 Multimedia controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit (rev 36)
00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 36)
00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 36)
00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 36)
00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 36)
00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 36)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) |
Upon booting into the device without the LiveCD, it gets a kernel panic message saying it cannot mount the /dev/mmcblk0p3 device. For whatever reason, it seems the kernel doesn't bother loading the SDHCI drivers before attempting to mount the root partition.
Any help is appreciated. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4149 Location: Bavaria
|
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Wed Jun 23, 2021 4:17 pm Post subject: |
|
|
Just tried that. It seems it has some other internal storage for it's own built in UEFI boot utility, and it shows up as /dev/sda, but after 45 seconds, still no mmcblk0 device. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 23, 2021 4:58 pm Post subject: |
|
|
Bigun,
Code: | [ 20.070463] mmcblk0: mmc0:0001 SLD64G 57.6 GiB
[ 20.070738] mmcblk0boot0: mmc0:0001 SLD64G partition 1 4.00 MiB
[ 20.071020] mmcblk0boot1: mmc0:0001 SLD64G partition 2 4.00 MiB
[ 20.071166] mmcblk0rpmb: mmc0:0001 SLD64G partition 3 4.00 MiB, chardev (250:0)
[ 20.148034] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 20.156578] mmcblk0: p1 p2 p3 |
There is mmcblk0 with 3 partitions but look at the sizes. They all appear to be 4Mb.
You need several GB to install gentoo.
It seems that mmcblk0 is around 64GB. The reported size is 57.6 GiB, so that might well be your card.
Put your entire kernel .config onto a pastebin site.
You will need rootwait to boot as SD card detection is slow and asynchronous but that's not you immediate problem. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Wed Jun 23, 2021 6:18 pm Post subject: |
|
|
I had a feeling you'd be the one replying.
http://dpaste.com/AT33ZZK68 _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 23, 2021 7:16 pm Post subject: |
|
|
Bigun,
You have three mmc devices there.
Code: | [ 19.668583] mmc0: SDHCI controller on ACPI [80860F14:00] using ADMA
[ 19.669836] mmc1: SDHCI controller on ACPI [80860F14:01] using ADMA
[ 19.957130] mmc2: SDHCI controller on ACPI [80860F14:02] using ADMA |
mmc0 looks to be built in. That's strange partition name and sizes for a Gentoo install.
Code: | [ 20.070463] mmcblk0: mmc0:0001 SLD64G 57.6 GiB
[ 20.070738] mmcblk0boot0: mmc0:0001 SLD64G partition 1 4.00 MiB
[ 20.071020] mmcblk0boot1: mmc0:0001 SLD64G partition 2 4.00 MiB
[ 20.071166] mmcblk0rpmb: mmc0:0001 SLD64G partition 3 4.00 MiB, chardev (250:0)
[ 20.156578] mmcblk0: p1 p2 p3 |
Go back to the liveUSB. Boot without your SD card installed and see if mmcblk0 is still there.
Code: | [ 20.397588] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 20.397752] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.bin failed with error -2 |
That tells that mmc1 is your Wifi.
You need Code: | # CONFIG_BRCMFMAC is not set | and the SDIO option in that menu.
Modules work. The firmware should be in linux-firmware.
I have a feeling that mmc2 is your Gentoo install.
While you are on the live USB, please post the output of so we can see Vendor and Device IDs along with the kernel drivers is use. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Wed Jun 23, 2021 7:26 pm Post subject: |
|
|
Code: | livecd ~ # lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register [8086:2280] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register [8086:7270]
Kernel driver in use: iosf_mbi_pci
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller [8086:22b0] (rev 36)
DeviceName: Onboard IGD
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller [8086:7270]
00:03.0 Multimedia controller [0480]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit [8086:22b8] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit [8086:7270]
00:0b.0 Signal processing controller [1180]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller [8086:22dc] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller [8086:7270]
00:14.0 USB controller [0c03]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller [8086:22b5] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller [8086:7270]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:1a.0 Encryption controller [1080]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine [8086:2298] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine [8086:7270]
00:1c.0 PCI bridge [0604]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 [8086:22c8] (rev 36)
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU [8086:229c] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU [8086:7270]
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:0123]
Kernel driver in use: r8169
Kernel modules: r8169
|
_________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 23, 2021 7:53 pm Post subject: |
|
|
Bigun,
What were the results of the SD card test? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Thu Jun 24, 2021 2:21 am Post subject: |
|
|
NeddySeagoon wrote: | Bigun,
What were the results of the SD card test? |
Oh sorry, there never was an SD card installed. I'm guessing it's either built in, or inside the case where I can't get to it. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri Jun 25, 2021 7:23 pm Post subject: |
|
|
Bigun,
In that case, mmcblk0 must be your gentoo install.
What does Code: | fdisk -t dos -l /dev/mmcblk0 | and Code: | fdisk -t gpt -l /dev/mmcblk0 | say? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|