linux内核编译过程中出现两个错误的解决方法~!

/*************************** error 1 ******************************/

在编译内核的过程中出现了如下的编译显示代码:

drivers/video/console/vgacon.c: In function 'vgacon_startup':

drivers/video/console/vgacon.c:510: error: 'PCIMEM_BASE' undeclared (first use in this function)

drivers/video/console/vgacon.c:510: error: (Each undeclared identifier is reported only once

drivers/video/console/vgacon.c:510: error: for each function it appears in.)

drivers/video/console/vgacon.c: In function 'vgacon_do_font_op':

drivers/video/console/vgacon.c:1068: error: 'PCIMEM_BASE' undeclared (first use in this function)

 

make[3]: *** [drivers/video/console/vgacon.o] Error 1

make[2]: *** [drivers/video/console] Error 2

make[1]: *** [drivers/video] Error 2

make: *** [drivers] Error 2

 

说明:配置单中对于控制台的配置有误,添加了多余的配置导致的。

解决方法:通过make menuconfig 进入配置界面,在Device Drivers->Graphics Support->Console display driver support中去掉VGA text console,保存设置后再编译就可以了

/******************************************************************/

 

 

/*************************** error 2 ******************************/

[root@localhost linux-2.6.29]# make uImage ARCH=arm CROSS_COMPILE=arm-linux-

  CHK     include/linux/version.h

make[1]: `include/asm-arm/mach-types.h' is up to date.

  CHK     include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-arm

  CC      arch/arm/kernel/asm-offsets.s

In file included from include/linux/irqflags.h:57,

                 from /home/mini2440/linux-2.6.29/arch/arm/include/asm/system.h:61,

                 from /home/mini2440/linux-2.6.29/arch/arm/include/asm/bitops.h:27,

                 from include/linux/bitops.h:17,

                 from include/linux/kernel.h:15,

                 from include/linux/sched.h:52,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined

In file included from /home/mini2440/linux-2.6.29/arch/arm/include/asm/bitops.h:27,

                 from include/linux/bitops.h:17,

                 from include/linux/kernel.h:15,

                 from include/linux/sched.h:52,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/system.h:111:5: warning: "__LINUX_ARM_ARCH__" is not defined

/home/mini2440/linux-2.6.29/arch/arm/include/asm/system.h:117:5: warning: "__LINUX_ARM_ARCH__" is not defined

/home/mini2440/linux-2.6.29/arch/arm/include/asm/system.h:121:35: warning: "__LINUX_ARM_ARCH__" is not defined

/home/mini2440/linux-2.6.29/arch/arm/include/asm/system.h:241:5: warning: "__LINUX_ARM_ARCH__" is not defined

/home/mini2440/linux-2.6.29/arch/arm/include/asm/system.h:246:5: warning: "__LINUX_ARM_ARCH__" is not defined

In file included from include/linux/bitops.h:17,

                 from include/linux/kernel.h:15,

                 from include/linux/sched.h:52,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/bitops.h:237:5: warning: "__LINUX_ARM_ARCH__" is not defined

In file included from /home/mini2440/linux-2.6.29/arch/arm/include/asm/thread_info.h:16,

                 from include/linux/thread_info.h:55,

                 from include/linux/preempt.h:9,  

from include/linux/spinlock.h:50,

                 from include/linux/seqlock.h:29,

                 from include/linux/time.h:8,                  

from include/linux/timex.h:56,

                 from include/linux/sched.h:54,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/fpstate.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined

In file included from include/linux/prefetch.h:14,                  

  from include/linux/list.h:6,

                 from include/linux/preempt.h:11,

                 from include/linux/spinlock.h:50,

                 from include/linux/seqlock.h:29,

                 from include/linux/time.h:8,

                 from include/linux/timex.h:56,

                 from include/linux/sched.h:54,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/processor.h:109:5: warning: "__LINUX_ARM_ARCH__" is not defined

In file included from include/linux/spinlock.h:353,

                 from include/linux/seqlock.h:29,                  

from include/linux/time.h:8,

                 from include/linux/timex.h:56,

                 from include/linux/sched.h:54,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/atomic.h:24:5: warning: "__LINUX_ARM_ARCH__" is not defined

In file included from include/linux/time.h:9,

                 from include/linux/timex.h:56,

                 from include/linux/sched.h:54,

                 from arch/arm/kernel/asm-offsets.c:13:

include/linux/math64.h: In function 'div_u64_rem':

include/linux/math64.h:43: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)

include/linux/math64.h:43: error: (Each undeclared identifier is reported only once

include/linux/math64.h:43: error: for each function it appears in.)

In file included from /home/mini2440/linux-2.6.29/arch/arm/include/asm/page.h:26,

                 from include/linux/mm_types.h:14,                  

from include/linux/sched.h:61,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/glue.h:119:2: error: #error Unknown data abort handler type

/home/mini2440/linux-2.6.29/arch/arm/include/asm/glue.h:146:2: error: #error Unknown prefetch abort handler type

In file included from include/linux/mm_types.h:14,

                 from include/linux/sched.h:61,

                 from arch/arm/kernel/asm-offsets.c:13:

/home/mini2440/linux-2.6.29/arch/arm/include/asm/page.h:108:2: error: #error Unknown user operations model

make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1

make: *** [prepare0] Error 2

 

解决方法:出现这个错误的主要原因是相关的配置不完全,所以需要进入menuconfig配置界面,在这个界面里面选择System Type--->S3C2440 Machines(这个是根据你自身开发的需要来进行选择的,在这里面窝全选) --->

/******************************************************************/

你可能感兴趣的:(嵌入式linux)