try use "mknod (root) instead of "mkdir".
 
Tiancheng Song
Software Engineering
IDERS Incorporated
Email: tsong@iders.ca
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.
 
----- Original Message -----
From: William Estrada
To: linux-fbdev-users@lists.sourceforge.net
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
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   --  MrUmunhum at popdial dot com  --  408-997-0743
  Ymessenger ID: MrUmunhum
  HTTP://Mt-Umunhum-Wireless.net