I.MX6 make menuconfig进入x86模式

/************************************************************************
 *                 I.MX6 make menuconfig进入x86模式
 * 说明:
 *     make menuconfig不会自动进入arm内核配置模式,总是进入x86内核模式。
 * 左栋帮忙解决。
 *
 *                                      2017-4-6 深圳 南山平山村 曾剑锋
 ***********************************************************************/

一、现象:
    1. make menuconfig
      .config - Linux/x86 3.14.52 Kernel Configuration
     ──────────────────────────────────────────────────────────────────────────────
      ┌──────────────── Linux/x86 3.14.52 Kernel Configuration ─────────────────┐
      │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty │  
      │  submenus ----).  Highlighted letters are hotkeys.  Pressing <Y>        │  
      │  includes, <N> excludes, <M> modularizes features.  Press <Esc><Esc> to │  
      │  exit, <?> for Help, </> for Search.  Legend: [*] built-in  [ ]         │  
      │ ┌─────────────────────────────────────────────────────────────────────┐ │  
      │ │    [*] 64-bit kernel (NEW)                                          │ │  
      │ │        General setup  --->                                          │ │  
      │ │    [*] Enable loadable module support  --->                         │ │  
      │ │    [*] Enable the block layer  --->                                 │ │  
      │ │        Processor type and features  --->                            │ │  
      │ │        Power management and ACPI options  --->                      │ │  
      │ │        Bus options (PCI etc.)  --->                                 │ │  
      │ │        Executable file formats / Emulations  --->                   │ │  
      │ │    < > Intel System On Chip IOSF Sideband support (NEW)             │ │  
      │ │    [*] Networking support  --->                                     │ │  
      │ └────┴(+)─────────────────────────────────────────────────────────────┘ │  
      ├─────────────────────────────────────────────────────────────────────────┤  
      │        <Select>    < Exit >    < Help >    < Save >    < Load >         │  
      └─────────────────────────────────────────────────────────────────────────┘  
        
    2. make menuconfig ARCH=arm CROSS_COMPILE=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
     .config - Linux/arm 3.14.52 Kernel Configuration
     ──────────────────────────────────────────────────────────────────────────────
      ┌──────────────── Linux/arm 3.14.52 Kernel Configuration ─────────────────┐
      │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty │  
      │  submenus ----).  Highlighted letters are hotkeys.  Pressing <Y>        │  
      │  includes, <N> excludes, <M> modularizes features.  Press <Esc><Esc> to │  
      │  exit, <?> for Help, </> for Search.  Legend: [*] built-in  [ ]         │  
      │ ┌─────────────────────────────────────────────────────────────────────┐ │  
      │ │    -*- Patch physical to virtual translations at runtime            │ │  
      │ │        General setup  --->                                          │ │  
      │ │    [*] Enable loadable module support  --->                         │ │  
      │ │    [*] Enable the block layer  --->                                 │ │  
      │ │        System Type  --->                                            │ │  
      │ │    [ ] FIQ Mode Serial Debugger (NEW)                               │ │  
      │ │        Bus support  --->                                            │ │  
      │ │        Kernel Features  --->                                        │ │  
      │ │        Boot options  --->                                           │ │  
      │ │        CPU Power Management  --->                                   │ │  
      │ └────┴(+)─────────────────────────────────────────────────────────────┘ │  
      ├─────────────────────────────────────────────────────────────────────────┤  
      │        <Select>    < Exit >    < Help >    < Save >    < Load >         │  
      └─────────────────────────────────────────────────────────────────────────┘  
    
二、解决办法:
    cat ~/.bashrc
        ...
        export ARCH=arm 
        export CROSS_COMPILE=/home/zengjf/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
    

 

posted on 2017-04-06 10:22  zengjf  阅读(608)  评论(0编辑  收藏  举报

导航