LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2019, 02:22 PM   #1
Kirschen17
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Rep: Reputation: Disabled
Can't install Linux on Ryzen 5 2500U


Hello,
I've bought an Acer Aspire 3 (A315-41-R8PG) and I'd like to have Linux on it in Dualboot with Windows 10, but when I try to install any Linux Version like Mint or Manjaro or MX Linux it does not work, there is only this report that says:"WATCHDOG: BUG: soft lockup-Cpu#1(or other numbers) stuck for 22s!" the cpu has benn stuck for 23 seconds and it goes like this every time. I'm very frustrated, because I'm trieing to install Linux now for 3 days and I now really would love it if someone helps me with my problem with a Step-by-Step description, because Linux is a bit new for me.
My System:
SSD
Windows 10 and pre-installed Ubuntu Version(for some reason i can't delete the partition)
Ryzen 5 2500U
integrated Vega
DDR4 Ram
Thank you
 
Old 03-13-2019, 08:01 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Exactly how are you proceeding? Do you have e.g. Mint on an USB-stick or DVD? Did you try to boot from the relevant device? Please describe step by step what you do until the error crops up.

Btw. The currently installed Windows and Ubuntu OSs are both working, I presume?
 
Old 03-13-2019, 08:14 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
Newer Acer computers with windows 10 require you to set 'trust' somewhere in the BIOS before another OS can be installed. You first need to set a Supervisor password in the BIOS. THis may or may not be the problem but is simple enough to try. I'm surprised you got a computer with both windows 10 and Ubuntu preinstalled?


Quote:
and I'd like to have Linux on it in Dualboot with Windows 10,
You indicate you have Ubuntu also and Ubuntu is one of many different Linux distributions. Do you just want a different Linux OS?
 
Old 03-13-2019, 08:15 AM   #4
Kirschen17
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello,
I can boot the Live Version of Mint, I install and then i shut the Computer down, start it again and the described Bug appears. Yes, the preinstalled Ubuntu (without graphical interface) annd Windows 10 are both working.
 
Old 03-13-2019, 08:21 AM   #5
Kirschen17
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
I've disabled secure boot if thats is what you mean (Set as trust)
 
Old 04-10-2019, 08:20 AM   #6
Teso
Member
 
Registered: Apr 2019
Posts: 63

Rep: Reputation: Disabled
Post How To Install Linux on a Computer with a IOMMU-Firmware-Bug

You can not start Live-Linux on your AMD computer?
You get a black screen or some errors?
Quote:
AMD-Vi: [Firmware Bug]: : IOAPIC[4] not in IVRS table
linux kernel: AMD-Vi: [Firmware Bug]: : IOAPIC[5] not in IVRS table
linux kernel: AMD-Vi: [Firmware Bug]: : No southbridge IOAPIC found
linux kernel: AMD-Vi: Disabling interrupt remapping
That's how to FIX this issue:

Many BIOS Firmware have a BUG in the IOMMU.
To workaround this issue you have to boot and install an old version of GNU/Linux by booting an Live-Linux from USB-Drive whit the Linux-Kernel version: 4.13.
Alternative you can boot the latest GNU/Linux like the KDE neon GNU/Linux by editing the /boot/grub/grub.cfg on the USB-Drive whit this workaround:

Code:
ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2
Maybe you have to change the numbers in:
"[4]" and "[5]" to "[3]" and "[4]" or "[5]" and "[4]"...
It depends on you IRQ settings of the BIOS Workaround.

1. Download GNU/Linux (for example KDE neon GNU/Linux) and Rufus
2. Start Rufus, select the GNU/Linux image (neon-user-20190404-1118.iso) file and set GPT UEFI
Click image for larger version

Name:	rufus.png
Views:	228
Size:	23.8 KB
ID:	30287
3. Press START button.
4. Wait till the Boot-USB creating is finished and press Close.
5. Open in Windows Explorer the USB-Drive and go to the /boot/grub/ directory.
3. Open the grub.cfg with Notepad and add this line: ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2

Quote:
# This is a composite, glued together from bits of an actual generated
# grub.cfg from a regular system, and the auto generated stuff created for
# Kubuntu.

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if loadfont /boot/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm

insmod gfxmenu
loadfont /boot/grub/themes/breeze/unifont-bold-16.pf2
loadfont /boot/grub/themes/breeze/unifont-regular-14.pf2
loadfont /boot/grub/themes/breeze/unifont-regular-16.pf2
loadfont /boot/grub/themes/breeze/unifont-regular-32.pf2
insmod png
set theme=/boot/grub/themes/breeze/theme.txt
export theme

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

# NB: apparmor is disabled because it would deny everything. The actual paths in
# the live system are not the paths used in the configs. This is because of
# how the squashfs is mounted and then overlayed. So the final paths seen by
# apparmor will be /cow/foo/whatevs/... instead of /... this blocks a lot of
# parts of the ISO from working properly (e.g. snapd or kmail; latter only
# if the user opts to install it of course).

menuentry "Start KDE neon" {
load_video
set gfxpayload=keep
linux /casper/vmlinuz boot=casper apparmor=0 ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 ---
initrd /casper/initrd.lz
}

menuentry "Start KDE neon (OEM mode)" {
load_video
set gfxpayload=keep
linux /casper/vmlinuz boot=casper apparmor=0 ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 --- oem-config/enable=true
initrd /casper/initrd.lz
}
Now reboot the computer and the Live-Linux will start automatically.
If USB-Drive is not starting, you have to enter the BIOS and setup Boot from USB. Start computer and Press a few times F12 or F2 or Del. Enter the BIOS, select the USB-Drive to boot from ti and start the Live-Linux from USB-Drive.
Sometimes the Linux won't start the first time from USB-Drive, you have to restart computer a few times, till the USB-Drive-Live-Linux is booting.
Next install Linux on a Partition of you'r Computer-Drive not USB.
Select MANUAL INSTALLATION TYPE

Click image for larger version

Name:	InstallLinux02.png
Views:	152
Size:	76.6 KB
ID:	30291

Keep the Windows partitions and add a new partition.
If Windows is occupying the whole drive, you can resize the drive from the back. Just make the Windows partition smaller on the end of the partition and take the empty space for the Linux partition. Windows need at least 20GB bettet is 40GB. The rest can be used for Linux also 20-40GB.

Click image for larger version

Name:	InstallLinux03.png
Views:	109
Size:	127.9 KB
ID:	30294

After you installed the Linux on you'r Computer, DO NOT REBOOT, first you need to edit in "Live mode" the /boot/grub/grub.cfg on the Computer Drive (SSD/HDD) where the Linux is installed now, the same way as on the USB-Drive.
Open the grub.conf in a editor "sdx1/boot/grub/", search for the "ro" command and add the workaround ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2
Code:
menuentry 'KDE neon 5.0 GNU/Linux' --class neon $menuentry_id_option 'gnulinux-simple-xxxxx-xxxx-xxxx-xxx-xxxxxx' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd1,gpt4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 xxxxx-xxxx-xxxx-xxx-xxxxxx -e24113c6b8b4
	else
	  search --no-floppy --fs-uuid --set=root xxxxx-xxxx-xxxx-xxx-xxxxxx
	fi
        linux	/boot/vmlinuz-5.0.6-A315-41-R001 root=UUID=xxxxx-xxxx-xxxx-xxx-xxxxxx ro ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2
	initrd	/boot/initrd.img-5.0.6-A315-41-R001
}
Save it, reboot and start from you computer-drive.

-------------------------

To fix the AMD-IOMMU issue, you have to install the Linux-Kernel 5.x.x.


Install Linux Kernel instruction:
First open the Command-Line-Emulator like Konsole/Terminal (Ctrl+Alt+T) login as SuperUser with this command: su. If you cannot login to you'r SuperUser account, you have to change the SuperUser password and unlock the account.

Code:
sudo passwd root
Enter two times a new SuperUser password.
To unlock (-u) the SuperUser account execute this command:
Code:
sudo passwd -u root
Now login as SuperUser by entering the command:
Code:
su
enter your password and now you'r root

To install the new Linux-Kernel you have to install all the stuff first:
Code:
apt-get install build-essential
apt-get install gcc
apt-get install make
apt-get install ld
apt-get install flex
apt-get install bison
apt-get install fdformat
apt-get install depmod
apt-get install e2fsck
apt-get install fsck.jfs
apt-get install reiserfsck
apt-get install xfs_db
apt-get install mksquashfs
apt-get install btrfsck
apt-get install pccardctl
apt-get install quota
apt-get install pppd
apt-get install isdnctrl
apt-get install showmount
apt-get install ps
apt-get install oprofiled
apt-get install udevd
apt-get install grub
apt-get install mcelog
apt-get install iptables
apt-get install openssl
apt-get install bc
apt-get install sphinx-build
apt-get install libncurses5-dev
apt-get install libelf-dev
apt-get install libcurl4-openssl-dev
apt-get install libssl-dev
apt-get install pkg-config
apt-get install libpng-dev
apt-get install zlib1g-dev
apt-get install gawk
apt-get install gcc-8
apt-get install g++-8
apt-get install python3-distutils
apt-get install libevent-dev
apt-get build-dep linux
apt-get update
apt-get full-upgrade
apt-get autoremove
apt-get autoclean
The command apt-get full-upgrade will probably install a new Kernel and reconfigure the grub.conf, and the workaround will be deleted, before you restart the computer, check the grub.conf if the workaround is on it's place.

