Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Could not find the root block device on Surface Go
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Thu Jun 06, 2019 5:16 am    Post subject: Could not find the root block device on Surface Go Reply with quote

I have installed Gentoo on an Surface Go with 4GB RAM and 64GB disk by
SystemRescuecd 6.0.3. The names of partitions under SystemRescuecd are
mmcblk0p1, mmcblk0p2, mmcblk0p3, mmcblk0p4 and mmcblk0p4 is the "/"
system. SystemRescuecd 6.0.3 works well on this Surface Go. However,
when reboot to gentoo, it says
Quote:

Could not find the root block device in UUID=
Please specify another value or:
- press Enter for the same
- thpe "shell" for a shell
- type "q" to skip ...


and there is no /dev/mmcblk0px by "ls /dev/" in the "shell".

I tried to compile all mmc related modules into kernel, but it doesn't
work and the same error still exists.

The kernel config file is on https://pastebin.com/TU0jbQVd.

Mod edit: Corrected topic title typo to improve search results. — JRG
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 506
Location: Australia

PostPosted: Thu Jun 06, 2019 6:30 am    Post subject: Re: Could not find the root blobk device on Surface Go Reply with quote

mgcyung wrote:
<snip>
Quote:

Could not find the root block device in UUID=
Please specify another value or:
- press Enter for the same
- thpe "shell" for a shell
- type "q" to skip ...


<snip>

I tried to compile all mmc related modules into kernel, but it doesn't
work and the same error still exists.

The kernel config file is on https://pastebin.com/TU0jbQVd.

There's a problem with your pastebin:
Quote:
This page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff.


Your error message usually implies that there is a kernel module missing, but randomly building in drivers isn't a good solution.

Post back the output of
Code:
lspci -k
and re-paste your config.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Thu Jun 06, 2019 7:01 am    Post subject: Re: Could not find the root blobk device on Surface Go Reply with quote

ian.au wrote:

Post back the output of
Code:
lspci -k
and re-paste your config.


Sorry for the mistaken Pastebin URL due to the peroid at the end.

The kernel config file is on https://pastebin.com/TU0jbQVd

The output of
Code:

lspci -k

is on https://pastebin.com/uEQayfLc
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 506
Location: Australia

PostPosted: Thu Jun 06, 2019 9:15 am    Post subject: Reply with quote

I think your best bet will be to see if you can pull the settings from your system with sysrescuecd booted.

Booting from eMMC can require an eclectic collection of modules, systemrescuecd seems able to see the drive, so I'd start there.

Code:
zcat /proc/config.gz > running.config
will get you the running config for starters
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Fri Jun 07, 2019 2:23 am    Post subject: Reply with quote

ian.au wrote:
I think your best bet will be to see if you can pull the settings from your system with sysrescuecd booted.

Booting from eMMC can require an eclectic collection of modules, systemrescuecd seems able to see the drive, so I'd start there.

Code:
zcat /proc/config.gz > running.config
will get you the running config for starters


The kernel is configured with the config file from systemrescuecd.
Code:

  mkdir -p mnt/gentoo
  mount /dev/mmcblk0p4 mnt/gentoo
  zcat /proc/config.gz > mnt/gentoo/.config
 

And the kernel is compiled and install as follows
Code:

  make
  make install modules_install
  genkernel --install initramfs
  grub-mkconfig -o /boot/grub/grub.cfg
 

But the same error still exists.

Should drivers relative to emmc be compiled into kernel as the root
partition is on a emmc device? But the systemrescuecd booted with the
root partition on a usb stick and it sees the emmc devices by emmc
related modules loaded after boot.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 506
Location: Australia

PostPosted: Fri Jun 07, 2019 3:54 am    Post subject: Reply with quote

Well TBH I only ever build kernels up from seeds, I really haven't ever tried to compile an Install from the sysrescuecd .config. My usual course to debug issues like this is to diff the sysrescuecd .config against the one I've unsuccessfully built and start eliminating from there.

Just looking for a moment at how you say you built your kernel, is that right or did you make a typo there?

Quote:
And the kernel is compiled and install as follows

make
make install modules_install
genkernel --install initramfs
grub-mkconfig -o /boot/grub/grub.cfg


But the same error still exists.


Try:
Code:
make &&make modules_install &&make install
for the line in red if you really did build it that way you wouldn't have got what you were expecting.

Otherwise, it really is a matter of trial and error to find the modules you need, once found - yes, if using genkernel to create the iniramfs it's recommended to build them in. Are there any clues in dmesg when booting from sysrescuecd?

It's not the easiest process to complete. I've no experience with the hardware you're working on, but I'm assuming this is a single install on a 64GB unit, not a dual-boot implementation on a half a 128GB drive?

Also if a standalone, how have you setup your UEFI boot parameters? The more information you can provide, the more likely someone here can help you.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Fri Jun 07, 2019 6:03 am    Post subject: Reply with quote

ian.au wrote:
Well TBH I only ever build kernels up from seeds, I really haven't ever tried to compile an Install from the sysrescuecd .config. My usual course to debug issues like this is to diff the sysrescuecd .config against the one I've unsuccessfully built and start eliminating from there.

Just looking for a moment at how you say you built your kernel, is that right or did you make a typo there?

Quote:
And the kernel is compiled and install as follows

make
make install modules_install
genkernel --install initramfs
grub-mkconfig -o /boot/grub/grub.cfg


But the same error still exists.


Try:
Code:
make &&make modules_install &&make install
for the line in red if you really did build it that way you wouldn't have got what you were expecting.

Otherwise, it really is a matter of trial and error to find the modules you need, once found - yes, if using genkernel to create the iniramfs it's recommended to build them in. Are there any clues in dmesg when booting from sysrescuecd?

It's not the easiest process to complete. I've no experience with the hardware you're working on, but I'm assuming this is a single install on a 64GB unit, not a dual-boot implementation on a half a 128GB drive?

Also if a standalone, how have you setup your UEFI boot parameters? The more information you can provide, the more likely someone here can help you.


This is a single install on a 64GB unit.

It seems there are no problem with the UEFI boot parameters as the
grub is running and the error came on kernel booting.

The kernel building commands I used are
Code:

make
make install
make modules_install

Should "make modules_install" be ran before "make install"?

I will try to compile kernel with
Code:

make &&make modules_install &&make install


The dmesg log is on https://pastebin.com/DyAPyQfs

I will also try with kernel seeds.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Fri Jun 07, 2019 6:02 pm    Post subject: Reply with quote

mgcyung,

I suspect you are missing some GPIO or SoC options, or both.

Please pastebin you current kernel .config and post the output of
Code:
lspci -nnk

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Sat Jun 08, 2019 1:06 am    Post subject: Reply with quote

NeddySeagoon wrote:
mgcyung,

I suspect you are missing some GPIO or SoC options, or both.

Please pastebin you current kernel .config and post the output of
Code:
lspci -nnk


The current kernel .config is on https://pastebin.com/n4vighK4

And the output of
Code:

lspci -nnk

is
Code:

00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:590c] (rev 02)
        Subsystem: QUANTA Computer Inc Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [152d:1182]
        Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 615 [8086:591e] (rev 02)
        Subsystem: QUANTA Computer Inc HD Graphics 615 [152d:1182]
        Kernel driver in use: i915
        Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 02)
        Subsystem: QUANTA Computer Inc Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [152d:1182]
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device
00:05.0 Multimedia controller [0480]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Imaging Unit [8086:1919] (rev 01)
        Subsystem: QUANTA Computer Inc Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Imaging Unit [152d:1182]
00:13.0 Non-VGA unclassified device [0000]: Intel Corporation Sunrise Point-LP Integrated Sensor Hub [8086:9d35] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Integrated Sensor Hub [152d:1182]
        Kernel driver in use: intel_ish_ipc
        Kernel modules: intel_ish_ipc
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP USB 3.0 xHCI Controller [152d:1182]
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Thermal subsystem [152d:1182]
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:14.3 Multimedia controller [0480]: Intel Corporation Device [8086:9d32] (rev 01)
        Kernel modules: ipu3_cio2
