Unable to install Mint due to PCIe bus error [SOLVED]

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
zorglubu
Level 1
Level 1
Posts: 11
Joined: Sat Oct 06, 2018 10:40 am

Unable to install Mint due to PCIe bus error [SOLVED]

Post by zorglubu »

Hello everybody,

I am unable to install Linux Mint on a new computer due to an error like the one described here : https://askubuntu.com/questions/863150/ ... eceiver-id
or here : https://bugs.launchpad.net/ubuntu/+sour ... ug/1521173
The cause is probably the WIFI.
The workaround seems to edit GRUB and to be able to start from GRUB : « add pci=noaer to the kernel command line » (or pci=nomsi) , that means edit the line GRUB_CMDLINE_LINUX_DEFAULT. If I can do that, I should be able to install the necessary drivers.

My computer is currently absolutely empty, Grub is not even installed. The only way to boot is from a USB stick. I tried with an image of Linux Mint, and even later on with an image of Ubuntu.
When I boot from a USB drive with a linux Mint image, it’s working but there are thousands of system error messages, some CPU cores have a load of 100% and after one minute, the memory is full and everything is blocked. I am unable to install Mint.

Is it possible to add this kernel command “pci=noaer “ when booting Linux Mint from a USB drive and not via Grub ?

Thanks a lot.
Last edited by zorglubu on Mon Nov 25, 2019 9:58 am, edited 2 times in total.
User avatar
WharfRat
Level 21
Level 21
Posts: 13865
Joined: Thu Apr 07, 2011 8:15 pm

Re: Unable to install Mint due to PCIe bus error

Post by WharfRat »

When presented with the menu and Start Linux Mint highlighted, press the right tab key so you get the kernel line

Backup and enter your kernel option as shown:
Screenshot at 2019-11-23 18-37-19.png
Also you will have to add that to the installed system.

Good luck :wink:
Image
zorglubu
Level 1
Level 1
Posts: 11
Joined: Sat Oct 06, 2018 10:40 am

Re: Unable to install Mint due to PCIe bus error

Post by zorglubu »

My problem is not solved, but at least I am now able to test different workarounds...
Thanks a lot @WarfRat :-)
zorglubu
Level 1
Level 1
Posts: 11
Joined: Sat Oct 06, 2018 10:40 am

Re: Unable to install Mint due to PCIe bus error

Post by zorglubu »

Being able to boot (with pci=nomsi added to the kernel command line), I see that there is more than 1000 lines/second in the /var/log/syslog :

Code: Select all

Nov 24 15:24:22 mint kernel: [  563.432503] pcieport 0000:00:1b.3: AER: Corrected error received: id=00db
Nov 24 15:24:22 mint kernel: [  563.432507] pcieport 0000:00:1b.3: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00db(Receiver ID)
Nov 24 15:24:22 mint kernel: [  563.432509] pcieport 0000:00:1b.3:   device [8086:a2ea] error status/mask=00000001/00002000
Nov 24 15:24:22 mint kernel: [  563.432510] pcieport 0000:00:1b.3:    [ 0] Receiver Error         (First)
Nov 24 15:24:22 mint kernel: [  563.432536] pcieport 0000:00:1b.3: AER: Corrected error received: id=00db
Nov 24 15:24:22 mint kernel: [  563.432540] pcieport 0000:00:1b.3: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00db(Receiver ID)
Nov 24 15:24:22 mint kernel: [  563.432541] pcieport 0000:00:1b.3:   device [8086:a2ea] error status/mask=00000001/00002000
Nov 24 15:24:22 mint kernel: [  563.432543] pcieport 0000:00:1b.3:    [ 0] Receiver Error         (First)
Nov 24 15:24:22 mint kernel: [  563.432569] pcieport 0000:00:1b.3: AER: Corrected error received: id=00db
Nov 24 15:24:22 mint kernel: [  563.432573] pcieport 0000:00:1b.3: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00db(Receiver ID)
Nov 24 15:24:22 mint kernel: [  563.432574] pcieport 0000:00:1b.3:   device [8086:a2ea] error status/mask=00000001/00002000
The culprit seems to be the Wifi adapter :

