|
1. 我用的是grub,但是引导2.6.0-test8的内核时vga=792的参数不起作用,看了原来的内核有这么一段:
vesafb: framebuffer at 0xf6000000, mapped to 0xe081b000, size 24576k
vesafb: mode is 1024x768x32, linelength=4096, pages=4
vesafb: protected mode interface info at c000:77a0
vesafb: scrolling: redraw
vesafb: directcolor: size=8:8:8:8, shift=24:16:8:0
Console: switching to colour frame buffer device 128x48
而现在新内核显示为:
matroxfb: Matrox G450 detected
matroxfb: MTRR's turned on
matroxfb: 640x480x8bpp (virtual: 640x65536)
matroxfb: framebuffer at 0xF6000000, mapped to 0xe0805000, size 33554432
fb0: MATROX frame buffer device
fb0: initializing hardware
SBF: Simple Boot Flag extension found and enabled.
SBF: Setting boot flags 0x1
udf: registering filesystem
Initializing Cryptographic API
Console: switching to colour frame buffer device 80x30
也就是说新内核使用了我的显卡的fb,如果我在内核中编译进原先的vesafb,不用matroxfb,就能正常显示了,请问一定非得用vesafb才能支持grub的vga=xxx吗?我想用matroxfb行吗?我在grub里加入了“video=matroxfb:1024x768@85”的命令也不行呀!
2. 假如我想在内核启动时加载模块,是否可以或者必须得用initrd.img文件?我试着用命令"mkinitrd -o /boot/initrd.img-2.6.0-test8 /lib/modules/2.6.0-test8"做了一个映像文件,并把它加入到了grub中,方法和原来的一样:
title Debian GNU/Linux (Sid 2.6.0-test8)
root (hd0,0)
kernel /vmlinuz-2.6.0-test8 ro root=/dev/hda2 vga=792
initrd /initrd.img-2.6.0-test8
应该不会是这里错误,可是在内核启动时总是报错:RAMDISK: Couldn't find valid RAM disk image starting at 0. 请问这是怎么回事?是不是我的命令写的有问题,还有好多人都说用"new-kernel-pkg",可是我的debian中没有,用apt-cache search也搜了,在debian地下如何做initrd.img文件呢?
3. 编译完信内核后我就将/etc/modules里原来内核要加载的模块注释掉了,这样可不可以?/etc/modules.conf这个文件有什么作用,仅仅是比modules写的更细致吗?有人说2.6内核用的是/etc/modprobe.conf,这几个文件到底有什么区别呢?
4. 还有我用modconf试着加载模块,可是启动后什么也没有,就像这样:
┌───────────────────────────┤ Select Category ├───────────────────────────┐
│ Modules are loadable device drivers. Please go through the menus │
│ for each category and look for devices, network protocols, │
│ filesystems, │
│ etc. that you would like to have supported by your system. You should │
│ not install modules for devices that aren't installed in your system, │
│ as they will sometimes cause the system to pause for a long time while │
│ it is searching for the device. Also, drivers for devices that you │
│ don't have use memory that you could put to better use. │
│ │
│ │
│ Exit Finished. Return to previous menu. │
│ │
│ │
│ │
│ <Ok> <Cancel> │
│ │
└─────────────────────────────────────────────────────────────────────────┘
这是怎么回事?和那个initrd.img有没有关系呢?
5. 用了新内核后,gtk2和qt的程序都运行良好,可是启动gtk程序像xmms, mplayer,gentoo等时却慢得出奇,cpu占用率100%,鼠标点什么都没有反应,过一会儿程序一出来就好了,用strace跟踪程序发现是停在打开ttf字体的地方,这个问题怎么解决呀?
6. 2.4的内核我也用的是alsa作为声卡驱动,每次重启时alsamixer都能自动保存音量配置,可是现在2.6的内核alsamixer每次重启后都恢复到初始值,有什么办法可以使它能保存吗?
|
|