00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 [8086:9d60] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Serial IO I2C Controller [152d:1182]
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 [8086:9d61] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Serial IO I2C Controller [152d:1182]
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #2 [8086:9d62] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Serial IO I2C Controller [152d:1182]
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.3 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #3 [8086:9d63] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Serial IO I2C Controller [152d:1182]
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP CSME HECI [152d:1182]
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:19.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO UART Controller #2 [8086:9d66] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Serial IO UART Controller [152d:1182]
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:19.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #4 [8086:9d64] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Serial IO I2C Controller [152d:1182]
        Kernel modules: intel_lpss_pci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #3 [8086:9d12] (rev f1)
        Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation Device [8086:9d13] (rev f1)
        Kernel driver in use: pcieport
00:1e.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO UART Controller #0 [8086:9d27] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP Serial IO UART Controller [152d:1182]
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:1e.4 SD Host controller [0805]: Intel Corporation Device [8086:9d2b] (rev 21)
        Subsystem: QUANTA Computer Inc Device [152d:1182]
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci_pci
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:9d4b] (rev 21)
        Subsystem: QUANTA Computer Inc Device [152d:1182]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP PMC [152d:1182]
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21)
        Subsystem: QUANTA Computer Inc Sunrise Point-LP HD Audio [152d:1182]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl
01:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
        Subsystem: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:3370]
        Kernel driver in use: ath10k_pci
        Kernel modules: ath10k_pci
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
        Subsystem: QUANTA Computer Inc RTS522A PCI Express Card Reader [152d:1182]
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci


Quote tags changed to code tags for easy reading. -- NeddySeagoon
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 506
Location: Australia

PostPosted: Sat Jun 08, 2019 2:35 pm    Post subject: Reply with quote

mgcyung wrote:

Should "make modules_install" be ran before "make install"?

I will try to compile kernel with
Code:

make &&make modules_install &&make install


The dmesg log is on https://pastebin.com/DyAPyQfs

I will also try with kernel seeds.


I use those three commands in that order only because I always have, all make install does afaik is copy the new bzImage over to /boot so I doubt the order matters - as long as it's after the kernel is built; looking at the handbook what you had originally was fine actually, it just looked wrong to me.

When I think about it dmesg from your sysrescuecd boot from usb was unlikely to help with this issue, which is to find out which drivers that eMMC card needs.

I note in your config
Code:
CONFIG_MMC_TEST
CONFIG_MMC_DEBUG=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PCI=y
CONFIG_MMC_RICOH_MMC=y
CONFIG_MMC_SDHCI_ACPI=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_F_SDH30=y
CONFIG_MMC_WBSD=y
CONFIG_MMC_TIFM_SD=y
CONFIG_MMC_SPI=y
CONFIG_MMC_SDRICOH_CS=y
CONFIG_MMC_CB710=y
CONFIG_MMC_VIA_SDMMC=y
CONFIG_MMC_VUB300=y
CONFIG_MMC_USHC=y
CONFIG_MMC_USDHI6ROL0=y
CONFIG_MMC_REALTEK_PCI=y
CONFIG_MMC_REALTEK_USB=y
CONFIG_MMC_CQHCI=y
CONFIG_MMC_TOSHIBA_PCI=y
CONFIG_MMC_MTK=y
CONFIG_MMC_SDHCI_XENON=y
I'd switch all those off, and try just cooking a kernel with
Code:
CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8

And see how that goes for starters.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Sat Jun 08, 2019 6:15 pm    Post subject: Reply with quote

mgcyung,

First, some background on the boot process. Details differ between BIOS and UEFI but this high level overview applies to both.

At power on, the firmware, whatever it is does its thing and loads the boot loader.
The boot loader displays a menu and lets you choose a menu item to boot.
It loads the kernel, leaves the kernel parameters where the kernel can find them and optionally, loads an initrd.
The optional initrd, is where kernel modules and user space tools needed to mount the root filesystem go.

The boot loader jumps to the kernel start address. Now its just the kernel, the kernel parameters and if you have one, the initrd in memory to get the system started.

You haven't said if you have an initrd or not and if you have, how it was made. Lets assume for the following, that no initrd is available.
If you need kernel elements that are configured as loadable modules to mound root filesystem and there is no initrd, that's games over.
You need to mount the root filesystem to be able to load the modules you need to mount the root filesystem.
That's one of many circular dependencies the boot process has to solve.

There are two solutions. Use an initrd or configure everything needed to mount root as <*> (built into the kernel binary)

Looking at your lspci, we see you have a Sunrise Point based system.
Looking ay your kernel
Code:
CONFIG_PINCTRL_SUNRISEPOINT=m

That needs to be built in. I'm not sure about the other PINCTRL options.
I don't know about the GPIO and GPIO Expanders options.

Code:
CONFIG_MFD_INTEL_LPSS_PCI=m
CONFIG_INTEL_MEI_ME=m

would both be better as built in too.

I suspect that
Code:
00:1e.4 SD Host controller [0805]: Intel Corporation Device [8086:9d2b] (rev 21)
is a microSD card slot, not your eMMC card.
Your eMMC card is not in lspci, so its on I2C or SPI.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Sun Jun 09, 2019 4:17 am    Post subject: Reply with quote

NeddySeagoon,

I compiled the kernel with
Code:

CONFIG_PINCTRL_SUNRISEPOINT=y
CONFIG_MFD_INTEL_LPSS_PCI=y
CONFIG_INTEL_MEI_ME=y

and use an initrd generated by genkernel
Code:

genkernel --install initramfs

But the same error still exists.

Do I need some other options to built into the kernel binary?
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Sun Jun 09, 2019 4:23 am    Post subject: Reply with quote

ian.au wrote:

I note in your config
Code:
CONFIG_MMC_TEST
CONFIG_MMC_DEBUG=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PCI=y
CONFIG_MMC_RICOH_MMC=y
CONFIG_MMC_SDHCI_ACPI=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_F_SDH30=y
CONFIG_MMC_WBSD=y
CONFIG_MMC_TIFM_SD=y
CONFIG_MMC_SPI=y
CONFIG_MMC_SDRICOH_CS=y
CONFIG_MMC_CB710=y
CONFIG_MMC_VIA_SDMMC=y
CONFIG_MMC_VUB300=y
CONFIG_MMC_USHC=y
CONFIG_MMC_USDHI6ROL0=y
CONFIG_MMC_REALTEK_PCI=y
CONFIG_MMC_REALTEK_USB=y
CONFIG_MMC_CQHCI=y
CONFIG_MMC_TOSHIBA_PCI=y
CONFIG_MMC_MTK=y
CONFIG_MMC_SDHCI_XENON=y
I'd switch all those off, and try just cooking a kernel with
Code:
CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8

And see how that goes for starters.


I tried the full MMC config because the simple MMC config has the same
error. I tried it to avoid any options related to MMC is not compiled
into kernel. But it didn't work as well.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Sun Jun 09, 2019 8:35 am    Post subject: Reply with quote

mgcyung,

The driver you need is is layers, you need all the layers.

Code:
CONFIG_MMC_TEST
CONFIG_MMC_DEBUG=y
should be off. DEBUG options are allowed to interfere with normal operation. Some do, some don't, so all debug options should be off.

Your lspci output shows you need
Code:
CONFIG_MMC_SDHCI_PCI=y
CONFIG_MMC_REALTEK_PCI=y


Code:
CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8
is the code that turns any MMC device into a block device.
You need the low level device driver below it and the filesystem driver above it.

Don't count on genkernel building a working initrd for you. It will include all the kernel modules you need but they are not all autodetected by the kernel and the init script in the initrd may not load them either.
That means you may have all the bits but they never come together.

This will get us some more information.
Boot system rescue CD. Run
Code:
lsmod
put the output to one side. You need it for the sext step.

Boot your Gentoo kernel. When it fails, go into the shell.
Look for your /dev/mmcblk0* devices. I expect that they are still missing.

Run lsmod in your gentoo shell. Go down the systemrescueCD list and cross out any module that is also in the Gentoo list. You have those, so they are not your problem.
For each module not crossed out, do the following.
Code:
modprobe <module_name>

