LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-21-2018, 02:27 AM   #16
ninikos
Member
 
Registered: Dec 2012
Posts: 57

Rep: Reputation: 31

Quote:
Originally Posted by lawnm0wer View Post
Well, what a trip.
I hope you enjoy it.

Quote:
@ninikos, I tried to do your instructions on getting the generic kernel working, and could not do that. So I made the mistake of doing # Slackpkg Upgrade Kernel-generic and not only screwing up my system, but repeating my mistake on my fresh install, thus having to reinstall my system twice. My first reinstall was the point I understood why /home is usually a seperate partition.
The instructions in the previous post are for using lilo. For your case, which is elilo you need

Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.14.67 | bash
cp /boot/vmlinuz-generic-4.14.67 /boot/efi/EFI/Slackware/vmlinuz-generic
cp /boot/initrd.gz /boot/efi/EFI/Slackware/initrd.gz
then edit elilo.conf and add an entry like this.
Code:
image=vmlinuz-generic
  label=Slackware
  initrd=initrd.gz
  append="ro"
You don't need to reinstall if you screw up the bootloader. You can use the installation media to chroot in the screwd system. Boot the installation media and then do this on the root console

Code:
mount /dev/sda /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc/ /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev/shm /mnt/dev/shm
chroot /mnt
See here for more http://docs.slackware.com/howtos:sla...oot_from_media

Quote:
How would I check and edit permissions on the device? I understand lsusb to check it, but not how to edit it. I tried reading up on udev, but I got stuck on wondering why the 70 on /etc/udev/rules.d/70-persistent-net.rules exists.
Even if you can always do something like this
Code:
chmod o+w /dev/bus/usb/013/001
as I posted above, just make a network share on the windows guest and use this to transfer files. It's much simpler and cleaner than messing directly with permissions on the /dev/bus/usb... files and custom udev rules.

The 70-persistent-net.rules exists in order for the network interfaces to always keep their names the same. You don't need to mess with it at all.

Quote:
I want things to work, but I'm tired of doing stupid things and breaking things again.
It seems that you are trying many things for the first time. Breaking things is a way to learn things, so keep breaking them and you will get where you want.
 
Old 09-21-2018, 10:13 AM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by lawnm0wer View Post
How would I check and edit permissions on the device? I understand lsusb to check it, but not how to edit it. I tried reading up on udev, but I got stuck on wondering why the 70 on /etc/udev/rules.d/70-persistent-net.rules exists.

