编译实时linux出错,求帮助
最近公司项目需要用到实时linux,我就下载了linux 官方实时补丁,但是编译报错,有大牛能帮助吗?
内核版本:3.10.65
补丁:patch-3.10.65-rt69
平台:全志 arm9
步骤同下:
patch kernel
----------------------------
# cd /usr/src/ingo-linux
# ls
linux-2.6.21.5.tar.bz2 patch-2.6.21.5-rt18
# tar jxf linux-2.6.21.5.tar.bz2
# mv linux-2.6.21.5 linux-2.6.21.5-realtime
# cd linux-2.6.21.5-realtime
# patch -p1 < ../patch-2.6.21.5-rt18
打补丁后,拷贝arch下def_config到linux内核顶层目录,改为.config 然后make oldconfig,然后编译:
报以下错误:
kernel/hrtimer.c: In function 'run_clock_set_delay':
kernel/hrtimer.c:775:2: error: implicit declaration of function 'kthread_should_stop'
kernel/hrtimer.c: In function 'create_clock_set_delay_thread':
kernel/hrtimer.c:797:2: error: implicit declaration of function 'kthread_run'
kernel/hrtimer.c:797:25: warning: assignment makes pointer from integer without a cast
kernel/hrtimer.c: In function 'hrtimer_interrupt':
kernel/hrtimer.c:1568:4: error: implicit declaration of function 'trace_hrtimer_interrupt'
kernel/hrtimer.c:1569:8: error: 'struct hrtimer' has no member named 'praecox'
kernel/hrtimer.c:1569:8: error: 'struct hrtimer' has no member named 'praecox'
make[1]: *** [kernel/hrtimer.o] 错误 1
有好心人帮忙吗,谢谢!