Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SIS671/Mirage 3 Support (Or lack thereof). [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fetaera
n00b
n00b


Joined: 23 Jan 2013
Posts: 8
Location: UK

PostPosted: Wed Jan 23, 2013 8:08 am    Post subject: SIS671/Mirage 3 Support (Or lack thereof). [SOLVED] Reply with quote

This was originally tacked onto an existing thread, but owing to several conversations and the massive can of worms this seems to be opening, I have gone ahead and created this new thread.

So, the situation:

1x laptop (Clevo M771S with an SISM671 Northbridge).

lspci reports:
Code:
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)

Code:
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10) (prog-if 00 [VGA controller])
   Subsystem: CLEVO/KAPOK Computer Device 0801
   Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
   Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
   Interrupt: pin A routed to IRQ 9
   BIST result: 00
   Region 0: Memory at c0000000 (32-bit, prefetchable) [size=256M]
   Region 1: Memory at d8000000 (32-bit, non-prefetchable) [size=128K]
   Region 2: I/O ports at 9000 [size=128]
   Expansion ROM at <unassigned> [disabled]
   Capabilities: [40] Power Management version 2
      Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
      Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
   Capabilities: [50] AGP version 3.0
      Status: RQ=256 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3+ Rate=x4,x8
      Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>


System details:
Code:
flange src # uname -a
Linux flange 3.5.7-gentoo #1 SMP Tue Jan 22 09:01:58 GMT 2013 i686 Celeron(R) Dual-Core CPU T3000 @ 1.80GHz GenuineIntel GNU/Linux


Now. There has been work done in getting this chip working. When using the Mageia distribution, for example, I am able to achieve the desired resolution of 1440x900. (2D HW Accel, no 3D, but that is sufficient for me). This is accomplished using their 'sisimedia' package, details here https://github.com/xrg/x11-driver-video-sisimedia.

I have managed to compile the source from here: http://ajoliveira.com/ajoliveira/gen/bin/xorg-driver-sis671-12.10-2.tar.bz2, although no shared object is created. Attempting to compile the sisimedia source results in:
Code:
xf86Resources.h: No such file or directory


Am running out of ideas here. My only real aim is to move away from this crummy VESA fallback of 800x600 and get into something workable.

Any advice would be greatly appreciated.

Thanks in anticipation.


Last edited by fetaera on Wed Jan 23, 2013 12:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Wed Jan 23, 2013 10:16 am    Post subject: Reply with quote

The Mageia folks apply tons of patches to get the driver working, are they already applied in the tarball you used, or did you apply them yourself?

Maybe the Arch package can help you, though basically they simply imported all Mageia patches: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/xf86-video-sisimedia
Back to top
View user's profile Send private message
fetaera
n00b
n00b


Joined: 23 Jan 2013
Posts: 8
Location: UK

PostPosted: Wed Jan 23, 2013 10:44 am    Post subject: Reply with quote

Aye, I grabbed the RPM they provide and tried with that to no avail. (Module mismatch).

What I really need are the latest sources, but locating them is proving troublesome. The latest I have found thus far is from Github. (Well over a year old).

Further, this is reportedly broken in 1.13, too. (Not sure if there's a patch available, though I recall reading something about it simply not being possible).

Why do things like this have to be so frustrating?

The search continues!

Edit! Ahah! Might be onto something with that Arch fork you posted.
Back to top
View user's profile Send private message
fetaera
n00b
n00b


Joined: 23 Jan 2013
Posts: 8
Location: UK

PostPosted: Wed Jan 23, 2013 11:30 am    Post subject: Reply with quote

Getting there slowly but surely, although just came across this:

Code:
sis_dri.c:53:29: fatal error: xf86drmCompat.h: No such file or directory


A couple of the patches threw an error or two, also, but the main patches all went fine, so I remain hopeful.

In short, what provides this elusive xf86drmCompat.h? I would have expected most X things would be available already.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Wed Jan 23, 2013 11:45 am    Post subject: Reply with quote

fetaera wrote:
A couple of the patches threw an error or two, also, but the main patches all went fine, so I remain hopeful.

You mean actual errors, or just warnings such as offsets and fuzz? There shouldn't be any errors. Did you apply them in the same order as in the Arch PKGBUILD?

fetaera wrote:
In short, what provides this elusive xf86drmCompat.h? I would have expected most X things would be available already.

I don't think it exists anymore. You won't get any 3D accel with this driver anyway, so compile with --disable-dri. That's what the PKGBUILD does, it seems that does the trick.
Back to top
View user's profile Send private message
fetaera
n00b
n00b


Joined: 23 Jan 2013
Posts: 8
Location: UK

PostPosted: Wed Jan 23, 2013 11:51 am    Post subject: Reply with quote

Ahh, yeah. Missed that flag from the PGKBUILD. Totally should be paying more attention.

Thanks. Giving it another shot.
Back to top
View user's profile Send private message
fetaera
n00b
n00b


Joined: 23 Jan 2013
Posts: 8
Location: UK

PostPosted: Wed Jan 23, 2013 12:09 pm    Post subject: Reply with quote

Much better now, thanks. Although...

Code:
am-wrapper: aclocal: /usr/bin/aclocal-1.9 is missing or not executable.
Please try emerging the correct version of automake.
autoreconf-2.68: aclocal failed with exit status: 1


Am obviously on 1.11. Hoping this is a simple fix.

Appreciating the help here. Thanks a lot.

Edit: Okay, I kinda cheated and just symlinked it.

Make went ok.
Back to top
View user's profile Send private message
fetaera
n00b
n00b


Joined: 23 Jan 2013
Posts: 8
Location: UK

PostPosted: Wed Jan 23, 2013 12:16 pm    Post subject: Reply with quote

And victory!

Thanks so much for the pointers there. Really glad to have this actually working finally!
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Mon Apr 22, 2013 11:18 am    Post subject: Reply with quote

Could you expand on the details of your solution ?

* What xorg-server version is this driver for
* What is the source of the driver (wget)
* What patches did you apply on top of that
* A specific xorg.conf needed ?
Back to top
View user's profile Send private message
fetaera
n00b
n00b


Joined: 23 Jan 2013
Posts: 8
Location: UK

PostPosted: Mon Apr 22, 2013 9:40 pm    Post subject: Reply with quote

Yeah, it was basically working against the portage tree in January, so the chances of it still working are pretty good.

Just grab those arch sources, cat the PKGBUILD file to get the patch list and apply them all (In order).

I seem to recall having to comment out a line after the build failed, but after that, it 'just worked'.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum