• 7679阅读
  • 0回复

failed to map framebuffer device [复制链接]

上一主题 下一主题
离线trinh
 

只看楼主 倒序阅读 楼主  发表于: 2008-01-24
failed to map framebuffer device
使用u-boot和linux内核2.6.19移植到s3c2440arm板上,再从nfs挂载的busybox制作的根文件系统启动,运行交叉编译的helloworld程序成功。
再编译qt-embedded-3.3.4,复制到nfs根文件系统文件夹下,运行例子程序的时候提示mapping /dev/fb0: Invalid argument
Error: failed to map framebuffer device to
memory.: driver cannot connect
再运行一个帧缓存测试程序,出现同样的错误:
fbfd = open("/dev/fb0", O_RDWR);
......
mmap(0, screensize, PROT_READ | PROT_WRITE, MAP_SHARED,fbfd, 0);
Error: failed to map framebuffer device to memory.
估计是内核的问题,再看一下启动时的信息,发现
--- s3c2410fb init ---!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pxafb_probe start!!!!!!!!!!!!!!!!!!!!!!!!!!
s3c2410-lcd s3c2410-lcd: Invalid resolution or bit depth
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
这个问题怎样解决,请高手指教,谢谢!
注:宿主机是redhat企业版4
快速回复
限100 字节
 
上一个 下一个