LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-23-2005, 07:55 PM   #1
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
svgalib and the 2.6.11 kernel


i recently rolled a 2.6.11.10 kernel and am happy with it
for the most part...however, svgalib stopped functioning.
now i receive 'svgalib: mmap error rrr'. i have also tried
updating to svgalib-1.9.21, but that didn't work either.

currently, i have just reverted back to my 2.6.7 kernel
where everything works...but i would like to make the
transition. (for instance, i noticed the pts behaviour is much
better under 2.6.11)

is this just a versioning conflict?
should i just wait for svgalib to support the new kernel?
or have i overlooked something simple?

Last edited by kodon; 06-10-2005 at 05:31 PM.
 
Old 05-23-2005, 08:05 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Compare the framebuffer part in both kernels and spot the differences.
 
Old 05-23-2005, 08:52 PM   #3
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Original Poster
Rep: Reputation: 31
i don't use framebuffer


the kernels are virtually identical in configuration
with the exception i added v4l to 2.6.11.10...

Last edited by kodon; 05-29-2005 at 06:46 PM.
 
Old 06-10-2005, 05:14 PM   #4
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Original Poster
Rep: Reputation: 31
* bump *
 
Old 06-10-2005, 05:20 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
Re: svgalib and the 2.6.11 kernel

Quote:
Originally posted by kodon
i recently rolled a 2.6.11.10 kernel and am happy with it
for the most part...however, svgalib stopped functioning.
now i receive 'svgalib: mmap error rrr'.
when do you get that error ?
at boot or...

egag
 
Old 06-10-2005, 05:24 PM   #6
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Original Poster
Rep: Reputation: 31
not at boot.

received it when trying to run xmame.svgalib...
already removed that kernel, but i will recompile
and test other svgalib apps.

i remember there was a problem with the
setuid bit, but that was a number of stable
releases back. figured they would have cleaned
that up by now...

Last edited by kodon; 06-10-2005 at 05:34 PM.
 
Old 06-10-2005, 07:45 PM   #7
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Original Poster
Rep: Reputation: 31
well, i tried 2.6.11.11 this time
and it was even worse...

linux-wlan-ng wouldn't even work.

so i'll just stick with 2.6.7 for now.
maybe they will get the bugs out
by the 2.8 kernel...
 
Old 06-10-2005, 10:23 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
The linux-wlan-ng problem is because it's kernel dependant, kernel modules are included in the package, so I guess you'll have to recompile those modules along with your kernel. Check that there are two packages, one for 2.4.X kernel and other for 2.6.X but they're kernel specific.

About the svgalib error, I've found a patch for 2.6.9+ kernels, it seems it's a bug in it, that's why you get mmap error rrr.
Here's the patch: http://xentac.net/tur/tags/link/svga...3-debian.patch
I'm quoting the relevant part:
Quote:
#DPATCHLEVEL=1

On Linux kernels >= 2.6.9 and the introduction of flexmmap has revealed
a bug in the return value test code.

diff -Naur svgalib-1.4.3.orig/src/vga.c svgalib-1.4.3/src/vga.c
--- svgalib-1.4.3.orig/src/vga.c 2004-10-22 22:59:38.000000000 +0200
+++ svgalib-1.4.3/src/vga.c 2004-10-22 23:08:26.000000000 +0200
@@ -2001,8 +2001,8 @@
};
__vga_mmap();

- if ((long) GM < 0) {
- printf("svgalib: mmap error rrr\n");
+ if (GM == MAP_FAILED) {
+ printf("svgalib: mmap error: %s\n", strerror(errno));
exit(1);
}
/* disable video */
You can do this by hand, just open that file (svgalib-1.4.3/src/vga.c) with a text editor and change the lines:
Code:
if ((long) GM < 0) {
printf("svgalib: mmap error rrr\n");
to
Code:
if (GM == MAP_FAILED) {
printf("svgalib: mmap error: %s\n", strerror(errno));
and recompile svgalib. You can get the source and it's SlackBuild to build from
ftp://ftp.scarlet.be/pub/slackware/s...rce/l/svgalib/ or Slackware CD 3 or 4 if you have them.

Last edited by gbonvehi; 06-10-2005 at 10:28 PM.
 
Old 06-10-2005, 10:32 PM   #9
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Original Poster
Rep: Reputation: 31
of course i rebuilt the linux-wlan-ng modules
after compiling a new kernel...




anyways...it's not that important to me to be on
the cutting edge. was just curious as to what
was broken...i can wait for a stable stable release.

thank you
 
Old 06-19-2005, 02:23 PM   #10
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Original Poster
Rep: Reputation: 31
update

just went to 2.6.12 (it likes wlan...woohoo)
tried the svgalib patch, but i couldn't get it to compile
using the slackbuild or standard procedure...

so i tried going to svgalib-1.9.21 again and it's working
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
svgalib problems dtheorem Linux - Software 1 05-22-2006 07:32 PM
svgalib-problems bave Linux - Software 0 09-15-2005 06:22 AM
SVGAlib ?? mickeyboa Fedora 5 09-10-2005 06:34 PM
Svgalib and Svgalib-devel on FC1 Michele Spinolo Fedora 1 11-11-2004 09:56 AM
SVGALib: how to test ? braindeadt Linux From Scratch 1 05-12-2003 10:57 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration