Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No console after Grub, 'loading linux 4.19
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 1:03 pm    Post subject: No console after Grub, 'loading linux 4.19 Reply with quote

Hi,

I am trying to install Gentoo on my new Ryzen 2400g system (motherboard Fatal1ty B450).
However, after Grub, selecting kernel, there is no further output. The system only shows 'loading linux 4.19...'

I am unsure what to activate in the kernel (if that is the problem) to get further in the boot process.

The Kernel is vmlinuz-4.19.5-gentoo ( note that I also tried the stable 4.14, but I couldnt get the system to boot in that way either, and I thought support for this hardware in the latest kernel might be better)


Lspci gives:

Code:

# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15d0
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 15d1
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15d3
00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15d3
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15db
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 15dc
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15e8
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15e9
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ea
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15eb
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ec
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ed
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ee
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ef
15:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d5 (rev 01)
15:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43c8 (rev 01)
15:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c6 (rev 01)
1d:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
1d:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
1d:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
1d:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
1d:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
1d:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
24:00.0 Network controller: Intel Corporation Device 24fb (rev 10)
25:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
2e:00.0 Non-Volatile memory controller: Device 1987:5008 (rev 01)
38:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 15dd (rev c6)
38:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15de
38:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 15df
38:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15e0
38:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15e1
38:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Device 15e3
39:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)


The kernel config: https://paste.pound-python.org/show/ZFGFgfGTS5ukIyoHieGT/

The Kernel was compiled in the 'manual' way as in the handbook. Any thoughts on what to do to get further in the boot process?

Alex.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3935
Location: Dallas area

PostPosted: Sat Dec 01, 2018 1:28 pm    Post subject: Reply with quote

do "lspci -nnk" and paste the output
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 1:38 pm    Post subject: Reply with quote

Anon-E-moose wrote:
do "lspci -nnk" and paste the output


Here indeed the complete lspci:
https://paste.pound-python.org/show/F9fbvwiHe2yAyc0JGlrW/
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3935
Location: Dallas area

PostPosted: Sat Dec 01, 2018 2:11 pm    Post subject: Reply with quote

what is the disk you're trying to boot from on, sata or nvme?

and what does the grub command line look like
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7090
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 01, 2018 3:15 pm    Post subject: Reply with quote

Actually, what does "further in the boot process" mean? Is the kernel actually booting with black screen or it stops booting?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 3:22 pm    Post subject: Reply with quote

Thanks for looking with me,

Anon-E-moose wrote:
what is the disk you're trying to boot from on, sata or nvme?

I am booting from an nvme disk

Anon-E-moose wrote:

and what does the grub command line look like


This is the menuentry as automatically configured by grub-config:
Code:

menuentry 'Gentoo GNU/Linux, with Linux 4.19.5-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.5-gentoo-advanced-1ee7f29b-8bf5-4d73-8122-f4f6f1cadaa7' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  37c00a33-23d0-4f5b-b659-136a8fabe6af
                else
                  search --no-floppy --fs-uuid --set=root 37c00a33-23d0-4f5b-b659-136a8fabe6af
                fi
                echo    'Loading Linux 4.19.5-gentoo ...'
                linux   /vmlinuz-4.19.5-gentoo root=/dev/nvme0n1p4 ro
        }




I now also tried to boot with the following removed since it seems to have to do with the graphics:
Code:

if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
fi

and with 'set gfxpayload=text

But no success there either..


Last edited by lexflex on Sat Dec 01, 2018 3:51 pm; edited 2 times in total
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 3:29 pm    Post subject: Reply with quote

Jaglover wrote:
Is the kernel actually booting with black screen or it stops booting?


Well, that is a good question: I dont know. It just stops at 'loading linux ...' and stays that way.

I was thinking of how I could see the difference, for example by looking on my router if it sees the device on the network, but I cant see it.

I also just checked, there is no 'syslog' file in /var/log (and syslog is added to the default so it should start at some point)', so this points to the idea that it doesnt boot, or not completely at least.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 01, 2018 6:45 pm    Post subject: Reply with quote

lexflex,

'loading linux ...' comes from grub just before it loads the kernel.

Please pastebin your kernel .config file.

Your kernel .config above uses
Code:
CONFIG_FB_EFI=y
until something else loads.
Its also safe to enable CONFIG_FB_SIMPLE. This lets the kernel draw on the framebuffer that grub leaves behind.

With amdgpu built into the kernel an no firmware
Code:
CONFIG_EXTRA_FIRMWARE=""
various degrees of brokenness are expected.
It all depends what the graphics card can do with missing firmware. That varies from nothing to no hardware 3D acceleration.

To get the firmware on your system at all, before you can build it into the kernel, you need to install linux-firmware.
_________________
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
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 8:15 pm    Post subject: Reply with quote

Hi Neddy,

Thanks,

NeddySeagoon wrote:
Your kernel .config above uses
Code:
CONFIG_FB_EFI=y
until something else loads.

Are you suggestion to switch that one of ? Or should ít be fixed by 'making something else load' ?

NeddySeagoon wrote:
Its also safe to enable CONFIG_FB_SIMPLE. This lets the kernel draw on the framebuffer that grub leaves behind.

Tried now with CONFIG_FB_SIMPLE = yes . That doesnt make any difference.....


NeddySeagoon wrote:

With amdgpu built into the kernel an no firmware
Code:
CONFIG_EXTRA_FIRMWARE=""
various degrees of brokenness are expected.
It all depends what the graphics card can do with missing firmware. That varies from nothing to no hardware 3D acceleration.
To get the firmware on your system at all, before you can build it into the kernel, you need to install linux-firmware.

Linux-firmware was installed already. So, I am not sure what I need to do here.
Code:

[I] sys-kernel/linux-firmware
     Available versions:  20181026^bs **99999999^bs {savedconfig}
     Installed versions:  20181026^bs(02:45:50 PM 11/30/2018)(-savedconfig)
     Homepage:            https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git
     Description:         Linux firmware files
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3935
Location: Dallas area

PostPosted: Sat Dec 01, 2018 8:39 pm    Post subject: Reply with quote

Are you doing an efi or regular bios boot?

And what is your disk layout?
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 8:47 pm    Post subject: Reply with quote

Hi,



Anon-E-moose wrote:
Are you doing an efi or regular bios boot?
And what is your disk layout?

I am doing an EFI boot.

Disk layout:
Code:

Model: Unknown (unknown)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name     Flags
 1      1049kB  3146kB  2097kB                  grub     bios_grub
 2      3146kB  272MB   268MB   ext2            boot     boot, esp
 3      272MB   8593MB  8321MB  linux-swap(v1)  swap
 4      8593MB  239GB   230GB   ext4            rootfs
 5      239GB   239GB   194MB   fat32           primary  msftdata
(parted)

Note that #5 is my EFI partiton, I created it later since at first I was following the 'regular' procedure in the handbook.


Also, as a general remark, I do not per se want to use EFI, but I had a lot of trouble booting any media at all. So fine to using a regular boot if that is possible. I dont expect to do anything complicated with this system, no dual boot, etc. Just grub with some linux kernels was the plan....
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 01, 2018 8:55 pm    Post subject: Reply with quote

lexflex,

The firmware needs to be available when the driver initalises.
You have
Code:
CONFIG_DRM_AMDGPU=y
so the required firmware needs to be included in the kernel by listing it in
Code:
CONFIG_EXTRA_FIRMWARE=""


To avoid that pain, set CONFIG_DRM_AMDGPU=m so it loads after root is mounted and the firmware can be read from /lib/firmware.
The down side to that is that your amdgpu console starts later and unless one of the framebuffers works, you won't have a console until that time.

For my Polaris11 and CPU microcode I have ...
Code:
$ grep EXTRA_F /usr/src/linux/.config
CONFIG_EXTRA_FIRMWARE="amdgpu/polaris11_ce.bin amdgpu/polaris11_ce_2.bin amdgpu/polaris11_k_smc.bin amdgpu/polaris11_mc.bin amdgpu/polaris11_me_2.bin amdgpu/polaris11_me.bin amdgpu/polaris11_mec2.bin amdgpu/polaris11_mec2_2.bin  amdgpu/polaris11_mec.bin amdgpu/polaris11_mec_2.bin amdgpu/polaris11_pfp.bin amdgpu/polaris11_pfp_2.bin amdgpu/polaris11_rlc.bin amdgpu/polaris11_sdma1.bin amdgpu/polaris11_sdma.bin amdgpu/polaris11_smc.bin amdgpu/polaris11_smc_sk.bin amdgpu/polaris11_uvd.bin amdgpu/polaris11_vce.bin amd-ucode/microcode_amd.bin amd-ucode/microcode_amd_fam15h.bin amd-ucode/microcode_amd_fam16h.bin "
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware/"

Ugly, isn't it.

