嵌入式Linux开发:之1-内核编译

869阅读 0评论2007-05-17 gliethttp
分类:LINUX

嵌入式Linux开发:之1-内核编译(作者:gliethttp)

1.解压内核
  [root@gliethttp root]# tar zxvf linux-2.4.19-rmk7.tar.gz
2.编译
  <1>修改Makefile文件
     ARCH :=arm ;表示目标板为arm
     CROSS_COMPILE=交叉编译工具的地址
     设置交叉编译工具的地址,例如CROSS_COMPILE= /usr/local/arm/2.95.3/bin/arm-linux-
  <2>清理
  [root@gliethttp root]# make mrproper
  <3>配置默认
  [root@gliethttp root]# make at91rm9200dk_config
  [root@gliethttp root]# make oldconfig
  [root@gliethttp root]# make menuconfig
  [root@gliethttp root]# make clean
  [root@gliethttp root]# make dep
  [root@gliethttp root]# make Image
  [root@gliethttp root]# /usr/local/arm/2.95.3/bin/arm-linux-objcopy -O binary -S vmlinux linux.bin
  [root@gliethttp root]# gzip linux.bin
  [root@gliethttp root]# mkimage -A arm -O linux -C gzip -a 0x20008000 -e 0x20008000 -d linux.bin.gz uImage
  [root@gliethttp root]# cp uImage /tftpboot

上一篇:嵌入式Linux开发工具安装:之3-NFS文件系统
下一篇:Linux常用命令(一)