Dragonfly
发表于 2003-4-23 10:36:35
刚刚在redhat内核2.4.20-9的源码目录下查了一下,内核源码里有两个地方用到这个schedule_work函数,按道理应该支持才对
drivers/message/fusion/mptscsih.h: if (schedule_work(x) == 0) { \
drivers/message/fusion/mptlan.c: schedule_work(&priv->post_buckets_task);
include/linux/workqueue.h:extern int FASTCALL(schedule_work(struct work_struct *work));
不知道你现在用的内核是不是自己编译的?如果用的还是rh9原装自带的2.4.18-8,试试将kernel-source rpm包用--force参数覆盖安装一遍,然后重新make alsa驱动
from u post, i can not find where linux kernel implement this schedule_work(). and again redhat hack the linux kernel and back port this from 2.5.x kernel. my vanillia 2.4.20 kernel does not have this. even doesnot have this waitqueue.h.
Dragonfly
发表于 2003-4-23 10:37:58
# ./configure --with-kernel=/usr/src/linux-2.4.20-8 --with-moddir=/lib/modules/2.4.20-8/kernel --with-sequencer=yes --with-cards=via82xx
checking for kernel module symbol versions... "yes"
#make
proceeding....
Thank u
en? how u manage to get this?
lbohr
发表于 2003-4-23 11:05:04
in kernel src fold,as you said
make menuconfig
choose :enable all three options in load module support
save
make dep
but after make all,
modprobe snd-via82xx
the same problem:
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol schedule_work
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.20-8/kernel/sound/acore/snd.o failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod snd-via82xx failed
Dragonfly
发表于 2003-4-23 11:25:46
in kernel src fold,as you said
make menuconfig
choose :enable all three options in load module support
save
make dep
but after make all,
modprobe snd-via82xx
the same problem:
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol schedule_work
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.20-8/kernel/sound/acore/snd.o failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod snd-via82xx failed
i do not have rh9 at hand. i will try it asap and tell u why. i use gentoo and use vanilla kernel, it is so easy to get it work. and my rh8 on another desktop does not give me such pain.
lbohr
发表于 2003-4-23 15:52:45
http://www.mail-archive.com/
[email protected]/msg07209.html
go back to 0.9.0rc6 for it to work properly
I try again with 0.9.6rc6,it work well
THanks
Dragonfly
发表于 2003-4-23 23:28:18
i test the alsa 092 on my rh 8.0 , no any problem.
a last try is to recompile the kernel, boot with new kernel, and try to compile alsa again. u can try that if u want. i do not find rh 9 till now.
Dragonfly
发表于 2003-4-24 06:05:17
i download a rh 9 kernel source on my rh8 and try to recompile it. it is a stupid kernel code. my customized config always fails in compilation. so u had better stay at 0.90 or download 0.92 rpm from freshrpm.net
lbohr
发表于 2003-4-24 18:36:29
谢谢你,做了这么多工作,我就用0.9.0rc6,不重编译内核了。
//bow
Dragonfly
发表于 2003-4-24 22:20:44
welcome. i just feel interested why my kernel works well while rh one has so many troubles.
llc
发表于 2003-4-24 23:31:23
rh9的内核确实问题多多,我在rh8下编译可以通过的摄影头驱动在rh9的内核下就是不行,错误情况和楼主的差不多,自己胡乱修改了一下后,可以驱动了,但几乎功能尽失,拍出的画面惨不认睹
Dragonfly
发表于 2003-4-24 23:42:50
i believe rh back port many linux 2.5.x patches to 2.4.20 while do not do enough test. so if u really want to use new functionalities, u can install a 2.5.66. that is stable enough.
lbohr
发表于 2003-4-25 07:26:35
看来不得不重新编译内核了,
不过刚看到,没有NV支持2。5的驱动
lbohr
发表于 2003-4-25 19:50:41
recompile kernel 2.4.20(tarball from www.kernel.org)
alsa-0.9.2 works now.
There are some bugs in kernel 2.4.20-8(RedHat 9.0)
Dragonfly
发表于 2003-4-25 22:30:57
recompile kernel 2.4.20(tarball from www.kernel.org)
alsa-0.9.2 works now.
There are some bugs in kernel 2.4.20-8(RedHat 9.0)
this is what i want to recommend.:-D:-D:-D
cnhnln
发表于 2003-4-26 19:26:06
RH9,自己编译的2.4.20内核.从 www.kernel.org 下载的官方的内核,不是RH自带的源代码.SB live 5.1
换了多个不同版本的alsa的驱动,编译都不通过,包括公社前天提供的rc5.
configure: creating ./config.status
config.status: creating version
config.status: creating Makefile.conf
config.status: creating snddevices
config.status: creating utils/alsa-driver.spec
config.status: creating utils/buildrpm
config.status: creating toplevel.config
config.status: creating include/config.h
config.status: creating include/config1.h
config.status: creating include/version.h
config.status: include/version.h is unchanged