U-Boot 添加命令及测试

 ./mk -u

出现这些:
awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg > .boards.depend
Configuring for x4412 board...
Generating include/autoconf.mk
Generating include/autoconf.mk.dep
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-gcc -DDO_DEPS_ONLY \
        -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -I/opt/x4412/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/x4412/prebuilt/linux-x86/toolchain/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector   \
        -o lib/asm-offsets.s lib/asm-offsets.c -c -S
Generating include/generated/generic-asm-offsets.h
tools/scripts/make-asm-offsets lib/asm-offsets.s include/generated/generic-asm-offsets.h
for dir in tools examples/standalone examples/api arch/arm/cpu/armv7 /opt/x4412/uboot/board/samsung/x4412/ ; do \
            make -C $dir _depend ; done
make[1]: Entering directory `/opt/x4412/uboot/tools'
make[1]: Leaving directory `/opt/x4412/uboot/tools'
make[1]: Entering directory `/opt/x4412/uboot/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x4412/uboot/tools'
make[1]: Entering directory `/opt/x4412/uboot/examples/standalone'
make[1]: Leaving directory `/opt/x4412/uboot/examples/standalone'
make[1]: Entering directory `/opt/x4412/uboot/examples/standalone'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x4412/uboot/examples/standalone'
make[1]: Entering directory `/opt/x4412/uboot/examples/api'
make[1]: Leaving directory `/opt/x4412/uboot/examples/api'
make[1]: Entering directory `/opt/x4412/uboot/examples/api'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x4412/uboot/examples/api'
make[1]: Entering directory `/opt/x4412/uboot/arch/arm/cpu/armv7'
make[1]: Leaving directory `/opt/x4412/uboot/arch/arm/cpu/armv7'
make[1]: Entering directory `/opt/x4412/uboot/arch/arm/cpu/armv7'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x4412/uboot/arch/arm/cpu/armv7'
make[1]: Entering directory `/opt/x4412/uboot/board/samsung/x4412'
make[1]: Leaving directory `/opt/x4412/uboot/board/samsung/x4412'
make[1]: Entering directory `/opt/x4412/uboot/board/samsung/x4412'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x4412/uboot/board/samsung/x4412'
make -C tools all
make -C examples/standalone all
make[1]: Entering directory `/opt/x4412/uboot/tools'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic   -o gen_eth_addr.o gen_eth_addr.c -c
make[1]: Entering directory `/opt/x4412/uboot/examples/standalone'
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -I/opt/x4412/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/x4412/prebuilt/linux-x86/toolchain/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -fno-toplevel-reorder   \
        -o hello_world.o hello_world.c -c
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -I/opt/x4412/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/x4412/prebuilt/linux-x86/toolchain/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -fno-toplevel-reorder   \
        -o stubs.o stubs.c -c
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-ld -r -o libstubs.o  stubs.o 
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-ld -g -Ttext 0xc100000 \
            -o hello_world -e hello_world hello_world.o libstubs.o \
            -L/opt/x4412/prebuilt/linux-x86/toolchain/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1 -lgcc
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-objcopy -O srec hello_world hello_world.srec 2>/dev/null
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-objcopy -O binary hello_world hello_world.bin 2>/dev/null
make[1]: Leaving directory `/opt/x4412/uboot/examples/standalone'
make -C examples/api all
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic   -o img2srec.o img2srec.c -c
make[1]: Entering directory `/opt/x4412/uboot/examples/api'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/x4412/uboot/examples/api'
make -C arch/arm/cpu/armv7 start.o
make[1]: Entering directory `/opt/x4412/uboot/arch/arm/cpu/armv7'
/opt/x4412/uboot/../prebuilt/linux-x86/toolchain/arm-2009q3/bin/arm-none-linux-gnueabi-gcc   -D__ASSEMBLY__ -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -I/opt/x4412/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/x4412/prebuilt/linux-x86/toolchain/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a   \
        -o start.o start.S -c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic -c -o crc32.o /opt/x4412/uboot/lib/crc32.c
make[1]: Leaving directory `/opt/x4412/uboot/arch/arm/cpu/armv7'
make -C /opt/x4412/uboot/board/samsung/x4412/ u-boot.lds
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES   -o default_image.o default_image.c -c
make[1]: Entering directory `/opt/x4412/uboot/board/samsung/x4412'
make[1]: *** No rule to make target `u-boot.lds'.  Stop.
make[1]: Leaving directory `/opt/x4412/uboot/board/samsung/x4412'
make: *** [/opt/x4412/uboot/board/samsung/x4412/u-boot.lds] Error 2
make: *** Waiting for unfinished jobs....
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES   -o fit_image.o fit_image.c -c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -c -o image.o /opt/x4412/uboot/common/image.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES   -o imximage.o imximage.c -c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES   -o kwbimage.o kwbimage.c -c
kwbimage.c: In function 'kwbimage_verify_header':
kwbimage.c:350:10: warning: variable 'calc_exthdrcsum' set but not used [-Wunused-but-set-variable]
  uint8_t calc_exthdrcsum;
          ^
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic -c -o md5.o /opt/x4412/uboot/lib/md5.c
/opt/x4412/uboot/lib/md5.c: In function 'MD5Final':
/opt/x4412/uboot/lib/md5.c:156:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  ((__u32 *) ctx->in)[14] = ctx->bits[0];
  ^
/opt/x4412/uboot/lib/md5.c:157:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  ((__u32 *) ctx->in)[15] = ctx->bits[1];
  ^
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES   -o mkimage.o mkimage.c -c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES   -o os_support.o os_support.c -c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic -c -o sha1.o /opt/x4412/uboot/lib/sha1.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -c -o fdt.o /opt/x4412/uboot/lib/libfdt/fdt.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -c -o fdt_ro.o /opt/x4412/uboot/lib/libfdt/fdt_ro.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -c -o fdt_rw.o /opt/x4412/uboot/lib/libfdt/fdt_rw.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -c -o fdt_strerror.o /opt/x4412/uboot/lib/libfdt/fdt_strerror.c
gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -c -o fdt_wip.o /opt/x4412/uboot/lib/libfdt/fdt_wip.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic  -o gen_eth_addr gen_eth_addr.o
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic  -o img2srec img2srec.o
strip gen_eth_addr
strip img2srec
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /opt/x4412/uboot/include -idirafter /opt/x4412/uboot/include2 -idirafter /opt/x4412/uboot/include -I /opt/x4412/uboot/lib/libfdt -I /opt/x4412/uboot/tools -DCONFIG_SYS_TEXT_BASE=0xc3e00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic  -o mkimage crc32.o default_image.o fit_image.o image.o imximage.o kwbimage.o md5.o mkimage.o os_support.o sha1.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o
strip mkimage
make[1]: Leaving directory `/opt/x4412/uboot/tools'

然后我看网上说要先make distclean

 就成这样了。网上说没安装jdk。可是我不用Java,请问只能安装jdk才可以吗?有没有其他的解决办法

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值