FPGARelated.com
Forums

porting linux on ml403

Started by ramesh January 25, 2006
Hi All,
Iam new to xilinx platfrom.

I was trying to port open source linux on Ml403 board. i tried to
follow the instructions in the below link.
http://www.klingauf.de/v2p/index.phtml
i was getting errors when i was running bZimage. the .elf file was not
getting created.

Is there an alternative way of acheiving my goal.
Kindly suggest.
Thanks in advance.

Ramesh

Doesn't the ml403 come with a Linux distribution? Why would you need to port
anything?

"ramesh" <ramesh@embeyond.com> wrote in message
news:1138173378.715130.86900@g43g2000cwa.googlegroups.com...
> Hi All, > Iam new to xilinx platfrom. > > I was trying to port open source linux on Ml403 board. i tried to > follow the instructions in the below link. > http://www.klingauf.de/v2p/index.phtml > i was getting errors when i was running bZimage. the .elf file was not > getting created. > > Is there an alternative way of acheiving my goal. > Kindly suggest. > Thanks in advance. > > Ramesh >
ramesh wrote:
> Hi All, > Iam new to xilinx platfrom. > > I was trying to port open source linux on Ml403 board. i tried to
I should probably note that Xilinx leaches a hell of a lot of value off open source by using Linux as a host platform for it's tools, GCC as the main production compiler for PPC core software, GNU for the libraries for PPC, and Linux in several forms as host operating systems for it's product offerings. It's probably worth writing Austin, Peter, and the other regular usenet posters from Xilinx and making it clear just how much Xilinx benefits from open source, the Xilinx market created by open source, and the developers which frequently volunteer their time supporting Xilinx open source use. And then suggest that they take their thumb off the JHDLBits project, and start doing a better job of contributing back to the open source community. If that isn't enough to get their attention, maybe switching design wins to Altera and letting Xilinx sales know why. The JHDLBits team boldly set out to provide open source Xilinx tools before getting shut down by Xilinx. References are a dead sourceforge project, and some papers: http://www.ccm.ece.vt.edu/papers/poetter_2004_ERSA04_jhdlbits.pdf http://www.ccm.ece.vt.edu/papers/poetter_2004_FPL04_jhdlbits.pdf Plus see the teams thesis work: http://www.ccm.ece.vt.edu/papers/ The wire data base, router, fpga simulator, and the main JHDLBits tools are a valuable reconfigurable computing resource for the open source community ... many hours of effort by this team squashed by Xilinx
Hi Ramesh,

