public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "André Schwarz" <andre.schwarz@matrix-vision.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] the question about the Flat Device Tree on	MPC8360?
Date: Wed, 05 Mar 2008 09:20:13 +0100	[thread overview]
Message-ID: <47CE57BD.5010409@matrix-vision.de> (raw)
In-Reply-To: <47CE07B5.5000308@gmail.com>

Jerry,

everybody running an MPC83xx should habe this problem with the latest 
kernel.

"FSL_EMB_PERFMON" will be selected automatically as soon as you chose a 
mpc83xx platform. It's a "select FSL_EMB_PERFMON" in 
arch/powerpc/platforms/Kconfig ...

mtpmr is not a valid instruction on MPC834x.

http://www.freescale.com/files/32bit/doc/ref_manual/MPC8349EARMAD.pdf

7.3.2.2, 7-27Removed last bullet and sub-bullets concerning performance 
monitor instructions(mfmpr and mtmpr); these instructions are not 
supported on this device.



Maybe Kumar can fix the Kconfig along with pmc.c.


regards,
Andr? Schwarz

Jerry Van Baren schrieb:
> 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
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users


MATRIX VISION GmbH, Talstra?e 16, DE-71570 Oppenweiler  - Registergericht: Amtsgericht Stuttgart, HRB 271090
Gesch?ftsf?hrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

      reply	other threads:[~2008-03-05  8:20 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
2008-03-05  8:20     ` André Schwarz [this message]

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=47CE57BD.5010409@matrix-vision.de \
    --to=andre.schwarz@matrix-vision.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox