From: Tiancheng S. <ts...@id...> - 2005-08-18 17:11:36
|
try use "mknod (root) instead of "mkdir".=20 Tiancheng Song Software Engineering IDERS Incorporated Email: ts...@id... Ph: (204) 779-5400 x245 http://www.iders.ca IDERs Incorporated Confidential Note: This message is intended solely for the use of the designated = recipient(s) and their appointed delegates, and may contain confidential = information. Any unauthorized disclosure, copying or distribution of = its contents is strictly prohibited. If you have received this message = in error, please destroy it and advise the sender immediately by phone, = Email or facsimile. =20 ----- Original Message -----=20 From: William Estrada=20 To: lin...@li...=20 Sent: Wednesday, August 17, 2005 12:34 PM Subject: [Linux-fbdev-users] Getting started 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=20 compiled but everytime I try to run it, I get: Error: cannot open framebuffer device /dev/fb0. - No such device = rc=3D-1 The open code looks like this: // Open the file for reading and writing char* FB =3D "/dev/fb0"; int fbfd =3D 0; fbfd =3D open( FB, O_RDWR); if (fbfd < 0) { printf("Error: cannot open framebuffer device %s. - %s = rc=3D%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?? --=20 William Estrada -- MrUmunhum at popdial dot com -- 408-997-0743 Ymessenger ID: MrUmunhum HTTP://Mt-Umunhum-Wireless.net |