分页: 1 / 1

/dev/fb0 打不开 求助

发表于 : 2012-08-13 20:41
jc18250883653
我用的是gentoo
在命令行输入startx
报错: (EE) open /dev/fb0: No such file or directory

查看/dev里没有fb0这个文件
于是我去内核编译framebuffer

Device Drivers --->
Graphics support --->
<*> Support for frame buffer devices --->
[ ] Enable Tile Blitting Support
<*> VESA VGA graphics support
VESA driver type (vesafb-tng) --->
(HRESxVRES@FREQ) VESA default mode
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Matrox acceleration
Console display driver support --->
[*] Video mode selection support
<*> Framebuffer Console support
[*] Support for the Framebuffer Console Decorations

Device Drivers --->
Block devices --->
<*> RAM block device support
(16) Default number of RAM disk (NEW)
(4096) Default RAM disk size (kbytes) (NEW)

然后make && make modules_install之后重启
在/dev里还是没有fb0
于是我mknod /dev/fb0 c 29 0
可是运行startx 报错 (EE) open /dev/fb0: No such device

没招了,求各路大神帮忙! :em19

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-13 20:50
woodelf
启动X跟framebuffer貌似没什么关系吧?看看显卡驱动是否安装正确,另外,按照自己的显卡类型去找官方Wiki看怎么开启framebuffer。

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-13 20:54
jc18250883653
woodelf 写了:启动X跟framebuffer貌似没什么关系吧?看看显卡驱动是否安装正确,另外,按照自己的显卡类型去找官方Wiki看怎么开启framebuffer。
我的linux内核是3.1.10 显卡驱动能装到2.1.7 现在已经是最新版本,但是还是报错 (EE) open /dev/fb0: No such file or directory

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-13 20:58
naturalaw
是不是跟vga有关。
内核行添加 vga=773

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-13 21:20
蔡万钊
錯誤!

需要的是 KMS .

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-13 21:53
jc18250883653
naturalaw 写了:是不是跟vga有关。
内核行添加 vga=773
现在电脑不在身边,我明天试一下

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-13 21:53
jc18250883653
蔡万钊 写了:錯誤!

需要的是 KMS .

能说具体点吗? 菜鸟表示没看懂

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-14 11:43
jc18250883653
jc18250883653 写了:
naturalaw 写了:是不是跟vga有关。
内核行添加 vga=773
现在电脑不在身边,我明天试一下
试过了 kernel /boot/kernel-3.1.10-gentoo-r1 root=/dev/sda3 vga=773
结果还是不行 :em20

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-14 17:32
cjxgm
菜鸟都敢用 gentoo?不想活了啊!先在 ubuntu 里熟悉了 linux 再说
正确安装、配置X的方法到官方Wiki自己看去(LZ明显没配 xorg.conf,明显没装显卡驱动)
(虽然我用的是 arch)

Re: /dev/fb0 打不开 求助

发表于 : 2012-08-15 9:07
YeLee
目测,是没fb,正如2L所言,有X开fb,必要?