Mailing List Archive

afbinit failure with 2.6.15 kernels (can no longer load Elite graphics microcode).
With kernel-2.6.15 series, the program for loading Elite graphics
microcode fails:

Is this a known problem, or is the fix for afbinit known?
With the 2.6.15 kernel series (on SB1000), an attempt to load the
Elite graphics microcode with the afbinit program:
/* $Id: afbinit.c,v 1.1.1.1 1999/09/08 06:42:36 davem Exp $
(e.g., using
afbinit /dev/fb/0 /usr/lib/afb.ucode)
results in
mmap user regs: Invalid argument --- this comes from this bit of code:
====================
uregs = mmap(0, 0x2000,
PROT_READ | PROT_WRITE,
MAP_PRIVATE,
afb_fd,
0x04000000);
====================

I'd be happy to just fix it if I knew what the mmap call should look
like with this kernel, but I don't. (The Elite did open OK; to get this
far,
afb_fd = open(afb_fname, O_RDWR);
has to have worked.

Regards,
Ferris
--
Ferris McCormick (P44646, MI) <fmccor@gentoo.org>
Developer, Gentoo Linux (Sparc, Devrel)
Re: afbinit failure with 2.6.15 kernels (can no longer load Elite graphics microcode). [ In reply to ]
On Mon, 2006-01-30 at 20:05 -0800, David S. Miller wrote:
> From: Jurij Smakov <jurij@wooyd.org>
> Date: Mon, 30 Jan 2006 19:15:36 -0800 (PST)
>
> > After looking at the description of the problem, I recalled that I've seen
> > something like this reported on the debian-sparc list. It turns out that
> > we have a bug #346085 [0] filed exactly for this issue, and Ian Viemeister
> > has recently submitted a patch [1] for afbinit which reportedly fixes this
> > problem. I don't have a possibility to test it myself.
> >
> > [0] http://bugs.debian.org/346085
> > [1] http://bugs.debian.org/cgi-bin/bugreport.cgi/afbinit.c.diff?bug=346085;msg=10;att=1
>
> That patch looks good to me.
>
> Ferris can you test that out and say if it works for you
> as well? Thanks.

Tested.
Patch (MAP_PRIVATE ---> MAP_SHARED) works for me (SB1000-SMP, Elite
3dm3) with kernels 2.6.13-r3, 2.6.15-r1. Thanks.

GENTOO SPARC PEOPLE: I will be making a revision bump (as ~sparc) to
afbinit to add this patch. If you try it and experience any
difficulties, please let me know.
> -
> To unsubscribe from this list: send the line "unsubscribe sparclinux" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html

Regards,
Ferris
--
Ferris McCormick (P44646, MI) <fmccor@gentoo.org>
Developer, Gentoo Linux (Sparc, Devrel)