Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel dont load, error with filesystem or binfmt_misc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sysvorOrt
n00b
n00b


Joined: 11 Apr 2020
Posts: 2

PostPosted: Sat Apr 11, 2020 4:19 pm    Post subject: Kernel dont load, error with filesystem or binfmt_misc Reply with quote

I have a new pc and i have installed gentoo with different kernels. At this time i have openrc active. The kernel dont load full. It stops by "mounting misc binary format filesystem". I have it activate and deactivate the part CONFIG_BINFMT_MISC=y in kernel but the system stops also on the filesystem part.

Code:
michi@sysvorOrt:~$ lspci -v
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
   Subsystem: ASRock Incorporation Device 3ec2
   Flags: bus master, fast devsel, latency 0
   Capabilities: <access denied>
   Kernel driver in use: skl_uncore

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
   I/O behind bridge: 0000e000-0000efff
   Memory behind bridge: dfe00000-dfefffff
   Prefetchable memory behind bridge: 00000000c0000000-00000000cfffffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller (prog-if 30 [XHCI])
   Subsystem: ASRock Incorporation 200 Series PCH USB 3.0 xHCI Controller
   Flags: bus master, medium devsel, latency 0, IRQ 121
   Memory at dff30000 (64-bit, non-prefetchable) [size=64K]
   Capabilities: <access denied>
   Kernel driver in use: xhci_hcd

00:14.2 Signal processing controller: Intel Corporation 200 Series PCH Thermal Subsystem
   Subsystem: ASRock Incorporation 200 Series PCH Thermal Subsystem
   Flags: bus master, fast devsel, latency 0, IRQ 11
   Memory at dff4e000 (64-bit, non-prefetchable) [size=4K]
   Capabilities: <access denied>

00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
   Subsystem: ASRock Incorporation 200 Series PCH CSME HECI
   Flags: bus master, fast devsel, latency 0, IRQ 132
   Memory at dff4d000 (64-bit, non-prefetchable) [size=4K]
   Capabilities: <access denied>
   Kernel driver in use: mei_me
   Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode] (prog-if 01 [AHCI 1.0])
   Subsystem: ASRock Incorporation 200 Series PCH SATA controller [AHCI mode]
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 122
   Memory at dff48000 (32-bit, non-prefetchable) [size=8K]
   Memory at dff4c000 (32-bit, non-prefetchable) [size=256]
   I/O ports at f050 [size=8]
   I/O ports at f040 [size=4]
   I/O ports at f020 [size=32]
   Memory at dff4b000 (32-bit, non-prefetchable) [size=2K]
   Capabilities: <access denied>
   Kernel driver in use: ahci
   Kernel modules: ahci

00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   Memory behind bridge: dfd00000-dfdfffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Device a2ca
   Subsystem: ASRock Incorporation Device a2ca
   Flags: bus master, medium devsel, latency 0

00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
   Subsystem: ASRock Incorporation 200 Series PCH PMC
   Flags: bus master, fast devsel, latency 0
   Memory at dff44000 (32-bit, non-prefetchable) [size=16K]

00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
   Subsystem: ASRock Incorporation 200 Series PCH HD Audio
   Flags: bus master, fast devsel, latency 32, IRQ 133
   Memory at dff40000 (64-bit, non-prefetchable) [size=16K]
   Memory at dff20000 (64-bit, non-prefetchable) [size=64K]
   Capabilities: <access denied>
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel

00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
   Subsystem: ASRock Incorporation 200 Series PCH SMBus Controller
   Flags: medium devsel, IRQ 11
   Memory at dff4a000 (64-bit, non-prefetchable) [size=256]
   I/O ports at f000 [size=32]
   Kernel modules: i2c_i801

00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
   Subsystem: ASRock Incorporation Ethernet Connection (2) I219-V
   Flags: bus master, fast devsel, latency 0, IRQ 123
   Memory at dff00000 (32-bit, non-prefetchable) [size=128K]
   Capabilities: <access denied>
   Kernel driver in use: e1000e
   Kernel modules: e1000e

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Cedar [Radeon HD 5000/6000/7350/8350 Series]
   Flags: bus master, fast devsel, latency 0, IRQ 125
   Memory at c0000000 (64-bit, prefetchable) [size=256M]
   Memory at dfe20000 (64-bit, non-prefetchable) [size=128K]
   I/O ports at e000 [size=256]
   Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: <access denied>
   Kernel driver in use: radeon
   Kernel modules: radeon

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]
   Subsystem: ASUSTeK Computer Inc. Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]
   Flags: bus master, fast devsel, latency 0, IRQ 134
   Memory at dfe40000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel

