linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bodonoghue@codehermit.ie>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 1/3] 8xx: Analogue & Micro Adder875 board support.
Date: Mon, 14 Jan 2008 22:40:07 +0000	[thread overview]
Message-ID: <1200350407.4061.19.camel@neuromancer.mindspace> (raw)
In-Reply-To: <20080114152859.GA26907@ld0162-tx32.am.freescale.net>

On Mon, 2008-01-14 at 09:28 -0600, Scott Wood wrote:
> On Sun, Jan 13, 2008 at 02:26:12PM +0000, Bryan O'Donoghue wrote:
> > I've applied your code against Linus' git v2.6.26-rc7 as at today.
> > I have to apply 
> 
> It should apply against paulus's tree.
> 
> > make adder87x-uboot_defconfig
> > 
> > make uImage
> 
> make zImage, not uImage.

Will try.

> > cp arch/powerpc/boot/uImage /tftpboot - which is my tftpd root
> > directory.
> 
> Use cuImage.8xx, not uImage.
> 
> > In U-Boot then.
> > 
> > => tftpboot 0x400000 uImage
> > => bootm 0x400000
> 
> 0x400000 is where u-boot is going to want to relocate the image to, so
> loading the uImage there may not work.

Hmm, some old code I did to make Linux boot from the former ppc stuff
works fine to the loading and booting @ 0x4000000 - this step is pretty
much fine, I think.

> Yes, a uImage target will be expecting to be handed a device tree.  The
> cuImage target has a device tree embedded and accepts the old-style bd_t.

Ah.

This explains eveything then.. there _is_ a magic image and I haven't
been booting it !

Typical.

I'll give the 8xx-centric ucImage a go.

> > /* pass open firmware flat tree */
> > #define CONFIG_OF_LIBFDT      1
> > #undef  CONFIG_OF_FLAT_TREE
> > #define CONFIG_OF_BOARD_SETUP 1
> > #define CONFIG_OF_HAS_BD_T    1
> > #define CONFIG_OF_HAS_UBOOT_ENV       1
> > 
> > #define OF_CPU                        "PowerPC,875 at 0"
> > #define OF_SOC                        "soc875 at ff000000"
> > #define OF_TBCLK              (bd->bi_busfreq / 4)
> 
> You'll probably need some 8xx-specific code if you want to go this route. 
> You'd also need to change the bootm command line to the three-argument
> version, with the third argument being the address of the device tree
> blob (the second argument can be - if there's no initrd).

Ah OK, I see so the procedure would be to dtc a dts representing the
Adder.

Download both this and a uImage ... and then as you say pass the address
of the blob to Linux via U-Boot.

It occurs to me that this type of procedure should really be added to
the Documentation... 

There's no mention of it in the Linux documentation, nor in the u-boot
documentation and uncle Google was not informative for the types of
searches I was doing....

Somebody - possibly even me, since I'm mentioning it - should write a
copule of paragraphs on booting a ucImage with a of-blob and add it to
both U-Boot and Linux..

> If you're not comfortable with the device tree stuff, I recommend just
> using cuImage for now.

Indeed.

Thanks for the response Scott. I'll try out the ucImage and all going
well with that will try the three parameter Linux + blob based on
the .dts, hopefully over the next three or four days....

If I'm unlucky I might bug you again... and if I have more luck, I'll do
a follow up on the list.

Happy Monday !

Regards,
Bryan

  reply	other threads:[~2008-01-14 22:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-11 20:07 [PATCH 1/3] 8xx: Analogue & Micro Adder875 board support Scott Wood
2008-01-13 14:26 ` Bryan O'Donoghue
2008-01-14 15:28   ` Scott Wood
2008-01-14 22:40     ` Bryan O'Donoghue [this message]
2008-01-14 22:49       ` Scott Wood
2008-01-15 23:25         ` Bryan O'Donoghue
2008-01-16  6:16           ` Vitaly Bordug
2008-01-17  1:34             ` Bryan O'Donoghue
2008-01-14  0:01 ` David Gibson
2008-01-15  5:22   ` Kumar Gala
  -- strict thread matches above, loose matches on Subject: below --
2007-12-11 21:22 Scott Wood
2007-12-12  4:31 ` Stephen Rothwell

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=1200350407.4061.19.camel@neuromancer.mindspace \
    --to=bodonoghue@codehermit.ie \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=scottwood@freescale.com \
    /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).