
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@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