LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 01-17-2007, 03:38 PM   #1
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Framebuffer graphics WITHOUT /dev/fb#


Hey Guys...

Im coding a 2d game engine for the AMD Geode-LX embedded system under Linux.

AMD Provide drivers patches for the Kernel and Xorg to use what little hardware acceleration this device has to offer..

These Patches include
1) X11 Graphics Driver 9 would prefere not to use X11 )
( Works Well, But i was hoping to keep the system small, and rediuce the overhead )

2) Frame Buffer Driver.... ( preffered choice )
HOWEVER... this framebuffer driver appears to be broken and in-complete
with absolutly no documentation.

The kernel will happily use this framebuffer driver to devliver the standard 'framebuffer console complete with penguin logo'

but any attempts to use /dev/fbX fail miserably....

IOCTL's work fine as expected, allowing me to pan the display / change screen_var_info...

however, ad attempt to read / write to /dev0 fails !!

linux reports the block device as being of size zero.

all attempts to mmap it fail.

fbset reports the framebufer address as NIL.

Which Leads me to my final question...

The kernel is able to take advantage of this hardware accelerated framebuffer ( it can dump text to the screen far faster than the generic vesa framebuffer )

it seemss to just be the block device driver that is borked !

from userspace.... is there a way of performing the usual framebuffer activities without the /dev/fb0 block device ?????

I am running Linux 2.6.11, currently with a gentoo environment ( but later plan to create a nice customised distro with help from LFS )

THANKS.
 
Old 02-17-2007, 08:45 PM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
hack X?

anyone know if /dev/fb0 et al work in linux 2.6? I haven't with framebuffer stuff since '99, but back then I had to hack an X driver to provide direct access to the video framebuffer (and, of course, run everything as root, not a commercial-friendly solution).

If the /dev files don't work, I'd suggest figuring out how to comile Xorg (if you haven't already) and start looking into the
video driver code.

again, this advice is based on what I did 8 years ago.

-dave
 
  


Reply

Tags
framebuffer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Correct graphics/framebuffer kernel config options -- garbled console text? Prostetnic_Jeltz Slackware 9 04-20-2006 11:29 AM
/dev/tty0, /dev/tty1, /dev/tty10...and so on...which should be used for a device ??? b0nd Slackware 2 04-02-2006 09:14 AM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM
VESA framebuffer vs Intel framebuffer in Slackware 10.0 with default kernel brancalessio Slackware 3 01-20-2005 04:21 PM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 07:54 PM


All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration