首页 > Web开发 > 详细

【原创】-- uboot,kennel,fs,rootfs 编译制作

时间:2015-03-19 20:18:42      阅读:525      评论:0      收藏:0      [点我收藏+]

环境:ubuntu14.04  内核版本 linux 3.13.0   OK6410

   内核编译环境   linux 2.6....

   uboot版本    1.1.6

     交叉编译工具链   arm-linux-gcc 4.3.2

 

1、  编译前要首先安装好交叉工具链,安装过程见博文http://www.cnblogs.com/apolloenterprise/p/4324726.html

2、  编译uboot

  下载uboot源码,下载地址

  进入uboot源码目录,

  $ make clean

  $ make forlinx_nand_ram256_config

  $ make  ARCH=arm CROSS_COMPILE=arm-linux-

  会生成  u-boot.bin

3  配置及编译kernel

  下载kernel源代码,下载地址

  $ make menuconfig ARCH=arm

  进入图形界面,进行相关配置(),如果需要采用nfs方式挂载根文件系统,此时需设置

  $ make uImage ARCH=arm  CROSS_COMPILE=arm-linux-

      

  第一次编译时会显示错误如下:

  "mkimage" command not found - U-Boot images will not be built
  make[1]: *** [arch/arm/boot/uImage] 错误 1
  make: *** [uImage] 错误 2

  为避免此错误修改如下:

  进入  Uboot源代码目录

  cp mkimage /bin

  修改完成,再次编译即可

 

  在内核源代码目录的  arch/arm/boot 中  生成uImage

    

4、 制作文件系统 

  

【原创】-- uboot,kennel,fs,rootfs 编译制作

原文:http://www.cnblogs.com/apolloenterprise/p/4351408.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!