Code: Select all

mint@mint:~$ lspci -tv
-[0000:00]-+-00.0  Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
           +-01.0-[01]--
           +-02.0  Intel Corporation HD Graphics 630
           +-14.0  Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
           +-14.2  Intel Corporation 200 Series PCH Thermal Subsystem
           +-16.0  Intel Corporation 200 Series PCH CSME HECI #1
           +-17.0  Intel Corporation 200 Series PCH SATA controller [AHCI mode]
           +-1b.0-[02]--
           [b]+-1b.3-[03]----00.0  Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter[/b]
           +-1c.0-[04]--
           +-1c.2-[05]----00.0  Intel Corporation I211 Gigabit Network Connection
           +-1c.3-[06]----00.0  Intel Corporation I211 Gigabit Network Connection
           +-1d.0-[07]----00.0  Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981
           +-1f.0  Intel Corporation 200 Series PCH LPC Controller (Z270)
           +-1f.2  Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
           +-1f.3  Intel Corporation 200 Series PCH HD Audio
           \-1f.4  Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
All CPU are overloaded with just these messages. Is it possible to deactivate this controller ? So I should be able to install Mint, and later on (maybe) install a driver ...
Thanks.
User avatar
WharfRat
Level 21
Level 21
Posts: 13865
Joined: Thu Apr 07, 2011 8:15 pm

Re: Unable to install Mint due to PCIe bus error

Post by WharfRat »

Hmm, what you can try is to remove the kernel driver.

Run lspci -k and check the Kernel driver in use for that device - example result rtl8723be

Then try sudo modprobe -r -rtl8723be
Image
zorglubu
Level 1
Level 1
Posts: 11
Joined: Sat Oct 06, 2018 10:40 am

Re: Unable to install Mint due to PCIe bus error <SOLVED>

Post by zorglubu »

Linux Mint is now installed on my computer and is working !
@WharfRat, I really, really, really thank you a lot. :)

Here I will summarize what I have done for people who could face the same problem.

* Boot the computer with a USB stick
* Hit a key as soon as you get something on the screen
* Hit TAB to get the command line and add at the end of the line (with a space before "pci")

Code: Select all

 pci=nomsi
* Press Enter ! Linux starts, don't wait, you have a short time :-)
* Open a terminal (I need a correct fr keyboard, on an Azerty keyboard : setxkb,qp fr)

Code: Select all

setxkbmap fr

* Find the culprit component

Code: Select all

tail /va/log/syslog
Result was : "Nov 24 15:24:22 mint kernel: [ 563.432540] pcieport 0000:00:1b.3: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00db(Receiver ID)"

Look at the port 1b.3 :

Code: Select all

lspci -v -s 1b.3
gives "Bus: primary=00, secondary=03, subordinate=03, sec-latency=0".
Then

Code: Select all

lspci -s 3:0
gives the controller "03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter"

Find the name of the module used by the controller

Code: Select all

lspci -k
Remove the module from the kernel (replace with your name)

Code: Select all

sudo modprobe -r rtl8821ae
Yes ! The CPU's which were at 100%, are now at 3 % ! You can start install Linux.
I choose to accept third party softwares, and the WIFI was working correctly after install.
User avatar
WharfRat
Level 21
Level 21
Posts: 13865
Joined: Thu Apr 07, 2011 8:15 pm

Re: Unable to install Mint due to PCIe bus error [SOLVED]

Post by WharfRat »

Congrats on getting it going.

You did a good job narrowing-down the problem :wink:

Also thanks for the comprehensive listing of the resolution.

Enjoy...
Image
Zelator
Level 1
Level 1
Posts: 1
Joined: Tue Feb 04, 2020 6:59 pm

Re: Unable to install Mint due to PCIe bus error [SOLVED]

Post by Zelator »

Many thanks for this highly informative thread. It turns out I have the same problem on my new PC, though I was able to install Manjaro, in spite of screensfull of error messages. But I found that systemd-journald was using 12% of CPU and the hard drive light was permanently lit. Both now quiet.

Had I found this thread earlier I might have successfully installed openSUSE as intended.
Post Reply

Return to “Installation & Boot”