LinuxSir.cn,穿越时空的Linuxsir!

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

请教,使用uvesafb遇到的一些问题

[复制链接]
发表于 2008-12-23 16:53:41 | 显示全部楼层 |阅读模式
第一次发帖,大家好:flash:。我想使用uvesafb作为framebuffer设备的驱动,参考了cbkid兄的“[color="SeaGreen"]给没做gensplash的朋友”,以及[color="SeaGreen"]spock's devsite,一步步做下来,结果出现了一些错误。不知道该如何解决,请大家帮着出出建议。


      遇到的问题:当内核编译好后,gentoo在启动时屏幕会出现大约10几秒钟的黑色空白,之后才会进入正常的启动过程。此时,console的分辨率被设置为了1024x768,与预想的相同。进入系统后,在各个tty之间进行切换,也会出现大约几秒钟的黑色空白,才会恢复正常。
       [color="Blue"]#dmesg | grep fb
[    0.000000] mapped APIC to ffffb000 (013c2000)
[    0.000000] Kernel command line: root=/dev/sda3 video=uvesafb:1024x768-32,mtrr:3,ywrap
[    0.059673] system 00:04: iomem range 0xff800000-0xffbfffff could not be reserved
[    0.128213] uvesafb: Intel Corporation, Intel(r)852GM/852GME/855GM/855GME Graphics Controller, Hardware Version 0.0, OEM: Intel(r)852GM/852GME/855GM/855GME Graphics Chip Accelerated VGA BIOS, VBE v3.0
[    0.133274] uvesafb: VBIOS/hardware supports DDC2 transfers
[    0.269644] uvesafb: monitor limits: vf = 60 Hz, hf = 48 kHz, clk = 65 MHz
[    0.269796] uvesafb: scrolling: redraw
[    5.275019] [color="Red"]uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[   10.419021] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[   15.569020] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[   15.713816] uvesafb: framebuffer at 0xe8000000, mapped to 0xde980000, using 6144k, total 32576k
[   15.713819] fb0: VESA VGA frame buffer device
[   34.834029] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[  743.307028] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[  753.613027] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[ 2184.164027] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[ 4049.848027] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[ 5802.799028] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[ 6033.000034] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
[ 6054.040027] uvesafb: mode switch failed (eax=0x4f02, err=1). Trying again with default timings.
       [color="Blue"]#dmesg | grep v86d
[    0.128014] v86d used greatest stack depth: 7108 bytes left
[    0.405902] v86d[389]: [color="Red"]segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[    0.405963] v86d used greatest stack depth: 6816 bytes left
[    5.549695] v86d[394]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[   10.693510] v86d[397]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[   29.939184] v86d[400]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[  738.427173] v86d[1971]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[  748.725606] v86d[3471]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[ 2179.270645] v86d[3477]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[ 4044.958700] v86d[3551]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[ 5797.903970] v86d[3888]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[ 6028.098042] v86d[3993]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
[ 6049.166706] v86d[4008]: segfault at c6ba9 ip 0000724d sp 00000fc4 error 7 in v86d[9000+1000]
       [color="Blue"]#uname -a
Linux Super 2.6.27-gentoo-r7 #5 SMP Tue Dec 23 14:44:35 CST 2008 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
      

      以上是可以看到的一些错误信息,请大家帮着分析一下如何解决。如果还需要什么信息,您可以告诉我,我会在稍后贴出来   谢谢
      uvesafb我是直接编译进内核里的。
发表于 2008-12-23 17:49:56 | 显示全部楼层
email spock_@T_g3n700.org
或者上freenode的#fbsplash频道,(恩顺带看看topic.)这样可能解决问题更加快捷一些。
回复 支持 反对

使用道具 举报

发表于 2008-12-23 18:03:56 | 显示全部楼层
grub 中内核启动参数贴出来看看。

我的:
root(hd0,5)
kernel /kernel-2.6.27-gentoo-r7 root=/dev/sda7 splash=silent,fadein,theme:natural_gentoo video=radeonfb:1024x768-32@60 quiet CONSOLE=/dev/tty1
initrd /fbsplash-natural_gentoo-1024x768


我使用的是radeonfb的驱动。
回复 支持 反对

使用道具 举报

发表于 2008-12-23 18:22:57 | 显示全部楼层
Post by shellworld;1928547
grub 中内核启动参数贴出来看看。

我的:
root(hd0,5)
kernel /kernel-2.6.27-gentoo-r7 root=/dev/sda7 splash=silent,fadein,theme:natural_gentoo video=radeonfb:1024x768-32@60 quiet CONSOLE=/dev/tty1
initrd /fbsplash-natural_gentoo-1024x768


我使用的是radeonfb的驱动。


Kernel command line: root=/dev/sda3
video=uvesafb:1024x768-32,mtrr:3,ywrap

不是已经有了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-24 08:23:57 | 显示全部楼层
正如Blahster兄所说,内核参数已经有了。但不知道这样传递的参数是否正确?因为我查到在新版本的uvesafb中,如果把uvesafb编译为模块,传递的参数方法和以前发生了变化。
之前:uvesafb [color="Red"]mode=1024x768-32 mtrr=3 scroll=ywrap
现在:uvesafb [color="SeaGreen"]mode_option=1024x768-32 mtrr=3 scroll=ywrap
所以,不知道把uvesafb直接编译进内核时,传递的参数是否也发生了变化?

谢谢Blahster兄所提的建议,我会去试试。只是英文不是很好,怕沟通不畅哈
另,是否应该 email [color="RoyalBlue"]spock (at) gentoo.org :thank

其实,一个问题倒无所谓,我是想了解一下[color="RoyalBlue"]通过查看错误,找到解决问题的方法的方法  拗口?  能明白就好 呵

也希望shellworld兄能提出更好的建议来  同样感谢
回复 支持 反对

使用道具 举报

发表于 2008-12-24 18:35:55 | 显示全部楼层
Post by Roamin9;1928769
正如Blahster兄所说,内核参数已经有了。但不知道这样传递的参数是否正确?因为我查到在新版本的uvesafb中,如果把uvesafb编译为模块,传递的参数方法和以前发生了变化。
之前:uvesafb [color="Red"]mode=1024x768-32 mtrr=3 scroll=ywrap
现在:uvesafb [color="SeaGreen"]mode_option=1024x768-32 mtrr=3 scroll=ywrap
所以,不知道把uvesafb直接编译进内核时,传递的参数是否也发生了变化?

谢谢Blahster兄所提的建议,我会去试试。只是英文不是很好,怕沟通不畅哈
另,是否应该 email [color="RoyalBlue"]spock (at) gentoo.org :thank

其实,一个问题倒无所谓,我是想了解一下[color="RoyalBlue"]通过查看错误,找到解决问题的方法的方法  拗口?  能明白就好 呵

也希望shellworld兄能提出更好的建议来  同样感谢


不用编译成模块吧,模块是要磁盘上加载的, 我怀疑,你的几秒黑白是否与此有关(因为那时还没有到加载模块的阶段), 至于格式变我想模块加载的参数格式可能于加载模块文件当中的参数格式类似吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-25 08:40:14 | 显示全部楼层
我是把uvesafb直接编译进内核中的,所以应该不是由于[color="SeaGreen"]模块加载造成的
回复 支持 反对

使用道具 举报

发表于 2008-12-25 08:53:17 | 显示全部楼层
video=radeonfb改为video=uvesafb试试.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-25 09:21:41 | 显示全部楼层
直接给内核传递参数 video=uvesafb ?   我认为这样做不会改善什么实际效果。
实践后,结果也确实没有发生改变  
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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