zoukankan      html  css  js  c++  java
  • cubietruck制作刷新lubuntu-kernel

    一:安装交叉编译工具链以及相应的工具(系统最好是ubutnu-64位-server)

    sudo apt-get install g++
    sudo apt-get install libncurses5-dev
    sudo apt-get install zlib1g-dev
    sudo apt-get install bison
    sudo apt-get install flex
    sudo apt-get install unzip
    sudo apt-get install autoconf
    sudo apt-get install gawk
    sudo apt-get install make
    sudo apt-get install gettext
    sudo apt-get install gcc
    sudo apt-get install binutils
    sudo apt-get install patch
    sudo apt-get install bzip2
    sudo apt-get install libz-dev
    sudo apt-get install asciidoc
    sudo apt-get install subversion
    sudo apt-get install sphinxsearch
    sudo apt-get install libtool
    sudo apt-get install sphinx-common
    sudo apt-get install libssl-dev
    sudo apt-get install libssl0.9.8
    sudo apt-get install wget

    sudo apt-get install gcc-arm-linux-gnueabihf

    二:解压源码

    tar zxvf  kernel-source.tar.gz

    三:配置kernel的配置文件

    cp          cubietruck_defconfig     kernel-source/.config

    四:裁剪kernel

    1. make    ARCH=arm menucofnig

    image 

    2.按下enter键,就会进入对应的选项,可以尝试裁剪掉led和pwm

    driver    –>   Misc device     –>    < > Sunxi PWM Driver (pwm-sunxi)  ( 注:不选中pwm)

    driver    –>   LED Support     ->    < >LED Support for sunxi platform (注: 不选中)

    4.按下Esc键,会返回到上层

    按Esc遇到以下图标时就表示退出裁剪配置,选择yes则保存裁剪配置

    image

     

    五:编译kernel

    make   -j5   ARCH=arm    CROSS_COMPILE=arm-linux-gnueabihf-     uImage    modules

    image 

    六:刷新kernel

    1.在开发板上操作,挂载nanda分区到/mnt

    mount     /dev/nanda       /mnt/

    image

    2.copy pc机上新编译的uImage到开发板/mnt

           可以通过以太网连接copy

    3.reboot 重启, 发现led没了

     

  • 相关阅读:
    OpenGL模板缓冲区与模板测试
    u3d调用c++ dll的DllNotFoundExceion 问题
    u3d调用自己的dll
    使用 idea 的Bookmarks(书签)功能
    maven 相关问题
    项目
    使用 vi/vim 时,粘贴进新创建文件或空文件的首行内容丢失的解决方法
    Thread.sleep还是TimeUnit.SECONDS.sleep
    搭建 Guacamole 并解决各种坑和创建不了虚拟驱动器导致无法实现文件传输的方法
    properJavaRDP 跑通本地远程桌面
  • 原文地址:https://www.cnblogs.com/xuyh/p/5711982.html
Copyright © 2011-2022 走看看