All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] the question about the Flat Device Tree on MPC8360?
Date: Tue, 04 Mar 2008 21:38:45 -0500	[thread overview]
Message-ID: <47CE07B5.5000308@gmail.com> (raw)
In-Reply-To: <47CE064A.9000203@gmail.com>

Jerry Van Baren wrote:
> ?? wrote:
>> HI, friends.
>>
>>   I want to update my linux version from 2.6.11 to 2.6.22 on MPC8360 board, I
>> always fail when the linux version is about 2.6.11. Someone told me that I need to
>> build the Flat Device Tree. I see that the U-boot-1.2.0 has one FDT command, but I
>> did not know how to use this command and how to use the Flat Device Tree.
>>   I once see a document from freescale that the FDT file need tftp download to DDR
>> memory first then bootm the linux. What's that FDT file? how can i get it? which
>> DDR address that I need to tftp download? 
>>   What is the FDT? Could someone teach me? Thanks.
> 
> Hi ??,
> 
> u-boot 1.2.0's support of FDT is crude.  Upgrade to the tip o' the tree 
> (1.3.2rc3), or at least to 1.3.1.
> 
> The flattened device tree (FDT) is a method of passing hardware 
> configuration information to the kernel.  It is described in the kernel 
> documentation directory/file:
>    ./Documentation/powerpc/booting-without-of.txt
> 
> You need a recent kernel, 2.6.22 probably is OK.  I'm running 2.6.25rc3 
> (tip 'o the tree as of a week or so ago).
> 
> I have a mpc8360emds eval board, so I configure the kernel:
>    $ make mpc836x_mds_defconfig
> and build it
>    $ make

I forgot to mention, with the tip 'o the kernel tree and the ELDK 4.1 
(4.2rc), the kernel compile breaks on an unrecognized register due to 
CONFIG_FSL_EMB_PERFMON.  I have not succeeded in chasing down the cause 
yet, so I simply commented it out:

diff --git a/arch/powerpc/kernel/pmc.c b/arch/powerpc/kernel/pmc.c
index 0516e2d..e26e63a 100644
--- a/arch/powerpc/kernel/pmc.c
+++ b/arch/powerpc/kernel/pmc.c
@@ -26,7 +26,7 @@

  static void dummy_perf(struct pt_regs *regs)
  {
-#if defined(CONFIG_FSL_EMB_PERFMON)
+#if 0 //gvb// defined(CONFIG_FSL_EMB_PERFMON)
         mtpmr(PMRN_PMGC0, mfpmr(PMRN_PMGC0) & ~PMGC0_PMIE);
  #elif defined(CONFIG_PPC64) || defined(CONFIG_6xx)
  	if (cur_cpu_spec->pmc_type == PPC_PMC_IBM)

Best regards,
gvb

  reply	other threads:[~2008-03-05  2:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-03 13:29 [U-Boot-Users] the question about the Flat Device Tree on MPC8360? 郭劲
2008-03-05  2:32 ` Jerry Van Baren
2008-03-05  2:38   ` Jerry Van Baren [this message]
2008-03-05  8:20     ` André Schwarz

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=47CE07B5.5000308@gmail.com \
    --to=gvb.uboot@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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 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.