Skip to contentSkip to conversation

HOTO start with linux 2.6.* and ML403

DISCUSSION Mirek23 4 participants 6 messages Apr 11, 2007 – Apr 13, 2007

lore
Share & tools
lore

Mirek23

author
#0 lore raw

I am new in embedded linux on xilinx boards.

I have found great links how to deal with linuxppc 2.4 and xilinx boards like:
http://www.klingauf.de/v2p/index.phtml
unfortunately I did not find a similar page refering to kernel 2.6.

I have tried on my own to load kernel 2.6.20 from kernel.org I have modified the Makfile setting:
ARCH := ppc
CROSS_COMPILE := powerpc-405-linux-gnu-

I have configured the kernel according to the description:
http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/

and just after "make zImage" I have got:
CC arch/powerpc/kernel/ptrace.o
arch/powerpc/kernel/ptrace.c:537:1: directives may not be used inside a macro argument
arch/powerpc/kernel/ptrace.c:536:36: unterminated argument list invoking macro "audit_syscall_entry"
arch/powerpc/kernel/ptrace.c: In function `do_syscall_trace_enter':
arch/powerpc/kernel/ptrace.c:538: warning: implicit declaration of function `audit_syscall_entry'
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: syntax error before ')' token make[1]: *** [arch/powerpc/kernel/ptrace.o] Error 1
make: *** [arch/powerpc/kernel] Error 2

I do not know if the kernel 2.6.20 is the most suitable one to deal with xilinx boards?

What would be than the best kernel version 2.6.* to deal with ML403 and the Board support package generated by Xilinx EDK 8.2 SP2?

Where to find some good reference how to start with linux 2.6.* and ML403 (or simillar boards).

Thanks in advance for every hint.

Mirek

Signature · 2 lines
View this message in context: http://www.nabble.com/HOTO-start-with-linux-2.6.*-and-ML403-tf3559287.html#a9939239
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
#1 lore raw

Well
If you study the posts here in this mailing list you will find all info nee= ded

just a brief description=20

for cross compilation you can use eldk, use eldk 4.0 ( I was some body had = problems with 4.1 )
study the installation documentation for eldk and set the proper PATH varia= ble:

in my case=20

PATH=3D$PATH:/home/sadri/hdl/eldk/bin:/home/sadri/hdl/eldk/usr/bin:/home/sa= dri/hdl/eldk/ppc_4xx/bin:/home/ sadri/hdl/eldk/ppc_4xx/usr/bin:/usr/matlab/bin

then in kernel's Makefile, you will set
ARCH :=3D ppc
CROSS_COMPILE :=3D ppc_4xx-

well, 2.6.20 can be a suitable choice, I have successfully compiled it for = ml403 and bring it up
but at the first step i suggest you to use mvista source , downloadable fro= m source.mvista.com ( using git )
after your first experince, you can swith to the main kernel

well, if you want i can send you my .config file ( I posted it to this mail= ing list some thing near two days ago ). as you know .config contains your = kernel configuration so replace it with your own .config file in mvista's k= ernel source.=20

after copied the .config file, run make menuconfig and see what options are=
set and what not

and finally about the stuff generated by edk 8.2 , they are useless at all = :D That is too funny yes?
from all of the files generated there you will need just xparameters.h and = xparameters_ml403.h and nothing more
if using mvista source, you will not even need these two files the files av= ailable in the source are ok themselves
edk generated file is useful when you have purchased either one of mvista o= r windriver linux dev kits for ml403, which is as I said in prev posts here= , unacceptable in any manner.

thanks
mohammad s sadri

---------------------------------------------------------------------------
Date: Wed, 11 Apr 2007 06:13:38 -0700 (PDT)
From: Mirek23=20
Subject: HOTO start with linux 2.6.* and ML403
To: [email protected]
Message-ID:=20
Content-Type: text/plain; charset=3Dus-ascii
=20
=20
I am new in embedded linux on xilinx boards.
=20
I have found great links how to deal with linuxppc 2.4 and xilinx boards like:
http://www.klingauf.de/v2p/index.phtml
unfortunately I did not find a similar page refering to kernel 2.6. =20
I have tried on my own to load kernel 2.6.20 from kernel.org
I have modified the Makfile setting:
ARCH :=3D ppc
CROSS_COMPILE :=3D powerpc-405-linux-gnu-
=20
I have configured the kernel according to the description:
http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx=
-virtex-ii-pro-boards-part-i/
=20
and just after "make zImage" I have got:
CC arch/powerpc/kernel/ptrace.o
arch/powerpc/kernel/ptrace.c:537:1: directives may not be used inside a macro argument
arch/powerpc/kernel/ptrace.c:536:36: unterminated argument list invoking macro "audit_syscall_entry"
arch/powerpc/kernel/ptrace.c: In function `do_syscall_trace_enter':
arch/powerpc/kernel/ptrace.c:538: warning: implicit declaration of function `audit_syscall_entry'
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: warning: left-hand operand of comma expression has no effect
arch/powerpc/kernel/ptrace.c:544: syntax error before ')' token make[1]: *** [arch/powerpc/kernel/ptrace.o] Error 1
make: *** [arch/powerpc/kernel] Error 2
=20
I do not know if the kernel 2.6.20 is the most suitable one to deal with xilinx boards?
=20
What would be than the best kernel version 2.6.* to deal with ML403 and the Board support package generated by Xilinx EDK 8.2 SP2?
=20
Where to find some good reference how to start with linux 2.6.* and ML403 (or simillar boards).
=20
Thanks in advance for every hint.
=20
Mirek
=20
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=3D7+wonders+world&mkt=3Den-US&form=3DQ=
BRE=

#2 lore raw

Mohammad Sadegh Sadri wrote:
<snip>

Quoted 2 lines

from all of the files generated there you will need just xparameters.h and xparameters_ml403.h and nothing more if using mvista source, you will not even need these two files the files available in the source are ok themselves

- they are OK if you use ML403 and the EDK reference design for this board. For custom FPGA configuration you should use the EDK generated xparameters_ml403.h (if you use EDK to build the bitstream).

Thanks,
Andrei

author
#3 lore raw

I was able finally to build the kernel 2.6.19 by Denx. The problem was that I have previously used crosstool with gcc-3.2. At the end I was able to compile the kernel with crosstool gcc-4.0.2.

I have compared the xparameters_ml403.h file which comes with the kernel and this one generated by EDK. They are very different. Thera are different macro definitions.

In the Kernel xparameters_ml403.h I did not find any reference to the XILINX_TEMAC network interface. I did not find references to GPIO LEDS and end swiches. Many other definitions do not much.

What would be than the best way to go:

1. To incoroprate to the linux 2.6.19, drivers generated by the EDK or
2. to somhow make use of the existing drivers which come with linux 2.6.19

Best Regards

Mirek

Quoted 22 lines · Andrei Konovalov

Mohammad Sadegh Sadri wrote:
<snip>

Quoted 4 lines

from all of the files generated there you will need just xparameters.h and xparameters_ml403.h and nothing more
if using mvista source, you will not even need these two files the files available in the source are ok themselves

- they are OK if you use ML403 and the EDK reference design for this board.
For custom FPGA configuration you should use the EDK generated
xparameters_ml403.h (if you
use EDK to build the bitstream).

Thanks,
Andrei
_______________________________________________
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/HOTO-start-with-linux-2.6.*-and-ML403-tf3559287.html#a9979404
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
#4 lore raw
Quoted 2 lines · Mirek

In the Kernel xparameters_ml403.h I did not find any reference to the XILINX_TEMAC network interface.=20

It is not there since patch I've sent you (provided by Lorentz Kolb) is designed to work with standard ML403 EDK design which has EMAC, not TEMAC. I didn't try to use TEMAC on ML403 though I'm using it on my proprietary Virtex4 based board.=20

Answers on your other questions see in my personal e-mail.

Leonid.

#5 lore raw
In reply to Mohammad Sadegh Sadri

oh yes
completely correct andrei
i should have mention that , but i forgot.
thanks

-----Original Message-----
From: "Andrei Konovalov" <[email protected]>
Sent: April 12, 2007 3:30 PM
To: "Mohammad Sadegh Sadri" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Linux PPC Linux PPC" =
<[email protected]>
Subject: Re: HOTO start with linux 2.6.* and ML403

Mohammad Sadegh Sadri wrote:
<snip>

Quoted 1 line

from all of the files generated there you will need just xparameters.h =

and xparameters_ml403.h and nothing more

Quoted 1 line

if using mvista source, you will not even need these two files the =

files available in the source are ok themselves

- they are OK if you use ML403 and the EDK reference design for this = board.
For custom FPGA configuration you should use the EDK generated =
xparameters_ml403.h (if you
use EDK to build the bitstream).

Thanks,
Andrei