02:00.0 Non-Volatile memory controller: Toshiba America Info Systems Device 0113 (rev 01) (prog-if 02 [NVM Express])
   Subsystem: Toshiba America Info Systems Device 0001
   Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
   Memory at dfd00000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: nvme
   Kernel modules: nvme

michi@sysvorOrt:~$


Code:
# Configuration file for genkernel

# This file is sourced by genkernel at startup and determines which options
# we will be using to compile our kernel.  The order of precidence is simple,
# with the internal settings being least important, configuration file
# settings next, and command line options being most important.

# =========Common Command Line Option Defaults=========

# Should we install to $BOOTDIR?  Default is "no" because genkernel is used in
# catalyst and stage building.
#INSTALL="yes"

# Run 'make oldconfig' before compiling this kernel?
OLDCONFIG="yes"

# Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="no"

# Run 'make nconfig' (ncurses 'menuconfig') before compiling this kernel?
NCONFIG="no"

# Note, that two previous lines are mutual exclusive (logically), while
# MENUCONFIG has a higher priority if both them is enabled.

# Run 'make clean' before compilation?
# If set to NO, implies MRPROPER WILL NOT be run
# Also, if clean is NO, it won't copy over any configuration
# file, it will use what's there.
CLEAN="yes"

# Run 'make mrproper' before configuration/compilation?
MRPROPER="yes"

# Override the arch detection?
#ARCH_OVERRIDE="x86"

# Mount BOOTDIR automatically if it isn't mounted?
MOUNTBOOT="yes"

# Make symlinks in BOOTDIR automatically?
#SYMLINK="no"

# Save the new configuration in /etc/kernels upon
# successfull compilation
SAVE_CONFIG="yes"

# Use Color output in Genkernel?
USECOLOR="yes"

# Clear build cache dir
#CLEAR_CACHE_DIR="yes"

# Clear all tmp files and caches after genkernel has run
#POSTCLEAR="1"

# Genkernel uses an independent configuration for MAKEOPTS, and does not source
# /etc/make.conf . You can override the default setting by uncommenting and
# tweaking the following line. Default setting is set up by
# ${GK_SHARE}/${ARCH_OVERRIDE}/config.sh . The recommended value for -j
# argument is: <number of processors>*<number of cores per processor>+1
#MAKEOPTS="-j2"

# Add in LVM support from static binaries if they exist on the system, or
# compile static LVM binaries if static ones do not exist.
#LVM="no"

# Add in Luks support. Needs sys-fs/cryptsetup with -dynamic installed.
#LUKS="no"

# Add in GnuPG support
#GPG="no"

# Add DMRAID support.
#DMRAID="no"

# Include (or suppresses the inclusion of) busybox in the initrd or initramfs.
# If included, busybox is rebuilt if the cached copy is out of date.
#BUSYBOX="yes"

# Use udev instead of mdev as the default device manager for the initramfs.
# If you use systemd and perhaps lvm, you _must_ keep this turned on.
#UDEV="yes"

# Includes mdadm/mdmon binaries in initramfs.
# Without sys-fs/mdadm[static] installed, this will build a static mdadm.
#MDADM="no"

# Specify a custom mdadm.conf.
# By default the ramdisk will be built *without* an mdadm.conf and will auto-detect
# arrays during bootup.  Usually, this should not be needed.
#MDADM_CONFIG="/etc/mdadm.conf"

# Add Multipath support.
#MULTIPATH="no"

# Add iSCSI support.
#ISCSI="no"

# Add e2fsprogs support.
#E2FSPROGS="no"

# Install firmware onto root filesystem
# Will conflict with sys-kernel/linux-firmware package
#FIRMWARE_INSTALL="no"

# Enable copying of firmware into initramfs
#FIRMWARE="no"
# Specify directory to pull from
# FIRMWARE_SRC="/lib/firmware"
# Specify specific firmware files to include. This overrides FIRMWARE_SRC
# FIRMWARE_FILES=""

