[#7026] build uboot post test for led fails

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

[#7026] build uboot post test for led fails

Submitted By: Mingquan Pan

Open Date

2012-03-25 22:54:51    

Priority:

Medium     Assignee:

Bob Liu

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Open

Board:

N/A     Processor:

N/A

Silicon Revision:

    Resolution:

Assigned (Not Start)

Is the bug repeatable?:

N/A     

Summary: build uboot post test for led fails

Details:

 

build uboot post test for led fails.

 

add following lines to bf609.h

/* For ez-board version 1.0, else undef this */

#define CONFIG_POST CONFIG_SYS_POST_BSPEC1

 

get the failure like :

 

bfin-uclinux-gcc   -D__ASSEMBLY__ -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN   -o interrupt.o interrupt.S -c

bfin-uclinux-gcc   -D__ASSEMBLY__ -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN   -o cache.o cache.S -c

bfin-uclinux-ld -m elf32bfin  -r -o libblackfin.o  cpu.o gpio.o interrupts.o jtag-console.o os_log.o reset.o serial.o traps.o watchdog.o interrupt.o cache.o

make[1]: Leaving directory `/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/cpu'

make -C arch/blackfin/lib/

make[1]: Entering directory `/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/lib'

bfin-uclinux-gcc  -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -DBFIN_BOARD_NAME='"bf609-ezkit"'   -o board.o board.c -c

board.c: In function ‘board_init_f’:

board.c:296: warning: implicit declaration of function ‘get_dclk’

bfin-uclinux-gcc  -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -DBFIN_BOARD_NAME='"bf609-ezkit"'   -o boot.o boot.c -c

bfin-uclinux-gcc  -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -DBFIN_BOARD_NAME='"bf609-ezkit"'   -o cache.o cache.c -c

bfin-uclinux-gcc  -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -DBFIN_BOARD_NAME='"bf609-ezkit"'   -o clocks.o clocks.c -c

clocks.c:82: warning: ‘cached_dclk’ defined but not used

clocks.c:84: warning: ‘_get_sclk’ defined but not used

bfin-uclinux-gcc  -g  -Os   -ffixed-P3 -fomit-frame-pointer -mno-fdpic -ffunction-sections -fdata-sections -mcpu=bf609-0.0 -D__KERNEL__ -I/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/include -pipe  -DCONFIG_BLACKFIN -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -DBFIN_BOARD_NAME='"bf609-ezkit"'   -o post.o post.c -c

post.c: In function ‘led_post_test’:

post.c:18: error: ‘CONFIG_POST_BSPEC1_GPIO_LEDS’ undeclared (first use in this function)

post.c:18: error: (Each undeclared identifier is reported only once

post.c:18: error: for each function it appears in.)

make[1]: *** [post.o] Error 1

make[1]: Leaving directory `/home/test/workspace/uboot_test_bf609-ezkit/label/UBOOT_BF609-EZKIT/arch/blackfin/lib'

 

Follow-ups

 

--- Bob Liu                                                  2012-03-27 04:11:19

Only bf537-stamp and bf548-ezkit support CONFIG_POST current.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes