Chinaunix首页 | 论坛 | 博客
  • 博客访问: 270832
  • 博文数量: 86
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 398
  • 用 户 组: 普通用户
  • 注册时间: 2014-09-27 15:56
文章存档

2017年(3)

2015年(21)

2014年(62)

我的朋友

分类: LINUX

2014-10-06 20:08:48

资源说明:
         宿主机操作系统:Ubuntu10.04 , 虚拟机为VMware10.0
         交叉编译器版本:arm-arago-linux-gnueabi-gcc,gcc version 4.3.3
                         (源于TI:dvsdk_omapl138- evm_04_03_00_06_setuplinux.bin)
         开发板     平台:Omap-L138EVM (LOGIC PD)
         Linux内核  版本:Linux-2.6.37
         Linux内核源码包:linux-2.6.37-psp03.21.00.04.sdk(源于TI:dvsdk_omapl138-evm_04_03_00_06_setuplinux.bin)
        
1. 首先进入linux-2.6.37-psp03.21.00.04.sdk目录,执行如下命令清楚上次编译生成文件。
axz@ubuntu:~/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk$ make distclean CROSS_COMPILE=/home/axz/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/arm-arago-linux-gnueabi-

2. 针对Omap-L138EVM开发板使用arch/arm/config/da850_omapl138_defconfig配置文件来配置内核,执行如下命令:
axz@ubuntu:~/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk$ make da850_omapl138_defconfig ARCH=arm CROSS_COMPILE=/home/axz/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/arm-arago-linux-gnueabi-
#
# configuration written to .config
#

3. 编译内核,编译成功后在arch/arm/boot/目录下生成uImage文件。
axz@ubuntu:~/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk$ make uImage ARCH=arm CROSS_COMPILE=/home/axz/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/arm-arago-linux-gnueabi-
.......................................................................................此处省略许多编译输出信息...............................................................................................
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  GZIP    arch/arm/boot/compressed/piggy.gzip
  AS      arch/arm/boot/compressed/piggy.gzip.o
  CC      arch/arm/boot/compressed/misc.o
  CC      arch/arm/boot/compressed/decompress.o
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-2.6.37
Created:      Mon Oct  6 02:48:45 2014
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2314860 Bytes = 2260.61 kB = 2.21 MB
Load Address: 0xC0008000
Entry Point:  0xC0008000
  Image arch/arm/boot/uImage is ready
axz@ubuntu:~/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk$


注意:如果出现如下类似信息,导致编译失败,请将mkimage拷贝到/usr/bin目录下。mkimage在u-boot-2010.12-psp03.21.00.04.sdk/tools目录下,成功编译u-boot后生成。
"mkimage" command not found - U-Boot images will not be built




阅读(1661) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~