Look for your /dev/mmcblk0* devices.

Modprobe will load the named module and any module it depends on too.
One of three things will happen at the modprobe command.
a) You will get a Failed to load module error. Make a note of those, we need to work out if you need it.
b) The module will load (it will be in lsmod now)
c) The prompt will return and lsmod will be unchanged.

For all the a) Make a note of those and post them, we need to work out if you need them.
For all the b) If your /dev/mmcblk0* devices appear, jackpot! We need to build it and its dependencies into the kernel because its not being auto loaded for you.
For all the c) The code is built into the kernel already. Its not an error to try to load already loaded code.

If you get to the end of the lsmod list and your /dev/mmcblk0* devices are still missing, the systemrescue CD kernel has something configure as <*> that you don't have build at all.
That's useful information too.

As a get-you-going, you could use the Systemrescue CD kernel under your Gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Sun Jun 09, 2019 2:23 pm    Post subject: Reply with quote

NeddySeagoon,

I'm trying crossed out modules.

I found another interesting thing maybe helpful that there are 4 "hidraw*" devices
in /dev in gentoo shell
Code:

bsg                 hwrng               mapper              ram1                ram9                tty0                tty21               tty34               tty47               tty6                usbmon0
btrfs-control       input               mdev.seq            ram10               random              tty1                tty22               tty35               tty48               tty60               usbmon1
bus                 kmsg                megadev0            ram11               raw                 tty10               tty23               tty36               tty49               tty61               usbmon2
console             lightnvm            mem                 ram12               rtc0                tty11               tty24               tty37               tty5                tty62               vcs
cpu                 loop-control        memory_bandwidth    ram13               sda                 tty12               tty25               tty38               tty50               tty63               vcs1
cpu_dma_latency     loop0               mpt2ctl             ram14               sda1                tty13               tty26               tty39               tty51               tty7                vcsa
fb0                 loop1               mpt3ctl             ram15               sda2                tty14               tty27               tty4                tty52               tty8                vcsa1
full                loop2               network_latency     ram2                sg0                 tty15               tty28               tty40               tty53               tty9                vcsu
fuse                loop3               network_throughput  ram3                sg1                 tty16               tty29               tty41               tty54               ttyS0               vcsu1
hidraw0             loop4               null                ram4                snapshot            tty17               tty3                tty42               tty55               ttyS1               vga_arbiter
hidraw1             loop5               port                ram5                sr0                 tty18               tty30               tty43               tty56               ttyS2               zero
hidraw2             loop6               ptmx                ram6                tpm0                tty19               tty31               tty44               tty57               ttyS3
hidraw3             loop7               pts                 ram7                tpmrm0              tty2                tty32               tty45               tty58               urandom
hidraw4             lpfcmgmt            ram0                ram8                tty                 tty20               tty33               tty46               tty59               usb

And I have the MMC device devided into 4 partitions which are
mmcblk0p1, mmcblk0p2, mmcblk0p3, mmcblk0p4 in the systemrescuecd.

I tried to mount /dev/hidraw4 in gentoo shell
Code:

mount /dev/hidraw4 mnt

And it failed with an error
Quote:

mount: mounting /dev/hidraw4 on mnt failed: Block device required


Is it possible MMC devices has been recognized as hid devices but
hasn't been turned to block devices?

I tried to load modules "mmc_core" and "mmc_block"
Code:

modprobe mmc_core

Code:

modprobe mmc_core

They both showed an error
Code:

modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/mmc/core/mmc_core.ko': No such file or directory


I have mmc_core and mmc_block compiled into kernel
Code:

CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8

But it seems they are not in the kernel or compiled as modules.

The options related to MMC in the current kernel config
Code:

cat mnt/gentoo/usr/src/linux/.config|grep MMC

shows as
Code:

CONFIG_PCI_MMCONFIG=y
CONFIG_MMCONF_FAM10H=y
# Supported MMC/SDIO adapters
CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8
# CONFIG_MMC_TEST is not set
# MMC/SD/SDIO Host Controller Drivers
# CONFIG_MMC_DEBUG is not set
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PCI=y
CONFIG_MMC_RICOH_MMC=y
CONFIG_MMC_SDHCI_ACPI=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_F_SDH30=y
CONFIG_MMC_WBSD=y
CONFIG_MMC_TIFM_SD=y
CONFIG_MMC_SPI=y
CONFIG_MMC_SDRICOH_CS=y
CONFIG_MMC_CB710=y
CONFIG_MMC_VIA_SDMMC=y
CONFIG_MMC_VUB300=y
CONFIG_MMC_USHC=y
CONFIG_MMC_USDHI6ROL0=y
CONFIG_MMC_REALTEK_PCI=y
CONFIG_MMC_REALTEK_USB=y
CONFIG_MMC_CQHCI=y
CONFIG_MMC_TOSHIBA_PCI=y
CONFIG_MMC_MTK=y
CONFIG_MMC_SDHCI_XENON=y
# CONFIG_MTK_MMC is not set
CONFIG_MMC35240=m
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Sun Jun 09, 2019 3:00 pm    Post subject: Reply with quote

mgcyung,

The hid in hidraw is an abbreviation for Human Interface Device.

Your eMMC card and its partitions will have the same name in Gentoo as it will in SystemRescueCD. At least it will start with /dev/mmcblk.
You certainly need mmc_core.
Its provided by the MMC option. which as you say is compiled into your kernel.

That's a change to me.
Code:
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/mmc/core/mmc_core.ko': No such file or directory
is correct. Its not there as its not a module.
It used to do nothing silently for already built in code.

Did all the other modules load but no /dev/mmcblk* devices ever appeared?

What other modules were on the System Rescue CD list that did not exist in your gentoo?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Mon Jun 10, 2019 2:54 am    Post subject: Reply with quote

NeddySeagoon,

Modules on the System Rescue CD that did not exist in gentoo are as follows
Code:

  8021q
  8250_dw
  ac
  ac97_bus
  acpi_thermal_rel
  aesni_intel
  aes_x86_64
  agpgart
  arc4
  ath
  ath10k_core
  ath10k_pci
  atkbd
  battery
  bluetooth
  btbcm
  btintel
  btrtl
  btusb
  cdc_ether
  cfg80211
  coretemp
  cqhci
  crc16
  crc32c_generic
  crc32c_intel
  crc32_pclmul
  crct10dif_pclmul
  cryptd
  crypto_simd
  drm
  drm_kms_helper
  ecdh_generic
  evdev
  fb_sys_fops
  fscrypto
  garp
  ghash_clmulni_intel
  glue_helper
  hid
  hid_generic
  hid_multitouch
  hid_sensor_accel_3d
  hid_sensor_als
  hid_sensor_gyro_3d
  hid_sensor_hub
  hid_sensor_iio_common
  hid_sensor_rotation
  hid_sensor_trigger
  i2c_hid
  i8042
  i915
  idma64
  industrialio
  industrialio_triggered_buffer
  input_leds
  int3400_thermal
  int3403_thermal
  int340x_thermal_zone
  intel_cstate
  intel_gtt
  intel_hid
  intel_ish_ipc
  intel_ishtp
  intel_ishtp_hid
  intel_lpss
  intel_lpss_pci
  intel_pch_thermal
  intel_powerclamp
  intel_rapl
  intel_rapl_perf
  intel_soc_dts_iosf
  intel_uncore
  intel_wmi_thunderbolt
  intel_xhci_usb_role_switch
  ip_tables
  ipu3_cio2
  irqbypass
  isofs
  joydev
  kfifo_buf
  kvm
  kvmgt
  kvm_intel
  lib80211
  libps2
  llc
  loop
  mac80211
  mac_hid
  mdev
  media
  mei
  mei_me
  memstick
  mmc_block
  mmc_core
  mousedev
  mrp
  nls_cp437
  nls_iso8859_1
  overlay
  pcc_cpufreq
  pcspkr
  processor_thermal_device
  r8152
  r8188eu
  rfkill
  rng_core
  roles
  rtsx_pci
  rtsx_pci_ms
  rtsx_pci_sdmmc
  scsi_mod
  sdhci
  sdhci_pci
  serio
  serio_raw
  snd
  snd_compress
  snd_hda_codec
  snd_hda_codec_generic
  snd_hda_codec_hdmi
  snd_hda_codec_realtek
  snd_hda_core
  snd_hda_ext_core
  snd_hda_intel
  snd_hwdep
  snd_pcm
  snd_pcm_dmaengine
  snd_soc_acpi
  snd_soc_acpi_intel_match
  snd_soc_core
  snd_soc_skl
  snd_soc_skl_ipc
  snd_soc_sst_dsp
  snd_soc_sst_ipc
  snd_timer
  soc_button_array
  soundcore
  sparse_keymap
  stp
  syscopyarea
  sysfillrect
  sysimgblt
  tpm
  tpm_crb
  tpm_tis
  tpm_tis_core
  typec
  typec_ucsi
  uas
  ucsi_acpi
  usbhid
  usbnet
  v4l2_fwnode
  vfat
  vfio
  vfio_iommu_type1
  vfio_mdev
  videobuf2_common
  videobuf2_dma_sg
  videobuf2_memops
  videobuf2_v4l2
  videodev
  wmi
  x86_pkg_temp_thermal
  x_tables


