From: Jenkins, C. <Cli...@xe...> - 2006-02-01 12:04:07
|
> /* Open the file for reading and writing */ > fbfd =3D open("/dev/fb0", O_RDWR); > printf("\nfbfd =3D %d",fbfd); =20 > Return Values of > > fbfd =3D -1 I suggest you change your code to give you more information about the type of error occurring. When a system call such as open() returns a negative value, the global value "errno" also gets set. You can use "perror()" to print it. Use the "man" command to find out all about open, errno, perror etc. Read all the FB documentation in the kernel Documentation directory. Use search engines. One possibility is that there is no "/dev/fb0" device node in the filesystem. Clive |