编译 uImage 和测试 u-Boot

来源:互联网 发布:明华堂淘宝 编辑:程序博客网 时间:2024/05/22 00:38

开始编uImage 的时候,报错:

multiple (or no) load addresses: This is incompatible with uImagesSpecify LOADADDR on the commandline to build an uImagemake[1]: *** [arch/arm/boot/uImage] Error 1make: *** [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.hmake[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/uImageImage Name:   Linux-3.10.28Created:      Wed Jul 23 09:21:26 2014Image Type:   ARM Linux Kernel Image (uncompressed)Data Size:    2697448 Bytes = 2634.23 kB = 2.57 MBLoad Address: 80008000Entry Point:  80008000  Image arch/arm/boot/uImage is ready


0 1