I want things to work, but I'm tired of doing stupid things and breaking things again.
I don't believe you can adjust usb permissions with lsusb. What I meant was to view the permissions of a similar device using ls -l, and then mirroring those permissions on the other device using chmod. Unfortunately, I don't even know if /dev/bus/usb/013/001 will exist in your system (if it doesn't, try to find other devices you could use instead), but if it does, you could use the following command to view what the permissions are:

Code:
ls -l /dev/bus/usb/013/001
If you aren't familiar with how Linux permissions work and are struggling trying to figure out what to type to change the permissions, feel free to post the output of the above command and we can provide you with the correct chmod command to adjust your initial device.

Quote:
Originally Posted by ninikos View Post
It seems that you are trying many things for the first time. Breaking things is a way to learn things, so keep breaking them and you will get where you want.
This is totally true! I tend to learn more when I break something and then figure out how to fix it than if I just get it working the first time. The first time I jacked up my lilo was when I dug into lilo to figure out how it works, and it has still stuck with me over these years.
 
Old 09-21-2018, 07:23 PM   #18
lawnm0wer
Member
 
Registered: Nov 2017
Posts: 87

Original Poster
Rep: Reputation: Disabled
I found the issue with this:
Code:
bash-4.4$ vms start win7
starting win7 ...qemu-system-x86_64: -device usb-mouse: drive with bus=0, unit=0 (index=0) exists
 error!
qemu error 1
I simply forgot to remove the loose -usbhost command that existed when I was trying to pass through my external HD. Other than that, not much has changed so far. Ninikos, I will check to see if your solutions will work.
 
Old 09-26-2018, 10:31 PM   #19
lawnm0wer
Member
 
Registered: Nov 2017
Posts: 87

Original Poster
Rep: Reputation: Disabled
Red face update - oops

HUGE EDIT
now I understand why this entire debacle has been a wild goose chase for me. I misidentified my GPU. It's the Sapphire RX 480 nitro+, not the 580 nitro+.



well... I have no excuse other than I'm forgetful and bull-headed at times.

So I uninstalled the incorrect driver and installed the correct one... and the result is STILL the same. I even added the line for downloaded bios rom as ninikos suggested. I will look around to see how OVMF works, if I run out of options, I will switch to legacy mode and use the mounting instructions to redo my boot partition.

Last edited by lawnm0wer; 09-27-2018 at 03:13 PM. Reason: everything should've made sense... :<
 
Old 09-28-2018, 09:31 PM   #20
ninikos
Member
 
Registered: Dec 2012
Posts: 57

Rep: Reputation: 31
I just tested passthrough with an OEM AMD 7350 and a windows guest. I am posting the facts as I recall

0. Host machine booted via UEFI, using generic kernel 4.4.157 on slackware64-14.2
1. The host was up for a few days
2. The 7350 was used for passthrough to a slackware-current and a Centos 7 guest
3. Fired up old forgotten windows 7 guest, normal bios guest, no OVMF for this one
4. Installed latest updates for windows .. waited few hours ... slackware has spoiled me with updates taking just a few minutes
5. Shut down the guest, and passed through the 7350 device and it's audio device via vfio
6. Tried to install latest AMD driver on the guest, the installer said that the card was not recognized
7. Manually installed the driver from 'Device Manager' via 'Have disk ...' method, pointed to C:\AMD\WHQL-Win8.1-Win7-Catalyst-15.7.1-Oct30\Packages\Drivers\Display\WB6A_INF\*.INF and the driver was installed. It prompted for reboot. After which ...
8. The host freezed :-( And it was a total freeze. No ssh, no respond to power off button, no REISUB, it just froze. dmseg logged something about disabling interrupt 21. Hold power button to power off the host, scary thing (especially when using raid). Powered up again.
9. Then I tried the following (after remembering that I use something similar for MacOS). The interesting part is the cpu option, but I am posting the whole configuration that I just tested. @lawnm0wer Don't use virtio for your disk if you don't know how to setup windows with floppy disk that has the windows virtio controller driver. Almost the same for virtio-net-pci, you need a windows driver to use it.
Code:
...
Win7[mem]=8192
Win7[smp]='4,sockets=2,cores=2,threads=1'
Win7[cpu]='Penryn,vendor=GenuineIntel,kvm=off,check'
Win7[kvm]=yes
Win7[rtc]='base=localtime'
Win7[monitor]=yes
Win7[disk0]="$STORAGE00/Win7/Win7.img,format=raw,if=virtio,index=0"
Win7[br0]=net0
Win7[nic0]='virtio-net-pci,mac=52:54:00:XX:XX:XX,netdev=net0'
Win7[extra0]='-soundhw ac97'
Win7[extra1]='-usb -device usb-mouse'
Win7[extra2]='-device vfio-pci,host=07:00.0'
Win7[extra3]='-device vfio-pci,host=07:00.1'
10. Aaaand ... it works! :-)
Click image for larger version

Name:	3d-test-2.jpeg
Views:	34
Size:	150.4 KB
ID:	28688

I don't know if the cpu option is the reason for the freeze or using the 7350 with linux guests before passing it to the windows guest.

Last edited by ninikos; 09-28-2018 at 09:47 PM.
 
Old 09-29-2018, 09:24 PM   #21
lawnm0wer
Member
 
Registered: Nov 2017
Posts: 87

Original Poster
Rep: Reputation: Disabled
Unhappy I can't take this anymore

well, I tried to follow what you did ninikos, I even went and managed to for real get the generic kernel bootable, but it went and panicked on me. I've hit my limit for tech frustrations, I don't have enough time these days to have the patience to deal with them, and it's not even fun for me.

It's been almost a solid month of frustration, I'm drained, and I'm sick of dealing with these issues only for more to shove their way into my face. I'm going make the switch from slack again...

But just for my desktop for now.

I will continue to be using slackware on my other devices. no matter what other distro I switch to, I always end up switching back to slack. I'll be back sometime to try GPU passthrough again, I just need some time to relax.

Thank you guys for everything you've done for me, hopefully the next times I see you again, the threads will be shorter than this.

Last edited by lawnm0wer; 09-30-2018 at 03:44 PM.
 
  


Reply

Tags
kernel, kernel compile



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
SAPPHIRE Radeon RX 580 NITRO+ 4 GB remma12 Linux - Hardware 1 10-14-2017 01:16 PM
Bind only 1 device to vfio driver that have same vendor/device id's Eusaphious Linux - General 1 05-19-2015 09:41 PM
[SOLVED] more bind issues (again) rbees Linux - Networking 9 05-05-2014 05:53 PM
BIND DNS issues joel112 Linux - Software 3 05-31-2006 04:03 AM
Issues with BIND gurusmaran Linux - Networking 7 09-14-2005 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:37 PM.

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