Linux内核编译过程详解(kernel2.6.7)

http://tech.ddvip.com   2007年03月07日    社区交流

本文详细介绍Linux内核编译过程详解(kernel2.6.7)

  2)Sound问题

  声音部分的模块名也改变了。我的笔记本原来的声卡驱动是i810_audio,现在已改为snd-intel8x0。因此需要把下面的内容添加到/etc/modprobe.conf中:alias char-major-14 soundcore
alias sound snd-intel8x0
alias sound-slot-0 snd-intel8x0
alias snd-card-0 snd-intel8x0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
install snd-intel8x0 /sbin/modprobe --ignore-install sound-slot-0 &&
{ /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1; /bin/true; }
remove snd-intel8x0
{ /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1; /bin/true; };
/sbin/modprobe -r --ignore-remove sound-slot-0

  然后执行“modprobe sound”加载声音模块,并使用下列命令检验声卡驱动:

  #cat /proc/asound/cards

  显示结果如下:  

  0 [SI7012]: ICH - SiS SI7012

  SiS SI7012 at 0xdc00, irq 11

  3)VMware问题

  解决方法是:

  ◆ 将/usr/bin/vmware-config.pl中所有的“/proc/ksyms”替换为“/proc/kallsyms”。使用“sed”命令可以达到这个目的。

  ◆ 重新运行该脚本,使用内核头文件编译新的内核模块。在编译过程中如发生错误,应该进入/usr/lib/vmware/modules/source,使用下面的命令将vmnet.tar解包:

  #tar xvf vmnet.tar

  ◆ 进入vmnet-only目录修改bridge.c文件。将“atomic_add(skb->truesize, &sk->wmem_alloc);”修改为“atomic_add(skb->truesize, &sk->sk_wmem_alloc);”,并用类似的方式将“protinfo”改为“sk_protinfo”。

  ◆ 再次把vmnet-only目录用下面的命令重新打包为vmmon.tar:

  #tar cvf vmmon.tar v

作者:lqx    责编:豆豆技术应用

正在加载评论...