you might want to have a look at the following documents:
- XAPP765 (http://www.xilinx.com/bvdocs/appnotes/xapp765.pdf). This 
document describes on how to get started with EDK and the ML300 board. 
The approach for the ML403 board is the same
- UG080, pg. 37 (http://www.xilinx.com/bvdocs/userguides/ug082.pdf). 
This document contains a brief description on how to rebuild the Linux 
kernel for the ML403 board.

Start with rebuilding the reference design and Linux kernel for the 
ML403 board. All the necessary information can be found in the documents 
above and on 
http://www.xilinx.com/products/boards/ml403/reference_designs.htm

The Xilinx software drivers for the Linux peripherals have been released 
into the open source repository for the Linux PPC 2.4 kernel tree. This 
tree is picked up by various Linux distributions. Further, the MLD 
technology in EDK helps you to customize the Linux kernel for your 
particular hardware design.

At this time I recommend staying with the 2.4 Linux kernel as the 
support for ML300 (and the ML403) in the 2.6 kernel is very basic (UART 
only).

Another good source of information is the linuxppc-embedded mailing list 
(see http://ozlabs.org/mailman/listinfo). The latest developments wrt 
Linux kernel for the MLxxx boards is discussed there.

- Peter


ramesh wrote:

> Hi All, > Iam new to xilinx platfrom. > > I was trying to port open source linux on Ml403 board. i tried to > follow the instructions in the below link. > http://www.klingauf.de/v2p/index.phtml > i was getting errors when i was running bZimage. the .elf file was not > getting created. > > Is there an alternative way of acheiving my goal. > Kindly suggest. > Thanks in advance. > > Ramesh >
fpga_toys@yahoo.com wrote:
> I should probably note that Xilinx leaches a hell of a lot of value off > open source by using Linux as a host platform for it's tools, GCC as > the main production compiler for PPC core software, GNU for the > libraries for PPC, and Linux in several forms as host operating systems > for it's product offerings. > > It's probably worth writing Austin, Peter, and the other regular usenet > posters from Xilinx and making it clear just how much Xilinx benefits > from open source, the Xilinx market created by open source, and the > developers which frequently volunteer their time supporting Xilinx open > source use. >
I take umbrage to your assertion that Xilinx is a leach and doesn't contribute back to the open source communities. Xilinx has been a contributing Corporate Patron of Free Software Foundation for many years now https://www.fsf.org/donate/patron/index_html funding many open source projects through the FSF with our donations. In addition we funded, supported and developed the Virtex-II Pro and Virtex-4 PowerPC405 ports that are the parent post of this thread and then push for their release into the official Linux 2.4.x and 2.6.x PowerPC trees so that everyone will have access to them easily. Ed McGettigan -- Xilinx Inc.
fpga_toys@yahoo.com wrote:

 > I should probably note that Xilinx leaches a hell of a lot of value off
 > open source by using Linux as a host platform for it's tools, GCC as
 > the main production compiler for PPC core software, GNU for the
 > libraries for PPC, and Linux in several forms as host operating systems
 > for it's product offerings.
 >
 > It's probably worth writing Austin, Peter, and the other regular usenet
 > posters from Xilinx and making it clear just how much Xilinx benefits
 > from open source, the Xilinx market created by open source, and the
 > developers which frequently volunteer their time supporting Xilinx open
 > source use.
 >

I take umbrage to your assertion that Xilinx is a leach and doesn't
contribute back to the open source communities. Xilinx has been a
contributing Corporate Patron of Free Software Foundation for many
years now https://www.fsf.org/donate/patron/index_html funding many
open source projects through the FSF with our donations.

In addition we funded, supported and developed the Virtex-II Pro and
Virtex-4 PowerPC405 ports that are the parent post of this thread and
then push for their release into the official Linux 2.4.x and 2.6.x
PowerPC trees so that everyone will have access to them easily.

Ed McGettigan
-- 
Xilinx Inc.


Ed McGettigan wrote:
> I take umbrage to your assertion that Xilinx is a leach and doesn't > contribute back to the open source communities. Xilinx has been a > contributing Corporate Patron of Free Software Foundation for many > years now https://www.fsf.org/donate/patron/index_html funding many > open source projects through the FSF with our donations.
First, if Xilinx had not been so heavy handed with the JHDLBits project, trashing the efforts of a half dozen young engineers, your umbrage might be half way valid. But the reality is that the economic value of gcc, GNU, and Linux is significantly more than $10M-30M NRE and $1m-3m/yr as the UNIX licenses and royalities would have cost you more. The real value of GPL tools that you ship, if the company had developed GPL free version is an order of magnitude or two more than that. *IF* your contributions to open software are a significant fraction of the equivalent UNIX license fees, then sure, Xilinx is paying it's way.
> In addition we funded, supported and developed the Virtex-II Pro and > Virtex-4 PowerPC405 ports that are the parent post of this thread and > then push for their release into the official Linux 2.4.x and 2.6.x > PowerPC trees so that everyone will have access to them easily.
That is completely self serving to generate revenues from the hardware sales. the PPC port existed long before Xilinx started shipping the IBM core in Pro's.
Hello,

I ported linux 2.4_devel to the ml403 board.

The zImage. that you get is fine for loading into the Virtex4 ppc. The
only thing you need to do is "cp" it to another directory with the .elf
extension.

I integrated it with my download.bit into an .ace file and it works ok
both for the reference design and for my custom design (a basic one).

Feel free to ask me about what I did if you need help.
Paula



"gnathita" <gnathita@gmail.com> wrote in message
news:WrqdnRI4UMOZpHreRVn-vQ@giganews.com...
> Hello, > > I ported linux 2.4_devel to the ml403 board. > > The zImage. that you get is fine for loading into the Virtex4 ppc. The > only thing you need to do is "cp" it to another directory with the .elf > extension. > > I integrated it with my download.bit into an .ace file and it works ok > both for the reference design and for my custom design (a basic one). > > Feel free to ask me about what I did if you need help. > Paula > > >
I'd like a copy of your .config file? I was also wondering if one generates the standard linux architecture (cpu, timer, interrupt controller, etc. all at the right memory addresses) can't they generate an .edn file and a top-level vhdl instantiation so that anyone else can use it without needing the EDK? Basically, it seems like there should be a coregen module that asks: 1. clock speed 2. processor: ppc or microblaze 3. device family: v2pro or v4 4. memory types and sizes 5. maybe some optional periperals And then it generates an .edn and a vhdl template that you pull into your ISE project like any othe core. This way we wouldn't need the EDK and they could provide prebuilt linux images that you would know work. Linux would become a 10 minute task for Xilinx: a competitive advantage I'd say. -Clark
You could look at the BYU work on this.

http://splish.ee.byu.edu/projects/LinuxFPGA/index.htm


ramesh wrote:
> Hi All, > Iam new to xilinx platfrom. > > I was trying to port open source linux on Ml403 board. i tried to > follow the instructions in the below link. > http://www.klingauf.de/v2p/index.phtml > i was getting errors when i was running bZimage. the .elf file was not > getting created. > > Is there an alternative way of acheiving my goal. > Kindly suggest. > Thanks in advance. > > Ramesh