Skip to contentSkip to conversation

Linux for ml310

DISCUSSION Joachim Meyer 2 participants 2 messages Jan 9, 2008

lore
Share & tools
lore
#0 lore raw

Hi again

In which xparams* files should i look for the right definition=3F In the xparameters.h from the BSP I can't find it, it looks like this:
-------------------------------------------------------------------
/*
* include/asm-ppc/xparameters.h
*
* This file includes the correct xparameters.h for the CONFIG'ed board *
* Author: MontaVista Software, Inc.
* [email protected]
*
* 2004 (c) MontaVista Software, Inc. This file is licensed under the ter=
ms
* of the GNU General Public License version 2. This program is licensed
* "as is" without any warranty of any kind, whether express or implied. */

#include <linux/config.h>

#if defined(CONFIG=5FXILINX=5FML300)
#include <platforms/4xx/xparameters/xparameters=5Fml300.h> #endif
#if defined(CONFIG=5FXILINX=5FML40x)
#include <platforms/4xx/xparameters/xparameters=5Fml40x.h> #endif
#if defined(CONFIG=5FMEMEC=5F2VPX)
#include <platforms/4xx/xparameters/xparameters=5F2vpx.h> #endif

/*
* A few reasonable defaults for the #defines which could be missing depen=
ding
* on the IP version or variant (e.g. OPB vs PLB)
*/

#ifndef XPAR=5FEMAC=5F0=5FCAM=5FEXIST
#define XPAR=5FEMAC=5F0=5FCAM=5FEXIST 0
#endif
#ifndef XPAR=5FEMAC=5F0=5FJUMBO=5FEXIST
#define XPAR=5FEMAC=5F0=5FJUMBO=5FEXIST 0
#endif
#ifndef XPAR=5FEMAC=5F0=5FTX=5FDRE=5FTYPE
#define XPAR=5FEMAC=5F0=5FTX=5FDRE=5FTYPE 0
#endif
#ifndef XPAR=5FEMAC=5F0=5FRX=5FDRE=5FTYPE
#define XPAR=5FEMAC=5F0=5FRX=5FDRE=5FTYPE 0
#endif
#ifndef XPAR=5FEMAC=5F0=5FTX=5FINCLUDE=5FCSUM
#define XPAR=5FEMAC=5F0=5FTX=5FINCLUDE=5FCSUM 0
#endif
#ifndef XPAR=5FEMAC=5F0=5FRX=5FINCLUDE=5FCSUM
#define XPAR=5FEMAC=5F0=5FRX=5FINCLUDE=5FCSUM 0
#endif

#ifndef XPAR=5FEMAC=5F1=5FCAM=5FEXIST
#define XPAR=5FEMAC=5F1=5FCAM=5FEXIST 0
#endif
#ifndef XPAR=5FEMAC=5F1=5FJUMBO=5FEXIST
#define XPAR=5FEMAC=5F1=5FJUMBO=5FEXIST 0
#endif
#ifndef XPAR=5FEMAC=5F1=5FTX=5FDRE=5FTYPE
#define XPAR=5FEMAC=5F1=5FTX=5FDRE=5FTYPE 0
#endif
#ifndef XPAR=5FEMAC=5F1=5FRX=5FDRE=5FTYPE
#define XPAR=5FEMAC=5F1=5FRX=5FDRE=5FTYPE 0
#endif
#ifndef XPAR=5FEMAC=5F1=5FTX=5FINCLUDE=5FCSUM
#define XPAR=5FEMAC=5F1=5FTX=5FINCLUDE=5FCSUM 0
#endif
#ifndef XPAR=5FEMAC=5F1=5FRX=5FINCLUDE=5FCSUM
#define XPAR=5FEMAC=5F1=5FRX=5FINCLUDE=5FCSUM 0
#endif

#ifndef XPAR=5FGPIO=5F0=5FIS=5FDUAL
#define XPAR=5FGPIO=5F0=5FIS=5FDUAL 0
#endif
#ifndef XPAR=5FGPIO=5F1=5FIS=5FDUAL
#define XPAR=5FGPIO=5F1=5FIS=5FDUAL 0
#endif
#ifndef XPAR=5FGPIO=5F2=5FIS=5FDUAL
#define XPAR=5FGPIO=5F2=5FIS=5FDUAL 0
#endif
#ifndef XPAR=5FGPIO=5F3=5FIS=5FDUAL
#define XPAR=5FGPIO=5F3=5FIS=5FDUAL 0
#endif
#ifndef XPAR=5FGPIO=5F4=5FIS=5FDUAL
#define XPAR=5FGPIO=5F4=5FIS=5FDUAL 0
#endif
----------------------------------------------------

Did I something wrong in the edk Projekt, or are there other xparameters w=
here I must look=3F
Greetings & THX =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Jetzt neu! Sch=FCtzen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/=3Fmc=3D022220

#1 lore raw
Quoted 18 lines · Joachim Meyer

Hi again

In which xparams* files should i look for the right definition? In the xparameters.h from the BSP I can't find it, it looks like this:
-------------------------------------------------------------------
/*
* include/asm-ppc/xparameters.h
*
* This file includes the correct xparameters.h for the CONFIG'ed board *
* Author: MontaVista Software, Inc.
* [email protected]
*
* 2004 (c) MontaVista Software, Inc. This file is licensed under the terms
* of the GNU General Public License version 2. This program is licensed
* "as is" without any warranty of any kind, whether express or implied. */

Quoted 4 lines

#include <linux/config.h>

#if defined(CONFIG_XILINX_ML300)
#include <platforms/4xx/xparameters/xparameters_ml300.h>

<--- Add fixups here.

Quoted 4 lines

#endif
#if defined(CONFIG_XILINX_ML40x)
#include <platforms/4xx/xparameters/xparameters_ml40x.h> #endif

The fixups should look like this:

#define XPAR_UARTNS550_0_CLOCK_FREQ_HZ \
                XPAR_<real-name-from-xparams-ml300>_FREQ_HZ
#define XPAR_INTC_0_UARTNS550_0_VEC_ID \
                XPAR_<real-name-from-xparams-ml300>_VEC_ID

#define XPAR_UARTNS550_0_BASEADDR \
XPAR_<real-name-from-xparams-ml300>_BASEADDR

Note: when you generate the EDK bsp, *make sure* you generated it for the "linux 2.6" target; not "standalone". If you don't then xparams_ml300 will be missing stuff.