For root on NVME
Code:
# NVME Support
#
# CONFIG_BLK_DEV_NVME is not set
# CONFIG_NVME_FC is not set
that looks wrong.
as your
Code:
2e:00.0 Non-Volatile memory controller: Device 1987:5008 (rev 01)
is an NVME interface.

This is really a problem for later as it will stop root being mounted unless root is on your SATA interface.
We have not got to that stage yet.

-- edit --

How does grub read nvme?
I suspect it doesn't, so the kernel never loads.

Post all of grub.cfg please.
_________________
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
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 9:22 pm    Post subject: Reply with quote

Hi Neddy,

Thanks. Interesting remarks, I am compiling a new kernel with some of your suggestions right now.

In the mean time:
NeddySeagoon wrote:
lexflex,
How does grub read nvme?
I suspect it doesn't, so the kernel never loads.

Post all of grub.cfg please.


See here grub.cfg: https://paste.pound-python.org/show/erymSxSPjx2Bq1lUQH17/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 01, 2018 9:38 pm    Post subject: Reply with quote

lexflex,

I don't see any insmods or loads related to hardware drivers, so I suspect that grub calls the EFI to load the kernel and initrd.
Google shows that having boot on nvme is a world of pain with some EFI not supporting booting from nvme.

As a get-you-going would you consider boot on a USB stick or SATA HDD?

At least we could poke at the issue from inside Gentoo then. That won't help broken motherboard firmware though.
What system is this? The vendor and model number would be good.
_________________
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
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sat Dec 01, 2018 9:51 pm    Post subject: Reply with quote

lexflex wrote:
Model: Unknown (unknown)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB grub bios_grub
2 3146kB 272MB 268MB ext2 boot boot, esp
3 272MB 8593MB 8321MB linux-swap(v1) swap
4 8593MB 239GB 230GB ext4 rootfs
5 239GB 239GB 194MB fat32 primary msftdata
(parted)

Is this a dual or more OS system? Windows and Gentoo and ? ?
Does more than one EFI Systems Partition (ESP) exist?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 10:08 pm    Post subject: Reply with quote

Hi Neddy,

Thanks a lot!! I just got my system booting using your remarks in the post.
I think the most important thing was adding the nvme support in the kernel which somehow i missed. I also compiled the amdgpu as a module this time.
(I still have no 'console output' at first though, but in the end that was not y main problem I guess . It is just that in a regular Gentoo system it gives me a lot of information to understand what is happening).

NeddySeagoon wrote:
lexflex,
As a get-you-going would you consider boot on a USB stick or SATA HDD?
At least we could poke at the issue from inside Gentoo then. That won't help broken motherboard firmware though.
What system is this? The vendor and model number would be good.

The entire challenge started with my new system not being able to boot from the minimal-gentoo-cd, or the systemrescuecd at all! (And still my system wont boot these, so in the end I had to boot from an Arch system from a sata ssd to install Gentoo... hmmm....)
I guess in this case i was fortunate enough to combine the complexity related to the fairly new 'Ryzen' stuff, with installing on an nvme (pci) , which somehow complicates matters a lot as well (and at least for me made it very unclear which part I was actually trying to resolve).

NeddySeagoon wrote:
lexflex,
What system is this? The vendor and model number would be good.

The system is anAMD Ryzen 2400G , motherboard ASRock mini-itx Fatal1ty B450.


At the moment, I am happy that I can finally boot and login on my new system.
However, I am a bit uncertain if I now actually understand all the things I tried getting this done. Following the handbook and/or the Gentoo Ryzen wiki was definitely not enough. (I would like to document the various steps somehow, since (reading all the Ryzen post) there are more people struggling to get the latest Ryzen running at first, but I am unsure where to start.)

Anyway, thanks all for your help so far. I will continue with configuring this system for the rest tomorrow, but being able to actually boot it will help a lot ;-)
If anyone encounters the same problems I can at least provide a working .config now if needed.

Let me know if it would be useful for me to post any additional info to help others troubleshoot similar issues.

Thanks.

Alex.


Last edited by lexflex on Sat Dec 01, 2018 10:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sat Dec 01, 2018 10:10 pm    Post subject: Reply with quote

DONAHUE wrote:
lexflex wrote:
Model: Unknown (unknown)
End Size File system Name Flags
1 1049kB 3146kB 2097kB grub bios_grub
2 3146kB 272MB 268MB ext2 boot boot, esp
3 272MB 8593MB 8321MB linux-swap(v1) swap
4 8593MB 239GB 230GB ext4 rootfs
5 239GB 239GB 194MB fat32 primary msftdata
(parted)

