Skip to contentSkip to conversation

Linux for ml310

DISCUSSION Joachim Meyer 5 participants 8 messages Jan 7, 2008 – May 6, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 10 lines · Joachim Meyer

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.

Quoted 9 lines

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

(quoted diff) +0 -2
-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.

Signature · 4 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
#2 lore raw

Linux for ml410

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

#3 lore raw

RE: Linux for ml410

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

Quoted 2 lines

-----Original Message-----
From: [email protected]

[mailto:linuxppc-embedded-

Quoted 7 lines

[email protected]] On Behalf Of mojtaba
Sent: Tuesday, May 06, 2008 10:29 AM
To: [email protected]
Subject: Linux for ml410
=20
Dear All,
I am trying to compile Linux 2.6.25(which I got from git.xilinx) for

ML410

Quoted 1 line

board and I have a problem during compilation. This is the error

message:

Quoted 10 lines

=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

Quoted 1 line

compiler so it cannot dereference it. I do not know what this

structure is

Quoted 8 lines

and where it has been defined. I really appreciate if you can help me. Best regards,
Mojtaba
=20
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#4 lore raw

Hi

I switched "Xilinx uartlite serieal port support" and "Support for console on Xilinxuartlite serialport" on and "8250/16550 and compatible serial support" off, in the kernel config. Then I removed the things I added in the xparameters.h and compiled successfully.
But I have yet a few Questions:

- What would you recommend to use? UART-Lite or a 16550 serial port. Can I get a console running on the RS232 Port of the Board with both possibilities?

- Can you recommend anything for my next steps to get an running linux (rootfs usw.)? So far I oriented myself on the Klingauf page, but I think it is perhaps not the best one because its too old and some things will probably not work the way he did it anymore.

Greez & Thanks
Joachim
_________________________________________________________________________
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114

#5 lore raw
Quoted 7 lines · Joachim Meyer

Hi

I switched "Xilinx uartlite serieal port support" and "Support for console on Xilinxuartlite serialport" on and "8250/16550 and compatible serial support" off, in the kernel config. Then I removed the things I added in the xparameters.h and compiled successfully.
But I have yet a few Questions:

- What would you recommend to use? UART-Lite or a 16550 serial port. Can I get a console running on the RS232 Port of the Board with both possibilities?

if you don't need to change the baud rate at runtime then use the uartlite.

Console works on both.

Quoted 2 lines

- Can you recommend anything for my next steps to get an running linux (rootfs usw.)? So far I oriented myself on the Klingauf page, but I think it is perhaps not the best one because its too old and some things will probably not work the way he did it anymore.

Use either ELDK or buildroot. Personally, I'd like to be using OpenEmbedded, but I haven't been successful with that yet.

Cheers,
g.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#6 lore raw

Hi, I was reading this post and a question came to my mind.

When I try to compile, did I have to copy the EDK driver folder to my Xilinx 2.6 kernel tree and run the cow.tcl script generated by EDK?? Or this is unnecesay??

Quoted 41 lines · Grant Likely-2 wrote:
Quoted 9 lines · Joachim Meyer

Hi

I switched "Xilinx uartlite serieal port support" and "Support for console on Xilinxuartlite serialport" on and "8250/16550 and compatible serial support" off, in the kernel config.
Then I removed the things I added in the xparameters.h and compiled successfully.
But I have yet a few Questions:

Quoted 3 lines

- What would you recommend to use? UART-Lite or a 16550 serial port. Can I get a console running on the RS232 Port of the Board with both possibilities?

if you don't need to change the baud rate at runtime then use the uartlite.

Console works on both.

Quoted 5 lines

- Can you recommend anything for my next steps to get an running linux (rootfs usw.)? So far I oriented myself on the Klingauf page, but I think it is perhaps not the best one because its too old and some things will probably not work the way he did it anymore.

Use either ELDK or buildroot. Personally, I'd like to be using OpenEmbedded, but I haven't been successful with that yet.

Cheers,
g.

Signature · 6 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/Linux-for-ml310-tp14675554p14808605.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
#7 lore raw

If you are using the secretlab.ca or git.xilinx.com trees, then you should *not* follow the normal BSP generation process. You need to generate the BSP in a dummy location and then copy only the xparameters_*.h file over the appropriate one in arch/ppc/platforms/4xx/xparameters and make menuconfig.

Steve

Quoted 2 lines

-----Original Message-----
From: [email protected]

[mailto:linuxppc-embedded-

Quoted 9 lines

[email protected]] On Behalf Of greenlean
Sent: Monday, January 14, 2008 10:42 AM
To: [email protected]
Subject: Re: Linux for ml310
=20
=20
Hi, I was reading this post and a question came to my mind. =20
When I try to compile, did I have to copy the EDK driver folder to my

Xilinx

Quoted 1 line

2.6 kernel tree and run the cow.tcl script generated by EDK?? Or this

is

Quoted 12 lines

unnecesay??
=20
=20
=20
=20

Quoted 6 lines · Grant Likely-2 wrote:
Quoted 4 lines · Joachim Meyer

Hi

I switched "Xilinx uartlite serieal port support" and "Support for console on Xilinxuartlite serialport" on and "8250/16550 and

compatible

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

serial support" off, in the kernel config.
Then I removed the things I added in the xparameters.h and compiled successfully.
But I have yet a few Questions:

- What would you recommend to use? UART-Lite or a 16550 serial

port. Can

Quoted 10 lines
Quoted 10 lines
Quoted 2 lines

I get a console running on the RS232 Port of the Board with both possibilities?

if you don't need to change the baud rate at runtime then use the uartlite.

Console works on both.

Quoted 2 lines

- Can you recommend anything for my next steps to get an running

linux

Quoted 1 line
Quoted 1 line
Quoted 1 line

(rootfs usw.)? So far I oriented myself on the Klingauf page, but I

think

Quoted 1 line
Quoted 1 line
Quoted 1 line

it is perhaps not the best one because its too old and some things

will

Quoted 17 lines
Quoted 8 lines
Quoted 1 line

probably not work the way he did it anymore.

Use either ELDK or buildroot. Personally, I'd like to be using OpenEmbedded, but I haven't been successful with that yet.

Cheers,
g.

Quoted 9 lines

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 3 lines

=20
--
View this message in context:

http://www.nabble.com/Linux-for-ml310-tp14675554p14808605.html

Quoted 6 lines

Sent from the linuxppc-embedded mailing list archive at Nabble.com. =20
_______________________________________________
Linuxppc-embedded mailing list [email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded