View previous topic :: View next topic |
Author |
Message |
dmitry131 n00b
Joined: 26 Dec 2024 Posts: 2
|
Posted: Thu Dec 26, 2024 7:26 pm Post subject: EFI Stub, kernel without initrams loads, but black screen |
|
|
Hi, first time writer
I am doing a hobby/excercise project building the EFI stub kernel from gentoo-sources for AMD Framework 13, without initramfs/dracut and bootloader.
It is being build on hardened gentoo, without multilib (only 64 bit) and trying to build it opensource.
I have added all the drivers from the gentoo article for Framework 13, also checked it against gentoo-live, and it seems like all the drivers are in place.
But when loading screen freezes with cursor on the top left. I can log in into the system, write dmesg or run lspci, but the screen is stuck as black square with a white cursor.
I can also login using the dist-kernel, built with initramfs and added with efibootmgr.
I attaching my make.conf, dmesg output and lspci output to the message and not sure should I write kernel config here too, or should I upload it and send a link?
kernel config:
https://drive.google.com/file/d/1duT4O_IDgt-yE-4TYhlwoDEg3-TqIK3y/view?usp=sharing
dmesg from my kernel:
https://drive.google.com/file/d/1f7ha3glrde2juFFhhADbgMfHmR3y6jz6/view?usp=sharing
make.conf:
Code: |
COMMON_FLAGS="-march=native -mtune=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# NOTE: This stage was built with the bindist USE flag enabled
MAKEOPTS="-j16 -l17"
USE="eme-free -proprietary-codecs -telemetry initramfs dracut dist-kernel systemd dbus -X -gtk -gnome -kde -webengine -qt -qt4 -qt5 -qt6"
VIDEO_CARDS="amdgpu radeonsi radeon"
ACCEPT_LICENSE="-* @FREE"
LC_MESSAGES=en_US.utf8
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ \
ftp://tux.rainside.sk/gentoo/"
|
output of lspci -k for dist-kernel:
Code: |
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e8
Subsystem: Framework Computer Inc. Device 0006
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 14e9
Subsystem: Framework Computer Inc. Device 0006
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:04.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Device 0006:f111
Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Device 0006:f111
Kernel driver in use: pcieport
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Device 0006:f111
Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Subsystem: Framework Computer Inc. Device 0006
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f3
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f7
01:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
Subsystem: MEDIATEK Corp. Device e616
Kernel driver in use: mt7921e
Kernel modules: mt7921e
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN770 / PC SN740 256GB / PC SN560 (DRAM-less) NVMe SSD (rev 01)
Subsystem: Sandisk Corp WD Black SN770 / PC SN740 256GB / PC SN560 (DRAM-less) NVMe SSD
Kernel driver in use: nvme
Kernel modules: nvme
c1:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c4)
Subsystem: Framework Computer Inc. Device 0006
Kernel modules: amdgpu
c1:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
c1:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: ccp
Kernel modules: ccp
c1:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b9
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c1:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15ba
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c1:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 63)
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: snd_pci_ps
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh
c1:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
c2:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
Subsystem: Framework Computer Inc. Device 0006
c2:00.1 Signal processing controller: Advanced Micro Devices, Inc. [AMD] AMD IPU Device
Subsystem: Framework Computer Inc. Device 0006
c3:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
Subsystem: Framework Computer Inc. Device 0006
c3:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c0
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c3:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c1
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c3:00.5 USB controller: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #1
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
c3:00.6 USB controller: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #2
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
|
output of lspci -k for my kernel:
Code: |
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e8
Subsystem: Framework Computer Inc. Device 0006
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 14e9
Subsystem: Framework Computer Inc. Device 0006
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:04.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Device 0006:f111
Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Device 0006:f111
Kernel driver in use: pcieport
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Device 0006:f111
Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: piix4_smbus
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Subsystem: Framework Computer Inc. Device 0006
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f3
Kernel driver in use: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f7
01:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
Subsystem: MEDIATEK Corp. Device e616
Kernel driver in use: mt7921e
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN770 / PC SN740 256GB / PC SN560 (DRAM-less) NVMe SSD (rev 01)
Subsystem: Sandisk Corp WD Black SN770 / PC SN740 256GB / PC SN560 (DRAM-less) NVMe SSD
Kernel driver in use: nvme
c1:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c4)
Subsystem: Framework Computer Inc. Device 0006
c1:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: snd_hda_intel
c1:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: ccp
c1:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b9
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c1:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15ba
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c1:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 63)
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: snd_pci_ps
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_rpl_pci_acp6x, snd_pci_ps
c1:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: snd_hda_intel
c2:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
Subsystem: Framework Computer Inc. Device 0006
c2:00.1 Signal processing controller: Advanced Micro Devices, Inc. [AMD] AMD IPU Device
Subsystem: Framework Computer Inc. Device 0006
c3:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
Subsystem: Framework Computer Inc. Device 0006
c3:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c0
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c3:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c1
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: xhci_hcd
c3:00.5 USB controller: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #1
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: thunderbolt
c3:00.6 USB controller: Advanced Micro Devices, Inc. [AMD] Pink Sardine USB4/Thunderbolt NHI controller #2
Subsystem: Framework Computer Inc. Device 0006
Kernel driver in use: thunderbolt
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54658 Location: 56N 3W
|
Posted: Thu Dec 26, 2024 7:53 pm Post subject: |
|
|
dmitry131,
Welcome to the Gentoo forums.
The working lspci shows
Code: | c1:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c4)
Subsystem: Framework Computer Inc. Device 0006
Kernel modules: amdgpu |
Your one shows
Code: | c1:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c4)
Subsystem: Framework Computer Inc. Device 0006 |
I'm not about to download random files from the internet, especially from Google. It's not personal, I'm old and cynical.
Please make friends with wgetpaste to post files and command output.
Educated guess.
amdgpu is the kernel driver for your video card. However it needs to load firmware.
When you configure AMDGPU=y in your kernel, you also need to include the firmware in the kernel binary.
This can be a bit of a moving target as AMD add a file now and again and its not in your list until it fails once more. :)
When you configure AMDGPU=m in your kernel, the firmware will be loaded from /lib/firmware, after the root partition is mounted.
is good. It shows the Vendor and Device IDs, like this ...
Code: | 0c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c1)
Subsystem: ASUSTeK Computer Inc. Device [1043:05d7]
Kernel driver in use: amdgpu |
[1002:73df] 1002 means AMD. The 73df identifies the device. That will tell which firmware is required. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5272 Location: Bavaria
|
Posted: Thu Dec 26, 2024 10:38 pm Post subject: |
|
|
dmitry131,
I have examined your kernel .config and syslog. The important parts are:
Code: | [ 0.000000] Linux version 6.6.62-gentoo (root@BMO) (gcc (Gentoo Hardened 14.2.1_p20241116 p3) 14.2.1 20241116, GNU ld (Gentoo 2.42 p6)
(1)
[ 0.000000] Command line: p1
[ 0.000000] DMI: Framework Laptop 13 (AMD Ryzen 7040Series)/FRANMDCP07, BIOS 03.05 03/29/2024
(1)
[ 0.036774] Kernel command line: root=PARTUUID=42bebc22-8abc-4775-a431-32e0acbc049c rootfstype=btrfs rootflags=subvol=@ rw crashkernel=64M p1
[ 0.036836] Unknown kernel command line parameters "p1", will be passed to user space.
(2)
[ 1.754766] amdgpu 0000:c1:00.0: Direct firmware load for amdgpu/psp_13_0_4_toc.bin failed with error -2
[ 1.754771] [drm:amdgpu_device_init] *ERROR* early_init of IP block <psp> failed -19
[ 1.754778] Loading firmware: amdgpu/dcn_3_1_4_dmcub.bin
[ 1.754789] amdgpu 0000:c1:00.0: Direct firmware load for amdgpu/dcn_3_1_4_dmcub.bin failed with error -2
[ 1.754793] [drm:dm_early_init] *ERROR* DMUB firmware loading failed: -19
[ 1.754798] [drm:amdgpu_device_init] *ERROR* early_init of IP block <dm> failed -19
[ 1.754802] Loading firmware: amdgpu/gc_11_0_1_pfp.bin
[ 1.754813] amdgpu 0000:c1:00.0: Direct firmware load for amdgpu/gc_11_0_1_pfp.bin failed with error -2
[ 1.754818] [drm:amdgpu_device_init] *ERROR* early_init of IP block <gfx_v11_0> failed -19
[ 1.754821] [drm] VCN(0) encode/decode are enabled in VM mode
[ 1.754825] Loading firmware: amdgpu/vcn_4_0_2.bin
[ 1.754836] amdgpu 0000:c1:00.0: Direct firmware load for amdgpu/vcn_4_0_2.bin failed with error -2
[ 1.754840] [drm:amdgpu_device_init] *ERROR* early_init of IP block <vcn_v4_0> failed -19
[ 1.754844] amdgpu 0000:c1:00.0: [drm:jpeg_v4_0_early_init] JPEG decode is enabled in VM mode
[ 1.754850] Loading firmware: amdgpu/gc_11_0_1_mes_2.bin
[ 1.754861] amdgpu 0000:c1:00.0: Direct firmware load for amdgpu/gc_11_0_1_mes_2.bin failed with error -2
[ 1.754866] [drm] try to fall back to amdgpu/gc_11_0_1_mes.bin
[ 1.754868] Loading firmware: amdgpu/gc_11_0_1_mes.bin
[ 1.754880] amdgpu 0000:c1:00.0: Direct firmware load for amdgpu/gc_11_0_1_mes.bin failed with error -2
[ 1.895020] Loading firmware: mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
[ 1.895034] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
[ 2.027149] Loading firmware: mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
[ 2.027187] mt7921e 0000:01:00.0: Direct firmware load for mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin failed with error -2
... and many more
(1)
CONFIG_CMDLINE="root=PARTUUID=42bebc22-8abc-4775-a431-32e0acbc049c rootfstype=btrfs rootflags=subvol=@ rw crashkernel=64M"
(2)
CONFIG_EXTRA_FIRMWARE=""
(3)
# CONFIG_FB_EFI is not set
(4)
# CONFIG_IRQ_REMAP is not set
(5)
# CONFIG_X86_X2APIC is not set |
1.) You see two lines in your syslog: The first line tells us which parameter the kernel has got form bootloader/bootmanager/UEFI (in your case: UEFI). The second line is the complete kernel command line parameters (=transmitted + BUILTIN). This tells me: You have tried to create an UEFI boot entry with parameter "p1" instead "-p1" (to select the partition) ...and this was even successfull, because if no "-pX" is given the default IS "-p1" ... Dont worry: Nobody use this "kernel parameter" ... But if you want it clean you can delete the UEFI entry and create a new one.
2.) See more: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware
+ https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Before_you_start
3.) See more: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Efi
4.) See more: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#IOMMU
5.) See more: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Processor_type_and_features _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
dmitry131 n00b
Joined: 26 Dec 2024 Posts: 2
|
Posted: Sun Dec 29, 2024 10:43 pm Post subject: |
|
|
Thank you pietinger very much for the links! I've built a kernel with amdgpu driver, but without firmware included, so I tried to include different combinations of firmware and it didn't help. So I continued reading the links and foun out I forgot to add the EFI Framebuffer in the kernel
Code: |
Device Drivers --->
Graphics support --->
<*> Support for frame buffer devices --->
[*] EFI-based Framebuffer Support
|
While trying I have switched to the newer kernel v6.12.7, so all the entries were very helpfull.
Also, my final addition to include all the firmware:
Code: |
Device Drivers --->
Generic Driver Options --->
Firmware Loader --->
[*] Firmware loading facility
(amdgpu/gc_11_0_1_mes_2.bin amdgpu/psp_13_0_4_toc.bin amdgpu/gc_11_0_1_pfp.bin amdgpu/vcn_4_0_2.bin amdgpu/gc_11_0_1_mes1.bin amdgpu/psp_13_0_4_ta.bin amdgpu/gc_11_0_1_me.bin amdgpu/gc_11_0_1_rlc.bin mediatek/WIFI_RAM_CODE_MT7922_1.bin mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin) Build named firmware blobs into the kernel binary
|
About "p1": I am writing kernel command line only as "root=PARTUUID=42bebc22-8abc-4775-a431-32e0acbc049c rootfstype=btrfs rootflags=subvol=@ rw crashkernel=64M", but for some reason it is being built with "p1" added to the end, which don't really make sense on btrfs filesystem) |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5272 Location: Bavaria
|
Posted: Mon Dec 30, 2024 12:36 am Post subject: |
|
|
dmitry131 wrote: | Thank you pietinger very much for the links! |
You are very Welcome!
dmitry131 wrote: | About "p1": I am writing kernel command line only as "root=PARTUUID=42bebc22-8abc-4775-a431-32e0acbc049c rootfstype=btrfs rootflags=subvol=@ rw crashkernel=64M", but for some reason it is being built with "p1" added to the end, which don't really make sense on btrfs filesystem) |
Your kernel command line is okay ... as I wrote: You have TWO lines in your syslog. The FIRST line shows what the kernel get from OUTSIDE (bootmanager OR UEFI; in your case UEFI). Yes, "p1" comes from your UEFI. The 2nd line shows the complete command line == From outside + built-in command line. (see the first chapter of https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Commandline_Parameter )
So, just do an: "efibootmgr" OR "efibootmgr -u" (it depends which format it is using for the parameters). Here you will see AS parameter "p1". So, UEFI send/give this parameter to your kernel
My guess was: You have created this (additional/useless) kernel command line parameter when you had created the UEFI entry ... and my guess is: You tried to inform "efibootmgr -c ..." that the first partition is the ESP ... but instead -p1 you had typed p1 ... because without the minus-sign it is not a parameter, efibootmgr created your UEFI entry WITH this kernel command line parameter "p1" (and because efibootmgr miss the -p parameter it take -p1 as default). (an example you can see here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Boot_kernel_via_UEFI#Create_the_necessary_UEFI_entries )
But, as I said, this does not harm because this kernel command line parameter does not exist ... and so kernel says: "Unknown kernel command line parameters "p1", will be passed to user space."
... and because there is no initramfs which would check this parameter, nobody cares about it ... it's just a "beauty mistake" _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5272 Location: Bavaria
|
|
Back to top |
|
|
|
|
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
|
|