Save the list to file mnt/modules.txt and run the following command to
modprobe all of them
Code:

cat mnt/modules.txt|xargs -n 1 modprobe >mnt/modprobe_output.txt 2>mnt/modprobe_output.txt

The output is
Code:

modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/llc/llc.ko': No such file or directory
modprobe: module 8250_dw not found in modules.dep
modprobe: module ac not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/ac97_bus.ko': No such file or directory
modprobe: module acpi_thermal_rel not found in modules.dep
modprobe: module aesni_intel not found in modules.dep
modprobe: module aes_x86_64 not found in modules.dep
modprobe: module agpgart not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/crypto/arc4.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: module ath10k_core not found in modules.dep
modprobe: module ath10k_pci not found in modules.dep
modprobe: module atkbd not found in modules.dep
modprobe: module battery not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/net/usb/usbnet.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/hwmon/coretemp.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/mmc/core/mmc_core.ko': No such file or directory
modprobe: module crc16 not found in modules.dep
modprobe: module crc32c_generic not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/arch/x86/crypto/crc32c-intel.ko': No such file or directory
modprobe: module crc32_pclmul not found in modules.dep
modprobe: module crct10dif_pclmul not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/crypto/cryptd.ko': No such file or directory
modprobe: module crypto_simd not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/gpu/drm/drm.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/video/fbdev/core/fb_sys_fops.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/crypto/ecdh_generic.ko': No such file or directory
modprobe: module evdev not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/video/fbdev/core/fb_sys_fops.ko': No such file or directory
modprobe: module fscrypto not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/llc/llc.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/crypto/cryptd.ko': No such file or directory
modprobe: module glue_helper not found in modules.dep
modprobe: module hid not found in modules.dep
modprobe: module hid_generic not found in modules.dep
modprobe: module hid_multitouch not found in modules.dep
modprobe: module hid_sensor_accel_3d not found in modules.dep
modprobe: module hid_sensor_als not found in modules.dep
modprobe: module hid_sensor_gyro_3d not found in modules.dep
modprobe: module hid_sensor_hub not found in modules.dep
modprobe: module hid_sensor_iio_common not found in modules.dep
modprobe: module hid_sensor_rotation not found in modules.dep
modprobe: module hid_sensor_trigger not found in modules.dep
modprobe: module i2c_hid not found in modules.dep
modprobe: module i8042 not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/video/fbdev/core/fb_sys_fops.ko': No such file or directory
modprobe: module idma64 not found in modules.dep
modprobe: module industrialio not found in modules.dep
modprobe: module industrialio_triggered_buffer not found in modules.dep
modprobe: module input_leds not found in modules.dep
modprobe: module int3400_thermal not found in modules.dep
modprobe: module int3403_thermal not found in modules.dep
modprobe: module int340x_thermal_zone not found in modules.dep
modprobe: module intel_cstate not found in modules.dep
modprobe: module intel_gtt not found in modules.dep
modprobe: module intel_hid not found in modules.dep
modprobe: module intel_ish_ipc not found in modules.dep
modprobe: module intel_ishtp not found in modules.dep
modprobe: module intel_ishtp_hid not found in modules.dep
modprobe: module intel_lpss not found in modules.dep
modprobe: module intel_lpss_pci not found in modules.dep
modprobe: module intel_pch_thermal not found in modules.dep
modprobe: module intel_powerclamp not found in modules.dep
modprobe: module intel_rapl not found in modules.dep
modprobe: module intel_rapl_perf not found in modules.dep
modprobe: module intel_soc_dts_iosf not found in modules.dep
modprobe: module intel_uncore not found in modules.dep
modprobe: module intel_wmi_thunderbolt not found in modules.dep
modprobe: module intel_xhci_usb_role_switch not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/ipv4/netfilter/ip_tables.ko': No such file or directory
modprobe: module ipu3_cio2 not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/virt/lib/irqbypass.ko': No such file or directory
modprobe: module isofs not found in modules.dep
modprobe: module joydev not found in modules.dep
modprobe: module kfifo_buf not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/virt/lib/irqbypass.ko': No such file or directory
modprobe: module kvmgt not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/virt/lib/irqbypass.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/wireless/lib80211.ko': No such file or directory
modprobe: module libps2 not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/llc/llc.ko': No such file or directory
modprobe: module loop not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: module mac_hid not found in modules.dep
modprobe: module mdev not found in modules.dep
modprobe: module media not found in modules.dep
modprobe: module mei not found in modules.dep
modprobe: module mei_me not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/memstick/core/memstick.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/mmc/core/mmc_core.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/mmc/core/mmc_core.ko': No such file or directory
modprobe: module mousedev not found in modules.dep
modprobe: module mrp not found in modules.dep
modprobe: module nls_cp437 not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/fs/nls/nls_iso8859-1.ko': No such file or directory
modprobe: module overlay not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/cpufreq/pcc-cpufreq.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/input/misc/pcspkr.ko': No such file or directory
modprobe: module processor_thermal_device not found in modules.dep
modprobe: module r8152 not found in modules.dep
modprobe: module r8188eu not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: module rng_core not found in modules.dep
modprobe: module roles not found in modules.dep
modprobe: module rtsx_pci not found in modules.dep
modprobe: module rtsx_pci_ms not found in modules.dep
modprobe: module rtsx_pci_sdmmc not found in modules.dep
modprobe: module scsi_mod not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/mmc/core/mmc_core.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/mmc/core/mmc_core.ko': No such file or directory
modprobe: module serio not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/input/serio/serio_raw.ko': No such file or directory
modprobe: module snd_compress not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/core/snd-hwdep.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/core/snd-hwdep.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/core/snd-hwdep.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/core/snd-hwdep.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/hda/snd-hda-core.ko': No such file or directory
modprobe: module snd_hda_ext_core not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/core/snd-hwdep.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/core/snd-hwdep.ko': No such file or directory
modprobe: module snd_pcm_dmaengine not found in modules.dep
modprobe: module snd_soc_acpi not found in modules.dep
modprobe: module snd_soc_acpi_intel_match not found in modules.dep
modprobe: module snd_soc_core not found in modules.dep
modprobe: module snd_soc_skl not found in modules.dep
modprobe: module snd_soc_skl_ipc not found in modules.dep
modprobe: module snd_soc_sst_dsp not found in modules.dep
modprobe: module snd_soc_sst_ipc not found in modules.dep
modprobe: module soc_button_array not found in modules.dep
modprobe: module sparse_keymap not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/llc/llc.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/video/fbdev/core/syscopyarea.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/video/fbdev/core/sysfillrect.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/video/fbdev/core/sysimgblt.ko': No such file or directory
modprobe: module tpm not found in modules.dep
modprobe: module tpm_crb not found in modules.dep
modprobe: module tpm_tis not found in modules.dep
modprobe: module tpm_tis_core not found in modules.dep
modprobe: module typec not found in modules.dep
modprobe: module typec_ucsi not found in modules.dep
modprobe: module uas not found in modules.dep
modprobe: module ucsi_acpi not found in modules.dep
modprobe: module usbhid not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/net/usb/usbnet.ko': No such file or directory
modprobe: module v4l2_fwnode not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/fs/fat/vfat.ko': No such file or directory
modprobe: module vfio not found in modules.dep
modprobe: module vfio_iommu_type1 not found in modules.dep
modprobe: module vfio_mdev not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-common.ko': No such file or directory
modprobe: module videobuf2_dma_sg not found in modules.dep
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-memops.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/media/v4l2-core/videodev.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/media/v4l2-core/videodev.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/platform/x86/wmi.ko': No such file or directory
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/drivers/thermal/x86_pkg_temp_thermal.ko': No such file or directory
modprobe: module x_tables not found in modules.dep


