linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* aty128fb PCI card on ppc 405ep taihu board
@ 2007-10-14  5:24 王重
  2007-10-16  0:37 ` Bill F
  0 siblings, 1 reply; 3+ messages in thread
From: 王重 @ 2007-10-14  5:24 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 2450 bytes --]

Hi,

 

         I got a taihu board. Now I want to display graphics (based on Qt)
through an ATI 128RAGE PCI card. The kernel is DENX Linux Kernel 2.6.19. I
found aty128fb framebuffer driver in menu configuration and build-in kernel.
Then I compile the boot logo into the kernel. I append
¡°video=aty128fb:640x480-16@70¡± to the kernel command line to enable
framebuffer. When the kernel is booting, there should be a penguin logo on
the VGA display (a CRT), but there¡¯s noting. The display got no signal all
the time. 

         Bootloader is U-Boot 1.1.4. It can recognize the PCI device:

 

PCI:   Bus Dev  VenId  DevId  Class Int

        00  06  1002  524b  0300  19

        00  07  104c  ac56  0607  1b

 

         The first line is my card, VenId and DevId are correct.

         Then the kernel is booting, but output nothing to VGA display. I
type ¡°lspci¡± in serial console. Below is the output:

 

         #lspci

         00:06.0 Class 0300: 1002:524b

00:07.0 Class 0607: 104c:ac56

 

#lspci ¨Cv

00:06.0 Class 0300: 1002:524b

        Subsystem: 1002:524c

        Flags: bus master, stepping, medium devsel, latency 128, IRQ 25

        Memory at 00000000bc000000 (32-bit, prefetchable) [size=64M]

        I/O ports at e8021f00 [size=256]

        Memory at 00000000bbffc000 (32-bit, non-prefetchable) [size=16K]

        Expansion ROM at <unassigned> [disabled] [size=128K]

        Capabilities: [5c] Power Management version 1

 

00:07.0 Class 0607: 104c:ac56

        Flags: bus master, medium devsel, latency 168, IRQ 26

        Memory at 00000000bbffb000 (32-bit, non-prefetchable) [size=4K]

        Bus: primary=00, secondary=01, subordinate=04, sec-latency=176

        Memory window 0: bbbfb000-bbffa000 (prefetchable)

        Memory window 1: 80000000-803ff000

        I/O window 0: 0000bf00-0000feff

        I/O window 1: 00001000-000011ff

        16-bit legacy interface ports at 0001

 

It seems that the board found the PCI device but didn¡¯t recognize it is an
ATI graphics card, framebuffer didn¡¯t start up at all. When I run a Qt
application compiled for ppc_4xx, the serial console displays:

 

Can't open framebuffer device /dev/fb0

: driver cannot connect

 

How can I enable framebuffer? Should I modify the aty128fb driver or
something?

Thanks a lot!

 

Best Regards,

Wang Zhong

 


[-- Attachment #2: Type: text/html, Size: 14632 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: aty128fb PCI card on ppc 405ep taihu board
  2007-10-14  5:24 aty128fb PCI card on ppc 405ep taihu board 王重
@ 2007-10-16  0:37 ` Bill F
  0 siblings, 0 replies; 3+ messages in thread
From: Bill F @ 2007-10-16  0:37 UTC (permalink / raw)
  To: linuxppc-embedded

T24gMTAvMTQvMDcsIKT9rasgPGxhY3JpbW9zYTAyQHNpbmEuY29tPiB3cm90ZToKPiAgICAgICAg
ICBJIGdvdCBhIHRhaWh1IGJvYXJkLiBOb3cgSSB3YW50IHRvIGRpc3BsYXkgZ3JhcGhpY3MgKGJh
c2VkIG9uIFF0KQo+IHRocm91Z2ggYW4gQVRJIDEyOFJBR0UgUENJIGNhcmQuIFRoZSBrZXJuZWwg
aXMgREVOWCBMaW51eCBLZXJuZWwgMi42LjE5LiBJCj4gZm91bmQgYXR5MTI4ZmIgZnJhbWVidWZm
ZXIgZHJpdmVyIGluIG1lbnUgY29uZmlndXJhdGlvbiBhbmQgYnVpbGQtaW4ga2VybmVsLgo+IFRo
ZW4gSSBjb21waWxlIHRoZSBib290IGxvZ28gaW50byB0aGUga2VybmVsLiBJIGFwcGVuZAo+ICJ2
aWRlbz1hdHkxMjhmYjo2NDB4NDgwLTE2QDcwIiB0byB0aGUga2VybmVsIGNvbW1hbmQgbGluZSB0
byBlbmFibGUKPiBmcmFtZWJ1ZmZlci4gV2hlbiB0aGUga2VybmVsIGlzIGJvb3RpbmcsIHRo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ink raw reply	[flat|nested] 3+ messages in thread

* Re: aty128fb PCI card on ppc 405ep taihu board
       [not found] <mailman.3.1192500005.32221.linuxppc-embedded@ozlabs.org>
@ 2007-10-18  2:19 ` 王重
  0 siblings, 0 replies; 3+ messages in thread
From: 王重 @ 2007-10-18  2:19 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

Thanks Bill and thanks Wolfgang! VGA BIOS is the problem. I use scitechsoft
videoboot to initialize the card. Videoboot is based on scitechsoft x86emu
which could run x86 code on other platforms. Now I successfully initialized
the card and get the framebuffer information. But the monitor still gets NO
SIGNAL through the card.

 

Serial console shows framebuffer is enabled: 

 

     videoboot: Booting PCI video card bus 0, function 0, device 6

     aty128fb: Found Intel x86 BIOS ROM Image

     aty128fb: Rage128 BIOS located

     aty128fb: Rage128 RK PCI [chip rev 0x2] 32M 64-bit SDR SGRAM (2:1)

     fb0: ATY Rage128 frame buffer device on Rage128 RK PCI

 

Some information I get from framebuffer:

 

     id = ATY Rage128

     depth =  16

       smemlen = 33554432

       line_length = 0

       FB_TYPE_ = 0

     type_aux = 0

     FB_VISUAL_ = 3

     xpanstep = 8

     ypanstep = 1

     ywrapstep = 0

     mmio_start = bbffc0000d

     mmio_len = 8192

     accel = 32

     xres = 640

     yres = 480

     xres_virtul = 640

     yres_virtul = 480

     xoffset = 0

     yoffset = 0

     bits_per_pixel = 16

 


[-- Attachment #2: Type: text/html, Size: 7895 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-18  2:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-14  5:24 aty128fb PCI card on ppc 405ep taihu board 王重
2007-10-16  0:37 ` Bill F
     [not found] <mailman.3.1192500005.32221.linuxppc-embedded@ozlabs.org>
2007-10-18  2:19 ` 王重

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).