zoukankan      html  css  js  c++  java
  • Android Kernel save defalut config

    /*********************************************************************************
     *                    Android Kernel save defalut config
     * 说明:
     *     一个没注意设置环境变量,把默认的配置文件给操作没了。
     *
     *                                       2017-11-13 深圳 南山平山村 曾剑锋
     ********************************************************************************/
    
    一、获取config文件名
        including ./system/netd/server/Android.mk ...
        including ./system/security/keystore-engine/Android.mk ...
        including ./system/security/keystore/Android.mk ...
        including ./system/security/softkeymaster/Android.mk ...
        including ./system/vold/Android.mk ...
        including ./tools/external/fat32lib/Android.mk ...
        No private recovery resources for TARGET_DEVICE sabresd_6dq
        make -C kernel_imx imx_v7_android_defconfig ARCH=arm CROSS_COMPILE=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- LOADADDR=0x10008000
        make[1]: Entering directory `/home/desk/myandroid/kernel_imx'
        #
        # configuration written to .config
        #
        make[1]: Leaving directory `/home/desk/myandroid/kernel_imx'
        install -D kernel_imx/.config out/target/product/sabresd_6dq/.config
        make -C kernel_imx -j20 uImage ARCH=arm CROSS_COMPILE=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- LOADADDR=0x10008000
        make[1]: Entering directory `/home/desk/myandroid/kernel_imx'
        scripts/kconfig/conf --silentoldconfig Kconfig
        make[1]: Leaving directory `/home/desk/myandroid/kernel_imx'
        make[1]: Entering directory `/home/desk/myandroid/kernel_imx'
          CHK     include/config/kernel.release
          CHK     include/generated/uapi/linux/version.h
        ^Cmake[1]: *** [include/config/kernel.release] Interrupt
        make: *** [out/target/product/sabresd_6dq/kernel] Interrupt
    
    二、找出文件位置
        desk@desk-ubuntu:~/myandroid/kernel_imx$ find * -iname imx_v7_android_defconfig
        arch/arm/configs/imx_v7_android_defconfig
    
    三、操作过程
        1. 设置ARM环境变量,否者会进入x86内核状态:
            export ARCH=arm
            export CROSS_COMPILE=~/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
        2. make menuconfig
        3. make savedefconfig 
        4. cp defconfig arch/arm/configs/imx_v7_android_defconfig
  • 相关阅读:
    OpenCv 109---Blob分析
    OpenCv 013---图像的翻转
    OpenCv 012---视频文件读写
    MenuExample
    OpenCv 011---像素归一化
    OpenCv 010---图像像素值统计
    OpenCv 009---色彩空间与色彩空间转换
    OpenCv 008---通道分离与合并
    OpenCv 007---像素操作的逻辑操作
    OpenCv 006---LUT的作用与用法
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/7827510.html
Copyright © 2011-2022 走看看