There are 4 modules loaded after the modprobing as threre are 168
modules not in gentoo and 164 lines in the output. Howerver, there are
34 of this kind of modules after crossing out
Code:

8021q
bluetooth
btbcm
btintel
btrtl
btusb
cdc_ether
cfg80211
cqhci
crc32c_intel
drm_kms_helper
garp
ghash_clmulni_intel
i915
kvm_intel
mac80211
mmc_block
nls_iso8859_1
pcc_cpufreq
sdhci
sdhci_pci
snd_hda_codec
snd_hda_codec_generic
snd_hda_codec_hdmi
snd_hda_codec_realtek
snd_hda_core
snd_hda_intel
snd_hwdep
snd_timer
soundcore
stp
videobuf2_common
videobuf2_memops
videobuf2_v4l2


The /dev/mmcblk* is still missing as the devices seen under gentoo shell are
Code:

bsg                 hwrng               mapper              ram1                ram9                tty0                tty21               tty34               tty47               tty6                usbmon0
btrfs-control       input               mdev.seq            ram10               random              tty1                tty22               tty35               tty48               tty60               usbmon1
bus                 kmsg                megadev0            ram11               raw                 tty10               tty23               tty36               tty49               tty61               usbmon2
console             lightnvm            mem                 ram12               rtc0                tty11               tty24               tty37               tty5                tty62               vcs
cpu                 loop-control        memory_bandwidth    ram13               sda                 tty12               tty25               tty38               tty50               tty63               vcs1
cpu_dma_latency     loop0               mpt2ctl             ram14               sda1                tty13               tty26               tty39               tty51               tty7                vcsa
fb0                 loop1               mpt3ctl             ram15               sda2                tty14               tty27               tty4                tty52               tty8                vcsa1
full                loop2               network_latency     ram2                sg0                 tty15               tty28               tty40               tty53               tty9                vcsu
fuse                loop3               network_throughput  ram3                sg1                 tty16               tty29               tty41               tty54               ttyS0               vcsu1
hidraw0             loop4               null                ram4                snapshot            tty17               tty3                tty42               tty55               ttyS1               vga_arbiter
hidraw1             loop5               port                ram5                sr0                 tty18               tty30               tty43               tty56               ttyS2               zero
hidraw2             loop6               ptmx                ram6                tpm0                tty19               tty31               tty44               tty57               ttyS3
hidraw3             loop7               pts                 ram7                tpmrm0              tty2                tty32               tty45               tty58               urandom
hidraw4             lpfcmgmt            ram0                ram8                tty                 tty20               tty33               tty46               tty59               usb
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Mon Jun 10, 2019 4:41 pm    Post subject: Reply with quote

mgcyung,

Just a quick once over. There is nothing obvious there.

I need to look at that modprobe lis, your kernel .config and maybe the SystemRescueCD kernel .config.
It will probably not be tonight.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Mon Jun 10, 2019 8:43 pm    Post subject: Reply with quote

mgcyung,

We have a number of inconsistencies to resolve.


Code:
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/llc/llc.ko': No such file or directory
CONFIG_LLC=m

It couldn't be modprobed but its built as a module and should therefore bu in your initrd.

Code:
modprobe: module 8250_dw not found in modules.dep
CONFIG_SERIAL_8250_DW=m

It couldn't be modprobed but its built as a module and should therefore bu in your initrd.
modprobe: module ac not found in modules.dep

Code:
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/sound/ac97_bus.ko': No such file or directory
Old (1997) sound bus.
CONFIG_AC97_BUS=m


Code:
modprobe: module acpi_thermal_rel not found in modules.dep
Temp control
CONFIG_ACPI_THERMAL_REL=m


modprobe: module aesni_intel not found in modules.dep
AES Crypto

Code:

modprobe: module aes_x86_64 not found in modules.dep
Another AES Crypto
CONFIG_CRYPTO_AES_X86_64=m



modprobe: module agpgart not found in modules.dep
Part of old AGP Gpaphics driver.

modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/crypto/arc4.ko': No such file or directory
ARC4 Crypto
CONFIG_CRYPTO_ARC4=m


Code:
modprobe: can't open '/lib/modules/4.19.44-gentoo/kernel/net/rfkill/rfkill.ko': No such file or directory
modprobe: module ath10k_core not found in modules.dep
modprobe: module ath10k_pci not found in modules.dep
Assorted WiFi
CONFIG_ATH10K=m
CONFIG_ATH10K_PCI=m



It looks like something is going wrong with your kernel and initrd build/install process because your kernel .config file claims that the things I have tlagged are configured as modules but they can't be loaded.
Root isn't mounted but you are using your initrd as a get you going root filesystem. Its where the rescue shell comes from
The initrd should also contain all these modules.

Lets do a kernel build sequence sanity check.

The kernel build starts with the .config file.
In your Gentoo, what is the timestamp on
Code:
/usr/src/linux/.config

All the derived files mush be newer, or they can't be derived.

Following a successful kernel build, the kernel binary is at /
Code:
usr/src/linux/x86/boot/bzImage

Is it newer. What is its timestamp

The kernel is normally copied to /boot, rather than booted from the build location.
Look at the timestamps on the kernel binaries in /boot. (There may be several)
Is one the same as bzImage. (its a copy, so it shold be)
Look at the timestamp on the initramfs files.
For the kernel modules to be included in the initramfs, it must have been built after the kernel.
If its older, it won't match the kernel.

If there are several kernels in /boot, does grub list them all on the boot menu?
If not, you are probably not booting your newest kernel.

Each kernel should have its own initramfs file.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Tue Jun 11, 2019 4:02 pm    Post subject: Reply with quote

NeddySeagoon,

The kernel .config of systemrescucd is on https://pastebin.com/LTWB099j

The kernel .config of gentoo is on https://pastebin.com/nsAdeUJh

