DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th January 2017
KenJackson KenJackson is offline
Real Name: Ken Jackson
Multi-OS Guy
 
Join Date: Oct 2008
Posts: 6
Default Failed to load module "qxl" (module requirement mismatch)

I've installed NetBSD 7.0.1 in a KVM virtual machine under libvirt on a Fedora 25 Linux host.

I want to use spice, so i specified the requisite "qxl" graphic in the virtual machine then installed xf86-video-qxl-0.1.4nb1 with pkgin in the NetBSD guest.

But both /var/log/xdm.log and /var/log/Xorg.0.log complained that they couldn't find the "qxl" module. Then I realized they were looking in /usr/X11R7/lib/modules but the qxl package put it in /usr/pkg/lib/xorg/modules. To solve that, I manually added a symbolic link. And indeed, that solved the "not found" problem. (But why the two directories???)

Now they complain that it's the wrong driver. Both xdm.log and Xorg.0.log gripe:
Code:
(EE) module ABI major version (20) doesn't match the server's version (10)
(EE) Failed to load module "qxl" (module requirement mismatch, 0)
Why are things out of sync in the NetBSD code base? How can anyone get X to work?

What can I do to solve this?
Reply With Quote
  #2   (View Single Post)  
Old 9th January 2017
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 31
Default

The edition of X11 in the base distribution is not the same as pkgsrc. pkgsrc is usually newer, because it can track upstream much faster.

Add X11_TYPE=modular to your /etc/mk.conf, and rebuild X, and you'll be able to use the qxl drivers.
Reply With Quote
  #3   (View Single Post)  
Old 9th January 2017
KenJackson KenJackson is offline
Real Name: Ken Jackson
Multi-OS Guy
 
Join Date: Oct 2008
Posts: 6
Default

Thank you. I was coming to that conclusion, but that doesn't seem to be a complete answer.

File /etc/rc.d/xdm has this line:
command="/usr/X11R7/bin/${name}"

Apparently the directory in that and other files should be changed to "/usr/pkg/lib/xorg", but the "xdm" package I installed with pkgin doesn't modify or replace that file. It seems like it MUST be changed to get the modular version of xdm (/usr/pkg/bin/xdm) started at boot instead of the base version (/usr/X11R7/bin/xdm).

When I installed NetBSD, I selected a full installation from the menu instead of full minus X. So now how can I remove the base X files? A four-year old wiki page says to execute "pkg_delete -r x11-links", but that command returns:
pkg_delete: No matching package for basename `x11-links' of `x11-links'

I'm fumbling my way though the pkg_ commands looking for a way to show what the basename for X is and how I can uninstall it. I'm thinking of wiping the disk and reinstalling with the minus-X option, but that's time consuming with no guarantee it will work.


BTW, I like the "pkgin" command and the pre-compiled packages. But there remains a confusing mishmash of base and pkgsrc commands that are non-obviously orthogonal or mutually exclusive or redundant.
Reply With Quote
  #4   (View Single Post)  
Old 10th January 2017
pygope pygope is offline
Port Guard
 
Join Date: Apr 2015
Posts: 32
Default

Quote:
Originally Posted by KenJackson View Post
Thank you. I was coming to that conclusion, but that doesn't seem to be a complete answer.

File /etc/rc.d/xdm has this line:
command="/usr/X11R7/bin/${name}"

Apparently the directory in that and other files should be changed to "/usr/pkg/lib/xorg", but the "xdm" package I installed with pkgin doesn't modify or replace that file. It seems like it MUST be changed to get the modular version of xdm (/usr/pkg/bin/xdm) started at boot instead of the base version (/usr/X11R7/bin/xdm).

When I installed NetBSD, I selected a full installation from the menu instead of full minus X. So now how can I remove the base X files? A four-year old wiki page says to execute "pkg_delete -r x11-links", but that command returns:
pkg_delete: No matching package for basename `x11-links' of `x11-links'

I'm fumbling my way though the pkg_ commands looking for a way to show what the basename for X is and how I can uninstall it. I'm thinking of wiping the disk and reinstalling with the minus-X option, but that's time consuming with no guarantee it will work.


BTW, I like the "pkgin" command and the pre-compiled packages. But there remains a confusing mishmash of base and pkgsrc commands that are non-obviously orthogonal or mutually exclusive or redundant.
If you want to remove the complete X sets from installation, see this: https://ezunix.org/index.php?title=R...SD_base_system.
I used it some years ago, and worked for me.

Also you have to take into account that if you change your X packages from installation to modular with pkgsrc. You MUST install any X related package, as xdm, from pkgsrc instead from binary packages, because binary ones were created with the standard X from installation, that is the reason that xdm obtained from pkgin doesn't point to your X location.
Of course you have to keep the line X11_TYPE=modular in your /etc/mk.conf in order the built packages to work.
Reply With Quote
Reply

Tags
abi, kvm, module, qxl

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling message: "write failed, file system is full"? Nureo OpenBSD Packages and Ports 13 19th July 2016 01:36 AM
Difference between"arp info overwritten" and " duplicate IP address " varag OpenBSD Security 1 6th April 2015 02:57 PM
Feasibility: "Load Balance Outgoing Traffic" with 2 NICs only Tramboi FreeBSD Security 3 29th April 2010 09:13 AM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
Scripted sysinstall fails with "Command 'system' failed" PeterSteele FreeBSD Installation and Upgrading 0 13th November 2008 11:31 PM


All times are GMT. The time now is 05:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick