zoukankan      html  css  js  c++  java
  • 编译Uboot和内核

    前奏准备:

    1.安装apt           $ apt-get install openjdk-6-jdk

    2.安装git             $apt-get install git

    3.$git init

    安装marvell交叉编译gcc,设置环境变量

    4.$ export PATH=/opt/arm-marvell-linux-gnueabi/bin:$PATH
       $ export CROSS_COMPILE=arm-marvell-linux-gnueabi-
    5.$ cd gplugd-uboot
      $ make distclean
      $ make gplugd_config
      $ make all

    6.$ ls u-boot*
    u-boot
    u-boot.bin
    u-boot.map
    u-boot.srec
    where
    • u-boot.bin is a raw binary image file
    • u-boot is an image file in ELF binary format
    • u-boot.srec is an image file in Motorola S-Record format

    内核编译:

    $ cd gplugd-linux-2.6

    $ export PATH=/opt/arm-marvell-linux-gnueabi/bin:$PATH
    $ export CROSS_COMPILE=arm-marvell-linux-gnueabi-

    $ export ARCH=arm

    Use the following commands to clean, configure, and build the Linux kernel:
    $ make mrproper
    $ make gplugd_defconfig
    $ make all
    To let make display more detailed messages during the build, add the “V=1” option to the make command as shown
    below:
    $ make V=1 all

    If the build is successful, the resulting kernel image file, zImage, will be in arch/arm/boot subdirectory in the source file
    tree:
    $ ls arch/arm/boot/zImage
    arch/arm/boot/zImage


  • 相关阅读:
    2019总结
    数据挖掘-挖掘频繁模式、关联和相关性:基本概念和方法
    Elasticsearch-删除数据
    Elasticsearch-更新现有文档
    Elasticsearch-如何识别一篇文档
    2019-10-25 记录
    信息、数据、知识之间的关系
    螺旋式上升,螺旋形理论
    触发
    书籍阅读
  • 原文地址:https://www.cnblogs.com/xiaotlili/p/2118717.html
Copyright © 2011-2022 走看看