Linux for ml310

4 messages, 4 authors, 2008-05-06 · open the first message on its own page

Linux for ml310

From: Joachim Meyer <hidden>
Date: 2008-01-07 20:41:25

Hi

I'm trying to run a Linux System on a ml310
I'm using the Kernel 2.4.26 from Bitkeeper und and EDK9.1 Sp2
I can compile my Kernel without Errors, with a Crosscompiler made by crosstools, if I don't copy the BSP files in the Kernel Directory.
If I do so, I can't compile. It aborts with the error:
serial.c:4040: error: 'XPAR_UARTNS550_0_CLOCK_FREQ_HZ' undeclared (first use in this function)
If I don't use the UART in my Kernel config I get other errors like:
adapter.c:96: error: `XPAR_XEMAC_NUM_INSTANCES' undeclared (first use in this function)
I don't really know what to do now. Where should I look for the solution?
Did I something wrong by generating the BSP or do I have to use an older version of the edk/ise?

When I was trying to find a solution I read some of the things in this mailing list, and now I'm concered about these 2 points
-Board
-Kernel Version
Is it a good idea to use the ml310?
I want a Linux, an ethernet device, a RS232 device and system-ace. Later I would try to patch the Linux with rtai for real-time-support.
I read about troubles with the ethernet device on the ml310 because of troubles with the pci bus. Would it be much easier to use an XUP-Board?
Would it be easier to use the kernel 2.6.x? Has anybody experience in running an rtai-patched Linux on an ml310 - bzw XUP Board?

Greetings & THX Joachim
______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!		
Jetzt testen! http://produkte.web.de/club/?mc=021130

Re: Linux for ml310

From: Grant Likely <hidden>
Date: 2008-01-07 21:02:22

On 1/7/08, Joachim Meyer [off-list ref] wrote:
Hi

I'm trying to run a Linux System on a ml310
I'm using the Kernel 2.4.26 from Bitkeeper und and EDK9.1 Sp2
I can compile my Kernel without Errors, with a Crosscompiler made by crosstools, if I don't copy the BSP files in the Kernel Directory.
If I do so, I can't compile. It aborts with the error:
serial.c:4040: error: 'XPAR_UARTNS550_0_CLOCK_FREQ_HZ' undeclared (first use in this function)
If I don't use the UART in my Kernel config I get other errors like:
adapter.c:96: error: `XPAR_XEMAC_NUM_INSTANCES' undeclared (first use in this function)
I don't really know what to do now. Where should I look for the solution?
Applying the BSP to the 2.4 kernel is a error prone process.  You need
to be using the *exact* version of the MontaVista kernel that EDK is
expecting, otherwise it breaks and you need to fix it up manually.
2.6 is much better and you don't need to copy over the whole BSP; just
the xparameters.h file.
Did I something wrong by generating the BSP or do I have to use an older version of the edk/ise?

When I was trying to find a solution I read some of the things in this mailing list, and now I'm concered about these 2 points
-Board
-Kernel Version
Is it a good idea to use the ml310?
I want a Linux, an ethernet device, a RS232 device and system-ace. Later I would try to patch the Linux with rtai for real-time-support.
I read about troubles with the ethernet device on the ml310 because of troubles with the pci bus. Would it be much easier to use an XUP-Board?
Would it be easier to use the kernel 2.6.x? Has anybody experience in running an rtai-patched Linux on an ml310 - bzw XUP Board?
I strongly recommend moving to 2.6.  I don't know if anyone has got
rtai going on it for the virtex, but your chances of getting help are
much higher because virtex 2.6 support is being actively developed.

As for the XUP board, I haven't had a chance to get mine running yet,
but I know others have had good success with it.

Cheers,
g.


-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

Linux for ml410

From: mojtaba <hidden>
Date: 2008-05-06 17:27:50

Dear All,
I am trying to compile Linux 2.6.25(which I got from git.xilinx) for ML410
board and I have a problem during compilation. This is the error message:

 CC      arch/ppc/platforms/4xx/xilinx_generic_mlxxx.o
arch/ppc/platforms/4xx/xilinx_generic_mlxxx.c: In function
'virtex_device_fixup':
arch/ppc/platforms/4xx/xilinx_generic_mlxxx.c:31: error: dereferencing
pointer to incomplete type
make[1]: *** [arch/ppc/platforms/4xx/xilinx_generic_mlxxx.o] Error 1
make: *** [arch/ppc/platforms/4xx] Error 2

it seems that xlltemac_platform_data structure is not recognized by the
compiler so it cannot dereference it. I do not know what this structure is
and where it has been defined. I really appreciate if you can help me.
Best regards,
Mojtaba

RE: Linux for ml410

From: Stephen Neuendorffer <hidden>
Date: 2008-05-06 17:31:09

I'm guessing you used the standard BSP generation process, which
overwrites files in the kernel.  Instead, you should generate the BSP
into a dummy directory and copy only the xparameters_*.h file over to
the kernel.  This is all that is needed in the git tree, since it
contains all of the required drivers.

Steve
-----Original Message-----
From: linuxppc-embedded-bounces+stephen=3Dneuendorffer.name@ozlabs.org
[mailto:linuxppc-embedded-
bounces+stephen=3Dneuendorffer.name@ozlabs.org] On Behalf Of mojtaba
Sent: Tuesday, May 06, 2008 10:29 AM
To: linuxppc-embedded@ozlabs.org
Subject: Linux for ml410
=20
Dear All,
I am trying to compile Linux 2.6.25(which I got from git.xilinx) for
ML410
board and I have a problem during compilation. This is the error
message:
=20
 CC      arch/ppc/platforms/4xx/xilinx_generic_mlxxx.o
arch/ppc/platforms/4xx/xilinx_generic_mlxxx.c: In function
'virtex_device_fixup':
arch/ppc/platforms/4xx/xilinx_generic_mlxxx.c:31: error: dereferencing
pointer to incomplete type
make[1]: *** [arch/ppc/platforms/4xx/xilinx_generic_mlxxx.o] Error 1
make: *** [arch/ppc/platforms/4xx] Error 2
=20
it seems that xlltemac_platform_data structure is not recognized by
the
compiler so it cannot dereference it. I do not know what this
structure is
and where it has been defined. I really appreciate if you can help me.
Best regards,
Mojtaba
=20
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help