I.MX6 make menuconfig进入x86模式

时间:2023-03-09 05:17:54
I.MX6 make menuconfig进入x86模式
/************************************************************************
* I.MX6 make menuconfig进入x86模式
* 说明:
* make menuconfig不会自动进入arm内核配置模式,总是进入x86内核模式。
* 左栋帮忙解决。
*
* 2017-4-6 深圳 南山平山村 曾剑锋
***********************************************************************/ 一、现象:
. make menuconfig
.config - Linux/x86 3.14. Kernel Configuration
──────────────────────────────────────────────────────────────────────────────
┌──────────────── Linux/x86 3.14. 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 [ ] │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ [*] -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 > │
└─────────────────────────────────────────────────────────────────────────┘ . make menuconfig ARCH=arm CROSS_COMPILE=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
.config - Linux/arm 3.14. Kernel Configuration
──────────────────────────────────────────────────────────────────────────────
┌──────────────── Linux/arm 3.14. 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-