The modprobe list is as follows
Code:

    8021q
    8250_dw
    ac
    ac97_bus
    acpi_thermal_rel
    aesni_intel
    aes_x86_64
    agpgart
    arc4
    ath
    ath10k_core
    ath10k_pci
    atkbd
    battery
    bluetooth
    btbcm
    btintel
    btrtl
    btusb
    cdc_ether
    cfg80211
    coretemp
    cqhci
    crc16
    crc32c_generic
    crc32c_intel
    crc32_pclmul
    crct10dif_pclmul
    cryptd
    crypto_simd
    drm
    drm_kms_helper
    ecdh_generic
    evdev
    fb_sys_fops
    fscrypto
    garp
    ghash_clmulni_intel
    glue_helper
    hid
    hid_generic
    hid_multitouch
    hid_sensor_accel_3d
    hid_sensor_als
    hid_sensor_gyro_3d
    hid_sensor_hub
    hid_sensor_iio_common
    hid_sensor_rotation
    hid_sensor_trigger
    i2c_hid
    i8042
    i915
    idma64
    industrialio
    industrialio_triggered_buffer
    input_leds
    int3400_thermal
    int3403_thermal
    int340x_thermal_zone
    intel_cstate
    intel_gtt
    intel_hid
    intel_ish_ipc
    intel_ishtp
    intel_ishtp_hid
    intel_lpss
    intel_lpss_pci
    intel_pch_thermal
    intel_powerclamp
    intel_rapl
    intel_rapl_perf
    intel_soc_dts_iosf
    intel_uncore
    intel_wmi_thunderbolt
    intel_xhci_usb_role_switch
    ip_tables
    ipu3_cio2
    irqbypass
    isofs
    joydev
    kfifo_buf
    kvm
    kvmgt
    kvm_intel
    lib80211
    libps2
    llc
    loop
    mac80211
    mac_hid
    mdev
    media
    mei
    mei_me
    memstick
    mmc_block
    mmc_core
    mousedev
    mrp
    nls_cp437
    nls_iso8859_1
    overlay
    pcc_cpufreq
    pcspkr
    processor_thermal_device
    r8152
    r8188eu
    rfkill
    rng_core
    roles
    rtsx_pci
    rtsx_pci_ms
    rtsx_pci_sdmmc
    scsi_mod
    sdhci
    sdhci_pci
    serio
    serio_raw
    snd
    snd_compress
    snd_hda_codec
    snd_hda_codec_generic
    snd_hda_codec_hdmi
    snd_hda_codec_realtek
    snd_hda_core
    snd_hda_ext_core
    snd_hda_intel
    snd_hwdep
    snd_pcm
    snd_pcm_dmaengine
    snd_soc_acpi
    snd_soc_acpi_intel_match
    snd_soc_core
    snd_soc_skl
    snd_soc_skl_ipc
    snd_soc_sst_dsp
    snd_soc_sst_ipc
    snd_timer
    soc_button_array
    soundcore
    sparse_keymap
    stp
    syscopyarea
    sysfillrect
    sysimgblt
    tpm
    tpm_crb
    tpm_tis
    tpm_tis_core
    typec
    typec_ucsi
    uas
    ucsi_acpi
    usbhid
    usbnet
    v4l2_fwnode
    vfat
    vfio
    vfio_iommu_type1
    vfio_mdev
    videobuf2_common
    videobuf2_dma_sg
    videobuf2_memops
    videobuf2_v4l2
    videodev
    wmi
    x86_pkg_temp_thermal
    x_tables
 


