主题 : 移植kernel 3.4.50出现奇怪问题求帮忙! 复制链接 | 浏览器收藏 | 打印
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
楼主  发表于: 2013-06-27 20:56

 移植kernel 3.4.50出现奇怪问题求帮忙!

为了做dreambox 1209,我先打算移植一个内核,但编译出现问题,错误提示见二楼




这是我做的源码包,求高手解决:
https://sourceforge.net/projects/hustudio/files/linux-3.4.50-edited.tar.bz2/download
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
1楼  发表于: 2013-06-27 20:58
AS      arch/arm/mm/abort-ev7.o
  AS      arch/arm/mm/pabort-v7.o
  AS      arch/arm/mm/cache-v7.o
  CC      arch/arm/mm/copypage-v6.o
  CC      arch/arm/mm/context.o
  AS      arch/arm/mm/tlb-v7.o
  AS      arch/arm/mm/proc-v7.o
  LD      arch/arm/mm/built-in.o
  CC      arch/arm/common/vic.o
  LD      arch/arm/common/built-in.o
  CC      arch/arm/net/bpf_jit_32.o
  LD      arch/arm/net/built-in.o
  CC      arch/arm/mach-s5pv210/dev-audio.o
  CC      arch/arm/mach-s5pv210/cpuidle.o
arch/arm/mach-s5pv210/cpuidle.c: In function 'check_usbotg_op':
arch/arm/mach-s5pv210/cpuidle.c:122:8: error: 'S3C_VA_OTG' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:122:8: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-s5pv210/cpuidle.c: In function 'check_power_clock_gating':
arch/arm/mach-s5pv210/cpuidle.c:144:13: error: 'S5P_CLKGATE_IP0_MDMA' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:144:36: error: 'S5P_CLKGATE_IP0_PDMA0' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:145:8: error: 'S5P_CLKGATE_IP0_PDMA1' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:155:13: error: 'S5P_CLKGATE_IP3_I2C0' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:156:8: error: 'S5P_CLKGATE_IP3_I2C_HDMI_DDC' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:156:39: error: 'S5P_CLKGATE_IP3_I2C2' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c: In function 'get_rtc_cnt':
arch/arm/mach-s5pv210/cpuidle.c:195:27: error: 'S5P_VA_RTC' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:199:16: error: 'S3C2410_CURTICCNT' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c: In function 's5p_gpio_pdn_conf':
arch/arm/mach-s5pv210/cpuidle.c:225:28: error: 'S5PV210_GPA0_BASE' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c:238:24: error: 'S5PV210_MP28_BASE' undeclared (first use in this function)
arch/arm/mach-s5pv210/cpuidle.c: In function 's5p_enter_didle':
arch/arm/mach-s5pv210/cpuidle.c:287:2: error: implicit declaration of function 'S5P_VIC0REG'
arch/arm/mach-s5pv210/cpuidle.c:288:2: error: implicit declaration of function 'S5P_VIC1REG'
arch/arm/mach-s5pv210/cpuidle.c:289:2: error: implicit declaration of function 'S5P_VIC2REG'
arch/arm/mach-s5pv210/cpuidle.c:290:2: error: implicit declaration of function 'S5P_VIC3REG'
arch/arm/mach-s5pv210/cpuidle.c:354:2: error: implicit declaration of function 'cpu_init'
arch/arm/mach-s5pv210/cpuidle.c: At top level:
arch/arm/mach-s5pv210/cpuidle.c:430:18: error: 'THIS_MODULE' undeclared here (not in a function)
arch/arm/mach-s5pv210/cpuidle.c: In function 's5p_init_cpuidle':
arch/arm/mach-s5pv210/cpuidle.c:452:8: error: 'struct cpuidle_device' has no member named 'states'
arch/arm/mach-s5pv210/cpuidle.c:453:8: error: 'struct cpuidle_device' has no member named 'states'
arch/arm/mach-s5pv210/cpuidle.c:454:8: error: 'struct cpuidle_device' has no member named 'states'
arch/arm/mach-s5pv210/cpuidle.c:455:8: error: 'struct cpuidle_device' has no member named 'states'
arch/arm/mach-s5pv210/cpuidle.c:456:15: error: 'struct cpuidle_device' has no member named 'states'
arch/arm/mach-s5pv210/cpuidle.c:457:15: error: 'struct cpuidle_device' has no member named 'states'
make[1]: *** [arch/arm/mach-s5pv210/cpuidle.o] Error 1
make: *** [arch/arm/mach-s5pv210] Error 2
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
2楼  发表于: 2013-07-01 16:45
你可以参考已有内核,如 Linux-3.0.8,增加这些没有的定义,仔细的一个一个的加
对于 'S5P_VA 这些还需要注意地址映射不要冲突了