当前位置: 技术问答>linux和unix
内核配置的问题
来源: 互联网 发布时间:2016-09-22
本文导语: 平台:linux2.6.32+Ubuntu9.10 我每次用make menuconfig配置好内核之后,都会出现下面一个界面,还得再重新配置,请教高手这个是怎么回事,如何避免这种问题? root@lihao-desktop:/opt/workspace/SEED-DEC138/linux2.6.32# make ARCH=arm CR...
平台:linux2.6.32+Ubuntu9.10
我每次用make menuconfig配置好内核之后,都会出现下面一个界面,还得再重新配置,请教高手这个是怎么回事,如何避免这种问题?
root@lihao-desktop:/opt/workspace/SEED-DEC138/linux2.6.32# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
scripts/kconfig/conf -s arch/arm/Kconfig
*
* Restart config...
*
*
* System Type
*
MMU-based Paged Memory Management Support (MMU) [Y/n/?] y
ARM system type
1. Agilent AAEC-2000 based (ARCH_AAEC2000) (NEW)
2. ARM Ltd. Integrator family (ARCH_INTEGRATOR) (NEW)
3. ARM Ltd. RealView family (ARCH_REALVIEW) (NEW)
> 4. ARM Ltd. Versatile family (ARCH_VERSATILE) (NEW)
5. Atmel AT91 (ARCH_AT91) (NEW)
6. Cirrus Logic CLPS711x/EP721x-based (ARCH_CLPS711X) (NEW)
7. Cortina Systems Gemini (ARCH_GEMINI) (NEW)
8. EBSA-110 (ARCH_EBSA110) (NEW)
9. EP93xx-based (ARCH_EP93XX) (NEW)
10. FootBridge (ARCH_FOOTBRIDGE) (NEW)
11. Freescale MXC/iMX-based (ARCH_MXC) (NEW)
12. Freescale STMP3xxx (ARCH_STMP3XXX) (NEW)
13. Hilscher NetX based (ARCH_NETX) (NEW)
14. Hynix HMS720x-based (ARCH_H720X) (NEW)
15. STMicroelectronics Nomadik (ARCH_NOMADIK) (NEW)
16. IOP13xx-based (ARCH_IOP13XX) (NEW)
17. IOP32x-based (ARCH_IOP32X) (NEW)
18. IOP33x-based (ARCH_IOP33X) (NEW)
19. IXP23XX-based (ARCH_IXP23XX) (NEW)
20. IXP2400/2800-based (ARCH_IXP2000) (NEW)
21. IXP4xx-based (ARCH_IXP4XX) (NEW)
22. LinkUp-L7200 (ARCH_L7200) (NEW)
23. Marvell Kirkwood (ARCH_KIRKWOOD) (NEW)
24. Marvell Loki (88RC8480) (ARCH_LOKI) (NEW)
25. Marvell MV78xx0 (ARCH_MV78XX0) (NEW)
26. Marvell Orion (ARCH_ORION5X) (NEW)
27. Marvell PXA168/910 (ARCH_MMP) (NEW)
28. Micrel/Kendin KS8695 (ARCH_KS8695) (NEW)
29. NetSilicon NS9xxx (ARCH_NS9XXX) (NEW)
30. Nuvoton W90X900 CPU (ARCH_W90X900) (NEW)
31. Philips Nexperia PNX4008 Mobile (ARCH_PNX4008) (NEW)
32. PXA2xx/PXA3xx-based (ARCH_PXA) (NEW)
33. Qualcomm MSM (ARCH_MSM) (NEW)
34. RiscPC (ARCH_RPC) (NEW)
35. SA1100-based (ARCH_SA1100) (NEW)
36. Samsung S3C2410, S3C2412, S3C2413, S3C2440, S3C2442, S3C2443 (ARCH_S3C2410) (NEW)
37. Samsung S3C64XX (ARCH_S3C64XX) (NEW)
38. Samsung S5PC1XX (ARCH_S5PC1XX) (NEW)
39. Shark (ARCH_SHARK) (NEW)
40. Sharp LH7A40X (ARCH_LH7A40X) (NEW)
41. ST-Ericsson U300 Series (ARCH_U300) (NEW)
42. TI DaVinci (ARCH_DAVINCI) (NEW)
43. TI OMAP (ARCH_OMAP) (NEW)
44. Broadcom BCMRING (ARCH_BCMRING) (NEW)
choice[1-44]:
我每次用make menuconfig配置好内核之后,都会出现下面一个界面,还得再重新配置,请教高手这个是怎么回事,如何避免这种问题?
root@lihao-desktop:/opt/workspace/SEED-DEC138/linux2.6.32# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
scripts/kconfig/conf -s arch/arm/Kconfig
*
* Restart config...
*
*
* System Type
*
MMU-based Paged Memory Management Support (MMU) [Y/n/?] y
ARM system type
1. Agilent AAEC-2000 based (ARCH_AAEC2000) (NEW)
2. ARM Ltd. Integrator family (ARCH_INTEGRATOR) (NEW)
3. ARM Ltd. RealView family (ARCH_REALVIEW) (NEW)
> 4. ARM Ltd. Versatile family (ARCH_VERSATILE) (NEW)
5. Atmel AT91 (ARCH_AT91) (NEW)
6. Cirrus Logic CLPS711x/EP721x-based (ARCH_CLPS711X) (NEW)
7. Cortina Systems Gemini (ARCH_GEMINI) (NEW)
8. EBSA-110 (ARCH_EBSA110) (NEW)
9. EP93xx-based (ARCH_EP93XX) (NEW)
10. FootBridge (ARCH_FOOTBRIDGE) (NEW)
11. Freescale MXC/iMX-based (ARCH_MXC) (NEW)
12. Freescale STMP3xxx (ARCH_STMP3XXX) (NEW)
13. Hilscher NetX based (ARCH_NETX) (NEW)
14. Hynix HMS720x-based (ARCH_H720X) (NEW)
15. STMicroelectronics Nomadik (ARCH_NOMADIK) (NEW)
16. IOP13xx-based (ARCH_IOP13XX) (NEW)
17. IOP32x-based (ARCH_IOP32X) (NEW)
18. IOP33x-based (ARCH_IOP33X) (NEW)
19. IXP23XX-based (ARCH_IXP23XX) (NEW)
20. IXP2400/2800-based (ARCH_IXP2000) (NEW)
21. IXP4xx-based (ARCH_IXP4XX) (NEW)
22. LinkUp-L7200 (ARCH_L7200) (NEW)
23. Marvell Kirkwood (ARCH_KIRKWOOD) (NEW)
24. Marvell Loki (88RC8480) (ARCH_LOKI) (NEW)
25. Marvell MV78xx0 (ARCH_MV78XX0) (NEW)
26. Marvell Orion (ARCH_ORION5X) (NEW)
27. Marvell PXA168/910 (ARCH_MMP) (NEW)
28. Micrel/Kendin KS8695 (ARCH_KS8695) (NEW)
29. NetSilicon NS9xxx (ARCH_NS9XXX) (NEW)
30. Nuvoton W90X900 CPU (ARCH_W90X900) (NEW)
31. Philips Nexperia PNX4008 Mobile (ARCH_PNX4008) (NEW)
32. PXA2xx/PXA3xx-based (ARCH_PXA) (NEW)
33. Qualcomm MSM (ARCH_MSM) (NEW)
34. RiscPC (ARCH_RPC) (NEW)
35. SA1100-based (ARCH_SA1100) (NEW)
36. Samsung S3C2410, S3C2412, S3C2413, S3C2440, S3C2442, S3C2443 (ARCH_S3C2410) (NEW)
37. Samsung S3C64XX (ARCH_S3C64XX) (NEW)
38. Samsung S5PC1XX (ARCH_S5PC1XX) (NEW)
39. Shark (ARCH_SHARK) (NEW)
40. Sharp LH7A40X (ARCH_LH7A40X) (NEW)
41. ST-Ericsson U300 Series (ARCH_U300) (NEW)
42. TI DaVinci (ARCH_DAVINCI) (NEW)
43. TI OMAP (ARCH_OMAP) (NEW)
44. Broadcom BCMRING (ARCH_BCMRING) (NEW)
choice[1-44]:
|
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
|
找到内核中的 :
export KBUILD_BUILDHOST := $(SUBARCH)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
直接修改成:
ARCH ?= arm
CROSS_COMPILE ?=arm-none-linux-gnueabi-
export KBUILD_BUILDHOST := $(SUBARCH)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
直接修改成:
ARCH ?= arm
CROSS_COMPILE ?=arm-none-linux-gnueabi-
|
感觉是这种问题,没有知道体系结构,及编译器类型。
|
修改内核顶层目录中的Makefile文件也是可以的。