Getting started
William Estrada <[email protected]>
| Newsgroups | gmane.linux.fbdev.user |
|---|---|
| Organization | Mt Umunhum WIreless dot net |
| Message-ID | <[email protected]> |
Hi guys,
Would someone please point me to a 'Getting started' URL for framebuffer
support?
I am running Fedora Core 4 and I have rebuilt the kernel to make sure
FB support is in the kernel. I have a simple FB program that I have
compiled but everytime I try to run it, I get:
Error: cannot open framebuffer device /dev/fb0. - No such device rc=-1
The open code looks like this:
// Open the file for reading and writing
char* FB = "/dev/fb0";
int fbfd = 0;
fbfd = open( FB, O_RDWR);
if (fbfd < 0) {
printf("Error: cannot open framebuffer device %s. - %s rc=%d\n",
FB, strerror(errno), fbfd);
exit(1);
}
printf("The framebuffer device was opened successfully. - %d\n",
fbfd );
I have done the mkdir:
[wre00@Shrek FB]$ ls -lrt /dev/fb*
crwxrwxr-x 1 wre00 root 29, 0 Aug 17 10:05 /dev/fb0
Any ideas/help??
--
William Estrada
<http://www.Mt-Umunhum-Wireless.net/resume/william_estrada.html> --
MrUmunhum at popdial dot com <mailto:[email protected]> --
408-997-0743
Ymessenger ID: MrUmunhum
HTTP://Mt-Umunhum-Wireless.net