FAQ: [#6709] build kernel for ezkkit 548 fails at musb_core.c(2011)

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

[#6709] build kernel for ezkkit 548 fails at musb_core.c

Submitted By: Mingquan Pan

Open Date

2011-07-28 22:11:34     Close Date

2011-08-05 02:21:03

Priority:

Medium High     Assignee:

Bob Liu

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

5013

App binary format:

N/A     

Summary: build kernel for ezkkit 548 fails at musb_core.c

Details:

 

build kernel for ezkkit 548 fails at musb_core.c on trunk head.

 

./build_policy_kernel.exp  BF548-EZKIT BF5xx default /home/test/work/cruise/checkouts/uclinux-dist flat slab(p2) on on write_through dma off off off >/dev/null  2>&1

cp: cannot stat `/home/test/work/cruise/checkouts/uclinux-dist/images/uImage': No such file or directory

Linux image fails to be generated.Error!

  LD      drivers/usb/otg/built-in.o^M

  LOGO    drivers/video/logo/logo_superh_vga16.c^M

  LOGO    drivers/video/logo/logo_dec_clut224.c^M

  LD      drivers/usb/musb/musb_hdrc.o^M

  CC      drivers/video/cfbfillrect.o^M

  LOGO    drivers/video/logo/logo_linux_clut224.c^M

  CC      drivers/usb/storage/scsiglue.o^M

  LD      drivers/usb/musb/built-in.o^M

  LOGO    drivers/video/logo/logo_m32r_clut224.c^M

  CC      drivers/video/cfbcopyarea.o^M

  LOGO    drivers/video/logo/logo_mac_clut224.c^M

  LOGO    drivers/video/logo/logo_parisc_clut224.c^M

  LOGO    drivers/video/logo/logo_sgi_clut224.c^M

  LOGO    drivers/video/logo/logo_spe_clut224.c^M

  LOGO    drivers/video/logo/logo_sun_clut224.c^M

  LOGO    drivers/video/logo/logo_superh_clut224.c^M

  CC      drivers/usb/storage/protocol.o^M

  CC      drivers/video/logo/logo_blackfin_clut224.o^M

  CC      drivers/usb/storage/transport.o^M

  LD      drivers/video/logo/built-in.o^M

  CC      drivers/video/cfbimgblt.o^M

  CC      drivers/video/bf54x-lq043fb.o^M

  LD      drivers/video/fb.o^M

  CC      drivers/usb/storage/usb.o^M

drivers/video/bf54x-lq043fb.c: In function ‘bfin_bf54x_suspend’:^M

drivers/video/bf54x-lq043fb.c:724: warning: unused variable ‘fbinfo’^M

  CC      drivers/usb/storage/initializers.o^M

  CC      drivers/usb/storage/sierra_ms.o^M

  LD      drivers/video/built-in.o^M

  CC      drivers/usb/storage/option_ms.o^M

  CC      drivers/usb/storage/usual-tables.o^M

  LD      drivers/usb/storage/usb-storage.o^M

  LD      drivers/usb/storage/built-in.o^M

  LD      drivers/usb/built-in.o^M

  LD      drivers/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

drivers/built-in.o: In function `musb_free':^M

drivers/usb/musb/musb_core.c:1901: undefined reference to `dma_controller_destroy'^M

drivers/built-in.o: In function `musb_init_controller':^M

drivers/usb/musb/musb_core.c:1982: undefined reference to `dma_controller_create'^M

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

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

 

Follow-ups

 

--- Bob Liu                                                  2011-07-29 04:22:36

fixed, enable CONFIG_USB_MUSB_BLACKFIN during kernel config

 

--- Mingquan Pan                                             2011-08-04 04:42:05

With this config on, it seems still fails at usb with another error:

 

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  GEN     usr/initramfs_data.cpio

  AS      usr/initramfs_data.o

  LD      usr/built-in.o

  GZIP    kernel/config_data.gz

  IKCFG   kernel/config_data.h

  CC      kernel/configs.o

  LD      kernel/built-in.o

  CC      drivers/usb/musb/musb_core.o

  CC      drivers/usb/musb/musb_host.o

  CC      drivers/usb/musb/blackfin.o

drivers/usb/musb/musb_host.c: In function ‘musb_rx_reinit’:

drivers/usb/musb/musb_host.c:603: warning: ‘double_buffer_not_ok’ is

deprecated (declared at drivers/usb/musb/musb_core.h:512)

drivers/usb/musb/blackfin.c: In function ‘musb_write_fifo’:

drivers/usb/musb/blackfin.c:43: error: implicit declaration of function

‘prefetch’

drivers/usb/musb/blackfin.c: In function ‘bfin_musb_init’:

drivers/usb/musb/blackfin.c:433: warning: ‘double_buffer_not_ok’ is

deprecated (declared at drivers/usb/musb/musb_core.h:512)

make[4]: *** [drivers/usb/musb/blackfin.o] Error 1

make[4]: *** Waiting for unfinished jobs....

make[3]: *** [drivers/usb/musb] Error 2

make[2]: *** [drivers/usb] Error 2

make[1]: *** [drivers] Error 2

make[1]: Leaving directory

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

make: *** [linux] Error 1

 

--- Bob Liu                                                  2011-08-04 23:30:00

fixed

 

--- Mingquan Pan                                             2011-08-05 02:21:03

Yeah, it can build and boot on bf548 now. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes