prikc 发表于 2011-3-27 16:56:05

下载的内核无法编译

为什么从网站上下载的2.6.36的内核无法编译,选择了
CMM和FIMC就会出现错误,缺少regs-g2d.h文件。

飞凌-fatfish 发表于 2011-3-28 08:50:24

请帖详细过程

prikc 发表于 2011-3-28 09:57:40

开始的时候提示缺少 plat/regs-g2d.h, 然后从网上找一个复制进去,再次编译出现
/source/forliux2.6.36.2$ make ARCH=arm zImage
CHK   include/linux/version.h
CHK   include/generated/utsrelease.h
make: “include/generated/mach-types.h”是最新的。
CALL    scripts/checksyscalls.sh
CHK   include/generated/compile.h
CC      drivers/media/video/samsung/g2d/s3c_fimg2d2x.o
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c: In function ‘s3c_g2d_irq’:
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c:304:3: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c:304:3: note: each undeclared identifier is reported only once for each function it appears in
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c: In function ‘s3c_g2d_open’:
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c:315:2: error: implicit declaration of function ‘kmalloc’
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c: In function ‘s3c_g2d_release’:
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c:341:2: error: implicit declaration of function ‘kfree’
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c: At top level:
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c:456:2: error: unknown field ‘ioctl’ specified in initializer
drivers/media/video/samsung/g2d/s3c_fimg2d2x.c:456:2: warning: initialization from incompatible pointer type
make: *** 错误 1
make: *** 错误 2
make: *** 错误 2
make: *** 错误 2
make: *** 错误 2
make: *** 错误 2

飞凌-fatfish 发表于 2011-3-28 13:09:09

编译器版本?
页: [1]
查看完整版本: 下载的内核无法编译