PCI on ML310 Xilinx board

Hello,

I'm trying to use Linux 2.6 on the ML310 Xilinx board with PCI support. After adding the PCI bridge, I generate the BSP headers to compile the Linux kernel. I do __make menuconfig__ and add PCI support but when I __make__ I get the following errors:

arch/ppc/syslib/ppc4xx_setup.c: In function `ppc4xx_map_io': arch/ppc/syslib/ppc4xx_setup.c:123: error: `PPC4xx_PCI_IO_VADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:123: error: (Each undeclared identifier is reported only once arch/ppc/syslib/ppc4xx_setup.c:123: error: for each function it appears in.) arch/ppc/syslib/ppc4xx_setup.c:124: error: `PPC4xx_PCI_IO_PADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:124: error: `PPC4xx_PCI_IO_SIZE' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:125: error: `PPC4xx_PCI_CFG_VADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:126: error: `PPC4xx_PCI_CFG_PADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:126: error: `PPC4xx_PCI_CFG_SIZE' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:127: error: `PPC4xx_PCI_LCFG_VADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:128: error: `PPC4xx_PCI_LCFG_PADDR' undeclared (first use in this function) arch/ppc/syslib/ppc4xx_setup.c:128: error: `PPC4xx_PCI_LCFG_SIZE' undeclared (first use in this function) make[1]: *** [arch/ppc/syslib/ppc4xx_setup.o] Error 1

What do I have to do to get rid of these errors? Is there a patch available?

Thanks a lot, Sven

Reply to
Sven Gowal
Loading thread data ...

Currently, the 2.6 Linux kernel only has very limited support for V2P and V4. Please use the Linux 2.4 kernel and consult the ML310 web pages

formatting link
on how to get Linux, including PCI, up and running on the ML310.

In the 2.4 kernel these constants are defined in arch/ppc/platforms/xilinx_ml300.h

- Peter

Sven Gowal wrote:

Reply to
Peter Ryser

Unfortunately I have to use the linux 2.6 kernel... but thanks for the info.

- Sven

Reply to
Sven Gowal

What features of the 2.6 kernel do you require? Just curious...

Paul

Sven Gowal wrote:

Reply to
Paul Hartke

Actually, I could use Linux 2.4 but it would ask me to make all my char drivers compatible with it. Since they changed a lot of stuff for module compiling, loading, ... it would be too much work.

Sven

Reply to
Sven Gowal

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.