Re: O2 framebuffer problems with install kernel

Michael Lorenz <[email protected]>
Newsgroups gmane.os.netbsd.ports.sgimips
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jul 28, 2008, at 11:14, Jorge Acereda wrote:

> On Mon, Jul 28, 2008 at 4:50 PM, Jorge Acereda <[email protected]>  
> wrote:
>
>> In any case, I've hardcoded the resolution in the code to 1024x768,
>> now it seems to initialize crmfb0, but I still get the same result.
>> Well, I get more horizontal white strips, which probably means it's
>> printing more stuff than before. It was probably dying earlier  
>> because
>> it didn't find a properly initialized console.
>
> I think the problem should be an unitialized register. I've compiled
> with CRMFB_DEBUG enabled. I had to tweak some register names, because
> CRIME_MTE_SRC_STRIDE and CRIME_MTE_DST_STRIDE seem to be called now
> CRIME_MTE_SRC_Y_STEP and CRIME_MTE_DST_Y_STEP (anyone with CVS access
> can fix those?).

I'll do that. The register names were initially copied from a very  
rough and incomplete reference I've found and later, when I found out  
how to get the thing going, some were renamed to reflect reality a  
bit more - looks like I missed a few.

> The screen is still garbled, but this time, I see some green and white
> garbage, that is probably the kernel messages being printed in green.
> But the result is clearly different.

Hmm, those registers belong to the Memory Transfer Engine ( think of  
it as a very dumb but very fast blitter, we use it for scrolling only  
since it has some funny alignment requirements ). These registers  
should be set to 1 or -1 respectively, depending if you want to copy  
top-down or bottom-up.

> BTW, is 8 bpp the only depth supported at the moment?

Yes and no. We run the console in 8bit but for X we switch to 32bit.  
Right now X requires a hacked driver and XAA module which are  
available from ftp.netbsd.org ( it uses the rendering engine for  
pretty much everything including XENDER ops but it still has  
problems. It's good enough to run things like WindowMaker ( or any  
more basic wm of your choice ) and a bunch of xterms but in KDE for  
instance you'll see occasional glitches in horizontal scroll bars.  
Anti-aliased text looks right even when drawn by hardware though. )

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSI3ocMpnzkX8Yg2nAQI9YAf/QEqWbXtIlnh+SkNgViDa+cd7tdRbJn6+
E+yNz/5l0vzbf8SoQBA2yF9tg1IdJYkqsCTbA9c+qrbuopt+3JrgP9HwAPs5uJSL
gBvrDorBvacR5dp51p2C6XsZurt3USexcTLqBosjQY0CHw8wl8fNBDZb+rhE5s+t
vsuBRPtbw6vcw+MVBYrdH58CCK0xcBwJ3ZQfqZZ4Kr6j+ZX6PPV5KHBuRyaNZWGb
pltJzgpY7SNFmOJKNFgxCW04mysHAM0dGgsblkoaVXyOKwRn6mV2d1z56PXWU+Jt
GnhcHzUeZ3l1Pdss2T/PEX05F7rExUyDfOCG6dlRUO6/JceLNcVR7w==
=TKxR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.