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


  • 相关阅读:
    英语八大时态
    linux yum被占用
    文件上传ajaxfileupload.js插件
    jquery.qrcode.js生成二维码
    判断手机,pc方式登录
    点击小图轮播,点击显示大图
    图片预览功能
    Java Hash表 数据结构
    Java Tree 树 数据结构
    Java Queue 队列
  • 原文地址:https://www.cnblogs.com/xiaotlili/p/2118717.html
Copyright © 2011-2022 走看看