Now reboot computer.

Change the default compiler to GCC-8:
Code:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
update-alternatives --config gcc
Quote:
scripts/kconfig/mconf Kconfig


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

root@linux:/usr/src/linux-5.0.6-A315-41-R001# update-alternatives --config gcc
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gcc-8 800 auto mode
1 /usr/bin/gcc-7 700 manual mode
2 /usr/bin/gcc-8 800 manual mode

Press <enter> to keep the current choice[*], or type selection number: 0
Select "0" and press enter.

Download Linux-Kernel 5.x.x it should be downloadet to the /home/USER/Downloads/ directory.

Edit path "USER
Code:
su
cd /usr/src/
xz -cd /home/USER/Downloads/ | tar xfv -

Now you need a Linux-Configuration-File. You can find the configuration file on you'r computer in the /boot/ directory.
Example: /boot/config-4.15.0-47-generic.

Click image for larger version

Name:	Linux-Config-01.jpg
Views:	103
Size:	177.9 KB
ID:	30293

Edit path "x" and run commands in the command-line:
Code:
sudo cp /boot/config-4.15.x-xx-genxxxx /usr/src/linux-5.x.x/.config

Code:
cd /usr/src/linux-5.x.x
make menuconfig
go to: Device Drivers ---> IOMMU Hardware Support ---> and set it up like on the screenshot

Click image for larger version

Name:	AMD-IOMMU-01.png
Views:	210
Size:	87.2 KB
ID:	30290

Now navigate to the button <Save> save as ".congif" navigate to the button Exit ent and press it a few times till it exit back to the command-line.

Now compile the Linux-Kernel: Run in the command-line as SuperUser
Code:
make -jX
The X is for the number of your CPU cores, if you have 4-CPU-Cores then replace the X with 4 make -j4, if have 8-Cores make -j8...

After compiling is finished run
Code:
make modules_install
Code:
make install
Code:
make clean
Code:
reboot
and boot the new Linux-Kernel.
In the boot manager menu (GRUB) the first entry is always the highest Linux-Kernel version. Press "E" to see the Kernel version and "Esc" to exit.
Now you can boot GNU/Linux Kernel version 5.x without a workaround.

Last edited by Teso; 04-10-2019 at 11:31 AM. Reason: Added some more information's
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 8/ Deepin 15.8 on Acer Nitro 5, (Ryzen 5 2500U and RX 560X) BenKenoobi Linux - Hardware 17 03-04-2019 08:30 AM
AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx - *ERROR* amdgpu requires firmware installed angelsen Linux - Hardware 1 07-11-2018 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration