View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1563
|
Posted: Wed Dec 25, 2024 10:33 am Post subject: Unable to mount root fs on unknown-block(0,0)[solved] |
|
|
UI'm trying to install gentoo on my cherry trail laptop, the root filesystem is btrfs on /dev/mmcblk0p2(there are no hard drives.
kernel config:
https://dpaste.com/57R8HF3LF
when the kernel panic lists available partitions it lists sda*(usb flash drive) but not /dev/mmcblk*
how Can I get gentoo to recognize the mmc?
Last edited by Adel Ahmed on Thu Dec 26, 2024 4:34 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54644 Location: 56N 3W
|
Posted: Wed Dec 25, 2024 10:45 am Post subject: |
|
|
Adel Ahmed,
/dev/mmcblk* devices can be very slow. The kernel detects them asynchronously.
You need either rootwait or rootdelay= on the kernel command line.
However, if you use an initrd, the initrd must do the waiting. rootwait or rootdelay= on the command line will delay the mounting of the initrd as root.
rootwait will wait forever.
rootdelay= delays the given number of seconds
Use rootdelay= until it works, then switch to rootwait to get the fastest boot. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1563
|
Posted: Wed Dec 25, 2024 12:24 pm Post subject: |
|
|
I tried rootwait yesterday, and 8 hours later the rootfs could not be detected, I'm suspecting a muissing kenrel module so far |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5254 Location: Bavaria
|
Posted: Wed Dec 25, 2024 12:57 pm Post subject: |
|
|
Adel Ahmed,
we would need more information about your laptop. Please boot with our GentooLiveCD and provide us the output of:
* dmesg
* lsmod
* lspci -nnk
(please use wgetpaste for it)
and the information if you try to boot WITH or without an initramfs. If WITH how was it built?
Maybe you miss only these:
Code: | # CONFIG_X86_INTEL_LPSS is not set
# CONFIG_GPIO_ICH is not set
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set |
Maybe you miss more.
I am not a BTRFS expert but usually we need POSIX_ACL for / ... so, maybe you need also (but it is not related to the problem of not recognizing /dev/mmcblk0p2)
Code: | # CONFIG_BTRFS_FS_POSIX_ACL is not set |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1563
|
Posted: Wed Dec 25, 2024 3:44 pm Post subject: |
|
|
the kernel options did not resolve the issue, thanks for the ACL tip though.
I do not use an initrd
dmesg:
https://dpaste.com/3CDXTGUPV
lsmod:
https://dpaste.com/DBK5JXYZH
the memory card is connect by the ACPI bus i believe.
lspci:
livecd ~ # lspci -nnk
Code: | 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 Device [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 Device [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 Device [8086:7270]
Kernel driver in use: intel_atomisp2_pm
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 Device [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 Device [8086:7270]
Kernel driver in use: xhci_hcd
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 Device [8086:7270]
Kernel driver in use: mei_txe
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 Device [8086:7270]
Kernel driver in use: lpc_ich |
|
|
Back to top |
|
|
zen_desu n00b
Joined: 25 Oct 2024 Posts: 71
|
Posted: Wed Dec 25, 2024 4:16 pm Post subject: |
|
|
Adel Ahmed wrote: | the kernel options did not resolve the issue, thanks for the ACL tip though.
I do not use an initrd
dmesg:
https://dpaste.com/3CDXTGUPV
lsmod:
https://dpaste.com/DBK5JXYZH
the memory card is connect by the ACPI bus i believe.
lspci:
livecd ~ # lspci -nnk
Code: | 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 Device [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 Device [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 Device [8086:7270]
Kernel driver in use: intel_atomisp2_pm
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 Device [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 Device [8086:7270]
Kernel driver in use: xhci_hcd
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 Device [8086:7270]
Kernel driver in use: mei_txe
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 Device [8086:7270]
Kernel driver in use: lpc_ich |
|
If you ran a test with an initramfs, you could use the shell in that environment to check things out and get a better idea of what is missing.
Have you attempted using dist-kernel? _________________ µgRD dev
Wiki writer |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5254 Location: Bavaria
|
Posted: Wed Dec 25, 2024 4:56 pm Post subject: |
|
|
Adel Ahmed,
what I did:
Searching in "lsmod" for modules which COULD be related to MMC (so, no sound modules ). Then I checked if they are enabled in your .config. These are missing:
Code: | * pwm_lpss_platform ->
CONFIG_INTEL_PMC_CORE
PWM_LPSS_PLATFORM
* spi_pxa2xx_platform ->
# CONFIG_SPI is not set -> ... |
Usually these are modules which activates other modules AND hardware ... especially SPI ... just read the help of CONFIG_SPI ... ->
Quote: | [...] MMC and SD cards can be accessed using SPI protocol [...] |
These are missing also, but I guess it is not related to your main problem:
Code: | * silead ->
# CONFIG_TOUCHSCREEN_SILEAD is not set
* sr9700 ->
# CONFIG_USB_USBNET is not set -> USB_NET_SR9700
* dm9601 ->
USB_NET_DM9601 |
Some other (not so important) are missing also, but I don't want to take your housework away from you ...
Maybe have a look into:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration
Here could be a problem:
Code: | mmc_core 147456 4 sdhci,mmc_block,sdhci_acpi,r8723bs |
because I didnt found r8723bs ... but maybe due I searched in 6.12. and not in 6.6. (I deleted 6.6. on my station before some weeks) _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5254 Location: Bavaria
|
Posted: Wed Dec 25, 2024 5:08 pm Post subject: |
|
|
Internal note:
Code: | [ 0.000000] DMI: United Company cherry-ZE11B/Cherry Trail CR, BIOS YZ-BI-11.6-Y116CR600-CC34J-076-C 11/05/2018
[ 0.281776] smpboot: CPU0: Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz (family: 0x6, model: 0x4c, stepping: 0x4)
[ 9.647929] sdhci: Secure Digital Host Controller Interface driver
[ 9.648752] sdhci: Copyright(c) Pierre Ossman
[ 9.668032] mmc1: SDHCI controller on ACPI [80860F14:00] using ADMA
[ 9.668990] mmc2: SDHCI controller on ACPI [80860F14:02] using ADMA
[ 9.669703] mmc0: SDHCI controller on ACPI [80860F14:03] using ADMA
[ 9.673912] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels
[ 9.707187] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels
[ 9.719107] dm9601 1-3:1.0 eth0: register 'dm9601' at usb-0000:00:14.0-3, Davicom DM96xx USB 10/100 Ethernet, 00:e0:4c:53:44:58
[ 9.802784] mmc1: new HS200 MMC card at address 0001
[ 9.832796] mmcblk1: mmc1:0001 Biwin 28.8 GiB
[ 9.840101] mmcblk1: p1 p2
[ 9.841425] mmcblk1boot0: mmc1:0001 Biwin 4.00 MiB
[ 9.843256] mmcblk1boot1: mmc1:0001 Biwin 4.00 MiB
[ 9.844841] mmcblk1rpmb: mmc1:0001 Biwin 4.00 MiB, chardev (239:0)
[ 26.181527] intel_sst_acpi 808622A8:00: LPE base: 0x91400000 size:0x200000
[ 26.181543] intel_sst_acpi 808622A8:00: IRAM base: 0x914c0000
[ 26.181582] intel_sst_acpi 808622A8:00: DRAM base: 0x91500000
[ 26.181594] intel_sst_acpi 808622A8:00: SHIM base: 0x91540000
[ 26.181605] intel_sst_acpi 808622A8:00: Mailbox base: 0x91544000
[ 26.181615] intel_sst_acpi 808622A8:00: DDR base: 0x20000000
[ 26.182577] intel_sst_acpi 808622A8:00: Got drv data max stream 25
[ 26.192093] Loading firmware: intel/fw_sst_22a8.bin
[ 44.642348] BTRFS info (device mmcblk1p2): first mount of filesystem e602df7d-ee9b-412a-b6b0-3fbe4f88faac
[ 44.642448] BTRFS info (device mmcblk1p2): using crc32c (crc32c-intel) checksum algorithm
[ 44.642473] BTRFS info (device mmcblk1p2): using free space tree
[ 44.668009] BTRFS info (device mmcblk1p2): enabling ssd optimizations
[ 44.668029] BTRFS info (device mmcblk1p2): auto enabling async discard
[ 47.743603] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1563
|
Posted: Wed Dec 25, 2024 6:10 pm Post subject: |
|
|
thanks alot for your effort pietinger, I've built those modules into te kernel but the rootfs is still not detected, the r8723bs is the wifi module so I have it built as a module now.
@zen desu, I've copied over the initrd from the installation medium, now the rootfs is detected which should save me from using the liveusb medium until I figure this out, the boot process is stuck however at device fsid <uuid of root> devid 1 transid 899 /dev/mmcblk-p2 scanned by (udev-worker) and I get dropped to a dracut shell, this is progress nevertheless and should helpme narrow it down further |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1563
|
Posted: Wed Dec 25, 2024 7:36 pm Post subject: |
|
|
It was a wrong uuid issue, i can now boot with initrd, let me post my new dmesg |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1563
|
Posted: Wed Dec 25, 2024 7:58 pm Post subject: |
|
|
new system(booted with initird) lsmod:
Code: | localhost ~ # lsmod
Module Size Used by
r8723bs 434176 0
dm9601 12288 0
silead 16384 0
efivarfs 16384 0 |
dmesg:
https://pastebin.com/6GK69YCd |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5254 Location: Bavaria
|
Posted: Wed Dec 25, 2024 11:41 pm Post subject: |
|
|
Hmmm this is strange ... your MMC is in this syslog NOW recognized ... directly from the kernel ... BEFORE initramfs is started (exactly as we want it) (look at the timestamp):
Code: | [ 1.044059] mmc0: new HS200 MMC card at address 0001
[ 1.045306] mmcblk0: mmc0:0001 Biwin 28.8 GiB
[ 1.051900] mmcblk0: p1 p2
[ 1.053465] mmcblk0boot0: mmc0:0001 Biwin 4.00 MiB
[ 1.056078] mmcblk0boot1: mmc0:0001 Biwin 4.00 MiB
[ 1.058547] mmcblk0rpmb: mmc0:0001 Biwin 4.00 MiB, chardev (246:0) |
Because you have BTRFS also statically in your kernel, you SHOULD be able to boot this kernel WITHOUT an initramfs ... BUT ... you will need another command line paramter:
When booting your kernel without initramfs, THEN the kernel must mount the root partition (ro - readonly) and need the information where to find it. Dont use "root=UUID=..." Instead use "root=PARTUUID=..."
Of course it must be the correct partition-ID ... try:
Code: | # lsblk -o name,size,parttypename,fstype,partlabel,partuuid,label,uuid |
(see also: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Confusion_with_root%3DPARTUUID%3D_and_root%3DUUID%3D )
P.S.: AND ... of course ... "rootwait" (as Neddy already said). _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1563
|
Posted: Thu Dec 26, 2024 4:33 am Post subject: |
|
|
GAAH, I think that was it, I changed root=UUID to root=PARTUUID and it boots without and initrd now, I have gone through that link to understand and it explained things perfectly, thank you very much pietinger |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5254 Location: Bavaria
|
|
Back to top |
|
|
|