FAQ: [#7105] build uclinux kernel for bf561 ezkit fails at mach-common/pm.c(20120

Document created by Aaronwu Employee on Sep 12, 2013
Version 1Show Document
  • View in full screen mode

[#7105] build uclinux kernel for bf561 ezkit fails at mach-common/pm.c

Submitted By: Mingquan Pan

Open Date

2012-05-15 01:06:17     Close Date

2012-05-17 02:18:17

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

ADI-trunk/svn-5764

App binary format:

N/A     

Summary: build uclinux kernel for bf561 ezkit fails at mach-common/pm.c

Details:

 

build uclinux kernel for bf561 ezkit fails at mach-common/pm.c on trunk head,

 

In file included from arch/blackfin/kernel/setup.c:35:^M

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/pm.h:12:21: error: mach/pm.h: No such file or directory^M

arch/blackfin/kernel/setup.c: In function ‘bfin_relocate_l1_mem’:^M

arch/blackfin/kernel/setup.c:210: error: implicit declaration of function ‘coreb_enable’^M

arch/blackfin/kernel/setup.c:216: error: ‘RCU0_CRCTL’ undeclared (first use in this function)^M

arch/blackfin/kernel/setup.c:216: error: (Each undeclared identifier is reported only once^M

arch/blackfin/kernel/setup.c:216: error: for each function it appears in.)^M

arch/blackfin/kernel/setup.c:218: error: ‘RCU0_CRSTAT’ undeclared (first use in this function)^M

make[2]: *** [arch/blackfin/kernel/setup.o] Error 1^M

make[2]: *** Waiting for unfinished jobs....^M

  CC      arch/blackfin/mach-bf561/ints-priority.o^M

  CC      arch/blackfin/mm/init.o^M

  CC      arch/blackfin/mach-common/ints-priority.o^M

  CC      arch/blackfin/mach-bf561/dma.o^M

  CC      arch/blackfin/mm/maccess.o^M

  CC      arch/blackfin/mach-bf561/coreb.o^M

  CC      arch/blackfin/mach-common/pm.o^M

make[1]: *** [arch/blackfin/kernel] Error 2^M

make[1]: *** Waiting for unfinished jobs....^M

  LD      arch/blackfin/mach-bf561/built-in.o^M

  AS      arch/blackfin/mach-common/dpmc_modes.o^M

  LD      arch/blackfin/mm/built-in.o^M

  CC      arch/blackfin/mach-common/coreb.o^M

In file included from arch/blackfin/mach-common/pm.c:22:^M

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/pm.h:12:21: error: mach/pm.h: No such file or directory^M

make[2]: *** [arch/blackfin/mach-common/pm.o] Error 1^M

make[2]: *** Waiting for unfinished jobs....^M

In file included from arch/blackfin/mach-common/coreb.c:14:^M

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/include/asm/pm.h:12:21: error: mach/pm.h: No such file or directory^M

make[2]: *** [arch/blackfin/mach-common/coreb.o] Error 1^M

make[1]: *** [arch/blackfin/mach-common] Error 2^M

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'^M

make: *** [linux] Error 1^M

 

Follow-ups

 

--- steven miao                                              2012-05-16 04:36:19

fix build, drop mach/pm.h in asm/pm.h, include mach/pm.h only on bf609

 

--- Mingquan Pan                                             2012-05-16 23:36:49

It's now building for bf537 stamp board, but building bf561 kernel still fails

like:

 

  LD [M]  net/sunrpc/sunrpc.o^M

  LD      net/built-in.o^M

  LD      vmlinux.o^M

  MODPOST vmlinux.o^M

  GEN     .version^M

  CHK     include/generated/compile.h^M

  UPD     include/generated/compile.h^M

  CC      init/version.o^M

  LD      init/built-in.o^M

  LD      .tmp_vmlinux1^M

arch/blackfin/mach-common/built-in.o: In function `coreb_ioctl':^M

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/mach-common/coreb.c:32:

undefined reference to `bfin_coreb_stop'^M

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/arch/blackfin/mach-common/coreb.c:26:

undefined reference to `bfin_coreb_start'^M

make[1]: *** [.tmp_vmlinux1] Error 1^M

make[1]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'^M

 

--- steven miao                                              2012-05-16 23:56:42

fixed bf561 build

 

--- Mingquan Pan                                             2012-05-17 03:18:25

Yes, fixed .Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes