DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th October 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,387
Default Most efficient approach to build new via openchrome video driver

I have an old, but still functional, laptop that is Via C7 based. The i686, single core 1500mHz cpu would take over a day to build a modular xorg.

Support for the embeded video was broken upstream 3.34 -> 5.0/6.0. A young idealistic programer made a number of commits which were to fix the issues:

https://github.com/freedesktop/openc...deo-openchrome

NetBSD/FreeBSD still use xf86-video-openchrome V6.0 while OpenBSD incremented to a slightly newer version (A developer had an x86_64 Via mobo and it fixed his video). Also in OpenBSD, the atheros wifi is broken but it does work in FBSD/NBSD. I'm mulling over testing in OpenBSD and if successful, replacing the wifi card.

My NBSD question is whether to approach this via Modular xorg or the Monolithic xorg? I would like to minimize time spent compiliing.. I'm willing to go the Modular route if it optimizes my chances of success.
Reply With Quote
  #2   (View Single Post)  
Old 16th October 2021
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,000
Default

I remember a number of years ago having openchrome on a computer (can't even remember which one off-hand) and yes, the video drivers were badly broken. It's nice to hear it may be fixed now.

As to your question, I'd start by doing a basic install of monolithic Xorg ... no need for any packages or configuration/customization. That is a very quick test with which you can run X. You will probably be able to tell very quickly if there's a video driver problem or not ... at least that was my experience back then. If there are problems you could consider if it's worth trying modular.
Reply With Quote
  #3   (View Single Post)  
Old 17th October 2021
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
 
Join Date: Oct 2017
Location: Rome
Posts: 140
Default

Quote:
Originally Posted by shep View Post
My NBSD question is whether to approach this via Modular xorg or the Monolithic xorg? I would like to minimize time spent compiliing.. I'm willing to go the Modular route if it optimizes my chances of success.
Binary packages for NetBSD are built against xsrc/native X, so anybody willing to minimize time spent compiling, and use precompiled packages, is better off performing a full installation with X and rely on the native Xorg distribution. Generally, it is recommendable for NetBSD users to simply use native X.

Modular Xorg is only useful for development (e.g. only get the XCB libs against which you want to link your packages); testing purposes (e.g. test the latest changes from pkgsrc-current which haven't made their way yet into the xsrc tree); on embedded systems and servers where you plan to build anything from source and reduce the size footprint of the system, by only installing the X bits possibly pulled as dependency by packages; to use pkgsrc outside of NetBSD (illumos, macOS, Linux, Minix). This is why things like synaptics and libinput get packaged even though NetBSD doesn't rely on them.
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„

Last edited by Sensucht94; 17th October 2021 at 05:13 PM. Reason: spacing
Reply With Quote
  #4   (View Single Post)  
Old 18th October 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,387
Default

@ldOp It is broken with monolithic xorg. The screen comes up but has no definition, I'm trying to avoid building an entire modular xorg on a less-than powerful laptop.

Years ago, I had a xenocara sis-video driver that was broken and the developer walked me through rebuiliding just the sis driver in xenocara. I was looking for a guide on just rebuilding the video driver in the monolithic xorg.
Reply With Quote
  #5   (View Single Post)  
Old 18th October 2021
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,000
Default

Quote:
Originally Posted by shep View Post
@ldOp It is broken with monolithic xorg. The screen comes up but has no definition, I'm trying to avoid building an entire modular xorg on a less-than powerful laptop.
Since this is NetBSD ... would it be possible to cross-compile modular Xorg with the latest driver code on a more powerful machine? If the result of that still doesn't work then the answer is easy. But if it works, you could continue to look for a more efficient way to build just the driver.
Reply With Quote
  #6   (View Single Post)  
Old 20th October 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,387
Default

Cross-compiling is new territory for me. I'll look in to it. Thanks
Reply With Quote
  #7   (View Single Post)  
Old 20th October 2021
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,000
Default

My experience with cross-compiling NetBSD was just doing the kernel. That was maybe ~ 7 years ago. At the time, I wrote a guide on how to do that, but never posted it. Looking at it again there are a couple of references that might be useful:

Cross-compiling NetBSD with build.sh (from the online Guide)

build.sh: Cross-building NetBSD (PDF by Mewburn & Green)
Reply With Quote
  #8   (View Single Post)  
Old 22nd October 2021
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
 
Join Date: Oct 2017
Location: Rome
Posts: 140
Default

The last real change for x11/xf86-video-openchrome is the update to v6, dated 2017 (which makes xsrc in -9 is in par with it), so how is modular X this supposed to fix the issue? Or do you mean to import OpenBSD's fixes by applying a local patch? I think I'm missing something
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„
Reply With Quote
  #9   (View Single Post)  
Old 4 Weeks Ago
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,387
Default

I was hoping to apply a local patch in the monolithic xorg. Basically have it use the latest version and adjust the checksums accordingly.
Reply With Quote
Old 4 Weeks Ago
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Package Pilot
 
Join Date: Oct 2017
Location: Rome
Posts: 140
Default

Quote:
Originally Posted by shep View Post
I was hoping to apply a local patch in the monolithic xorg. Basically have it use the latest version and adjust the checksums accordingly.
Oh, I see...nice! and best luck with that. You don't need to adjust checksums as long as you use LOCALPATCHES. A convenient way of making custom packages.
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„

Last edited by Sensucht94; 4 Weeks Ago at 06:27 PM.
Reply With Quote
Old 2 Weeks Ago
bradley bradley is offline
Fdisk Soldier
 
Join Date: Jul 2020
Posts: 50
Default

Some time ago there was an older dual core machine with a VIA chipset I tried to resurrect. In the end it was so slow that it was basically not usable - neither with BSD nor with Linux.
It made me realise that the only more or less usable option with that GPU would be Vista. Not sure if the Openchrome situation has changed by now, but it's really sad if a company like VIA does not care at all about opensource developments.
Reply With Quote
Old 2 Weeks Ago
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,387
Default

@bradley

I did manage to get it running with up-to-date software but not with NetBSD.

I initially tried the modular-xorg suggestion to build but infrastructure for xorg-server (llvm and cmake) was still grinding away after 36 hours. I noted that nycdn.netbsd.org had modular xorg builds but the pkgsrc I downloaded was out of sync. I did a Makefile/distinfo/PLIST generated a build that crashed with a libary mis-match.

I was going to try Crux, there are some archived i686 isos and the pkg build for xf86-video-openchome had not changed but I worried that additional packages would all have to be built from source.

What did work was Arch32. I found in the Arch AUR a build that used a git pull. Some caveats, kernel modesetting for video needs to be disabled.
https://aur.archlinux.org/packages/x...penchrome-git/
I modified it to pull the latest tag and the driver works. If you have a dual core board with Via graphics, it is likely x86_64 ( my package was optimized for pentium 4-32bit). You're welcome to the package build - PM me if interested.

In your case I would also give OpenBSD 7.0 a try. Frederic Cambus updated it to a more recent git tag to get it to run on his dual-core x86_64 board. If you're lucky, your board matches.

https://marc.info/?l=openbsd-tech&m=155238665419616&w=2

Last edited by shep; 2 Weeks Ago at 03:07 AM.
Reply With Quote
Old 2 Weeks Ago
bradley bradley is offline
Fdisk Soldier
 
Join Date: Jul 2020
Posts: 50
Default

Sounds interesting, thank you for the details. I wonder if something like watching a yt video in Chromium on a 32 bit P4 with Openchrome does work? That old dual core I mentioned was indeed x86_64 and I tested OpenBSD with Mate. The install went like a charm. The whole system was terribly slow though. I might go back to that machine some time later, thanks for the encouragement.
When I dig into the situation some time ago, it turned out there used to be one developer but in general that driver was still problematic.
Reply With Quote
Reply

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
Failed to build X11/xf86-video-intel notooth NetBSD Package System (pkgsrc) 1 23rd March 2020 05:20 PM
OpenBSD xf86(4) Aperture driver can be disabled for KMS video jggimi News 0 23rd February 2014 12:08 PM
x11/xf86-video-intel and x11/xf86-video-intel29? Carpetsmoker FreeBSD Ports and Packages 2 23rd October 2011 01:23 PM
VMT driver (VMware Tools driver) on OpenBSD 4.8 xinform3n OpenBSD General 7 9th December 2010 10:48 PM
Hardware Xf86-video-ati 6.13.1 Driver Released Android1 News 0 7th July 2010 02:58 PM


All times are GMT. The time now is 03:44 PM.


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