# Add new kernel to grub?
#BOOTLOADER="grub"

# Enable splashutils in early space (initrd). Default is "no".
#SPLASH="yes"

# Use this splash theme. If commented out - the "default" name theme is used.
# Also, SPLASH="yes" needs to be enabled for this one to one work.
# This supersedes the "SPLASH_THEME" option of /etc/conf.d/splash (in early space).
#SPLASH_THEME="gentoo"

# Installs, or not, plymouth into the initramfs. If "splash" will be
# passed at boot, plymouth will be activated.
# PLYMOUTH="yes"

# Embeds the given plymouth theme into the initramfs.
# PLYMOUTH_THEME="text"

# =========Keymap Settings=========
#
# Force keymap selection at boot
#DOKEYMAPAUTO="yes"


# Disables keymap selection support
#KEYMAP="0"


# =========Low Level Compile Settings=========
#
# GNU Make to use for kernel.  See also the --kernel-make command line option.
#KERNEL_MAKE="make"

# Compiler to use for the kernel (e.g. distcc).  See also the --kernel-cc
# command line option.
#KERNEL_CC="gcc"

# Assembler to use for the kernel.  See also the --kernel-as command line
# option.
#KERNEL_AS="as"

# Linker to use for the kernel.  See also the --kernel-ld command line option.
#KERNEL_LD="ld"

# GNU Make to use for the utilities.  See also the --utils-make command line
# option.
#UTILS_MAKE="make"

# Compiler to use for the utilities (e.g. distcc).  See also the --utils-cc
# command line option.
#UTILS_CC="gcc"

# Assembler to use for the utilities.  See also the --utils-as command line
# option.
#UTILS_AS="as"

# Linker to use for the utilities.  See also the --utils-ld command line
# option.
#UTILS_LD="ld"

# =========GENKERNEL LOCATION CONFIGURATION============
# Variables:
#   %%ARCH%%  - Final determined architecture
#   %%CACHE%% - Final determined cache location

# Set genkernel's temporary work directory.  Default is /var/tmp/genkernel
#TMPDIR="/var/tmp/genkernel"

# Set the boot directory, default is /boot
#BOOTDIR="/boot"

# Default share directory location
GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"

# Location of the default cache
CACHE_DIR="/var/cache/genkernel"
# Location of DISTDIR, where our source tarballs are stored
DISTDIR="/var/lib/genkernel/src"
# Log output file
LOGFILE="/var/log/genkernel.log"
# Debug Level
LOGLEVEL=1

# =========COMPILED UTILS CONFIGURATION============
#
# Default location of kernel source
DEFAULT_KERNEL_SOURCE="/usr/src/linux"
# Default kernel config (only use to override using
# arch/%%ARCH%%/kernel-config-${VER}.${PAT} !)
#DEFAULT_KERNEL_CONFIG="${GK_SHARE}/arch/%%ARCH%%/kernel-config"

# Specifies a user created busybox config
#BUSYBOX_CONFIG="/path/to/file"
#BUSYBOX_APPLETS="[ ash sh mount uname echo cut cat"

# NOTE: Since genkernel 3.4.41 the version of
#   busybox, lvm, mdadm, .. have been moved to
#   /usr/share/genkernel/defaults/software.sh in order to
#   reduce the merging you have to do during etc-update.
#   You can still override these settings in here.


# =========MISC KERNEL CONFIGURATION============
#
# Tag the kernel and ramdisk with a name:
# If not defined the option defaults to
# 'genkernel'
#KNAME="genkernel"

# Append a text to the kernel/initrd's name,
# usefull to add a unique key like the actual date
#KAPPENDNAME="-$(date +%Y%m%d-%H%M%S)"


# This option is only valid if kerncache is
# defined. If there is a valid kerncache no checks
# will be made against a kernel source tree
#KERNEL_SOURCES="0"


# Build a static (monolithic kernel)
#BUILD_STATIC="1"


# Make and install kernelz image (PowerPC)
#GENZIMAGE="1"


# File to output a .tar.bz2'd kernel contents
# of /lib/modules/ and the kernel config
# NOTE: This is created before the callbacks
# are run!
#KERNCACHE="/path/to/file"