The timestamps of files are as follow
Code:

  -rw-r--r--   1 root root 8861568 Jun  9 20:37 mnt/gentoo/usr/src/linux/arch/x86/boot/bzImage
  -rw-r--r--   1 root root  218401 Jun  9 20:33 mnt/gentoo/usr/src/linux/.config

  mnt/gentoo/usr/src/linux/drivers:
  total 1268
  -rw-r--r--  1 root root   7060 Jun  9 20:37 modules.builtin
  -rw-r--r--  1 root root 198521 Jun  9 20:36 modules.order
  -rw-r--r--  1 root root  84706 Jun  9 20:36 built-in.a
  drwxr-xr-x  4 root root   4096 Jun  9 20:35 mmc
  drwxr-xr-x  6 root root  12288 Jun  9 11:09 xen
  drwxr-xr-x  2 root root  28672 Jun  9 11:09 watchdog
  drwxr-xr-x  4 root root   4096 Jun  9 11:09 w1
  drwxr-xr-x  2 root root   4096 Jun  9 11:09 visorbus
  drwxr-xr-x  2 root root   4096 Jun  9 11:09 virtio
  drwxr-xr-x  6 root root   4096 Jun  9 11:09 video
  drwxr-xr-x  2 root root   4096 Jun  9 11:08 vhost
  drwxr-xr-x  5 root root   4096 Jun  9 11:08 vfio
  drwxr-xr-x  3 root root   4096 Jun  9 11:08 uwb
  drwxr-xr-x  2 root root   4096 Jun  9 11:07 uio
  drwxr-xr-x  7 root root  12288 Jun  9 11:07 tty
  drwxr-xr-x  2 root root   4096 Jun  9 11:07 thunderbolt
  drwxr-xr-x  9 root root  12288 Jun  9 11:07 thermal
  drwxr-xr-x  6 root root   4096 Jun  9 11:07 target
  drwxr-xr-x  2 root root   4096 Jun  9 11:06 ssb
  drwxr-xr-x  2 root root   4096 Jun  9 11:06 spmi
  drwxr-xr-x  2 root root  16384 Jun  9 11:06 spi
  drwxr-xr-x 40 root root  20480 Jun  9 11:06 scsi
  drwxr-xr-x  2 root root  36864 Jun  9 11:05 rtc
  drwxr-xr-x  2 root root   4096 Jun  9 11:05 rpmsg
  drwxr-xr-x  5 root root   4096 Jun  9 11:05 reset
  drwxr-xr-x  2 root root   4096 Jun  9 11:05 remoteproc
  drwxr-xr-x  2 root root  40960 Jun  9 11:05 regulator
  drwxr-xr-x  4 root root   4096 Jun  9 11:04 rapidio
  drwxr-xr-x  2 root root   4096 Jun  9 11:04 pwm
  drwxr-xr-x  2 root root   4096 Jun  9 11:04 ptp
  drwxr-xr-x  2 root root   4096 Jun  9 11:04 powercap
  drwxr-xr-x 27 root root   4096 Jun  9 11:04 pinctrl
  drwxr-xr-x  2 root root   4096 Jun  9 11:04 pcmcia
  drwxr-xr-x  7 root root   4096 Jun  9 11:04 pci
  drwxr-xr-x  2 root root   4096 Jun  9 11:04 parport
  drwxr-xr-x  2 root root   4096 Jun  9 11:04 nvdimm
  drwxr-xr-x  4 root root   4096 Jun  9 11:04 ntb
  drwxr-xr-x 12 root root   4096 Jun  9 11:04 nfc
  drwxr-xr-x 28 root root  12288 Jun  9 11:03 net
  drwxr-xr-x 11 root root   4096 Jun  9 11:01 mtd
  drwxr-xr-x 20 root root  12288 Jun  9 11:01 misc
  drwxr-xr-x  2 root root  40960 Jun  9 11:01 mfd
  drwxr-xr-x 17 root root   4096 Jun  9 10:59 media
  drwxr-xr-x  4 root root  20480 Jun  9 10:58 md
  drwxr-xr-x  2 root root   4096 Jun  9 10:58 mcb
  drwxr-xr-x  2 root root   4096 Jun  9 10:58 mailbox
  drwxr-xr-x  3 root root   4096 Jun  9 10:58 macintosh
  drwxr-xr-x  2 root root   4096 Jun  9 10:58 lightnvm
  drwxr-xr-x  3 root root  20480 Jun  9 10:58 leds
  drwxr-xr-x  4 root root   4096 Jun  9 10:57 ipack
  drwxr-xr-x  2 root root   4096 Jun  9 10:57 iommu
  drwxr-xr-x 11 root root   4096 Jun  9 10:57 input
  drwxr-xr-x 28 root root   4096 Jun  9 10:56 iio
  drwxr-xr-x  5 root root   4096 Jun  9 10:55 i2c
  drwxr-xr-x  3 root root  49152 Jun  9 10:55 hwmon
  drwxr-xr-x  2 root root   4096 Jun  9 10:54 hv
  drwxr-xr-x  4 root root   4096 Jun  9 10:54 hsi
  drwxr-xr-x  5 root root  36864 Jun  9 10:54 hid
  drwxr-xr-x  2 root root  32768 Jun  9 10:54 gpio
  drwxr-xr-x  2 root root  12288 Jun  9 10:53 fpga
  drwxr-xr-x  2 root root   4096 Jun  9 10:53 fmc
  drwxr-xr-x  8 root root   4096 Jun  9 10:53 firmware
  drwxr-xr-x  2 root root   4096 Jun  9 10:53 firewire
  drwxr-xr-x  2 root root  12288 Jun  9 10:53 extcon
  drwxr-xr-x  2 root root  12288 Jun  9 10:53 edac
  drwxr-xr-x 14 root root   4096 Jun  9 10:53 dma
  drwxr-xr-x  2 root root   4096 Jun  9 10:53 dca
  drwxr-xr-x  2 root root   4096 Jun  9 10:53 dax
  drwxr-xr-x 23 root root   4096 Jun  9 10:53 crypto
  drwxr-xr-x  2 root root  12288 Jun  9 10:53 cpufreq
  drwxr-xr-x 44 root root  12288 Jun  9 10:53 clk
  drwxr-xr-x 10 root root   4096 Jun  9 10:53 char
  drwxr-xr-x  2 root root  12288 Jun  9 10:53 bluetooth
  drwxr-xr-x  9 root root   4096 Jun  9 10:53 block
  drwxr-xr-x  2 root root   4096 Jun  9 10:52 bcma
  drwxr-xr-x  2 root root   4096 Jun  9 10:52 auxdisplay
  drwxr-xr-x  2 root root   4096 Jun  9 10:52 atm
  drwxr-xr-x  2 root root  28672 Jun  9 10:52 ata
  drwxr-xr-x  9 root root  12288 Jun  9 10:52 acpi
  drwxr-xr-x  2 root root   4096 Jun  9 10:21 oprofile
  drwxr-xr-x  4 root root   4096 Jun  9 10:10 vme
  drwxr-xr-x 27 root root   4096 Jun  9 10:07 usb
  drwxr-xr-x 54 root root   4096 Jun  9 09:58 staging
  drwxr-xr-x  2 root root   4096 Jun  9 09:49 sfi
  drwxr-xr-x  2 root root   4096 Jun  9 09:39 ras
  drwxr-xr-x  4 root root   4096 Jun  9 09:39 pps
  drwxr-xr-x  5 root root   4096 Jun  9 09:38 power
  drwxr-xr-x  5 root root   4096 Jun  9 09:38 pnp
  drwxr-xr-x  8 root root   4096 Jun  9 09:38 platform
  drwxr-xr-x 18 root root   4096 Jun  9 09:36 phy
  drwxr-xr-x  2 root root   4096 Jun  9 09:35 opp
  drwxr-xr-x  2 root root   4096 Jun  9 09:35 nvmem
  drwxr-xr-x  4 root root   4096 Jun  9 09:35 nvme
  drwxr-xr-x  4 root root   4096 Jun  9 08:52 memstick
  drwxr-xr-x  4 root root   4096 Jun  9 08:52 memory
  drwxr-xr-x 11 root root   4096 Jun  9 08:35 isdn
  drwxr-xr-x  2 root root   4096 Jun  9 08:32 irqchip
  drwxr-xr-x  6 root root   4096 Jun  9 08:29 infiniband
  drwxr-xr-x  2 root root   4096 Jun  9 08:19 idle
  drwxr-xr-x  6 root root   4096 Jun  9 08:14 gpu
  drwxr-xr-x  2 root root   4096 Jun  9 07:49 dma-buf
  drwxr-xr-x  3 root root   4096 Jun  9 07:48 devfreq
  drwxr-xr-x  3 root root   4096 Jun  9 07:47 cpuidle
  drwxr-xr-x  2 root root   4096 Jun  9 07:47 connector
  drwxr-xr-x  2 root root   4096 Jun  9 07:47 clocksource
  drwxr-xr-x  2 root root   4096 Jun  9 07:45 cdrom
  drwxr-xr-x  3 root root   4096 Jun  9 07:45 bus
  drwxr-xr-x  6 root root   4096 Jun  9 07:43 base
  drwxr-xr-x  2 root root   4096 Jun  7 00:14 soundwire
  drwxr-xr-x  2 root root   4096 Jun  7 00:14 slimbus
  drwxr-xr-x  2 root root   4096 Jun  7 00:14 siox
  drwxr-xr-x  3 root root   4096 Jun  7 00:12 of
  drwxr-xr-x  2 root root   4096 Jun  7 00:09 mux
  drwxr-xr-x  2 root root   4096 Jun  6 23:58 gnss
  drwxr-xr-x  2 root root   4096 Jun  6 23:58 fsi
  drwxr-xr-x  2 root root   4096 Jun  6 23:55 hwspinlock
  drwxr-xr-x  3 root root   4096 Jun  6 23:55 accessibility
  drwxr-xr-x  3 root root   4096 Jun  5 21:04 virt
  drwxr-xr-x 23 root root   4096 Jun  5 20:03 soc
  drwxr-xr-x  3 root root   4096 Jun  5 11:30 perf
  drwxr-xr-x  3 root root   4096 Jun  5 11:24 message
  drwxr-xr-x  2 root root   4096 Jun  5 10:58 amba
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 tc
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 eisa
  drwxr-xr-x  6 root root   4096 Jun  4 21:51 sh
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 sn
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 nubus
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 zorro
  drwxr-xr-x  3 root root   4096 Jun  4 21:51 tee
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 parisc
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 dio
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 ide
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 vlynq
  drwxr-xr-x  5 root root   4096 Jun  4 21:51 hwtracing
  drwxr-xr-x  3 root root   4096 Jun  4 21:51 sbus
  drwxr-xr-x  9 root root   4096 Jun  4 21:51 s390
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 android
  drwxr-xr-x  2 root root   4096 Jun  4 21:51 ps3
  -rw-r--r--  1 root root   5359 Jun  4 21:50 Makefile
  -rw-r--r--  1 root root   3615 Oct 22  2018 Kconfig

  mnt/gentoo/boot:
  total 71404
  drwxr-xr-x 6 root root    1024 Jun  9 21:33 grub
  -rwxr-xr-x 1 root root 7406428 Jun  9 21:32 initramfs-genkernel-x86_64-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root  218401 Jun  9 21:26 config-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root 4453177 Jun  9 21:26 System.map-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root 8861568 Jun  9 21:26 vmlinuz-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root  218379 Jun  9 11:18 config-4.19.44-gentoo-surface.old
  -rwxr-xr-x 1 root root 4458564 Jun  9 11:18 System.map-4.19.44-gentoo-surface.old
  -rwxr-xr-x 1 root root 8873856 Jun  9 11:18 vmlinuz-4.19.44-gentoo-surface.old
  -rwxr-xr-x 1 root root 1519396 Jun  7 15:46 initramfs-genkernel-x86_64-4.19.44-gentoo-lts
  -rwxr-xr-x 1 root root  218379 Jun  7 15:45 config-4.19.44-gentoo-lts
  -rwxr-xr-x 1 root root 3749680 Jun  7 15:45 System.map-4.19.44-gentoo-lts
  -rwxr-xr-x 1 root root 5814144 Jun  7 15:45 vmlinuz-4.19.44-gentoo-lts
  -rwxr-xr-x 1 root root  221644 Jun  7 14:38 config-4.19.44-gentoo-lts.old
  -rwxr-xr-x 1 root root 3749680 Jun  7 14:38 System.map-4.19.44-gentoo-lts.old
  -rwxr-xr-x 1 root root 5814144 Jun  7 14:38 vmlinuz-4.19.44-gentoo-lts.old
  -rwxr-xr-x 1 root root 7806420 Jun  5 11:45 initramfs-genkernel-x86_64-4.19.44-gentoo
  -rwxr-xr-x 1 root root 6484640 Jun  5 10:56 kernel-genkernel-x86_64-4.19.44-gentoo
  -rwxr-xr-x 1 root root 3244063 Jun  5 10:56 System.map-genkernel-x86_64-4.19.44-gentoo
  drwxr-xr-x 4 root root     512 Jun  5 08:34 efi
 


The grub.cfg of gentoo is on https://pastebin.com/LruSw8LJ
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Tue Jun 11, 2019 6:54 pm    Post subject: Reply with quote

mgcyung,

Good. Very through.

Code:
  -rwxr-xr-x 1 root root 7406428 Jun  9 21:32 initramfs-genkernel-x86_64-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root  218401 Jun  9 21:26 config-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root 4453177 Jun  9 21:26 System.map-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root 8861568 Jun  9 21:26 vmlinuz-4.19.44-gentoo-surface


Is the set of flies you should be testing.

Actually, only vmlinuz-4.19.44-gentoo-surface and initramfs-genkernel-x86_64-4.19.44-gentoo-surface are loaded by the boot loader.

