ELDK 3.1.1: PCI Video Cards on Lite5200B
Has anyone gotten a pci video card to work on a Lite5200B board?
I have tried several types of ATI PCI cards in our board (based on Lite5200B reference design).
The simplest card I have tried is a Ati Rage XL. Its Vendor ID and Device ID are 1002 & 474D. I was able to find references to it in devlist.h and pci_ids.h but I could not find anything in atyfb_base.c. I created an entry in atychips[] which was based on a hopefully similar device ID = 4752.
When I booted linux with this configuration, I got the following debug sequence:
The MJC messages are my debug output messages.
**************************
MJC: chr_dev_init in mem.c:770
MJC: registering devfs chrdev. chr_dev_init in mem.c:771
MJC: registering memory devfs. chr_dev_init in mem.c:774
MJC: memory_devfs_register in mem.c:756
MJC: rand initializing. chr_dev_init in mem.c:776
MJC: initing fbmem. chr_dev_init in mem.c:783
MJC: fbmem_init in drivers/video/fbmem.c:936
MJC: initing pref funcs. fbmem_init in drivers/video/fbmem.c:954
MJC: initing fb drivers. fbmem_init in drivers/video/fbmem.c:958
mjc: atyfb_init in drivers/video/aty/atyfb_base.c:2475
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
pdev->device=474d, i=21, pci_id=474d
mjc: kmalloc workd; info points in memory: atyfb_init in drivers/video/aty/atyfb_base.c:2522
rp->start=0:0
mjc: apparently not a IORESOURCE_IO: atyfb_init in drivers/video/aty/atyfb_base.c:2543
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
mjc: atyfb_init in drivers/video/aty/atyfb_base.c:3066
mjc: done: atyfb_init in drivers/video/aty/atyfb_base.c:3123
mjc: aty128fb_init in drivers/video/aty128fb.c:2013
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
mjc: aty128_pci_register in drivers/video/aty128fb.c:2046
mjc: pci_enable_device in drivers/pci/pci.c:416
mjc: pci_enable_device_bars in drivers/pci/pci.c:398
mjc: pci_set_power_state in drivers/pci/pci.c:274
mjc: pci_find_capability in drivers/pci/pci.c:192
MJC: pcibios_enable_device in arch/ppc/kernel/pci.c:1549
aty128fb: cannot reserve frame buffer memory
Trying to free nonexistent resource <00000000-ffffffff>
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
*************************
I realize that I was just guessing by adding an entry into atychips[], and I am not tied to that video card. I have tried an ATI 7500 card as it seems to be supported although EXPERIMENTAL ly, but u-boot doesnt seem to recognize its configuration space or at least report a card present.
Has anyone had success in trying to get 2D graphics or even text to display from a pci video card on a Lite5200B board?
Thanks in advance for any help or information you could provide.
Michael Carey
Quoted 1 line · In message <[email protected]> you wrote:
Has anyone gotten a pci video card to work on a Lite5200B board?
Yes. The Coral-P has been working fine for years...
Quoted 2 lines
Has anyone had success in trying to get 2D graphics or even text to display from a pci video card on a Lite5200B board?
Yes.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Our missions are peaceful -- not for conquest. When we do battle, it is only because we have no choice. -- Kirk, "The Squire of Gothos", stardate 2124.5
Hallo Michael,
Quoted 1 line · Michael Carey
Has anyone gotten a pci video card to work on a Lite5200B board?
Yes, but only the Coral-P, and X11 only correctly using a modified X server (xfree86 and xorg).
The problem is the endianess. The Coral-P does not contain a byte swapper for the video memory, so it cannot be easily be used with a big endian CPU like many other grafik chips. Even the successor of the Coral-P has such a byte swapper.
Our modifications to support Z-images are done in the non-accelerated driver in the shadow frame buffer extension.
The Coral-P accelerated driver wasn't very stable when we tested it a while ago, I assume this very much depends on the functions you use.
Roman
Signature · 1 line
Roman Fietze Telemotive AG Büro Mühlhausen