From: Peter Mendham <petermendham@computing.dundee.ac.uk>
To: John Linn <linnj@xilinx.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Linux on Virtex board with ARCH=powerpc
Date: Tue, 24 Jun 2008 20:21:11 +0100 [thread overview]
Message-ID: <48614927.8020406@computing.dundee.ac.uk> (raw)
In-Reply-To: <20080624140532.E77E333006C@mail5-sin.bigfish.com>
Hi John,
Thanks for your reply, that's really helpful. I'm actually using the
mainline kernel, rather than the one from the xilinx git tree, but your
information has really moved me on. My first problem was that the
Xilinx utility (from the git tree) for device tree dts generation didn't
insert a "linux,stdout-path" node under "chosen". I spotted that the
ml403 example had this, so after adding it I got early console
messages. Everything now grinds to a halt after I get the message "flat
tree at 0x40ad60" which is just before it calls the kernel, so I assume
it's that call that is killing it. I have "console=ttyUL0" for my
uartlite, so I should be getting messages, shouldn't I? Do you know
where the next execution point is? Maybe I could find out where it's
getting stuck.
I haven't managed to generate an ACE file, I'm just loading the kernel
image from xmd ATM, genace won't play ball for me, it complains about
-board user not being valid, it won't even run on the examples copied
directly from the user manual. Anyway, I think genace is a bit OT, and
I can manage with xmd for now.
Thanks,
-- Peter
John Linn wrote:
> Hi Peter,
>
> I'm not up on what can be done with the simple image you refer to in 1.
> I'm sure I should be, but there's a lot to learn.
>
> With regards to 2, the elf image, zImage (without the elf extension), is
> located in arch/powerpc/boot.
>
> You can make a SystemACE file from that elf image just as you did in
> arch/ppc. We have a default device tree file, ml405.dts, in the
> arch/powerpc/boot/dts directory for our ml405 board. The kernel
> configuration has a config, DEVICE_TREE, that specifies the name of the
> device tree file. I normally compile the device tree into the kernel
> which is the default build, make ARCH=powerpc zImage. That image does
> not require a boot loader.
>
> I inserted the text below from a document that I have about building the
> arch/ppc and arch/powerpc kernels.
>
> Hope that helps,
> John
>
>
> Notation
>
> The phrase "<ppc or powerpc>" is used throughput the text and means that
> one or the other, "ppc" or "powerpc" is to be typed depending on the
> architecture you are building.
>
> Commands that are used in a bash shell are preceded by ">".
>
> Getting Ready To Build the Kernel
>
> This assumes you installed the ELDK tools and assumes you'll be using a
> bash shell.
>
>
>> bash
>> export CROSS_COMPILE=ppc_4xx-
>>
>
> Setting Up the Kernel Tree
>
> If you have previously built this kernel for another architecture, ppc
> or powerpc, then the tree needs to be setup correctly for the new
> architecture. Assuming you have not previously built it, this does not
> need to be done.
>
>
>> make ARCH=<ppc or powerpc> mrproper
>>
>
> Configuring the Kernel
>
> The kernel should be configured to run on the ML405 or ML507 board from
> Xilinx.
>
>
>> make ARCH=<ppc or powerpc> ml405_defconfig
>>
>
> or
>
>
>> make ARCH=<ppc or powerpc> ml507_defconfig
>>
>
> Building the Kernel
>
> The following command will build the Linux kernel assuming you are in
> the root directory of the kernel. The root directory of the kernel from
> the Xilinx Git tree is linux-2.6-xlnx. An elf file, zImage.elf, is
> created in the arch/ppc/boot/images directory for ppc architecture. An
> elf file, zImage, is created in the the arch/powerpc/boot directory for
> the powerpc architecture.
>
>
>> make ARCH=<ppc or powerpc> zImage
>>
>
> Building the Kernel With Ramdisk
>
> A ram disk image, a file named *.gz, must be placed into the
> arch/ppc/boot/images or arch/powerpc/boot directory, depending on the
> architecture, prior to building the kernel.
>
>
>> make ARCH=<ppc or powerpc> zImage.initrd
>>
>
> An elf file, zImage.initrd.elf, is created in arch/ppc/boot/images
> directory for the ppc architecture. An elf file file, zImage.initrd, is
> created in arch/powerpc/boot directory for the powerpc architecture.
>
> Generating An Ace File
>
> The elf file generated for the kernel and the bit stream can be combined
> to create an ACE file for compact flash. The following assumes a bash
> shell where XMD is accessible and a xilinx probe attached to the board
> for which you are generating an ace file.
>
>
>> xmd -tcl genace.tcl -jprog -target ppc_hw -hw <bit file name> -elf <elf
>>
> file name> -board <ml405 or ml507> -ace <desired ace file name>
>
> -----Original Message-----
> From: linuxppc-embedded-bounces+john.linn=xilinx.com@ozlabs.org
> [mailto:linuxppc-embedded-bounces+john.linn=xilinx.com@ozlabs.org] On
> Behalf Of Peter Mendham
> Sent: Tuesday, June 24, 2008 3:02 AM
> To: linuxppc-embedded@ozlabs.org
> Subject: Linux on Virtex board with ARCH=powerpc
>
> Dear all,
>
> I'm trying to boot a 2.6.26-rc6 kernel on a custom Virtex 4 board. I
> have used the Xilinx utility to generate a device tree and now want to
> generate an image for throwing onto CF for use with a SystemACE (just
> like on the the ML3/4xx boards). I don't want to use a bootloader (I
> don't really need one). I saw something on this list about simpleImage,
>
> "simple" sounded good to me so I thought I'd try that (or did I
> misinterpret what this is for?). I also don't want the image to be too
> big, I always used to use a zImage under ARCH=ppc. So, two questions,
> which hopefully are easy ones:
> 1. I did what Grant said in a post to this list about simpleImage, and
> dumped my dts into arch/powerpc/boot/dts and I called it system.dts (for
>
> now). I then tried to do make simpleImage.system which ran right
> through to final link then moaned about a missing simpleboot-system.
> Where is this supposed to come from? What am I doing wrong? I naively
> tried copying simpleboot.o to simpleboot-system.o and the error went
> away. Hmm.
> 2. I need an ELF to give to my SystemACE file generator. This used to
> pop up in arch/ppc/boot/images and be called zImage.elf, which made
> sense to me. What's the deal now with powerpc? What should I be using?
> Finally, can anyone give me a heads-up on any gotchas with what I'm
> trying to do. As you can tell, I don't entirely know what I'm doing, so
>
> any pointers would be gratefully received.
>
> Thanks,
> -- Peter
>
>
> The University of Dundee is a Scottish Registered Charity, No. SC015096.
>
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
> This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
>
>
>
The University of Dundee is a Scottish Registered Charity, No. SC015096.
next prev parent reply other threads:[~2008-06-24 19:21 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 9:02 Linux on Virtex board with ARCH=powerpc Peter Mendham
2008-06-24 14:03 ` John Linn
2008-06-24 19:21 ` Peter Mendham [this message]
2008-06-24 19:50 ` John Linn
2008-06-25 16:17 ` Peter Mendham
2008-06-25 20:34 ` John Linn
2008-06-26 13:24 ` Peter Mendham
2008-06-26 13:29 ` John Linn
2008-06-27 12:30 ` Peter Mendham
2008-06-27 13:25 ` John Linn
2008-06-27 15:06 ` Peter Mendham
2008-06-27 15:18 ` Aaron Sells
2008-06-27 15:24 ` Peter Mendham
2008-06-27 18:14 ` Peter Korsgaard
2008-07-02 8:49 ` Peter Mendham
2008-06-24 19:50 ` Stephen Neuendorffer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48614927.8020406@computing.dundee.ac.uk \
--to=petermendham@computing.dundee.ac.uk \
--cc=linnj@xilinx.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).