主题 : 求大神指点!!!!!!打算将Linux移植到tiny210 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 99857
精华: 0
发帖: 5
金钱: 35 两
威望: 7 点
综合积分: 10 分
注册时间: 2014-01-13
最后登录: 2014-03-25
楼主  发表于: 2014-01-16 15:57

 求大神指点!!!!!!打算将Linux移植到tiny210

出现如下错误 求大神指点!!!!!!


arch/arm/mach-s5pv210/built-in.o: In function `s5pv210_pm_add':
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:142: undefined reference to `pm_cpu_prep'
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:142: undefined reference to `pm_cpu_sleep'
arch/arm/mach-s5pv210/built-in.o: In function `s5pv210_pm_prepare':
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:133: undefined reference to `s3c_pm_do_save'
arch/arm/mach-s5pv210/built-in.o: In function `s5pv210_pm_resume':
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:165: undefined reference to `s3c_pm_do_restore_core'
arch/arm/mach-s5pv210/built-in.o: In function `s5pv210_dma_init':
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/dma.c:122: undefined reference to `amba_device_register'
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/dma.c:126: undefined reference to `amba_device_register'
make: *** [vmlinux] Error 1
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2014-01-16 17:20

/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:142: undefined reference to `pm_cpu_prep'
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:142: undefined reference to `pm_cpu_sleep'
arch/arm/mach-s5pv210/built-in.o: In function `s5pv210_pm_prepare':
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:133: undefined reference to `s3c_pm_do_save'
arch/arm/mach-s5pv210/built-in.o: In function `s5pv210_pm_resume':
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/pm.c:165: undefined reference to `s3c_pm_do_restore_core'

这几个变量定义在3.11内核的arch/arm/plat-samsung/pm.c里,确保内核配置里的CONFIG_SAMSUNG_PM选项是打开的


arch/arm/mach-s5pv210/built-in.o: In function `s5pv210_dma_init':
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/dma.c:122: undefined reference to `amba_device_register'
/home/erazer/.local/share/Trash/files/linux-3.11.10/arch/arm/mach-s5pv210/dma.c:126: undefined reference to `amba_device_register'

这个函数定义在drivers/amba/bus.c里,确保内核配置里的CONFIG_ARM_AMBA是打开的
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."