Looking at grub.cfg, we see the default entry is
Code:
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c826e4b1-f95c-42eb-8d5a-151c0fe0f205' {
    load_video
    if [ "x$grub_platform" = xefi ]; then
        set gfxpayload=keep
    fi
    insmod gzio
    insmod part_gpt
    insmod fat
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root  2B42-DE79
    else
      search --no-floppy --fs-uuid --set=root 2B42-DE79
    fi
    echo    'Loading Linux x86_64-4.19.44-gentoo ...'
    linux   /kernel-genkernel-x86_64-4.19.44-gentoo root=UUID=c826e4b1-f95c-42eb-8d5a-151c0fe0f205 ro 
    echo    'Loading initial ramdisk ...'
    initrd  /initramfs-genkernel-x86_64-4.19.44-gentoo

}

Which loads
Code:
    linux   /kernel-genkernel-x86_64-4.19.44-gentoo
    initrd  /initramfs-genkernel-x86_64-4.19.44-gentoo


Code:
  -rwxr-xr-x 1 root root 7806420 Jun  5 11:45 initramfs-genkernel-x86_64-4.19.44-gentoo
  -rwxr-xr-x 1 root root 6484640 Jun  5 10:56 kernel-genkernel-x86_64-4.19.44-gentoo

Those files are dated Jun 5.

Your vmlinuz-4.19.44-gentoo-surface and initramfs-genkernel-x86_64-4.19.44-gentoo-surface file set are listed in the
Code:
 submenu 'Advanced options for Gentoo GNU/Linux'
submenu.
under
Code:
menuentry 'Gentoo GNU/Linux, with Linux 4.19.44-gentoo-surface'
menuentry 'Gentoo GNU/Linux, with Linux 4.19.44-gentoo-surface (recovery mode)'


The new intrd is also listed with
Code:
menuentry 'Gentoo GNU/Linux, with Linux 4.19.44-gentoo-surface.old'
menuentry 'Gentoo GNU/Linux, with Linux 4.19.44-gentoo-surface.old (recovery mode)'
but thats with a non matching kernel.

Which grub menu option have you been booting?
The default one, which is your Jun 5 kernel or the Gentoo GNU/Linux, with Linux 4.19.44-gentoo-surface entry in the submenu?

It may sound a silly question but I once spent most of a day fixing a sound issue on IRC. The problem was actually fixed in a few minuets.
It took most of the day to discover that the wrong kernel was being booted.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Wed Jun 12, 2019 10:22 am    Post subject: Reply with quote

NeddySeagoon,

The problem is solved. Thanks for you help!

You are right. I used the wrong kernel.

I have booted from the default. The grub.cfg was generated by
Code:

  grub-mkconfig -o /boot/grub/grub.cfg
 

and it didn't set the newst kernel as default.

The problem is gone when boot from submenu 4.19.44-gentoo-surface
Code:

  menuentry 'Gentoo GNU/Linux, with Linux 4.19.44-gentoo-surface'
 


However, I can't recognize what options works for eMMC now since some
options may changed due to wrong kernel in grub.cfg.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45801
Location: 56N 3W

PostPosted: Wed Jun 12, 2019 7:21 pm    Post subject: Reply with quote

mgcyung,

Your 4.19.44 is the latest stable kernel.
Clear out all the rubbish from /boot and keep
the working set.
Code:
  -rwxr-xr-x 1 root root 7406428 Jun  9 21:32 initramfs-genkernel-x86_64-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root  218401 Jun  9 21:26 config-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root 4453177 Jun  9 21:26 System.map-4.19.44-gentoo-surface
  -rwxr-xr-x 1 root root 8861568 Jun  9 21:26 vmlinuz-4.19.44-gentoo-surface


You need to keep
Code:
  drwxr-xr-x 6 root root    1024 Jun  9 21:33 grub
  drwxr-xr-x 4 root root     512 Jun  5 08:34 efi
too.

If you run
Code:
 grub-mkconfig -o /boot/grub/grub.cfg
there is only one kernel left.

Unfortunately, the configuration for your original kernel is gone, Unless you built it with
Code:
genkernel all

If you did that it was built with genkernels preset config file and none of your own changes.
Maybe not ... your pastebin fron your original post is stil there.

We could compare the two .config files.

There is another way. You can install and build a testing kernel as well as your working kernel.
The current latest testing kernel is 5.1.9.

The pieces will not get mixed up as they have different version numbers.
If 5.1.9 won't boot, its a menu option to choose 4.19.44 instead.

Maybe you want a break from kernels while you do the rest of your install?
Its your call.

-- edit --
Heres the differences between your first and last posted kernel .configs
$
Code:
 diff -u mgcyung.config mgcyung.config.new
--- mgcyung.config   2019-06-12 20:25:25.197360358 +0100
+++ mgcyung.config.new   2019-06-12 20:42:28.401093477 +0100
@@ -2312,8 +2312,8 @@
 CONFIG_TI_ST=m
 CONFIG_SENSORS_LIS3_I2C=m
 CONFIG_ALTERA_STAPL=m
-CONFIG_INTEL_MEI=m
-CONFIG_INTEL_MEI_ME=m
+CONFIG_INTEL_MEI=y
+CONFIG_INTEL_MEI_ME=y
 CONFIG_INTEL_MEI_TXE=m
 CONFIG_VMWARE_VMCI=m
 
@@ -4309,7 +4309,7 @@
 CONFIG_PINCTRL_SX150X=y
 CONFIG_PINCTRL_BAYTRAIL=y
 CONFIG_PINCTRL_CHERRYVIEW=y
-CONFIG_PINCTRL_INTEL=m
+CONFIG_PINCTRL_INTEL=y
 CONFIG_PINCTRL_BROXTON=m
 CONFIG_PINCTRL_CANNONLAKE=m
 # CONFIG_PINCTRL_CEDARFORK is not set
@@ -4317,7 +4317,7 @@
 CONFIG_PINCTRL_GEMINILAKE=m
 # CONFIG_PINCTRL_ICELAKE is not set
 # CONFIG_PINCTRL_LEWISBURG is not set
-CONFIG_PINCTRL_SUNRISEPOINT=m
+CONFIG_PINCTRL_SUNRISEPOINT=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIOLIB_FASTPATH_LIMIT=512
 CONFIG_GPIO_ACPI=y
@@ -4871,9 +4871,9 @@
 CONFIG_INTEL_SOC_PMIC_BXTWC=m
 # CONFIG_INTEL_SOC_PMIC_CHTWC is not set
 # CONFIG_INTEL_SOC_PMIC_CHTDC_TI is not set
-CONFIG_MFD_INTEL_LPSS=m
+CONFIG_MFD_INTEL_LPSS=y
 CONFIG_MFD_INTEL_LPSS_ACPI=m
-CONFIG_MFD_INTEL_LPSS_PCI=m
+CONFIG_MFD_INTEL_LPSS_PCI=y
 CONFIG_MFD_JANZ_CMODIO=m
 CONFIG_MFD_KEMPLD=m
 CONFIG_MFD_88PM800=m
@@ -6960,12 +6960,12 @@
 CONFIG_MMC_BLOCK=y
 CONFIG_MMC_BLOCK_MINORS=8
 CONFIG_SDIO_UART=y
-CONFIG_MMC_TEST=y
+# CONFIG_MMC_TEST is not set
 
 #
 # MMC/SD/SDIO Host Controller Drivers
 #
-CONFIG_MMC_DEBUG=y
+# CONFIG_MMC_DEBUG is not set
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PCI=y
 CONFIG_MMC_RICOH_MMC=y
@@ -9575,5 +9575,4 @@
 # Support for init systems, system and service managers
 #
 CONFIG_GENTOO_LINUX_INIT_SCRIPT=y
-# CONFIG_GENTOO_LINUX_INIT_SYSTEMD is not set
-[
\ No newline at end of file
+# CONFIG_GENTOO_LINUX_INIT_SYSTEMD is not set
\ No newline at end of file

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 31

PostPosted: Fri Jun 14, 2019 1:42 am    Post subject: Reply with quote

NeddySeagoon,

Now, I would complete the rest of the installation and config my
working enviroments. I will do the clean and some test for the
different .cofig files later.

Thanks for you help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum