From: William E. <mru...@po...> - 2005-08-17 17:34:43
|
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:MrU...@po...> -- 408-997-0743 Ymessenger ID: MrUmunhum HTTP://Mt-Umunhum-Wireless.net |
From: Richard S. <smi...@gm...> - 2005-08-17 17:48:04
|
> I have done the mkdir: > =20 > [wre00@Shrek FB]$ ls -lrt /dev/fb* > crwxrwxr-x 1 wre00 root 29, 0 Aug 17 10:05 /dev/fb0 > =20 > Any ideas/help?? Permission issue? You don't have write access to the device. --=20 Richard A. Smith |
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 |
From: William E. <mru...@po...> - 2005-08-18 19:25:41
|
Tiancheng, My typo! $ sudo mknod /dev/fb0 c 29 0 $ cd /src/FB $ sudo ./a.out Error: cannot open framebuffer device /dev/fb0. - No such device rc=-1 $ ls -lrt /dev/fb* crw-r--r-- 1 root root 29, 0 Aug 18 12:21 /dev/fb0 $ Also, the nod disappears after a boot. William Estrada <http://www.Mt-Umunhum-Wireless.net/resume/william_estrada.html> -- MrUmunhum at popdial dot com <mailto:MrU...@po...> -- 408-997-0743 Ymessenger ID: MrUmunhum HTTP://Mt-Umunhum-Wireless.net Tiancheng Song wrote: > try use "mknod (root) instead of "mkdir". > > > |
From: William E. <mru...@po...> - 2005-08-20 02:14:59
|
Tiancheng, I got it to work. It had to do with my kernel boot command line in grub.conf. I had to add: vga=0x318 video=rivafb I used the standard kernel that came with Core 4 and all is well. Like magic the /dev/fb and /dev/fb0 were defined by the system (??). There is still a lot I don't understand but it is a start. Now I need to know how to make more Frame Buffer devices! Thanks for your time. ps. The HOWTO.html was not any help for my NVidia video card problem. I found it by googling around for a time. Bits and pieces! William Estrada <http://www.Mt-Umunhum-Wireless.net/resume/william_estrada.html> -- MrUmunhum at popdial dot com <mailto:MrU...@po...> -- 408-997-0743 Ymessenger ID: MrUmunhum HTTP://Mt-Umunhum-Wireless.net Tiancheng Song wrote: > I wonder your kernel is not configured properly. go to > http://www.faqs.org/docs/Linux-HOWTO/Framebuffer-HOWTO.html for more > details. > > As for the disapearing of node, put "mknod /dev/fb0 c 29 0" in your > booting up sript will create the node when boots up. > Good luck! > > Tiancheng Song > Software Engineering > IDERS Incorporated > Email: ts...@id... <mailto: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. > > > ----- Original Message ----- > *From:* William Estrada <mailto:mru...@po...> > *To:* Tiancheng Song <mailto:ts...@id...> > *Cc:* lin...@li... > <mailto:lin...@li...> > *Sent:* Thursday, August 18, 2005 2:25 PM > *Subject:* Re: [Linux-fbdev-users] Getting started > > Tiancheng, > > My typo! > > $ sudo mknod /dev/fb0 c 29 0 > $ cd /src/FB > $ sudo ./a.out > Error: cannot open framebuffer device /dev/fb0. - No such > device rc=-1 > $ ls -lrt /dev/fb* > crw-r--r-- 1 root root 29, 0 Aug 18 12:21 /dev/fb0 > $ > > Also, the nod disappears after a boot. > > William Estrada > <http://www.Mt-Umunhum-Wireless.net/resume/william_estrada.html> > -- MrUmunhum at popdial dot com <mailto:MrU...@po...> > -- 408-997-0743 > Ymessenger ID: MrUmunhum > HTTP://Mt-Umunhum-Wireless.net <http://Mt-Umunhum-Wireless.net> > > > > Tiancheng Song wrote: > >> try use "mknod (root) instead of "mkdir". >> >> >> |
From: Charles L. <cl...@gm...> - 2005-08-22 13:49:56
|
On 8/19/05, William Estrada <mru...@po...> wrote: > Like magic the /dev/fb and /dev/fb0 > were defined by the system (??). This bit of magic is "udev". It gets messages from the kernel when drivers are loaded, and it creates device nodes for you. When using udev, the /dev filesystem is actually created in a ramdisk, which explains why the device nodes disappeared when you rebooted. > Now I need to know how to make more Frame Buffer devices! Typically, you get one frame buffer device node per video card. (/dev/fb is probably a link to /dev/fb0) --=20 - Charles Lepple |
From: William E. <mru...@po...> - 2005-08-22 17:23:02
|
Charles, Thanks for the pointer. That's was good information. I will be adding another video card to my system soon. Do you know of a URL that could help with this task? I don't know if I will be using a NVidia card or not. Will the system auto-magically configure it for this setup? William Estrada <http://www.Mt-Umunhum-Wireless.net/resume/william_estrada.html> -- MrUmunhum at popdial dot com <mailto:MrU...@po...> -- 408-997-0743 Ymessenger ID: MrUmunhum HTTP://Mt-Umunhum-Wireless.net Charles Lepple wrote: >On 8/19/05, William Estrada <mru...@po...> wrote: > > >>Like magic the /dev/fb and /dev/fb0 >> were defined by the system (??). >> >> > >This bit of magic is "udev". It gets messages from the kernel when >drivers are loaded, and it creates device nodes for you. When using >udev, the /dev filesystem is actually created in a ramdisk, which >explains why the device nodes disappeared when you rebooted. > > > >>Now I need to know how to make more Frame Buffer devices! >> >> > >Typically, you get one frame buffer device node per video card. >(/dev/fb is probably a link to /dev/fb0) > > > |
From: James L. <ja...@ak...> - 2005-08-22 23:45:35
|
If you want to use more than one video card then that implies that you = need at least one that is PCI. I have had success using 5 Matrox PCI = cards (all slots full). EZFB has built in features for multiple video cards and an example = program that will initialize and put a picture on every working frame = buffer in your system. http://www.akrobiz.com/ezfb/ James. :o) ----- Original Message -----=20 From: William Estrada=20 To: Charles Lepple=20 Cc: lin...@li...=20 Sent: Monday, August 22, 2005 1:23 PM Subject: Re: [Linux-fbdev-users] Re: Getting started Charles, Thanks for the pointer. That's was good information. I will be adding another video card to my system soon. Do you know of a URL that could help with this task? I don't know if I will be using a NVidia card or not. Will the system auto-magically configure it for this setup? William Estrada -- MrUmunhum at popdial dot com -- 408-997-0743 Ymessenger ID: MrUmunhum HTTP://Mt-Umunhum-Wireless.net Charles Lepple wrote:=20 On 8/19/05, William Estrada <mru...@po...> wrote: Like magic the /dev/fb and /dev/fb0 were defined by the system (??). =20 This bit of magic is "udev". It gets messages from the kernel when drivers are loaded, and it creates device nodes for you. When using udev, the /dev filesystem is actually created in a ramdisk, which explains why the device nodes disappeared when you rebooted. Now I need to know how to make more Frame Buffer devices! =20 Typically, you get one frame buffer device node per video card. (/dev/fb is probably a link to /dev/fb0) |
From: James L. <ja...@ak...> - 2005-08-18 18:11:14
|
If you don't see Tux, the penguin, on boot up, you didn't get a working = frame buffer (usually). What is your video card? There are a number of individual choices you need to make in the kernel = config to make it all work. Some video chip sets work better than others. So far, I've had good luck with anything Matrox. http://www.akrobiz.com/ezfb/ ~James. :o) ----- Original Message -----=20 From: William Estrada=20 To: lin...@li...=20 Sent: Wednesday, August 17, 2005 1: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 |