LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-11-2010, 05:53 PM   #1
marius_c
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
/dev/fb0: No such device but i can see it


Kernel: 2.6.28-15-generic
Ubuntu 9.X #52-Ubuntu SMP

Driver. Video, build on top of skeleton video driver.
I can insert it and remove it using:

insmod / rmmod
or with modprobe
modprobe working if i move the *.ko file in
/lib/modules/`uname -r`/kernel/drivers/misc/
and I depmod after. I can inser and remove it.

-lsmod lists the module 'myfb'.
-ls /proc/devices shows it as '29 fb'
-ls /dev/fb* lists fb0, so the file is there.

But when i try to

sudo cat /dev/fb0 > myfile
I got
cat: /dev/fb0: No such device

Thx.

Last edited by marius_c; 02-11-2010 at 05:54 PM.
 
Old 02-12-2010, 02:08 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
You are making a custom framebuffer driver?

Quote:
ls /dev/fb* lists fb0, so the file is there.
Yes, but you actually have to issue the command and copy/paste it and the result here so we can see what you do. That way your report looks like this:
Code:
$ lsmod | grep fb
fbcon                  36640  72 
tileblit                2460  1 fbcon
font                    8124  1 fbcon
bitblit                 5372  1 fbcon

$ ls /proc/devices
/proc/devices

$ ls -l /dev/fb*
crw-rw---- 1 root video 29, 0 2010-02-08 01:20 /dev/fb0

$ cat /dev/fb0 > myfile
$
(In my case it worked).

See how I have put the command as well as the result? This way it is unambiguous what I have done and others can be confident they have all the facts. (Note the -l option in the ls command? That is important because your error says "no such device" not "no such file" - perhaps it is the wrong kind of file?)
 
Old 02-12-2010, 03:33 PM   #3
marius_c
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Hi here are all the commands copied from console.

no fb, inserting...
Code:
home$ ls /dev/f*
/dev/fd0  /dev/full  /dev/fuse

/dev/fd:
0  1  2  3

(u32)marius@A64-2:~$ lsmod | more
Module                  Size  Used by
binfmt_misc            16776  1 
bridge                 56212  0 
stp                    10500  1 bridge
--More--

ls
avs_1.o      
Makefile
modules.order
avs_1.ko
avs_1.c

home$ sudo insmod ./avs_1.ko
home$ dmesg
[  321.920334] d_screen_init 
[  321.920339] sf_create(struct platform_device *pdev)
[  321.920548] local_register_framebuffer(struct fb_info* pfionfo) 
[  321.920884] Console: switching to colour frame buffer device 80x30
home$
inserted. so look for it

Code:
home$ ls /dev/f*
/dev/fb0  /dev/fd0  /dev/full  /dev/fuse

/dev/fd:
0  1  2  3
home$ 

home$ ls -l /dev/fb*
crw-rw---- 1 root video 29, 0 2010-02-12 16:17 /dev/fb0
home$ 


home$ lsmod | grep fb
fbcon                  46112  72 
tileblit               10752  1 fbcon
font                   16384  1 fbcon
bitblit                13824  1 fbcon
home$ 

home$ sudo cat /proc/devices | grep f
[sudo] password for marius: 
 29 fb
216 rfcomm
  2 fd
home$
but... Is somehting wrong with my driver ?
Code:
home$ sudo cat /dev/fb0 >~/dataa
cat: /dev/fb0: No such device
home$
 
Old 02-17-2010, 02:53 AM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Is there already a framebuffer driver in place instead of yours?
 
Old 02-17-2010, 03:29 PM   #5
marius_c
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Original Poster
Rep: Reputation: 0
No, at the top of my outputs it ca be seen before inserting my driver.
Code:
home$ ls /dev/f*
/dev/fd0  /dev/full  /dev/fuse

/dev/fd:
0  1  2  3

(u32)marius@A64-2:~$ lsmod | more
Module                  Size  Used by
binfmt_misc            16776  1 
bridge                 56212  0 
stp                    10500  1 bridge
 
Old 02-17-2010, 11:58 PM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
http://lists.mplayerhq.hu/pipermail/...er/037840.html

You get ENOENT (No such file or directory) if the device node doesn't exist in the filesystem. If you see ENODEV (No such device), then the device node has major/minor number which the
kernel does not recognize as a valid device, i.e. you haven't compiled in the driver or loaded the module.

Possibly your driver is not compatible with your video card.
So you see the file there, but there is no physical device associated with it.
 
1 members found this post helpful.
  


Reply


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
/dev/fb0 Not found when first running X CD1212 Linux From Scratch 4 01-17-2010 07:56 PM
mplayer: Can't open /dev/fb0: Permission denied jojoii Linux - Software 2 09-21-2008 05:56 PM
framebuffer confusion with Hauppauge PVR 350 framebuffer /dev/fb0 tofino_surfer Linux - General 4 09-18-2008 11:36 PM
/dev/fb0: No such file or directory mukeshj Linux - Software 2 09-04-2005 11:15 AM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 06:54 PM


All times are GMT -5. The time now is 12:50 PM.

Main Menu
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