当前位置: 技术问答>linux和unix
Linux在arm平台中内核的编译
来源: 互联网 发布时间:2017-05-09
本文导语: 将Linux-2.6.29内核源代码中 make distclean make menuconfig ARCH=arm 选择SMKD64XX 在执行 make uImage ARCH=arm CROSS_COMPILE=arm-linux- 后出现: drivers/video/console/vgacon.c: In function 'vgacon_startup': drivers/video/console/vgacon.c:510: error: 'PCIMEM...
将Linux-2.6.29内核源代码中
make distclean
make menuconfig ARCH=arm 选择SMKD64XX
在执行
make uImage ARCH=arm CROSS_COMPILE=arm-linux-
后出现:
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] 错误 1
make[2]: *** [drivers/video/console] 错误 2
make[1]: *** [drivers/video] 错误 2
make: *** [drivers] 错误 2
请问这是什么原因导致的,该如何解决
make distclean
make menuconfig ARCH=arm 选择SMKD64XX
在执行
make uImage ARCH=arm CROSS_COMPILE=arm-linux-
后出现:
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] 错误 1
make[2]: *** [drivers/video/console] 错误 2
make[1]: *** [drivers/video] 错误 2
make: *** [drivers] 错误 2
请问这是什么原因导致的,该如何解决
|
估计是你内核中的video驱动中选中了VGA接口,在编译的时候可能缺什么头文件导致找不到PCIMEM_BASE的定义,如果没用到VGA这块,将内核中取消它再编译试试。