All of lore.kernel.org
 help / color / mirror / Atom feed
* HOTO start with linux 2.6.* and ML403
@ 2007-04-11 13:13 Mirek23
  2007-04-11 21:06 ` Mohammad Sadegh Sadri
  0 siblings, 1 reply; 6+ messages in thread
From: Mirek23 @ 2007-04-11 13:13 UTC (permalink / raw)
  To: linuxppc-embedded


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



-- 
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: HOTO start with linux 2.6.* and ML403
@ 2007-04-11 21:06 ` Mohammad Sadegh Sadri
  2007-04-12 15:30   ` Andrei Konovalov
  2007-04-12 16:08   ` Mohammad Sadegh Sadri
  0 siblings, 2 replies; 6+ messages in thread
From: Mohammad Sadegh Sadri @ 2007-04-11 21:06 UTC (permalink / raw)
  To: miroslaw.dach; +Cc: Linux PPC Linux PPC



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: linuxppc-embedded@ozlabs.org
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=

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HOTO start with linux 2.6.* and ML403
  2007-04-11 21:06 ` Mohammad Sadegh Sadri
@ 2007-04-12 15:30   ` Andrei Konovalov
  2007-04-13 13:53     ` Mirek23
  2007-04-12 16:08   ` Mohammad Sadegh Sadri
  1 sibling, 1 reply; 6+ messages in thread
From: Andrei Konovalov @ 2007-04-12 15:30 UTC (permalink / raw)
  To: Mohammad Sadegh Sadri; +Cc: Linux PPC Linux PPC, miroslaw.dach

Mohammad Sadegh Sadri wrote:
<snip>
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: HOTO start with linux 2.6.* and ML403
  2007-04-11 21:06 ` Mohammad Sadegh Sadri
  2007-04-12 15:30   ` Andrei Konovalov
@ 2007-04-12 16:08   ` Mohammad Sadegh Sadri
  1 sibling, 0 replies; 6+ messages in thread
From: Mohammad Sadegh Sadri @ 2007-04-12 16:08 UTC (permalink / raw)
  To: Andrei Konovalov; +Cc: Linux PPC Linux PPC, miroslaw.dach

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


-----Original Message-----
From:	"Andrei Konovalov" <akonovalov@ru.mvista.com>
Sent:	April 12, 2007 3:30 PM
To:	"Mohammad Sadegh Sadri" <mamsadegh@hotmail.com>
Cc:	"miroslaw.dach@psi.ch" <miroslaw.dach@psi.ch>, "Linux PPC Linux PPC" =
<linuxppc-embedded@ozlabs.org>
Subject:	Re: HOTO start with linux 2.6.* and ML403

Mohammad Sadegh Sadri wrote:
<snip>
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HOTO start with linux 2.6.* and ML403
  2007-04-12 15:30   ` Andrei Konovalov
@ 2007-04-13 13:53     ` Mirek23
  2007-04-13 17:04       ` Leonid
  0 siblings, 1 reply; 6+ messages in thread
From: Mirek23 @ 2007-04-13 13:53 UTC (permalink / raw)
  To: linuxppc-embedded


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



Andrei Konovalov wrote:
> 
> Mohammad Sadegh Sadri wrote:
> <snip>
>> 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
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 

-- 
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: HOTO start with linux 2.6.* and ML403
  2007-04-13 13:53     ` Mirek23
@ 2007-04-13 17:04       ` Leonid
  0 siblings, 0 replies; 6+ messages in thread
From: Leonid @ 2007-04-13 17:04 UTC (permalink / raw)
  To: Mirek23, linuxppc-embedded

On Friday, April 13, 2007 6:53 AM Mirek wrote:
> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-13 17:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-11 13:13 HOTO start with linux 2.6.* and ML403 Mirek23
2007-04-11 21:06 ` Mohammad Sadegh Sadri
2007-04-12 15:30   ` Andrei Konovalov
2007-04-13 13:53     ` Mirek23
2007-04-13 17:04       ` Leonid
2007-04-12 16:08   ` Mohammad Sadegh Sadri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.