[Ilugc] help regarding powerpc and vga card

  • From: urwithsudheer@xxxxxxxxx (sudheer)
  • Date: Fri Jul 14 12:08:18 2006

Shakthi Kannan wrote:

Hi Sudheer,

--- sudheer <urwithsudheer@xxxxxxxxx> wrote:
 

PCI enumuration from 
u-boot does not detect my VGA card whereas it
detects other cards like 
ethernet in the same slot.
   


Since, PCI is working fine with u-boot, you can write
a stand-alone main() routine to be run by u-boot to
read the PCI configuration space for the VGA card.
Check if you can read the vendor ID/device ID and that
the VGA controller is responding. If it works, you are
probably missing some configuration with u-boot for
your device.
 

I have tried this option writing a small code in u-boot/common/cmd_pci.c
The code is below.

for(Device = 0; Device <32; Device++){
        printf("\ndevice %d", Device);
         for(Function =0;Function <8;Function++){
            dev = PCI_BDF(BusNum, Device, Function);
            pci_read_config_word(dev, PCI_VENDOR_ID, &VendorID);
            if (VendorID != 0xFFFF){
                    printf("\nFound PCI device %02x.%02x.%02x:    ",  
BusNum, Device, Function);
                    printf("vendor id 0x%x",VendorID);
            }
        }
    }
Even then the card couldn't get detect.

Thanks & Regards
Sudheer

http://www.xml.com/ldd/chapter/book/ch15.html

http://www.tldp.org/LDP/tlk/dd/pci.html

SK

--
Shakthi Kannan
http://www.shakthimaan.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ;
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

 


Other related posts: