conver .o file into .ko file and frame buffer refresh
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
conver .o file into .ko file and frame buffer refresh
Hi,
I'm using linux kernel 2.6, while compiling a program with gcc only the filename.o is created, whereas filename.ko is required to do insmod.
Is there anyway to convert .o file into .ko file. I'm using bash shell, specifying shell name because most of the commands i searched on the net are not working.?????????
Make is giving stdio.h:No such file or directory but it is there in every include directory. Please help me its urgent???????
Im using hawkboard to display images created through qt4, for this i need a frame buffer and i have created a frame buffer(using mknod) but how to make it permanent, fb is getting disappear after every restart/shutdown and even if i do not shut down then also cat is not working it is giving the error /dev/fb0:No such device, but if i check the /dev directory fb0 is there. How can i make my fb0 so that it won't disappear?????????
Hi,
I'm using linux kernel 2.6, while compiling a program with gcc only the filename.o is created, whereas filename.ko is required to do insmod.
Is there anyway to convert .o file into .ko file. I'm using bash shell, specifying shell name because most of the commands i searched on the net are not working.?????????
Make is giving stdio.h:No such file or directory but it is there in every include directory. Please help me its urgent???????:
Im using hawkboard to display images created through qt4, for this i need a frame buffer and i have created a frame buffer(using mknod) but how to make it permanent, fb is getting disappear after every restart/shutdown and even if i do not shut down then also cat is not working it is giving the error /dev/fb0:No such device, but if i check the /dev directory fb0 is there. How can i make my fb0 so that it won't disappear?????????
Thanku.
Please reply me.
No, it's not urgent for anyone here. We volunteer our time, so telling us to hurry and help you is fairly rude.
And if it's **URGENT**, how about telling us what version/distro of Linux you're using? What 'program' you're trying to compile, where you got it, and what you're trying to do?
I understood and will not repeat it again.
I am using redhat4 linux
I have written a code for hello world, which is like this
//hello.c
#include<linux/kernel.h>
#include<linux/kernel.h>
now i did insmod hello.ko and it got inserted into the kernel modules...... successfully completed
now i did mknod /dev/fb0 c 29 0
which created a a frame buffer node in /dev
1. cat /dev/fb0 > myfile is giving No such device error, where as it is there in /dev/fb0
2. Every time i switch on the system i have to recreate a /dev/fb0, as /dev/fb0 is disappearing when i shut down my system
I have created a /dev/fb0 now, and trying to execute the following program
//file.c
#include<linux/fcntl.h>
#include<linux/unistd.h>
#include<stdio.h>
int main(void)
{
int fbfd=0;
fbfd=open("/dev/fb0",O_RDWQ);
if(!fbfd)
{
printf(KERN_INFO"error\n");
exit(1);
}
printf("PASS\n");
close(fbfd);
return 0;
}
Makefile is same as above
when i try to make, it is giving errors,
1.stdio.h: no such file or directory
2.implicit declaration of prototype open, close, exit, printf
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.