天嵌 ARM开发社区

 找回密码
 注册
查看: 6094|回复: 10

内核编译,dma-mapping.c:129: error: 'SZ_14M' undeclared here (not in a function)

[复制链接]
sdjnjg 发表于 2014-3-20 09:25:59 | 显示全部楼层 |阅读模式
按照系统移植手册,进行系统移植,在编译镜像时,提示如下错误:
arch/arm/mm/dma-mapping.c:118:6: warning: "SZ_14M" is not defined
arch/arm/mm/dma-mapping.c:129: error: 'SZ_14M' undeclared here (not in a function)
这个是什么地方出错,怎么解决?
 楼主| sdjnjg 发表于 2014-3-20 09:51:16 | 显示全部楼层
所有的文件都是天嵌提供的,没有自己编写的程序
TQ-ZQL 发表于 2014-3-20 10:30:46 | 显示全部楼层
讲下你的编译 过程,还有环境,使用的arm-linux-gcc等等
 楼主| sdjnjg 发表于 2014-3-20 11:01:24 | 显示全部楼层
1.安装交叉编译器: 安装天嵌光盘->linux平台工具->ubuntu_env_install.tar.bz2, 并在/etc/environment中添加路径:/opt/EmbedSky/4.4.6/bin
2.解压系统源码Kernel_2.6.35.7_TQ210_for_Linux_V1.2.tar.bz2
3.修改Makefile文件:ARCH = arm和CROSS_COMPILE = arm-linux-
4.修改平台时钟为12000000;
5.打开 arch/arm/configs/s3c2410_defconfig, 并保存为 .config
6.使用make zImage命令编译

这个过程落下了哪个环节?
 楼主| sdjnjg 发表于 2014-3-20 11:22:29 | 显示全部楼层
我这个描述,是否是您要求的,我是新手,刚开始接触,请多帮忙,谢谢!
TQ-ZQL 发表于 2014-3-20 14:37:55 | 显示全部楼层
你拿210的内核来编译2410?210的内核我们只保证能正常编译210.
 楼主| sdjnjg 发表于 2014-3-20 14:45:42 | 显示全部楼层
有关于TQ210系统移植的手册吗,只发现关于2410的系统移植的手册???
 楼主| sdjnjg 发表于 2014-3-20 14:54:53 | 显示全部楼层
使用arch/arm/configs/s5pv210_defconfig, 并保存为 .config后编译,出现如下错误

arch/arm/mach-s5pv210/mach-tq210.c:226: error: 'CONFIG_FB_S3C_NR_BUFFERS' undeclared here (not in a function)
arch/arm/mach-s5pv210/mach-tq210.c:2339:7: warning: "CONFIG_MACH_TQ210" is not defined
arch/arm/mach-s5pv210/mach-tq210.c:2349: error: 's5p_systimer' undeclared here (not in a function)
arch/arm/mach-s5pv210/mach-tq210.c:2349: error: initializer element is not constant
arch/arm/mach-s5pv210/mach-tq210.c:2349: error: (near initialization for '__mach_desc_TQ210.timer')
make[1]: *** [arch/arm/mach-s5pv210/mach-tq210.o] 错误 1
make: *** [arch/arm/mach-s5pv210] 错误 2

TQ210板,不是用s5pv210_defconfig这个配置吗?
 楼主| sdjnjg 发表于 2014-3-20 15:11:55 | 显示全部楼层
使用tq210_defconfig后,编译通过,谢谢
美丽心情 发表于 2015-3-25 10:54:09 | 显示全部楼层
sdjnjg 发表于 2014-3-20 15:11
使用tq210_defconfig后,编译通过,谢谢

你好,我现在遇到同样的问题,这个tq210_defconfig不是默认没有吗?
czzhuzc 发表于 2015-3-30 11:56:47 | 显示全部楼层
我也遇到很多奇葩问题 。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-29 08:20 , Processed in 1.031250 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表