Error: Unrecognized opcode: `mtpmr'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error: Unrecognized opcode: `mtpmr'

1,078件の閲覧回数
735382270
Contributor II

Hi,everyone,I had a problem when I cross-compile with commond I use "make ppc6xx_defconfig",it supposed to have a .config file ,but I couldn't find it.

In the next step,I use "make uImage",it shows

Error: Unrecognized opcode: `mtpmr'

make[1]: *** [arch/powerpc/kernel/pmc.o] Error 1
make: *** [arch/powerpc/kernel] Error 2.

I'm using ubuntu 14.04,ppc-2018-04-01.iso,linux-4.4.200.tar.xz

0 件の賞賛
返信
3 返答(返信)

1,024件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Would you please provide the whole build console log?

What GCC build parameters did you use?

0 件の賞賛
返信

1,024件の閲覧回数
735382270
Contributor II

I use ELDK to cross-compile.

1.mount the ppc-2008-04-01.iso

2../install -d /home/********* ppc_6xx

3.modify the .bashrc : PATH=$PATH:/home/****/bin:/home/*****/usr/bin

   CROSS_COMPILE=ppc_6xx-

   export PATH ARCH CROSS_COMPILE

4.unzip the linux-4.4.200.tar.bz

5.make ppc6xx_defconfig shows: 

HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
(here supposed to have a .config file correspond to ppc6xx)

6.make uImage shows:

scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  WRAP    arch/powerpc/include/generated/asm/clkdev.h
  WRAP    arch/powerpc/include/generated/asm/div64.h
  WRAP    arch/powerpc/include/generated/asm/irq_regs.h
  WRAP    arch/powerpc/include/generated/asm/irq_work.h
  WRAP    arch/powerpc/include/generated/asm/local64.h
  WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
  WRAP    arch/powerpc/include/generated/asm/preempt.h
  WRAP    arch/powerpc/include/generated/asm/rwsem.h
  WRAP    arch/powerpc/include/generated/asm/vtime.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  CHK     include/generated/bounds.h
  UPD     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  UPD     include/generated/timeconst.h
  CC      arch/powerpc/kernel/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  SHIPPED scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  CHK     scripts/mod/devicetable-offsets.h
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  CC      init/main.o
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  CC      init/do_mounts_md.o
  LD      init/mounts.o
  CC      init/initramfs.o
  CC      init/init_task.o
  LD      init/built-in.o
  HOSTCC  usr/gen_init_cpio
  GEN     usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      arch/powerpc/kernel/cputable.o
  CC      arch/powerpc/kernel/ptrace.o
  CC      arch/powerpc/kernel/syscalls.o
  CC      arch/powerpc/kernel/irq.o
  CC      arch/powerpc/kernel/align.o
  CC      arch/powerpc/kernel/signal_32.o
  CC      arch/powerpc/kernel/pmc.o
{standard input}: Assembler messages:
{standard input}:29: Error: Unrecognized opcode: `mfpmr'
{standard input}:36: Error: Unrecognized opcode: `mtpmr'
make[1]: *** [arch/powerpc/kernel/pmc.o] Error 1
make: *** [arch/powerpc/kernel] Error 2
7.the final step will be :make t4240qds.dtb(what is the use of this .dtb file ,is this one the same as the uImage-t4240qds.dtb  installing t4240 linux system? )

PS:Another question:when I use root to get into the t4240 linux system ,what commond can I use to transport the file and the whole folder to t4240

Thanks a lot !

0 件の賞賛
返信

1,024件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

ppc-2008-04-01.iso doesn't support T4240, please download and install Linux SDK 2.0 from Linux® SDK for QorIQ® Processors | NXP .

t4240qds.dtb is same as uImage-t4240qds.dtb.

You could use "scp" command to copy files to T4240 target board.

0 件の賞賛
返信