<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: Compile time error, compiling Xilinx Linux 2.6 for XPS LLTEMAC</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>Ah, thanks mike... you knocked the answer loose out of my brain...<BR>
<BR>
In EDK 9.2., the ll_temac generates either SDMA or FIFO defines, as necessary.<BR>
The platform data structure contains entries for both, with the correct ones being ignored. In order to get the code to compile, there are some defines in xparameters.h which have:<BR>
<BR>
#ifndef XPAR_LLTEMAC_0_LLINK_CONNECTED_FIFO_INTR<BR>
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_FIFO_INTR 0xdeadbeef<BR>
#endif<BR>
#ifndef XPAR_LLTEMAC_0_LLINK_CONNECTED_DMATX_INTR<BR>
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_DMATX_INTR 0xdeadbeef<BR>
#endif<BR>
#ifndef XPAR_LLTEMAC_0_LLINK_CONNECTED_DMARX_INTR<BR>
#define XPAR_LLTEMAC_0_LLINK_CONNECTED_DMARX_INTR 0xdeadbeef<BR>
#endif<BR>
<BR>
after including xparameter_ml403.h<BR>
<BR>
I'm guessing maybe you overwrote the xparameters.h file and got rid of these redefines? You can define it to be whatever you want, since the value will be ignored if you are using SDMA.<BR>
<BR>
In EDK 10.1, the BSP generator will always generate all the defines (even ones which are not sensible in the current configuration), which avoids the above annoyances.<BR>
<BR>
Steve<BR>
<BR>
-----Original Message-----<BR>
From: linuxppc-embedded-bounces+stephen=neuendorffer.name@ozlabs.org on behalf of Koss, Mike (Mission Systems)<BR>
Sent: Sat 3/15/2008 9:12 PM<BR>
To: Mohammad Sadegh Sadri; linuxppc-embedded@ozlabs.org<BR>
Subject: RE: Compile time error, compiling Xilinx Linux 2.6 for XPS LLTEMAC<BR>
<BR>
That interrupt is defined if you build a xps_ll_temac with the<BR>
xps_ll_fifo interface. Since you already stated that you're using the<BR>
mpmc, I'm going to assume that you have it connected to a SDMA<BR>
controller on the mpmc. As such the driver should be looking for that<BR>
definition, and not the FIFO interrupt. I don't have your version of the<BR>
virtex_devices.c to have a reference as to how the platform device is<BR>
being defined, so hopefully either Stephen N can chime in w/ more<BR>
information, or point me to the version of the virtex_devices.c that<BR>
you're using and I can try to provide some more assistance.<BR>
<BR>
-- Mike<BR>
<BR>
________________________________<BR>
<BR>
From: Mohammad Sadegh Sadri [<A HREF="mailto:mamsadegh@hotmail.com">mailto:mamsadegh@hotmail.com</A>]<BR>
Sent: Saturday, March 15, 2008 4:31 AM<BR>
To: linuxppc-embedded@ozlabs.org<BR>
Subject: Compile time error, compiling Xilinx Linux 2.6 for XPS LLTEMAC<BR>
<BR>
<BR>
All,<BR>
<BR>
that should be a small problem, and i think that its solution should be<BR>
simple,<BR>
<BR>
I generate a base system using EDK 9.2.02 , the base system contains<BR>
XPS_LL_TEMAC , MPMC and other components,<BR>
I generate the software libraries and copy xparameters file into proper<BR>
kernel folder. I configure that kernel and add kernel support for<BR>
XPS_LL_TEMAC.<BR>
<BR>
while doing make I encounter this error:<BR>
<BR>
arch/ppc/syslib/virtex_devices.c:455: error:<BR>
'XPAR_LLTEMAC_0_LLINK_CONNECTED_FIFO_INTR' undeclared here (not in a<BR>
function)<BR>
<BR>
I think that this definition should be available in xparameters_ml403.h<BR>
file but i see that there is no such definition.<BR>
I added a dummy definition for myself there to complete kernel<BR>
compilation, don't know the correct value for it of course.<BR>
<BR>
thanks<BR>
<BR>
<BR>
<BR>
________________________________<BR>
<BR>
Access your files from anywhere with Windows Live SkyDrive! Sign up now<BR>
and get 5GB of space FREE! <<A HREF="http://g.msn.ca/ca55/209">http://g.msn.ca/ca55/209</A>> <BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>