LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 962|回复: 4

2.6.0-test8的内核已经成功运行了,不过还有几个问题为解决!

[复制链接]
发表于 2003-10-29 11:18:55 | 显示全部楼层 |阅读模式
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每次重启后都恢复到初始值,有什么办法可以使它能保存吗?

发表于 2003-10-29 14:04:50 | 显示全部楼层
up
发表于 2003-10-29 23:58:05 | 显示全部楼层
在内核中必须在Device Drivers-->Graphics support-->Console desplay driver support选中,同时选中"VGA 16-color graphics support及VESA VGA graphics support,还有几个可根据你的显卡选。还有Logo configuration,就是启动后在屏幕左上角的那个小企鹅。
最后,在grub的内核那一行后面插入:
ro root=/dev/hda10 vga=788 acpi=off devfs=mount
选项。重启即可。
 楼主| 发表于 2003-10-30 09:19:40 | 显示全部楼层
acpi=off devfs=mount


能说明一下这两句的作用吗?
发表于 2003-11-1 22:43:11 | 显示全部楼层
如果编译是用make install,系统会自动帮你修改grub配置文件。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表