nightwing 发表于 2015-7-31 14:00:32

OKV210 内核源码编译出错误

工作目录
下载的源码包为:OKV210 20150407的, 买的开发板为 OKV210 1.4的
系统: ubuntu 12.04 32bit
编译器: /usr/local/arm/arm-2009q3
内核文件: android-kernel-samsung-dev( 来源于 OK210用户光盘(A)\Linux\内核源码\android-kernel-samsung-dev.tar.gz )

环境设置:按照手册要求,运行了 android2.3-install.sh

编译过程:

我将内核解压到

/home/nightwing/~Android2.3/android-kernel-samsung-dev 目录下

按照OK210软件手册中的步骤进行编译,
make distclean
cp ok210p_android_config .config
make zImage

最后的错误信息为:

drivers/built-in.o: in function's3c_nand_wait_ecc_busy':
/work/bluesky/samsung/s5pv210/localcode/android-kernel-samsung-dev/drivers/mtd/nand/s3c_nand.c:466: undefined reference to '__might_sleep'
drivers/built-in.o: in function's3c_nand_wait_dec':
/work/bluesky/samsung/s5pv210/localcode/android-kernel-samsung-dev/drivers/mtd/nand/s3c_nand.c:447: undefined reference to '__might_sleep'
drivers/built-in.o: in function's3c_nand_wait_enc':
/work/bluesky/samsung/s5pv210/localcode/android-kernel-samsung-dev/drivers/mtd/nand/s3c_nand.c:428: undefined reference to '__might_sleep'
make: *** [.tmp_vmlinuz1] Error 1
页: [1]
查看完整版本: OKV210 内核源码编译出错误