编译 uImage 和测试 u-Boot

开始编uImage 的时候,报错:

multiple (or no) load addresses: 
This is incompatible with uImages
Specify LOADADDR on the commandline to build an uImage
make[1]: *** [arch/arm/boot/uImage] Error 1
make: *** [uImage] Error 2

原因是没有指定 加载地址。在命令行加上加载地址就可以了:

$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- LOADADDR=0x80008000 make uImage
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-3.10.28
Created:      Wed Jul 23 09:21:26 2014
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2697448 Bytes = 2634.23 kB = 2.57 MB
Load Address: 80008000
Entry Point:  80008000
  Image arch/arm/boot/uImage is ready


你可能感兴趣的:(编译 uImage 和测试 u-Boot)