Is this a dual or more OS system? Windows and Gentoo and ? ?
Does more than one EFI Systems Partition (ESP) exist?


No dual / multi os system. Just Gentoo.
- parition 4 is the '/ or root'
- 2 is /boot
- 3 is swap
- 5 is EFI
- 1 is grub per the handbook.


Thanks all for thinking along.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 01, 2018 10:51 pm    Post subject: Reply with quote

lexflex,

Consider the EFI boot process for a moment.
The EFI does its thing and loads grub and passes control to grub.

Grub shows a menu then uses the EFI to load the kernel and optionally, the initrd.
Grub exits by passing control to the the kernel. The kernel is still compressed so has played no part in any of this so far.

With no console until root is mounted and root failing to mount because of missing NVME support, it looked like nothing was happening, which wasn't quite true.
The kernel loaded, tried to mount root and paniced.
Now that root mounts, you get a console but rather later than you would like.

Pastebin the output of dmesg and the kernel .config that was used to boot.
I'm expecting dmesg to show some hints about what is needed to get an earlier console.
_________________
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
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Sun Dec 02, 2018 4:39 pm    Post subject: Reply with quote

Hi Neddy, thanks a lot !

NeddySeagoon wrote:
lexflex,
With no console until root is mounted and root failing to mount because of missing NVME support, it looked like nothing was happening, which wasn't quite true.
The kernel loaded, tried to mount root and paniced. Now that root mounts, you get a console but rather later than you would like.


Yes, this makes sense. Probably indeed my system crashed at some point during boot but I just couldnt see it. It was just that usually at least the console works, and usually that helped me trouble shoot the rest. So I was mainly worrying about it in order to fix the rest of my system, which now seems to work. So for now I am ok since the system in itself boots and getting the console back would be nice, but is no longer of the highest priority.

NeddySeagoon wrote:
lexflex,
Pastebin the output of dmesg and the kernel .config that was used to boot.
I'm expecting dmesg to show some hints about what is needed to get an earlier console.


Dmesg : https://paste.pound-python.org/show/FG4rXcHP2pDKsA8RACe1/
and the kernel config: https://paste.pound-python.org/show/fJ9axrgewMSc55twNimT/

Best,

Alexander.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3935
Location: Dallas area

PostPosted: Sun Dec 02, 2018 5:12 pm    Post subject: Reply with quote

do you have /etc/localtime?
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 02, 2018 5:22 pm    Post subject: Reply with quote

lexflex,

dmesg:
[    0.026302] *************************************************************
[    0.026303] **     NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE    **
[    0.026304] **                                                         **
[    0.026305] **  IOMMU DebugFS SUPPORT HAS BEEN ENABLED IN THIS KERNEL  **
[    0.026307] **                                                         **
[    0.026308] ** This means that this kernel is built to expose internal **
[    0.026309] ** IOMMU data structures, which may compromise security on **
[    0.026310] ** your system.                                            **
[    0.026311] **                                                         **
[    0.026313] ** If you see this message and you are not debugging the   **
[    0.026314] ** kernel, report this immediately to your vendor!         **
[    0.026315] **                                                         **
[    0.026316] **     NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE    **
[    0.026317] *************************************************************


That will be a verybadthing then.

dmesg:
[    0.630788] efifb: probing for efifb
[    0.630795] efifb: framebuffer at 0xe0000000, using 3072k, total 3072k
[    0.630798] efifb: mode is 1024x768x32, linelength=4096, pages=1
[    0.630799] efifb: scrolling: redraw
[    0.630801] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    0.632102] Console: switching to colour frame buffer device 128x48
[    0.633289] fb0: EFI VGA frame buffer device


So the kernel thinks its using the efifb console in 1024x768 in 32 bit colour mode.
Maybe it is but your display doesn't like that.

A little later
dmesg:
[    3.282844] fb: switching to amdgpudrmfb from EFI VGA
[    3.282869] Console: switching to colour dummy device 80x25
[    3.282985] fbcon: amdgpudrmfb (fb0) is primary device

but both sides of that is the kernel being very unhappy.

What out of kernel module gets loaded to change the kernel state from Not taited to Tainted?
Code:
[    3.174394] CPU: 4 PID: 2022 Comm: udevd Not tainted 4.19.5-gentoo #6
...
[    3.298220] CPU: 4 PID: 2022 Comm: udevd Tainted: G        W         4.19.5-gentoo #6


With all those call traces mentioning amdgpu, something isn't right.

To make your analogue sound work, you need the codec driver for your sound card. They are all off.
Code:
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set

CONFIG_SND_HDA_CODEC_HDMI is for digital audio, e.g. from your video card, so you don't have sound right now.
_________________
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
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Mon Dec 03, 2018 10:42 am    Post subject: Reply with quote

Hi Neddy,

Thanks,
I made some tweaks, removed the IOMMU debugfs, added the hmdi audio. dmesg look better now in that respect, but all the AMDGPU stuff is still in there. Also 'Comm: udevd Tainted' message:
https://paste.pound-python.org/show/wEEmcHtzauE2Piq435WE/

I followed this guide for AMDGPU: https://wiki.gentoo.org/wiki/AMDGPU , and added the following list of firmware in .config, based on echo amdgpu...:
Code:
# echo amdgpu/vega10_{acg_smc,asd,ce,gpu_info,me,mec,mec2,pfp,rlc,sdma,sdma1,smc,sos,uvd,vce}.bin
amdgpu/vega10_acg_smc.bin amdgpu/vega10_asd.bin amdgpu/vega10_ce.bin amdgpu/vega10_gpu_info.bin amdgpu/vega10_me.bin amdgpu/vega10_mec.bin amdgpu/vega10_mec2.bin amdgpu/vega10_pfp.bin amdgpu/vega10_rlc.bin amdgpu/vega10_sdma.bin amdgpu/vega10_sdma1.bin amdgpu/vega10_smc.bin amdgpu/vega10_sos.bin amdgpu/vega10_uvd.bin amdgpu/vega10_vce.bin



Quote:
but both sides of that is the kernel being very unhappy.


Mmm, ok. I am unsure how to interpret this.
In general the system and graphics now seem to work, and I can start xfce. Also I dont see any errors regaring Xorg.

So, although initial console would be nice, there is now no actual acute problem as far as I can tell. Maybe I am missing something, but this means apart from the 'nice to have' console I am unsure if there is an actual problem left that needs solving.

However, of course, if somehow there are hidden problems that make the kernel unhappy than somehow that might come back later.

Alex.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Mon Dec 03, 2018 1:22 pm    Post subject: Reply with quote

As best I can research your hardware, your processor, AMD 2400G APU, is designated by the manufacturer as using a Vega 11, designated Raven Ridge, integrated GPU.
I would recommend using module vice builtin in Graphics Support section to allow the kernel to make choices of firmware.
However, if you wish to continue using builtin, you want to use
Code:
echo amdgpu/raven_{asd,ce,gpu_info,me,mec,mec2,pfp,rlc,sdma,vcn}.bin
which yields
Code:
amdgpu/raven_asd.bin amdgpu/raven_ce.bin amdgpu/raven_gpu_info.bin amdgpu/raven_me.bin amdgpu/raven_mec.bin amdgpu/raven_mec2.bin amdgpu/raven_pfp.bin amdgpu/raven_rlc.bin amdgpu/raven_sdma.bin amdgpu/raven_vcn.bin
as the list of firmware to build in.
reference: https://en.wikipedia.org/wiki/List_of_AMD_accelerated_processing_unit_microprocessors#%22Raven_Ridge%22_(2018)
_________________
Defund the FCC.
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Mon Dec 03, 2018 1:34 pm    Post subject: Reply with quote

Hi Donahue,

Yes, thanks for pointing out I was using the wrong vega-version for the built-in firmware.

DONAHUE wrote:
As best I can research your hardware, your processor, AMD 2400G APU, is designated by the manufacturer as using a Vega 11, designated Raven Ridge, integrated GPU.
I would recommend using module vice builtin in Graphics Support section to allow the kernel to make choices of firmware.


I was indeed moving to amdgpu as a module as well ( as also the preferred way on the wiki). So right now i have amdgpu as a module.

Code:
 # cat .config |grep -i amdgpu=
CONFIG_DRM_AMDGPU=m

Removed the list of firmware since now it is a module.
The system still works, but all the 'call traces' in dmesg related to amdgpu remain....

Alex.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Mon Dec 03, 2018 2:16 pm    Post subject: Reply with quote

Possibilities:
boot partition not mounted for kernel recompile.
grub-mkconfig -o /boot/grub/grub.cfg not run after recompile (which included kernel name change)
emerge xf86-video-amdgpu needs rerun after kernel update
Graphics Support section of .config needs more work - copy of mine to follow
_________________
Defund the FCC.
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
Goto page 1, 2  Next
Page 1 of 2

 
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