Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: genfb not working on E250 with Raptor GFX card



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jan 13, 2008, at 18:31, Peter Bex wrote:

On Sun, Jan 13, 2008 at 05:12:00PM -0500, Michael Lorenz wrote:
, reset-all and have a look at the depth property.

Still says 00 00 00 20, but it still reports 0x8 in NetBSD's debug
output.

Ok, the code that copies the data defaults to 8 if something goes
wrong while reading depth from OF and adding it to the device's
dictionary. Please have a look at dev/ofw/ofw_subr.c /
of_to_uint32_prop(), sprinkle a few printf()s so we can see where and
why it fails.

I added the following statement:
printf("Getting prop at node: %i ofname = %s, size = %lu, returned size = %i\n", node, ofname, sizeof(prop), OF_getprop(node, ofname, &prop, sizeof(prop)));

It prints:
Getting prop at node: -267800264 ofname = height, size = 4, returned size = 4 Getting prop at node: -267800264 ofname = linebytes, size = 4, returned size = 4 Getting prop at node: -267800264 ofname = depth, size = 4, returned size = -1

I then added some printfs to openfirm.c:OF_getprop, but now it keeps giving
me 'Memory Address not Aligned' so I guess something got broken while
linking. I'm going to recompile from scratch tomorrow, to see if that makes
it work again.

So it fails to read the depth property but doesn't have any problem with the others. Very odd. There goes the maybe-we're-on-the-wrong- node theory. You don't use any funny compiler options, do you?

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

iQEVAwUBR4qhbMpnzkX8Yg2nAQKQ+gf9EbIpKcOUZTMbDj8bZZNW8IZrNSEgad1N
CFUaPQyrCkZTMZHE0yfIUKgL+/RcdETBcr0fsm5fgYcQgxP85Vxs/tSdlj2eQyWx
ns2J51iKSAg/0dTbKT4ObeeUTpcOB3gLa5E1DHW3HZc/mjCGppciAnVbpbF5iSxC
oqNGr6+2faT8R8samcRWT5zqmcqV6qYGUAh1nCBABtkWufYJebg6p429DRTPpRPa
GMzIuGa7hdlFVzefpRiHihdO4cXzuQjdi2aiULjO55271HOM/ArdTE3vYJSSoJsF
UI2hlM/TcMyl33JN/+qaNfPTW+/7y7JUc636faX7iKudyc9DDXZU6w==
=vUps
-----END PGP SIGNATURE-----



Home | Main Index | Thread Index | Old Index