Skip to contentSkip to conversation

Problems on porting linux 2.6 to xilinx ML410

DISCUSSION woyuzhilei 4 participants 9 messages Aug 24, 2007 – Aug 25, 2007

lore
Share & tools
lore

woyuzhilei

author
#0 lore raw

Hey:
Recently I'm doing some project on Xilinx Ml410 evaluation board.The first step is porting linux 2.6 to ml410,but I got some problems on this,and my project cann't proceed,so I come to you for some help.
I use the linux kernel source tree download from http://git.secretlab.ca/git/linux-2.6-virtex.git (The latest one).Add the file the xparameters.h,xparameter_ml40x.h. Then add arch/ppc/platforms/4xx/xilinx_generic_ppc.c(Use the patch I get here),and change it's name to ml40x.c,then I make some necessay change of the configuration files to accept selecting a Ml40x type board.Then compile the kernel,and get the image file from arch/ppc/boot/images, (On kernel compiling,the only device driver I sellect is " 8250/16550 and compatible serial support ").After that I download the zImage.elf file to the target board,and run it.But there is no output from the serial port at all.Am I doing somthing wrong?I really don't know goes wrong. Can anyone here help me with this?Any help from you is appreciated.Thank you very much!

woyuzhilei
2007-08-24

#1 lore raw
Quoted 12 lines · woyuzhilei

Hey:
Recently I'm doing some project on Xilinx Ml410 evaluation board.The
first step is porting linux 2.6 to ml410,but I got some problems on this,and my project cann't proceed,so I come to you for some help.
I use the linux kernel source tree download from
http://git.secretlab.ca/git/linux-2.6-virtex.git (The
latest one).Add the file the xparameters.h,xparameter_ml40x.h. Then add arch/ppc/platforms/4xx/xilinx_generic_ppc.c(Use the patch I
get here),and change it's name to ml40x.c,then I make some necessay change of the configuration files to accept selecting a Ml40x type board.

You shouldn't need to do all of this; only the xparameters_ml40x.h file is needed. To get started, I'd just use replace xparameters_ml403.h with your custom xparameters_ml40x.h and use the ml403 board port. Once you've got it booting, you can get more fancy.

Quoted 8 lines

Then
compile the kernel,and get the image file from arch/ppc/boot/images, (On kernel compiling,the only device driver I sellect is " 8250/16550 and compatible serial support ").After that I download the zImage.elf file to the target board,and run it.But there is no output from the serial port at all.Am I doing somthing wrong?I really don't know goes wrong.
Can anyone here help me with this?Any help from you is appreciated.Thank
you very much!

Make sure you've got 16550 console support enabled and 'console=/dev/ttyS0' in your kernel command line.

Cheers,
g.

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

Thank you very much for your help!I think there may be somthing wrong with my kernel command line.

woyuzhilei
2007-08-25

发件人: Grant Likely
发送时间: 2007-08-25 02:21:11
收件人: woyuzhilei
抄送: linuxppc-embedded
主题: Re: Problems on porting linux 2.6 to xilinx ML410

Quoted 12 lines · woyuzhilei

Hey:
Recently I'm doing some project on Xilinx Ml410 evaluation board.The
first step is porting linux 2.6 to ml410,but I got some problems on this,and my project cann't proceed,so I come to you for some help.
I use the linux kernel source tree download from
http://git.secretlab.ca/git/linux-2.6-virtex.git (The
latest one).Add the file the xparameters.h,xparameter_ml40x.h. Then add arch/ppc/platforms/4xx/xilinx_generic_ppc.c(Use the patch I
get here),and change it's name to ml40x.c,then I make some necessay change of the configuration files to accept selecting a Ml40x type board.

You shouldn't need to do all of this; only the xparameters_ml40x.h file is needed. To get started, I'd just use replace xparameters_ml403.h with your custom xparameters_ml40x.h and use the ml403 board port. Once you've got it booting, you can get more fancy.

Quoted 8 lines

Then
compile the kernel,and get the image file from arch/ppc/boot/images, (On kernel compiling,the only device driver I sellect is " 8250/16550 and compatible serial support ").After that I download the zImage.elf file to the target board,and run it.But there is no output from the serial port at all.Am I doing somthing wrong?I really don't know goes wrong.
Can anyone here help me with this?Any help from you is appreciated.Thank
you very much!

Make sure you've got 16550 console support enabled and 'console=/dev/ttyS0' in your kernel command line.

Cheers,
g.

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

how to get your linux-2.6-virtex tree?

In reply to Grant Likely

Dear Grant,
I am trying to get your linux-2.6-virtex tree. When I release the command "git-clone git://git.secretlab.ca/git/linux-2.6-virtex.git", it shows

fatal: unexpected EOF
fetch-pack from 'git://git.secretlab.ca/git/linux-2.6-virtex.git' failed.

How can I get your tree? Thanks for your telling.

BR
Ming

_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com

#4 lore raw

Re: how to get your linux-2.6-virtex tree?

Quoted 6 lines · Ming Liu

Dear Grant,
I am trying to get your linux-2.6-virtex tree. When I release the command "git-clone git://git.secretlab.ca/git/linux-2.6-virtex.git", it shows

fatal: unexpected EOF
fetch-pack from 'git://git.secretlab.ca/git/linux-2.6-virtex.git' failed.