# Prefix to kernel module destination, modules
# will be installed in <prefix>/lib/modules
# (.conf equivalent of --module-prefix=<dir>)
#INSTALL_MOD_PATH=""


# =========MISC INITRD CONFIGURATION============
#
# Copy all kernel modules to the ramdisk
#ALLRAMDISKMODULES="1"


# Don't copy any modules to the ramdisk
#RAMDISKMODULES="0"


# File to output a .tar.bz2'd kernel and ramdisk:
# No modules outside of the ramdisk will be
# included...
#MINKERNPACKAGE="/path/to/file.bz2"


# File to output a .tar.bz2'd modules after the
# callbacks have run
#MODULESPACKAGE="/path/to/file.bz2"


# Directory structure to include in the initramfs,
# only available on >=2.6 kernels
#INITRAMFS_OVERLAY=""


# Build the generated initramfs into the kernel instead of
# keeping it as a separate file
#INTEGRATED_INITRAMFS="1"


# Compress generated initramfs
#COMPRESS_INITRD="yes"
# Types of compression: best, xz, lzma, bzip2, gzip, lzop, lz4, fastest
# "best" selects the best available compression method
# "fastest" selects the fastest available compression method
#COMPRESS_INITRD_TYPE="best"


# Create a self-contained env in the initramfs
#NETBOOT="1"


# =========MISC BOOT CONFIGURATION============
#
# Specify a default for real_root=
#REAL_ROOT="/dev/one/two/gentoo"


Whats wrong?
Back to top
View user's profile Send private message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Mon Apr 27, 2020 7:48 pm    Post subject: Reply with quote

Hi sysvorOrt,

is there more output to your boot process?
Far as I can tell from the distance, the kernel is booted already, but OpenRC gets stuck at some point.
I've found a quite similar issue on a quite similar date here
Is that you?

What I would do is run genkernel with --menuconfig and make sure following is activated:
    CONFIG_GENTOO_LINUX
    CONFIG_LINUX_UDEV
    CONFIG_GENTOO_LINUX_PORTAGE
    CONFIG_GENTOO_LINUX_INIT_SCRIPT
...and if you intend to use systemd, also enable
    CONFIG_GENTOO_LINUX_INIT_SYSTEMD
Sure enough, these options are only available in kernels with the gentoo patchset;
I can tell for sure they are in gentoo-sources and ck-sources; if you are using a different source, here's an ugly copy-n-paste for what will be activated by those options:
    CONFIG_LINUX_UDEV DEVTMPFS [=y] && TMPFS [=y] && UNIX [=y] && MMU [=y] && SHMEM [=y]
    CONFIG_GENTOO_LINUX_PORTAGE CGROUPS [=y] && NAMESPACES [=y] && IPC_NS [=y] && NET_NS [=y] && PID_NS [=y] && SYSVIPC [=y]
    CONFIG_GENTOO_LINUX_INIT_SCRIPT BINFMT_SCRIPT [=y] && FILE_LOCKING [=y]
    CONFIG_GENTOO_LINUX_INIT_SYSTEMD AUTOFS4_FS [=n] && BLK_DEV_BSG [=y] && BPF_SYSCALL [=n] && CGROUP_BPF [=n] && CGROUPS [=y] && CHECKPOINT_RESTORE [=n] && CRYPTO_HMAC [=y] && CRYPTO_SHA256 [=y] && CRYPTO_USER_API_HASH [=n] && DEVPTS_MULTIPLE_INSTANCES && DMIID [=y] && EPOLL [=y] && FANOTIFY [=n] && FHANDLE [=y] && FILE_LOCKING [=y] && INOTIFY_USER [=y] && IPV6 [=y] && NET [=y] && NET_NS [=y] && PROC_FS [=y] && SECCOMP [=y] && SECCOMP_FILTER [=y] && SIGNALFD [=y] && SYSFS [=y] && TIMERFD [=y] && TMPFS_POSIX_ACL [=y] && TMPFS_XATTR [=y] && ANON_INODES && BLOCK [=y] && EVENTFD [=y] && FSNOTIFY [=y] && INET [=y] && NLATTR [=y] && DEVTMPFS [=y] && TMPFS [=y] && UNIX [=y] && MMU [=y] && SHMEM [=y]
Once you've checked the requirements for OpenRC, please try - if it fails, please post more details of your boot process output here.
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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