From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by ozlabs.org (Postfix) with ESMTP id 5DC57DDE16 for ; Sun, 9 Dec 2007 16:51:31 +1100 (EST) Received: by wa-out-1112.google.com with SMTP id m28so2680316wag for ; Sat, 08 Dec 2007 21:51:30 -0800 (PST) Message-ID: <169c03cb0712082151k74e504bvc6e21bb57534ef28@mail.gmail.com> Date: Sun, 9 Dec 2007 00:51:30 -0500 From: "Jean-Samuel Chenard" Sender: jsamch@gmail.com To: linuxppc-embedded@ozlabs.org Subject: Xilinx ML310 Linux 2.6 PCI bridge MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14531_27785716.1197179490757" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_14531_27785716.1197179490757 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Thanks to the valuable information provided by this discussion group and particularly by Grant Likely from Secret Lab Technologies, I was able to setup and run Linux 2.6 on my ML-310 development platform. On the ML-310, if I want to use the Ethernet port and some other peripherals, I need to go through the PCI bus via the opb_pci core on the FPGA. However, when I enable PCI support in the kernel, I get the following error messages: arch/ppc/syslib/ppc4xx_setup.c: In function `ppc4xx_map_io': arch/ppc/syslib/ppc4xx_setup.c:118: error: `PPC4xx_PCI_IO_VADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:118: error: (Each undeclared identifier is reported only once arch/ppc/syslib/ppc4xx_setup.c:118: error: for each function it appears in.= ) arch/ppc/syslib/ppc4xx_setup.c:119: error: `PPC4xx_PCI_IO_PADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:119: error: `PPC4xx_PCI_IO_SIZE' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:120: error: `PPC4xx_PCI_CFG_VADDR' undeclare= d (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:121: error: `PPC4xx_PCI_CFG_PADDR' undeclare= d (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:121: error: `PPC4xx_PCI_CFG_SIZE' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:122: error: `PPC4xx_PCI_LCFG_VADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:123: error: `PPC4xx_PCI_LCFG_PADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:123: error: `PPC4xx_PCI_LCFG_SIZE' undeclare= d (first use in this function) make[1]: *** [arch/ppc/syslib/ppc4xx_setup.o] Error 1 My Xilinx Platform Studio has the proper PCI bridge component, but the exported constants in xparameters_ml300.h are not helping me figure out the mapping that I should give to those PPC4xx values (the parameters contain a lot of XPAR_PCI32_BRIDGE_* constants). I'm guessing that the address mappings must be set from some of those for the PCI range to appear in the PowerPC address space. Please correct me if I'm misunderstanding something here... I only saw one mention of this error related to the ML-310 in a discussion dating in 2005 and the answer was that the 2.6 kernel was not supporting th= e Virtex-II Pro too well at the time. Has this changed and does anyone have had success using the PCI bridge in Linux 2.6 on an ML-310 development platform ? Thanks, Jean-Samuel --=20 Integrated Microsystems Laboratory McGill University, Montr=E9al, QC, CANADA Web Page: http://chaos.ece.mcgill.ca ------=_Part_14531_27785716.1197179490757 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

Thanks to the valuable information provided by this discussion g= roup and particularly by Grant Likely from Secret Lab Technologies, I was a= ble to setup and run Linux 2.6 on my ML-310 development platform.

On the ML-310, if I want to use the Ethernet port and some other peripheral= s, I need to go through the PCI bus via the opb_pci core on the FPGA.
However, when I enable PCI support in the kernel, I get the following err= or messages:

arch/ppc/syslib/ppc4xx_setup.c: In function `ppc4xx_map_io':arch/ppc/syslib/ppc4xx_setup.c:118: error: `PPC4xx_PCI_IO_VADDR' undec= lared (first use in this function)
arch/ppc/syslib/ppc4xx_setup.c:118: e= rror: (Each undeclared identifier is reported only once
arch/ppc/syslib/ppc4xx_setup.c:118: error: for each function it appears= in.)
arch/ppc/syslib/ppc4xx_setup.c:119: error: `PPC4xx_PCI_IO_PADDR= 9; undeclared (first use in this function)
arch/ppc/syslib/ppc4xx_setup.= c:119: error: `PPC4xx_PCI_IO_SIZE' undeclared (first use in this functi= on)
arch/ppc/syslib/ppc4xx_setup.c:120: error: `PPC4xx_PCI_CFG_VADDR' u= ndeclared (first use in this function)
arch/ppc/syslib/ppc4xx_setup.c:12= 1: error: `PPC4xx_PCI_CFG_PADDR' undeclared (first use in this function= )
arch/ppc/syslib/ppc4xx_setup.c:121: error: `PPC4xx_PCI_CFG_SIZE' un= declared (first use in this function)
arch/ppc/syslib/ppc4xx_setup.c:122= : error: `PPC4xx_PCI_LCFG_VADDR' undeclared (first use in this function= )
arch/ppc/syslib/ppc4xx_setup.c:123: error: `PPC4xx_PCI_LCFG_PADDR' = undeclared (first use in this function)
arch/ppc/syslib/ppc4xx_setup.c:1= 23: error: `PPC4xx_PCI_LCFG_SIZE' undeclared (first use in this functio= n)
make[1]: *** [arch/ppc/syslib/ppc4xx_setup.o] Error 1

My Xilinx = Platform Studio has the proper PCI bridge component, but the exported const= ants in xparameters_ml300.h are not helping me figure out the mapping that = I should give to those PPC4xx values (the parameters contain a lot of XPAR_= PCI32_BRIDGE_* constants).  I'm guessing that the address mappings= must be set from some of those for the PCI range to appear in the PowerPC = address space.  Please correct me if I'm misunderstanding somethin= g here...

I only saw one mention of this error related to the ML-310 in a dis= cussion dating in 2005 and the answer was that the 2.6 kernel was not suppo= rting the Virtex-II Pro too well at the time.  Has this changed and do= es anyone have had success using the PCI bridge in Linux=20 2.6 on an ML-310 development platform ?

Thanks,
Jean-Samuel
--
Integrated Microsystems Laboratory
McGill Univers= ity, Montr=E9al, QC, CANADA
Web Page: http://chaos.ece.mcgill.ca ------=_Part_14531_27785716.1197179490757--