Hmmm.... Works fine from my machines.

What does 'dig git.secretlab.ca' tell you? I see this:
;; ANSWER SECTION:
git.secretlab.ca. 1320 IN A 208.123.74.12

Have you tried the git:// protocol?

This is what I get when I clone from another machine:

grant@trillian:~/temp$ git-clone
git://git.secretlab.ca/git/linux-2.6-virtex.git
Initialized empty Git repository in /home/grant/temp/linux-2.6-virtex/.git/
remote: Generating pack...
remote: Counting objects: 504459
remote: Done counting 548333 objects.
remote: Deltifying 548333 objects...
remote:  100% (548333/548333) done
Indexing 548333 objects...
remote: Total 548333 (delta 445331), reused 547457 (delta 444455)
 100% (548333/548333) done
Resolving 445331 deltas...
 100% (445331/445331) done
Checking 22546 files out...
 100% (22546/22546) done
grant@trillian:~/temp$

---
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected]
(403) 399-0195

#5 lore raw

Re: how to get your linux-2.6-virtex tree?

Quoted 4 lines · Grant Likely

Hmmm.... Works fine from my machines.

grant@trillian:~/temp$ git-clone
git://git.secretlab.ca/git/linux-2.6-virtex.git

I just checked it for you, both http and git are working.

Signature · 2 lines
Jon Smirl
[email protected]
#6 lore raw

Re: how to get your linux-2.6-virtex tree?

In reply to Grant Likely

Dear Grant,

Quoted 3 lines

What does 'dig git.secretlab.ca' tell you? I see this:
;; ANSWER SECTION:
git.secretlab.ca. 1320 IN A 208.123.74.12

I released 'dig git.secretlab.ca' and saw this: ;; QUESTION SECTION:
;git.secretlab.ca. IN A

;; ANSWER SECTION:
git.secretlab.ca. 855 IN A 208.123.74.12

Quoted 1 line

Have you tried the git:// protocol?

Yes. I tried both git:// and http://.

For git:// protocal:
mingliu@romeo ~ $ git-clone git://git.secretlab.ca/git/linux-2.6-virtex.git
fatal: unexpected EOF
fetch-pack from 'git://git.secretlab.ca/git/linux-2.6-virtex.git' failed.

For http:// protocal:
mingliu@romeo ~ $ git-clone http://git.secretlab.ca/git/linux-2.6-virtex.git
Getting alternates list for http://git.secretlab.ca/git/linux-2.6-virtex.git/
Getting pack list for http://git.secretlab.ca/git/linux-2.6-virtex.git/
Getting index for pack d1a6ff0f5f0433214bc37fd3038ff75f080c073d Getting index for pack 41af2e852d9cb50ce5c8b3fe77c269780b979323 Getting index for pack a36ffcb5ecf2e87cbd9da9384dc9bd617f6169c4 Getting pack a36ffcb5ecf2e87cbd9da9384dc9bd617f6169c4
which contains 0d62d8a8e639210cecab55f5921f293cb8250a31
walk 0d62d8a8e639210cecab55f5921f293cb8250a31
walk f9892f74b7d827a7d1b80cd418aca30f32b46c73
Getting pack d1a6ff0f5f0433214bc37fd3038ff75f080c073d
which contains ebf9bf84da0aab5ed944264a5db2a65fe3a3e883
......

Is that the problem of my cluster? Ohmm. I need to check this now.

BR
Ming

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/

#7 lore raw

Re: how to get your linux-2.6-virtex tree?

Quoted 6 lines · Ming Liu

Dear Grant,

Quoted 3 lines

What does 'dig git.secretlab.ca' tell you? I see this:
;; ANSWER SECTION:
git.secretlab.ca. 1320 IN A 208.123.74.12

Quoted 6 lines

I released 'dig git.secretlab.ca' and saw this:
;; QUESTION SECTION:
;git.secretlab.ca. IN A

;; ANSWER SECTION:
git.secretlab.ca. 855 IN A 208.123.74.12

Upgrade to a newer version of git. git.secretlab.ca uses the virtual hosting feature of git daemon, but you need to be using git version > 1.5

Cheers,
g.

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

Re: how to get your linux-2.6-virtex tree?

Dear Grant,
That's right!!! My git's version is quite old. OK then. Thus I will upgrade my git and obtain your kernel tree. Thanks for your help.

BR
Ming

Quoted 24 lines

From: "Grant Likely" <[email protected]>
To: "Ming Liu" <[email protected]>
CC: [email protected]
Subject: Re: how to get your linux-2.6-virtex tree?
Date: Sat, 25 Aug 2007 09:24:31 -0600

Quoted 6 lines · Ming Liu

Dear Grant,

Quoted 3 lines

What does 'dig git.secretlab.ca' tell you? I see this:
;; ANSWER SECTION:
git.secretlab.ca. 1320 IN A 208.123.74.12

Quoted 6 lines

I released 'dig git.secretlab.ca' and saw this:
;; QUESTION SECTION:
;git.secretlab.ca. IN A

;; ANSWER SECTION:
git.secretlab.ca. 855 IN A 208.123.74.12

Upgrade to a newer version of git. git.secretlab.ca uses the virtual hosting feature of git daemon, but you need to be using git version > 1.5

Quoted 8 lines

Cheers,
g.

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn