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

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

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

  kernel /vmlinuz-2.6.7 ro root=LABEL=/

  initrd /initrd-2.6.7.img

  title Red Hat Linux

  root (hd0,0)

  kernel /vmlinuz-2.4.20-8 ro root=LABEL=/

  initrd /initrd-2.4.20-8.img

  四 运行内核的常见问题

  1)RPM问题

  进入编译好的内核后,与RPM相关的命令有些不能使用,并出现下列错误:

  rpmdb: unable to join the environment

  error: db4 error(11) from dbenv->open: Resource temporarily unavailable

  error: cannot open Packages index using db3 - Resource temporarily unavailable (11)

  error: cannot open Packages database in /var/lib/rpm

  no packages

  解决方法是执行“export LD_ASSUME_KERNEL =2.2.25”命令,也可以将其写入/etc/bashrc。

  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

来源:Linux公社    责编:豆豆技术应用

正在加载评论...